Raagasudha
Newbie level 3
- Joined
- Mar 9, 2013
- Messages
- 4
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,314
Hi,
I wrote a design and testbench code for PIPO shift register. I have instantiated four dflops in the design. I noticed something strange.. If I use this construct in the testbench:
always
----
----
I=I+1;
if(I==20) $finish;
end
the compilation is fyn but the execution sends it to infinite loop. Can anyone tell me why this is happening? The code is working fyn if I use #80 $finish; in its place. I am facing the same problem for SISO design also.
I wrote a design and testbench code for PIPO shift register. I have instantiated four dflops in the design. I noticed something strange.. If I use this construct in the testbench:
always
----
----
I=I+1;
if(I==20) $finish;
end
the compilation is fyn but the execution sends it to infinite loop. Can anyone tell me why this is happening? The code is working fyn if I use #80 $finish; in its place. I am facing the same problem for SISO design also.