Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

Modelsim test vector to verify DDC/DUC working?

Altera_Forum
Honored Contributor II
1,333 Views

Hi there, 

 

I'm looking for Modelsim version in verilog test vector to verify my DDC/DUC working good or not. By using signal generator as input and look at signalTap to see the result. But now, I really want to run entire in modelsim, so how can I generate test vectors as input in verilog, so I want to see in modelsim. 

 

Thanks, 

Sean
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
589 Views

first create some stimulus (using MATLAB, Octave, etc) and save it to a .txt file. then read the text file in your test bench and feed it into your system 

 

you can see an example by creating a filter with FIR Compiler and taking a look at the generated test bench
0 Kudos
Altera_Forum
Honored Contributor II
589 Views

Thank pancake, 

 

Is there samples already done in Matlab to .txt file? I already have a framework in modelsim and needs to read inputs from .txt file. Yeah, this is what I'm looking for.
0 Kudos
Reply