Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Testbench help

 
Thread Tools Search this Thread
Old 01-23-2005, 02:40 AM   #1
Default Testbench help


Hi All,


I'm new to VHDL, and I'm having a little trouble understanding how the
testbench is meant to work.

I'm using Xilinx ISE as my IDE.

I created my synthesizable design and it synthesises ok and I can fit
it, etc. It is a bridge between two busses.

I can generate a skeleton testbench for my design and add statements,
etc. to it that drives my design. This works ok. In the testbench there
is some logic that emulates one of the busses, and other logic that
emulates the other bus.

However, now I want to break my testbench into units. I want to put both
bus emulators into their own seperate vhdl files and then just
instantiate them in the main testbench. This is where I'm having
trouble. I can do the behavioral simulation, but not the post-fit
simulation. Modelsim wants to find the bus1_timesim.vhd and
bus2_timesim.vhd files, etc.

All the timing information is included in my bus emaulator vhdl files. I
need to be able to tell ISE/Modelsim that these files are part of the
testbench and not part of the UUT. They are in my project as testbench
files and not design files.

Am I missing something?

Matt Boland






Matt Boland
  Reply With Quote
Old 01-23-2005, 06:00 AM   #2
Mike Treseler
 
Posts: n/a
Default Re: Testbench help
Matt Boland wrote:

> I'm new to VHDL, and I'm having a little trouble understanding how
> the testbench is meant to work.


It wiggles the UUT inputs and watches the outputs.

> I created my synthesizable design and it synthesises ok and I can fit
> it, etc. It is a bridge between two busses.
> I can generate a skeleton testbench for my design and add statements,
> etc. to it that drives my design. This works ok. In the testbench there
> is some logic that emulates one of the busses, and other logic that
> emulates the other bus.


Good work.

> However, now I want to break my testbench into units.


That might be an unnecessary complication.
Consider adding procedures to the main
testbench process or perhaps an extra
process or two to the testbench architecture.

> I want to put both
> bus emulators into their own seperate vhdl files and then just
> instantiate them in the main testbench.


For the UUT and purchased models
some hierarchy and signal spaghetti
is required. For a one-off testbench
it is certain pain and doubtful gain.

-- Mike Treseler


Mike Treseler
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xilinx 7.1 and testbench error boitsas Software 0 01-15-2008 04:14 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46