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.

infinite simulation loop in verilog

Status
Not open for further replies.

coolajnabee1

Newbie level 3
Joined
Jan 23, 2010
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,296
Hi every1, i am stuck at a problem, i am having an infinite simulation loop how to solve it

Any ideas, hints would be helpful.
 

ljxpjpjljx

Advanced Member level 3
Joined
May 5, 2008
Messages
972
Helped
80
Reputation
162
Reaction score
55
Trophy points
1,308
Location
Shang Hai
Activity points
4,679
Re: How would you create infinite simulation loop in verilog

you mean you want to have a state which can't be stoped , right?
 

coolajnabee1

Newbie level 3
Joined
Jan 23, 2010
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,296
Re: How would you create infinite simulation loop in verilog

yes that is correct

any ideas ??
 

Syswip

Advanced Member level 4
Joined
Nov 11, 2009
Messages
119
Helped
12
Reputation
24
Reaction score
4
Trophy points
1,298
Activity points
1,859
Re: How would you create infinite simulation loop in verilog

In Verilog you can create infinite loop using forever, while blocks.

forever
begin
...
...
end

while(1)
begin
...
...
...
end

But you should be sure that you are using any time consuming statements inside a loop.
It can be delay operator #5 or event @(...).
Otherwise your simulation will be stopped.

Please remember code execution is sequential not parallel.

Bests,
Tiksan
 

coolajnabee1

Newbie level 3
Joined
Jan 23, 2010
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,296
Re: How would you create infinite simulation loop in verilog

Hey Syswip,

thanks for your help..
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top