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 04-28-2004, 01:29 AM
Paul Richardson
Guest
 
Posts: n/a
Default Using modelsim for regression

I was wondering if anyone has figured out how to use modelsim (running on
unix systems) to run regressions. Specifically, I have dozens of łtests˛
which when combined to run with a testbench serve to exercise the design.
When using ncverilog or vcs I do something like

Ncverilog *f files.f test_number_0.v

Any suggestions ?

Thanks in advance

Paul Richardson


Reply With Quote
  #2 (permalink)  
Old 04-28-2004, 04:35 PM
John Providenza
Guest
 
Posts: n/a
Default Re: Using modelsim for regression

Paul -

I use a Perl script to launch Modelsim. It figures out the
directory structure I want, creates it if needed, then spawns the
proper Modelsim programs, ie, vmap and vlog. I have used this
in conjunction with batch files to run regressions.

After the simulation completes, the Perl script greps the logfile
for the word ERROR to look for errors.

If you want, email me and I can send the script to you. It's
about 255 lines of Perl.

John Providenza


Paul Richardson <[email protected]> wrote in message news:<BCB43AD9.70A%[email protected]>.. .
> I was wondering if anyone has figured out how to use modelsim (running on
> unix systems) to run regressions. Specifically, I have dozens of łtests˛
> which when combined to run with a testbench serve to exercise the design.
> When using ncverilog or vcs I do something like
>
> Ncverilog f files.f test number 0.v
>
> Any suggestions ?
>
> Thanks in advance
>
> Paul Richardson
>
>
> --

Reply With Quote
  #3 (permalink)  
Old 04-29-2004, 01:02 AM
BH
Guest
 
Posts: n/a
Default Re: Using modelsim for regression

Using modelsim for regression>I was wondering if anyone has figured out how
to use modelsim (running on unix systems) to run regressions. Specifically,
I have dozens of >"tests" which when combined to run with a testbench serve
to exercise the design. When using ncverilog or vcs I do something like

>Ncverilog -f files.f test_number_0.v


To do the job above with modelsim, run:

vlog -f files.f test_number_0.v
vsim -c -do run_script top_module

-c : run vsim in command line mode

The run_script can be as simple as one line: e.g. "run -all", which runs the
simulation until finish

top_module is the top level of your test bench.

HTH,
Jim
[email protected]
http://www.geocities.com/jimwu88/chips





Reply With Quote
  #4 (permalink)  
Old 04-29-2004, 01:54 AM
Paul Richardson
Guest
 
Posts: n/a
Default Re: Using modelsim for regression

On 4/28/04 4:02 PM, in article kKWjc.38691$[email protected],
"BH" <[email protected]> wrote:

> Using modelsim for regression>I was wondering if anyone has figured out how
> to use modelsim (running on unix systems) to run regressions. Specifically,
> I have dozens of >"tests" which when combined to run with a testbench serve
> to exercise the design. When using ncverilog or vcs I do something like
>
>> Ncverilog -f files.f test_number_0.v

>
> To do the job above with modelsim, run:
>
> vlog -f files.f test_number_0.v
> vsim -c -do run_script top_module
>
> -c : run vsim in command line mode
>
> The run_script can be as simple as one line: e.g. "run -all", which runs the
> simulation until finish
>
> top_module is the top level of your test bench.
>
> HTH,
> Jim
> [email protected]
> http://www.geocities.com/jimwu88/chips
>
>
>
>
>


Thanks, off to the races now

/pgr

Reply With Quote
  #5 (permalink)  
Old 04-29-2004, 05:35 AM
Larry Doolittle
Guest
 
Posts: n/a
Default Re: Using modelsim for regression

In article <kKWjc.38691$[email protected]>, BH wrote:
> To do the job above with modelsim, run:
>
> vlog -f files.f test_number_0.v
> vsim -c -do run_script top_module
>
> -c : run vsim in command line mode
>
> The run_script can be as simple as one line: e.g. "run -all", which runs the
> simulation until finish
>
> top_module is the top level of your test bench.


I do this "All the time"[TM]. You don't even need a separate
file for run_script:

echo "run -all" | vsim $options

I take it a little further, and post-process the transcript
file to get rid of all those superfluous "# " at the beginning
of lines. It's a mess, but the results are byte-for-byte
identical with Icarus.

- Larry
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



All times are GMT +1. The time now is 02:24 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