mirror of https://github.com/YosysHQ/yosys.git
Added ice40 test_arith
This commit is contained in:
parent
f78fa718be
commit
f564a65851
|
@ -0,0 +1,3 @@
|
|||
module test(input [4:0] a, b, c, output [4:0] y);
|
||||
assign y = ((a+b) ^ (a-c)) - ((a*b) + (a*c) - (b*c));
|
||||
endmodule
|
|
@ -0,0 +1,10 @@
|
|||
read_verilog test_arith.v
|
||||
synth_ice40
|
||||
techmap -map ../cells_sim.v
|
||||
rename test gate
|
||||
|
||||
read_verilog test_arith.v
|
||||
rename test gold
|
||||
|
||||
miter -equiv -flatten -make_outputs gold gate miter
|
||||
sat -verify -prove trigger 0 -show-ports miter
|
Loading…
Reference in New Issue