Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHow to build a memory?
Hi , I have to write VHDL code of a memory.
the function is : there just 2 states,read and write. if we=1 , the data are wrote into the memory, otherwise it always shows read state ,that means the data_out shows the data which are stored in the memory. There are 5 inputs: clock, enable, write(we), data_in (width of d bit),address (width of c bit) and one output : data_out (width of d bit) I have to use lots of same unit of single memory cell which can only save 1 bit (I was told to use RS-flip flop but I don’t know how) and unit demux to build the whole memory. That means use separate demux, single-cell memory entities etc. Without use ram block which already in FPGA existed. Does anyone can help me or give me some ideas?3 Replies
- Altera_Forum
Honored Contributor
Have you looked into using the altsyncram megafunction, using the Quartus Megafunction tool?
- Altera_Forum
Honored Contributor
Also there are some really nice tips here, to get it generated using VHDL only.
http://www.altera.com/literature/hb/qts/qts_qii51007.pdf (http://www.altera.com/literature/hb/qts/qts_qii51007.pdf) - Altera_Forum
Honored Contributor
how about without use Megafunctions?