( ESNUG 365 Item 6 ) --------------------------------------------- [02/15/01]

Subject: ( ESNUG 363 #4 )  Newbies Trying To Control VCS from the PLI

> I am attempting to drive VCS directly from another application using the
> PLI but I am having trouble actually getting the simulator to run for a
> specified length of time, e.g. a clock cycle.  I am fairly new to the PLI
> but I can talk to and read stuff from VCS.  Is there a PLI routine which
> will allow the simulator to be run for a specified time?
>
>     - Richard Wilkinson
>       Cambridge Silicon Radio                  UK


From: [ A Synopsys VCS CAE ]

Hi John,

I am a VCS CAE and I noticed in ESNUG 363 someone trying to control VCS from
the PLI interface.  There are two ways to achieve that:
   
 1) VCS running in Slave mode:

    One can run VCS's simv in slave mode and then use commands like
    VcsSimUntil(some_time) to run the simv for a given period of time.  In
    slave mode the "simv" execution is in complete control of PLI and one
    can do some cool stuff like "run until a given expression is true", etc.
   
 2) VCS running in Master (Normal) mode:

    One can write a PLI, which has a Misctf application that gets initially
    activated by reason "reason_endofcompile", then it adds
    tf_setdelay(delay) to schedule itself after "current simulation time
    + delay", with reason "reason_reactivate". Every time the Misctf
    application is executed it can call the III party application, and
    reschedule itself by using tf_setdelay(delay), and so on.
   
Please contact vcs_support@synopsys.com and they can help you in getting
started in either of the above mentioned modes.
   
    - [ A Synopsys VCS CAE ]


 Sign up for the DeepChip newsletter.
Email
 Read what EDA tool users really think.


Feedback About Wiretaps ESNUGs SIGN UP! Downloads Trip Reports Advertise

"Relax. This is a discussion. Anything said here is just one engineer's opinion. Email in your dissenting letter and it'll be published, too."
This Web Site Is Modified Every 2-3 Days
Copyright 1991-2024 John Cooley.  All Rights Reserved.
| Contact John Cooley | Webmaster | Legal | Feedback Form |

   !!!     "It's not a BUG,
  /o o\  /  it's a FEATURE!"
 (  >  )
  \ - / 
  _] [_     (jcooley 1991)