mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-27 23:45:50 +00:00
Update quickstart demo
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
93e7e1d1e2
commit
45a11da8ea
3 changed files with 10 additions and 6 deletions
|
@ -6,8 +6,8 @@ depth 100
|
|||
smtbmc
|
||||
|
||||
[script]
|
||||
read_verilog -formal demo.v
|
||||
read -formal demo.sv
|
||||
prep -top demo
|
||||
|
||||
[files]
|
||||
demo.v
|
||||
demo.sv
|
||||
|
|
|
@ -5,11 +5,15 @@ module demo (
|
|||
reg [5:0] counter = 0;
|
||||
|
||||
always @(posedge clk) begin
|
||||
if (counter == 15)
|
||||
if (counter == 50)
|
||||
counter <= 0;
|
||||
else
|
||||
counter <= counter + 1;
|
||||
end
|
||||
|
||||
assert property (counter < 32);
|
||||
`ifdef FORMAL
|
||||
always @(posedge clk) begin
|
||||
assert (counter < 32);
|
||||
end
|
||||
`endif
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue