3
0
Fork 0
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:
Clifford Wolf 2018-06-29 10:05:52 +02:00
parent 93e7e1d1e2
commit 45a11da8ea
3 changed files with 10 additions and 6 deletions

View file

@ -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

View file

@ -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