mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-29 01:03:29 +02:00
By adding ivtest to the iverilog source tree, it is easier to keep the regression test synchronized with the source that is being tested. This should be especially helpful for PRs that add a new feature, and have a matching ivtest PR with the regression test for that feature.
20 lines
338 B
Verilog
20 lines
338 B
Verilog
module test();
|
|
|
|
wire [7:0] value1;
|
|
wire bit [7:0] value2;
|
|
|
|
assign value1[3:0] = 4'd2;
|
|
|
|
assign value2 = value1;
|
|
|
|
initial begin
|
|
// value1 gets cast to 2-state, so 'z' bits are converted to '0'.
|
|
#2 $display("%b %b", value1, value2);
|
|
if (value2 === 8'b00000010)
|
|
$display("PASSED");
|
|
else
|
|
$display("FAILED");
|
|
end
|
|
|
|
endmodule
|