electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

[ncsim] stop -> force -> run error?


Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital) -> [ncsim] stop -> force -> run error?
Author Message
davyzhu



Joined: 23 May 2004
Posts: 521
Helped: 3
Location: oriental


Post22 Sep 2006 10:27   

ncsim force


Hi all,

I want to write a Tcl in ncsim to do below work.
1. stop when $signal is 1
2. set the lock to force stop only stop once
3. force $other_signal
4. continue run
5. force $other_signal back
6 continue run

But ncsim said "cannot run command executed from a stop -execute script".

Any suggestions, thanks!

Code:
#----- Tcl begin ---
set lock 0
stop -silent -name stop_name -cont -cond { [value $CLK] == 1 && $signal ==1 && $lock == 0} -exec {
    set lock 1
    force other_signal = 8'b10010000
    run 50us
    force other_signal = 8'b10001010
}
run 50us
#----- Tcl end ---

Best regards,
Davy
Back to top
Shurik



Joined: 15 Jul 2004
Posts: 162
Helped: 12


Post22 Sep 2006 14:24   

forces in ncsim.log


Is it for simulation of verilog code?
Back to top
aji_vlsi



Joined: 10 Sep 2004
Posts: 640
Helped: 72
Location: Bangalore, India


Post23 Sep 2006 2:33   

force ncsim


Hi,
Not sure if stop inside a stop is allowed, if so the following should work:

Code:
#----- Tcl begin ---
set lock 0
stop -silent -name stop_name -cont -cond { [value $CLK] == 1 && $signal ==1 && $lock == 0} -exec {
    set lock 1
    force other_signal = 8'b10010000
    stop -time -relative 50 us -cont -exec {  force other_signal = 8'b10001010}
}
run 50us
#----- Tcl end ---


If this doesn't work let me know, we can find some thing else.

Regards
Ajeetha, CVC
Contemporary Verification Consultants Pvt Ltd. http://www.noveldv.com
* A Pragmatic Approach to VMM Adoption 2006 ISBN 0-9705394-9-5 http://www.systemverilog.us/
* SystemVerilog Assertions Handbook
* Using PSL/Sugar
Back to top
davyzhu



Joined: 23 May 2004
Posts: 521
Helped: 3
Location: oriental


Post23 Sep 2006 3:09   

ncsim stop simulation


Hi aji_vlsi,

Thanks a lot, and I will try your method next week Smile

Hi Shurik,

Yes, it's Verilog simulation.

Best regards,
Davy
Back to top
Google
AdSense
Google Adsense




Post23 Sep 2006 3:09   

Ads




Back to top
Shurik



Joined: 15 Jul 2004
Posts: 162
Helped: 12


Post23 Sep 2006 14:33   

force ncsim


Hi davyzhu!

I am not using the Tcl script for simulation.
I write testbench which control the simulation.

Best regards.
Back to top
yln2k2



Joined: 22 Sep 2006
Posts: 89
Helped: 10


Post25 Sep 2006 3:41   

force value ncsim


Hi ,

If possible try to do the same in testbench ( if you have visibility of the signal ...) .
This will increase perfomance than using Tcl .


Thanks & Regards
yln
Back to top
aji_vlsi



Joined: 10 Sep 2004
Posts: 640
Helped: 72
Location: Bangalore, India


Post25 Sep 2006 6:08   

ncsim assertions


yln2k2 wrote:
Hi ,

If possible try to do the same in testbench ( if you have visibility of the signal ...) .
This will increase perfomance than using Tcl .


Thanks & Regards
yln

Good point. Given that it is Verilog, visibility is not an issue at all. EVen if you were using VHDL, one can use signal_spy/nc_mirror/hdl_xmr feature to achieve the same.

Ajeetha, CVC
www.noveldv.com
Contemporary Verification Consultants Pvt Ltd. http://www.noveldv.com
* A Pragmatic Approach to VMM Adoption 2006 ISBN 0-9705394-9-5 http://www.systemverilog.us/
* SystemVerilog Assertions Handbook
* Using PSL/Sugar
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital) -> [ncsim] stop -> force -> run error?
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Run/Stop a counter using a train of pulses (16)
ncsim error message (3)
ncsim license checkout error (1)
The difference between force keep & force hide? (2)
error when run hfsss (1)
error during LVS run (6)
Orcad : run simulation error (2)
[help]soc encounter run error (7)
impact run out of memory error (3)
Help me~~ synopsys for linux run error (3)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS