Files

33 lines
757 B
Systemverilog
Raw Permalink Normal View History

2020-12-11 12:41:59 -07:00
module Module(input clock, input clear, input data);
logic x, y;
assign y = data;
assign x = y;
assert property (
@(posedge clock) disable iff(clear) x == y
);
2021-07-09 10:34:35 -04:00
named: assert property (
@(posedge clock) disable iff(clear) x == y
);
2020-12-11 12:41:59 -07:00
task hello;
$display("Hello!");
endtask
2021-07-09 10:34:35 -04:00
always @(posedge clock) begin
assert property (x == y);
named_stmt: assert property (x == y);
end
always @(posedge x) begin
assert (1);
end
always @(posedge x)
case (x)
0: begin
assert (1);
end
1:
assert (1);
default: begin
assert (1);
end
endcase
2020-12-11 12:41:59 -07:00
endmodule