Friday, November 21, 2008     Register | Login | Search | Contact Us
     

Many of you already received communications about the move of the Cadence user community into cadence.com. And many of you have already joined, with over 4000 registrations in the first two weeks.

The new Cadence Community enhances the ability of Cadence users to connect and collaborate. In addition to moving the community into cadence.com -- enabling single sign-on for community, Sourcelink and Cadence events -- the new site is organized around nine technology segments, giving you easy access to product information, training, forums and blogs. Some of the new features include:
  • Ability to respond to posts via e-mail
  • Technology-specific blogs
  • Latest Web 2.0 social networking capabilities
  • Public profile options
  • Private messaging
  • Friends lists
Visit the new Cadence Community today at www.cadence.com/community and join the discussions!

Registration note: Due to the scope of the enhancements and the new SSO registration system, we were not able to migrate existing cdnusers.org member accounts. So new registrations are required, but this enables a broader set of functionality we think you'll enjoy.

Forum note: Under the guidance of forum moderators, we have taken the 20+ cdnusers.org forums and consolidated them into 11 forums on the new site. Posts have been brought over so you can leverage that posting history. CDNusers forums will be set to read only starting 7/30, and cdnusers.org will be redirected to the new community on 8/4.

Best regards,
Mike and Tom

Michael A. Catrambone - Steering Committee Chairman
Distinguished Engineer
PCB/Mechanical
UTStarcom, Inc.

Tom Diederich
Cadence Community Manager
Home
Forums
Subject: looking for SV testbench command file Hiisequencer code
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
danny_isr
Posts: 3
Online: User is Offline
1/07/2008 1:03 PM  

I'm working on exsiting test bench , and i need to modify it.

At the moment all our tests are running in serial one after the other .

 
We want to run tests in a different way. To be able to kick tests using “control file” that will be able to

Run test in serial or parallel (fork/join) , test in a loop or  have a “name” of test with input variables (like SEED for random run).

 

My question is , is there SystemVerilog (AVM) open source code we can use of a Sequencer that can read external files and kick test in similar manner ?

Or something similar that can be a good starting point ?

 

 

It may look like this :

 

Sync = 0, wait = 1

test  0  test1   0

test   1  test2   1

 

Sync and wait are controls to the sequencer to run the test in specific manner . and same for values after the test name.

 Thanks Dan

 

danny_isr
Posts: 3
Online: User is Offline
1/07/2008 5:22 PM  
actually doesn't need to be real code. even just definition will help
tpylant
Posts: 87
Online: User is Offline
1/08/2008 8:42 AM  
It's best if you put each test in a separate module (or at least separate tasks). You can then instantiate each test in the top level and use $test$plusargs system task to choose which test to trigger. Here is an excerpt from "NC-Verilog Simulator Help", Ch 14:

The following example illustrates how to use $test$plusargs to control which stimulus file is used for a particular simulation.

initial
  if ($test$plusargs("test01"))
  $readmemh("test01.dat", stim_mem);
  if ($test$plusargs("test02"))
  $readmemh("test02.dat", stim_mem);
  if ($test$plusargs("test03"))
  $readmemh("test03.dat", stim_mem);
  if ($test$plusargs("test04"))
  $readmemh("test04.dat", stim_mem);
By using the $test$plusargs system function, you can change the stimulus without rebuilding the design. This method is also an easy way to run multiple simulations in parallel. For example:

% ncsim snapshot_name +test01 &
% ncsim snapshot_name +test02 &
% ncsim snapshot_name +test03 &
% ncsim snapshot_name +test04 &
Tim
divyeshg
Posts: 3
Online: User is Offline
1/09/2008 1:46 AM  
Hi Danny,

similarly you can use $value$plusargs to pass the sequence.
According to which your testcases you can execute.

As per parallel execution is concerned you can pass command for that with testcase name to be executed in parallel through same
$value$plusargs on command line.(both testcase thread should not overlap.).


Divyesh Gajjar
eInfochips ltd.
www.einfochips.com
danny_isr
Posts: 3
Online: User is Offline
1/09/2008 7:52 PM  
thanks so much for your replies .
looking into it .

Danny
Posting to forums is available to community members only.
Login or Register

Forums > Functional Verification > SystemVerilog > looking for SV testbench command file Hiisequencer code


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.