diff options
Diffstat (limited to 'frontends/verific/example.sv')
-rw-r--r-- | frontends/verific/example.sv | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/frontends/verific/example.sv b/frontends/verific/example.sv new file mode 100644 index 000000000..21a5d42c8 --- /dev/null +++ b/frontends/verific/example.sv @@ -0,0 +1,18 @@ +module top ( + input clk, rst, + output reg [3:0] cnt +); + initial cnt = 0; + + always @(posedge clk) begin + if (rst) + cnt <= 0; + else + cnt <= cnt + 4'd 1; + end + + always @(posedge clk) begin + assume (cnt != 10); + assert (cnt != 15); + end +endmodule |