Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHi Red,
Yes, of course you need testbench in order to simulate your design, I usually don't create my own testbench, I make Quartus generate the testbench. To make Quartus generate a testbench, you need a Vector Waveform File which already has an input stimulus, creating input in Quartus Simulator is easy, just click, click and click, after that export the vwf file to vht (File->Export from Quartus Menu). And in order to simulate in ModelSim correctly based on vwf fille here are the step : 1. Export vwf to vht : File -> Export 2. Make Quartus compile this testbench : Assigments -> EDA Tool Settings, on the NativeLink Setting on Simulation tab, select Compile test bench, and then press Test Benches button. 3. A dialog open, click new and then fill the Test Bench name, and etc... and don't forget to add the vht file. 4. Last, Run the ModelSim from Quartus, Tools -> Run Eda Simulation Tool -> EDA RTL Simulation (for Functional Simulation) or EDA Gate Level (for timing simulation) 5. Done, waveform should be appear... Hope it can help you... ;)