Forum Discussion
13 Replies
- Altera_Forum
Honored Contributor
Check for any warning messages on the ModelSim console (transcript).
Did you add the 'altera_mf' library to your ModelSim simulation? - Altera_Forum
Honored Contributor
Yeah I have added the library. I am simulating .vhd file which is generated after megafunction configuration. Problem is during simulation WRITE operation is working fine for every clock. But read operation is not working when RD signal is enabled. Kindly post if you have a working SCFIFO code. I ll try to simulate that and check mine. By the way code is uploaded. If possible can you verify it.
- Altera_Forum
Honored Contributor
I posted simulation files in this thread a while ago:
http://www.alteraforum.com/forum/showthread.php?t=38988 Cheers, Dave - Altera_Forum
Honored Contributor
I bet the SCFIFO is working just fine. Its your app code thats not working.
Instead of blaming the SCFIFO thats used in 1000s of projects worldwide without a problem, why not post your interface code and maybe we can help with that. - Altera_Forum
Honored Contributor
i have linked it in my first message.
- Altera_Forum
Honored Contributor
can you attach the file again.
- Altera_Forum
Honored Contributor
Thats not your logic - thats the SCFIFO generated from the megawizard.
- Altera_Forum
Honored Contributor
Can't I simulate the same which is generated.
- Altera_Forum
Honored Contributor
With the configuration of the FIFO you chose it will take one clock cycle after a 'rdreq' pulse for the data to show up on the output. Does your simulation code account for this?
Can you post your testbench code so that we can see what you are doing with the FIFO? - Altera_Forum
Honored Contributor