3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-12-09 23:03:37 +00:00

Unified trace generation using yosys's sim across all engines

Currently opt-in using the `fst` or `vcd_sim` options.
This commit is contained in:
Jannis Harder 2023-01-10 15:33:18 +01:00
parent 4c44a10f72
commit 6d3b5aa960
15 changed files with 686 additions and 183 deletions

View file

@ -0,0 +1,48 @@
[tasks]
btormc
#pono
smtbmc
[options]
mode bmc
expect fail
[engines]
btormc: btor btormc
# pono: btor pono
smtbmc: smtbmc
[script]
read -formal top.sv
prep -top top -flatten
[file top.sv]
module top(input clk);
inner inner(clk);
endmodule
module inner(input clk);
reg [7:0] counter = 0;
reg [1:0] mem [0:255];
initial begin
mem[0] = 0;
mem[1] = 1;
mem[2] = 2;
mem[3] = 2;
mem[4] = 0;
mem[7] = 0;
end
always @(posedge clk) begin
counter <= counter + 1;
foo: assert (mem[counter] < 3);
bar: assume (counter < 7);
mem[counter] <= 0;
end
endmodule