mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
Merge pull request #724 from whitequark/equiv_opt
equiv_opt: new command, for verifying optimization passes
This commit is contained in:
commit
2a681909df
6 changed files with 173 additions and 27 deletions
|
@ -1,3 +0,0 @@
|
|||
module SB_CARRY (output CO, input I0, I1, CI);
|
||||
assign CO = (I0 && I1) || ((I0 || I1) && CI);
|
||||
endmodule
|
|
@ -1,15 +1,4 @@
|
|||
read_verilog opt_lut.v
|
||||
synth_ice40
|
||||
ice40_unlut
|
||||
design -save preopt
|
||||
|
||||
opt_lut -dlogic SB_CARRY:I0=1:I1=2:CI=3
|
||||
design -stash postopt
|
||||
|
||||
design -copy-from preopt -as preopt top
|
||||
design -copy-from postopt -as postopt top
|
||||
equiv_make preopt postopt equiv
|
||||
techmap -map ice40_carry.v
|
||||
prep -flatten -top equiv
|
||||
equiv_induct
|
||||
equiv_status -assert
|
||||
equiv_opt -map +/ice40/cells_sim.v -assert opt_lut -dlogic SB_CARRY:I0=1:I1=2:CI=3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue