( 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 ]
|
|