2020-12-11 20:41:59 +01: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 16:34:35 +02:00
|
|
|
named: assert property (
|
|
|
|
|
@(posedge clock) disable iff(clear) x == y
|
|
|
|
|
);
|
2020-12-11 20:41:59 +01:00
|
|
|
task hello;
|
|
|
|
|
$display("Hello!");
|
|
|
|
|
endtask
|
2021-07-09 16:34:35 +02:00
|
|
|
always @(posedge clock) begin
|
|
|
|
|
assert property (x == y);
|
|
|
|
|
named_stmt: assert property (x == y);
|
|
|
|
|
end
|
2021-09-24 18:36:49 +02:00
|
|
|
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 20:41:59 +01:00
|
|
|
endmodule
|