mirror of
https://github.com/verilator/verilator.git
synced 2025-01-15 11:04:14 +00:00
Merge branch 'master' into develop-v5
This commit is contained in:
commit
6769106881
@ -29,7 +29,7 @@ module t (/*AUTOARG*/
|
||||
|
||||
always @ (posedge clk) begin
|
||||
`ifdef TEST_VERBOSE
|
||||
$write("[%0t] cyc==%0d crc=%x %x %x %x\n", $time, cyc, crc, Result, Result2);
|
||||
$write("[%0t] cyc==%0d crc=%x %x %x\n", $time, cyc, crc, Result, Result2);
|
||||
`endif
|
||||
cyc <= cyc + 1;
|
||||
crc <= {crc[62:0], crc[63] ^ crc[2] ^ crc[0]};
|
||||
@ -62,10 +62,10 @@ module Test (clk, Value, Result);
|
||||
|
||||
reg Internal;
|
||||
|
||||
assign Result = Internal ^ clk;
|
||||
assign Result = Internal;
|
||||
|
||||
always @(posedge clk)
|
||||
Internal <= #1 Value;
|
||||
Internal <= Value;
|
||||
endmodule
|
||||
|
||||
module Test_wrap1 (clk, Value, Result);
|
||||
|
@ -40,14 +40,6 @@ module t (/*AUTOARG*/
|
||||
end
|
||||
end
|
||||
|
||||
//`define WAVES
|
||||
`ifdef WAVES
|
||||
initial begin
|
||||
$dumpfile({`STRINGIFY(`TEST_OBJ_DIR),"/simx.vcd"});
|
||||
$dumpvars(12, t);
|
||||
end
|
||||
`endif
|
||||
|
||||
endmodule
|
||||
|
||||
module Generate (clk, value, result);
|
||||
@ -57,10 +49,10 @@ module Generate (clk, value, result);
|
||||
|
||||
reg Internal;
|
||||
|
||||
assign result = Internal ^ clk;
|
||||
assign result = Internal;
|
||||
|
||||
always @(posedge clk)
|
||||
Internal <= #1 value;
|
||||
Internal <= value;
|
||||
endmodule
|
||||
|
||||
module Checker (clk, value);
|
||||
@ -89,8 +81,10 @@ module Genit (clk, value, result);
|
||||
|
||||
`ifndef ATSIM // else unsupported
|
||||
`ifndef NC // else unsupported
|
||||
`ifndef IVERILOG // else unsupported
|
||||
`define WITH_FOR_GENVAR
|
||||
`endif
|
||||
`endif
|
||||
`endif
|
||||
|
||||
`define WITH_GENERATE
|
||||
|
Loading…
Reference in New Issue
Block a user