mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-07 11:41:23 +00:00
Improve docs for verific bindings, add simply sby example
This commit is contained in:
parent
b3bc7068d1
commit
2785aaffeb
5 changed files with 89 additions and 48 deletions
18
frontends/verific/example.sv
Normal file
18
frontends/verific/example.sv
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue