- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check for any warning messages on the ModelSim console (transcript).
Did you add the 'altera_mf' library to your ModelSim simulation?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I posted simulation files in this thread a while ago:
http://www.alteraforum.com/forum/showthread.php?t=38988 Cheers, Dave- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i have linked it in my first message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
can you attach the file again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thats not your logic - thats the SCFIFO generated from the megawizard.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can't I simulate the same which is generated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This isnt your logic. This is just a wrapper. it does nothing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How can you run a ModelSim simulation without a testbench that generates some input for the FIFO?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you guys..i could figure out!! :)

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page