Forum Discussion
Altera_Forum
Honored Contributor
14 years agoModel sim testbench
Hello, I have a test bench that simulate a 32bit data bus interfacing my fpga. I would like my test bench to be able to inject data to fpga from a file. so, testbench will read data f...
Altera_Forum
Honored Contributor
14 years agoI am just trying to test my design in the modelsim simulator.
I have this code in my test bench, the code increment data and drive it to my design. while ( cnt_loop < 256 ) loop data_sig <= data_sig + '1' ; usb_data_out <=usb_data_out +'1'; wait for 10 ns; cnt_loop := cnt_loop + 1; Instead of increment data I would like this test bench to pull data from a file. This way I can make any kind of file. its very comfortable. Do you know how to do that?