You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I generated Verilog from the CMOS stick diagram shown below. It is intentionally a useless, nonsense, and broken circuit; I made it to test for infinite loops in the diagramming tool.
I wanted to check the Verilog output against the diagrammer's output, but the evaluation does not terminate for the final step in the included test bench below. It's not clear whether the loop is infinite, but it did not terminate after several minutes.
This is probably very low-priority because it was triggered by a circuit that could only be made by a very bad mistake or to intentionally trigger an infinite loop. But, I am reporting it just in case it's useful to know about.
I rebuilt the program from source, so #1122 is patched on the computer exhibiting the infinite loop behavior. The infinite loop does not occur on a second device with an older build of iverilog.
module test21;
reg a, b;
wire y;
initial begin
$dumpfile("Sim.vcd");
$dumpvars(0, test21);
end
t04 dut(a, b, y);
initial
begin
// This is the order of input vectors that triggers the infinite loop.
// Other orders I tested have no problem.
a = 1'b1; b=1'b1;
#10 a = 1'b0; b=1'b0;
#10 a = 1'b0; b=1'b1;
#10 a = 1'b1; b=1'b0;
#10 $finish;
end
initial
begin
$monitor($stime,,"a=%b b=%b y=%b", a, b, y);
end
endmodule
The text was updated successfully, but these errors were encountered:
I tested this example using the simulator that comes with my FPGA design tools. It detected and reported the infinite loop. I'll have to see if I can make vvp do the same, as it took a kill -9 to stop it.
I generated Verilog from the CMOS stick diagram shown below. It is intentionally a useless, nonsense, and broken circuit; I made it to test for infinite loops in the diagramming tool.
I wanted to check the Verilog output against the diagrammer's output, but the evaluation does not terminate for the final step in the included test bench below. It's not clear whether the loop is infinite, but it did not terminate after several minutes.
This is probably very low-priority because it was triggered by a circuit that could only be made by a very bad mistake or to intentionally trigger an infinite loop. But, I am reporting it just in case it's useful to know about.
Relation to #1122
I rebuilt the program from source, so #1122 is patched on the computer exhibiting the infinite loop behavior. The infinite loop does not occur on a second device with an older build of iverilog.
Output
CMOS stick diagram
Module code
Testbench code
The text was updated successfully, but these errors were encountered: