Commit 7a00c36a by Zachary Snow

jump conversion keeps timing controls at the top level

parent eb76d16d
......@@ -62,6 +62,8 @@ convertModuleItem (AlwaysC kw stmt) = convertMIStmt (AlwaysC kw) stmt
convertModuleItem other = other
convertMIStmt :: (Stmt -> ModuleItem) -> Stmt -> ModuleItem
convertMIStmt constructor (Timing c stmt) =
convertMIStmt (constructor . Timing c) stmt
convertMIStmt constructor stmt =
constructor stmt''
where
......
......@@ -106,4 +106,12 @@ module top;
$display("Loop B:", i);
end
always #1
for (int i = 0; i < 10; ++i) begin
$display("Loop C-1:", i);
break;
$display("UNREACHABLE ", `__LINE__);
end
initial #5 $finish;
endmodule
......@@ -80,4 +80,13 @@ module top;
end
end
always #1 begin : loop_c
integer i;
for (i = 0; i < 10; ++i) begin
$display("Loop C-1:", i);
i = 10;
end
end
initial #5 $finish;
endmodule
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment