- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a testbench that generates inputs to my module. It works in simulation. What I want to do is take the waveform of these inputs (5 of them, each is just 1 bit) and put those an on FPGA that outputs them and feeds into the chip to test for real. So the FPGA becomes like a signal generator outputting the testbench waveforms in simulation.
Is there any suggestion the best way to do this? I am thinking to write the waveform inputs to a txt file from simulation and maybe load this to the SRAM that the FPGA can read and send out. Though I'm not sure how to do this (if this is the best way).Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Depending on the size of your stimulous waveforms, the easiest way is to just set them up as a ROM in the FPGA, and have a simple state machine that addresses the rom to drive the outputs. I wouldn't bother with the SDRAM unless the size of the files are larger than what will fit into the internal rams of the FPGA.
Pete- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks. I was thinking the same thing as a possibility. I have around 135k samples. So I thought I could make a big counter that addresses the ROM, to spit out the values of the waveform at each clock cycle. I guess that's what you mean right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Thanks. I was thinking the same thing as a possibility. I have around 135k samples. So I thought I could make a big counter that addresses the ROM, to spit out the values of the waveform at each clock cycle. I guess that's what you mean right? --- Quote End --- Yes. But with 135k samples you may have to get tricky. The Megawizard will only generate a maximum size rom of 64 K samples, (65535 word), so you will need to have a couple of these to make it work. The final limiting factor is the number of block rams you have in the device however. Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks. I'll give it a try.

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