mirror of https://github.com/zachjs/sv2v.git
14 lines
287 B
Systemverilog
14 lines
287 B
Systemverilog
|
|
module top;
|
||
|
|
reg x, y;
|
||
|
|
always @(x ^ y)
|
||
|
|
$display("%d %b %b", $time, x, y);
|
||
|
|
initial begin
|
||
|
|
#1 {x, y} = 2'b00;
|
||
|
|
#1 {x, y} = 2'b01;
|
||
|
|
#1 {x, y} = 2'b10;
|
||
|
|
#1 {x, y} = 2'b11;
|
||
|
|
#1 {x, y} = 2'b00;
|
||
|
|
#1 {x, y} = 2'b10;
|
||
|
|
end
|
||
|
|
endmodule
|