- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is my stupid question. I have a uart vhdl file. It has a testbench, also written in vhdl. How to use these testbench???
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need a simulation program (like Modelsim). The testbench creates an instance of your device under test (UART in your case) and at a minimum provides stimulus. It may also do some self checking. Use the testbench as your top level file in simulation.
Was there any documentation provided to you with the testbench? Jake- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have two files. One is the uart_serial.vhd and the other one is tb_uart.vhd(testbench for my uart_serial.vhd). Set this tb_uart.vhd as top-level entity?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Correct - the testbench is what you select as the top level of your simulation

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page