cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
5,641 Views
Registered: ‎04-15-2014

Re: Vivado Simulation

Is the testbench template available yet?

0 Kudos
3 Replies
Highlighted
Xilinx Employee
Xilinx Employee
5,635 Views
Registered: ‎07-16-2008


cforte@naii.com wrote:

Is the testbench template available yet?


The built-in feature is still on the roadmap. However, user can make use of the powerful capabilities of Tcl to create their own script to fulfill specific requirement. In 2014.1 (released tomorrow), Xilinx Tcl Store is introduced, which is an open source repository for sharing useful Tcl scripts. 

 

Attached is an example script to create an instantiation template of a module in testbench. To use the script,

1. Within Vivado GUI, select Tools > Run Tcl Scripts and browse to create_verilog_template.tcl
2. In Tcl Console, run the following command.
create_top input_top_level.v testbench.v

 

 

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
Highlighted
Moderator
Moderator
5,632 Views
Registered: ‎04-17-2011

Making this as a new topic as other visitors may be interested.
Regards,
Debraj
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Highlighted
Historian
Historian
5,617 Views
Registered: ‎02-25-2008


cforte@naii.com wrote:

Is the testbench template available yet?


emacs has a nifty test bench generation feature. It instantiates your DUT, creates signals to map to that DUT, and makes a clock generator. You can easily edit the template.

 

Of course, the test bench is a whole lot more than the DUT and a clock. You need to instantiate models of your data sources and sinks, add assertions for checks on DUT output vs expected output, etc etc.

----------------------------Yes, I do this for a living.
0 Kudos