FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > Verilog

Verilog comp.lang.verilog newsgroup / usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-27-2007, 08:18 PM
kb33
Guest
 
Posts: n/a
Default Real-time stimulus to a verilog DUT

Hi,

I have always used the following methodology for testing my verilog
modules:

1. Prepare a test bench that instantiates within itself the Design
under test (DUT);
2. Provide the stimuli (clock, reset, other inputs) to the DUT within
the testbench;
3. End the simulation with a $finish statement when all the required
amount of stimulus/ testing has been accomplished.

The test bench is compiled and simulated in one go. However, if I need
to test my DUT using live signals (not on the actual hardware, but
using the test bench environment), how can I do so? Do any of the
verilog simulators provide such a feature?

Thanks,
Kanchan

Reply With Quote
  #2 (permalink)  
Old 09-28-2007, 04:22 PM
Guenter Dannoritzer
Guest
 
Posts: n/a
Default Re: Real-time stimulus to a verilog DUT

kb33 wrote:
[...]
>
> The test bench is compiled and simulated in one go. However, if I need
> to test my DUT using live signals (not on the actual hardware, but
> using the test bench environment), how can I do so? Do any of the
> verilog simulators provide such a feature?


Your first question should be, how do you get those live signals into
the Computer where you run the simulator on.

Once that is clear, there are basically two options, save the data to a
file and use the file I/O in your testbench to read them. The other is
to use a Co-Simulation approach via the Verilog PLI.

The Co-Simulation approach can be that you write your own Verilog PLI
code that accesses the data or you use one of the existing approaches
like MyHDL or Trusster.

With MyHDL http://myhdl.jandecaluwe.com/doku.php you can write the code
that accesses your data and feeds it to the DUT in Python.

With Trusster http://www.trusster.com/ you can do the same in C++.

Actually to be accurate, both systems, MyHDL and Trusster are much more
than just doing Co-Simulation, but in both that is a core functionality
that you can use to feed data into your DUT.

Cheers,

Guenter

Reply With Quote
  #3 (permalink)  
Old 10-01-2007, 11:13 PM
[email protected]
Guest
 
Posts: n/a
Default Re: Real-time stimulus to a verilog DUT

Hi Guenter,

Thanks for mentioning Trusster. We also have a SystemVerilog version
up there as well now.

Both http://myhdl.jandecaluwe.com/doku.php and http://www.trusster.com
have well,documented, open-source, independent verification
frameworks.

Take Care,
Mike

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text-based stimulus in AMS Jake Verilog 0 05-16-2007 02:48 AM
Time slot in Verilog? Shenli Verilog 4 12-12-2006 02:29 AM
Stimulus provided on Active Ege or Inactive Edge from Testbench [email protected] Verilog 1 12-07-2005 04:19 AM
Command to measure real time kb33 Verilog 1 10-31-2005 07:22 PM
Reg, Integer, Time Registers, Real [email protected] Verilog 1 03-28-2005 07:12 PM


All times are GMT +1. The time now is 04:35 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved