UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
5,618 Views
Registered: ‎04-15-2014

Re: Vivado Simulation

Is the testbench template available yet?

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

Re: Vivado Simulation


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.
-------------------------------------------------------------------------
Moderator
Moderator
5,609 Views
Registered: ‎04-17-2011

Re: Vivado Simulation

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
Historian
Historian
5,594 Views
Registered: ‎02-25-2008

Re: Vivado Simulation


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