mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #4019 from YosysHQ/lofty/abc9-by-default
ice40, ecp5: enable ABC9 by default
This commit is contained in:
commit
deebb82e85
|
@ -93,8 +93,8 @@ struct SynthEcp5Pass : public ScriptPass
|
||||||
log(" -abc2\n");
|
log(" -abc2\n");
|
||||||
log(" run two passes of 'abc' for slightly improved logic density\n");
|
log(" run two passes of 'abc' for slightly improved logic density\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
log(" -abc9\n");
|
log(" -noabc9\n");
|
||||||
log(" use new ABC9 flow (EXPERIMENTAL)\n");
|
log(" disable use of new ABC9 flow\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
log(" -vpr\n");
|
log(" -vpr\n");
|
||||||
log(" generate an output netlist (and BLIF file) suitable for VPR\n");
|
log(" generate an output netlist (and BLIF file) suitable for VPR\n");
|
||||||
|
@ -137,7 +137,7 @@ struct SynthEcp5Pass : public ScriptPass
|
||||||
retime = false;
|
retime = false;
|
||||||
abc2 = false;
|
abc2 = false;
|
||||||
vpr = false;
|
vpr = false;
|
||||||
abc9 = false;
|
abc9 = true;
|
||||||
iopad = false;
|
iopad = false;
|
||||||
nodsp = false;
|
nodsp = false;
|
||||||
no_rw_check = false;
|
no_rw_check = false;
|
||||||
|
@ -224,7 +224,11 @@ struct SynthEcp5Pass : public ScriptPass
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (args[argidx] == "-abc9") {
|
if (args[argidx] == "-abc9") {
|
||||||
abc9 = true;
|
// removed, ABC9 is on by default.
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (args[argidx] == "-noabc9") {
|
||||||
|
abc9 = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (args[argidx] == "-iopad") {
|
if (args[argidx] == "-iopad") {
|
||||||
|
|
|
@ -106,8 +106,8 @@ struct SynthIce40Pass : public ScriptPass
|
||||||
log(" generate an output netlist (and BLIF file) suitable for VPR\n");
|
log(" generate an output netlist (and BLIF file) suitable for VPR\n");
|
||||||
log(" (this feature is experimental and incomplete)\n");
|
log(" (this feature is experimental and incomplete)\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
log(" -abc9\n");
|
log(" -noabc9\n");
|
||||||
log(" use new ABC9 flow (EXPERIMENTAL)\n");
|
log(" disable use of new ABC9 flow\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
log(" -flowmap\n");
|
log(" -flowmap\n");
|
||||||
log(" use FlowMap LUT techmapping instead of abc (EXPERIMENTAL)\n");
|
log(" use FlowMap LUT techmapping instead of abc (EXPERIMENTAL)\n");
|
||||||
|
@ -144,7 +144,7 @@ struct SynthIce40Pass : public ScriptPass
|
||||||
noabc = false;
|
noabc = false;
|
||||||
abc2 = false;
|
abc2 = false;
|
||||||
vpr = false;
|
vpr = false;
|
||||||
abc9 = false;
|
abc9 = true;
|
||||||
flowmap = false;
|
flowmap = false;
|
||||||
device_opt = "hx";
|
device_opt = "hx";
|
||||||
no_rw_check = false;
|
no_rw_check = false;
|
||||||
|
@ -235,7 +235,11 @@ struct SynthIce40Pass : public ScriptPass
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (args[argidx] == "-abc9") {
|
if (args[argidx] == "-abc9") {
|
||||||
abc9 = true;
|
// removed, ABC9 is on by default.
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (args[argidx] == "-noabc9") {
|
||||||
|
abc9 = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (args[argidx] == "-dff") {
|
if (args[argidx] == "-dff") {
|
||||||
|
|
|
@ -4,6 +4,9 @@ proc
|
||||||
equiv_opt -assert -map +/ecp5/cells_sim.v synth_ecp5 # equivalency check
|
equiv_opt -assert -map +/ecp5/cells_sim.v synth_ecp5 # equivalency check
|
||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
|
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
|
||||||
cd top # Constrain all select calls below inside the top module
|
cd top # Constrain all select calls below inside the top module
|
||||||
select -assert-count 10 t:LUT4
|
select -assert-min 25 t:LUT4
|
||||||
select -assert-none t:LUT4 %% t:* %D
|
select -assert-max 26 t:LUT4
|
||||||
|
select -assert-count 10 t:PFUMX
|
||||||
|
select -assert-count 6 t:L6MUX21
|
||||||
|
select -assert-none t:LUT4 t:PFUMX t:L6MUX21 %% t:* %D
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ flatten
|
||||||
equiv_opt -assert -multiclock -map +/ecp5/cells_sim.v synth_ecp5 # equivalency check
|
equiv_opt -assert -multiclock -map +/ecp5/cells_sim.v synth_ecp5 # equivalency check
|
||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
|
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
|
||||||
cd top # Constrain all select calls below inside the top module
|
cd top # Constrain all select calls below inside the top module
|
||||||
|
select -assert-count 1 t:LUT4
|
||||||
select -assert-count 4 t:CCU2C
|
select -assert-count 4 t:CCU2C
|
||||||
select -assert-count 8 t:TRELLIS_FF
|
select -assert-count 8 t:TRELLIS_FF
|
||||||
select -assert-none t:CCU2C t:TRELLIS_FF %% t:* %D
|
select -assert-none t:LUT4 t:CCU2C t:TRELLIS_FF %% t:* %D
|
||||||
|
|
|
@ -3,7 +3,7 @@ hierarchy -top top
|
||||||
equiv_opt -assert -map +/ice40/cells_sim.v synth_ice40 # equivalency check
|
equiv_opt -assert -map +/ice40/cells_sim.v synth_ice40 # equivalency check
|
||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
|
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
|
||||||
cd top # Constrain all select calls below inside the top module
|
cd top # Constrain all select calls below inside the top module
|
||||||
select -assert-count 11 t:SB_LUT4
|
select -assert-count 10 t:SB_LUT4
|
||||||
select -assert-count 6 t:SB_CARRY
|
select -assert-count 6 t:SB_CARRY
|
||||||
select -assert-none t:SB_LUT4 t:SB_CARRY %% t:* %D
|
select -assert-none t:SB_LUT4 t:SB_CARRY %% t:* %D
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ proc
|
||||||
equiv_opt -assert -map +/ice40/cells_sim.v synth_ice40 # equivalency check
|
equiv_opt -assert -map +/ice40/cells_sim.v synth_ice40 # equivalency check
|
||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
|
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
|
||||||
cd mux4 # Constrain all select calls below inside the top module
|
cd mux4 # Constrain all select calls below inside the top module
|
||||||
select -assert-count 2 t:SB_LUT4
|
select -assert-count 3 t:SB_LUT4
|
||||||
|
|
||||||
select -assert-none t:SB_LUT4 %% t:* %D
|
select -assert-none t:SB_LUT4 %% t:* %D
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ proc
|
||||||
equiv_opt -assert -map +/ice40/cells_sim.v synth_ice40 # equivalency check
|
equiv_opt -assert -map +/ice40/cells_sim.v synth_ice40 # equivalency check
|
||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
|
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
|
||||||
cd mux8 # Constrain all select calls below inside the top module
|
cd mux8 # Constrain all select calls below inside the top module
|
||||||
select -assert-count 5 t:SB_LUT4
|
select -assert-count 6 t:SB_LUT4
|
||||||
|
|
||||||
select -assert-none t:SB_LUT4 %% t:* %D
|
select -assert-none t:SB_LUT4 %% t:* %D
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ proc
|
||||||
equiv_opt -assert -map +/ice40/cells_sim.v synth_ice40 # equivalency check
|
equiv_opt -assert -map +/ice40/cells_sim.v synth_ice40 # equivalency check
|
||||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
|
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
|
||||||
cd mux16 # Constrain all select calls below inside the top module
|
cd mux16 # Constrain all select calls below inside the top module
|
||||||
select -assert-min 11 t:SB_LUT4
|
select -assert-min 13 t:SB_LUT4
|
||||||
select -assert-max 12 t:SB_LUT4
|
select -assert-max 14 t:SB_LUT4
|
||||||
|
|
||||||
select -assert-none t:SB_LUT4 %% t:* %D
|
select -assert-none t:SB_LUT4 %% t:* %D
|
||||||
|
|
Loading…
Reference in New Issue