summaryrefslogtreecommitdiff
path: root/passes/sat/example.ys
blob: c532c1fb4448eff5305594f9aaa42eade35d5a3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
read_verilog example.v
proc; opt_clean

sat_solve -set y 1'b1 example001
sat_solve -set y 1'b1 example002
sat_solve -set y_sshl 8'hf0 -set y_sshr 8'hf0 -set sh 4'd3 example003
sat_solve -set y 1'b1 example004
sat_solve -show rst,counter -set-at 3 y 1'b1 -seq 4 example004

sat_solve -prove y 1'b0 -show rst,counter,y example004
sat_solve -prove y 1'b0 -show rst,counter,y -set-at 1 rst 1'b1 -seq 1 example004