Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Alternative to $finish systemverilog

Status
Not open for further replies.

BartlebyScrivener

Member level 5
Member level 5
Joined
Feb 8, 2012
Messages
90
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Visit site
Activity points
2,081
For my test bench, once a certain condition is met the testing is finished. At the moment, I have written in the code and if statement to check for the condition, followed by $finish. When I want to test, I type run 100ns, hoping that 100ns will be enough. If not, I have to keep hitting run 100ns till it finishes.

When it finishes, it seems severe... In modelsim, I get asking me if I am sure I want to finish, which if I click yes, will close modelsim!

Is there a neater way to just run a test bench till completion without closing modlesim?

- - - Updated - - -

I just found run -all which works, so all I want now is for it to not try and close modelsim when it finishes.

Thansk
 

stop(1) seems to work, but it still crashes my scripts.

- - - Updated - - -

I added

onbreak {resume}

to my scripts and this solved it
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top