简体   繁体   中英

Testing my HDL Code (Verilog/VHDL) without an FPGA?

I've written a module in Verilog using vi as my editor and now I want to test it. What are my options if I have no board? How can I give my module inputs? Where can I see the results? I have access to VCS by the way.

Thank you.

You are probably looking for a simulator.

First, you have to write a testbench which wraps around your Verilog module and drives the input signals. This testbench can also check that the output of your module matches the expected output. You can find many tutorials on writing testbenches online.

This testbench and your module are then "executed" in a simulator. I'm not familiar with all the options, but I know the free Xilinx ISE Web Pack includes a simulator. Modelsim is a commercial package. They also offer a free student edition.

For anyone else who has the same question, I found a testbench tutorial, like Vortexfive suggested, in the link bellow:

http://www.asic-world.com/verilog/art_testbench_writing.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM