Interview Question: Infinite Always Loop

Status
Not open for further replies.

spartanthewarrior

Full Member level 2
Joined
Jun 13, 2007
Messages
122
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
2,142
Hi All,

I had been asked one question in verilog.

I have some 100 always blocks and 1 block is getting into INFINITE loop, which causing simulations to not to proceed.

How can I figure out which always is causing this problem. Also $display is not the answer I am looking for.
 

How about commenting processes out and figure out which one is causing the problem?
 

What about pressing the break button in simulation, i believe it'll stop the simulation and add a break point at the place it was looping inside! .. give it a try you'll not loose
 

Yeah Giving break should work.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…