Forum Discussion
Altera_Forum
Honored Contributor
15 years agohi, well, after being testing all the options, i am back with results,
1st i tried to check the option of MegaWizard, and i create a Dual port ram with two clocks, configured for Cyclone iii fpga, and yes i created it in a new project. then connected it to input and output pins, assign the pins to fpga-pinout and then i just flashed this dualport ram to my fpga, but it didnt work as it should, as soon as i connect this fpga to a micro-controller (ARM7) it stop working, and when i remove FPGA, then the micro-controller starts to work again, it seems as if their is a problem with the logic, or the way is it flashed? (is it possible? or is their a special way to flash a RAM module to fpga?) this is my first time to use FPGA as a memory module so this is why i have such questions. 2nd, is the question for the code i am using to make my custom dualport ram, well you can see as follows, when i use this code with a single clock then it is compiled, else it wont. and here it is being configured with one clock, so it is working fine. BUT the problem is the same when i flash this code to fpga, i get the same problem that micro-controller stops working. i also have checked the results on scope, and it appears that when i flash the fpga with any of the above configurations, it results like the pins of fpga change its state from low to high (during configuration) and then remain high. which doesn't seems normal to me, or is it okay???