mirror of https://github.com/YosysHQ/yosys.git
Add -nocarry option to synth_xilinx
This commit is contained in:
parent
bfd71e0990
commit
f96d82a5f1
|
@ -63,6 +63,9 @@ struct SynthXilinxPass : public Pass
|
||||||
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(" -nocarry\n");
|
||||||
|
log(" disable inference of carry chains\n");
|
||||||
|
log("\n");
|
||||||
log(" -nobram\n");
|
log(" -nobram\n");
|
||||||
log(" disable inference of block rams\n");
|
log(" disable inference of block rams\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
|
@ -118,7 +121,7 @@ struct SynthXilinxPass : public Pass
|
||||||
log(" memory_map\n");
|
log(" memory_map\n");
|
||||||
log(" dffsr2dff\n");
|
log(" dffsr2dff\n");
|
||||||
log(" dff2dffe\n");
|
log(" dff2dffe\n");
|
||||||
log(" techmap -map +/xilinx/arith_map.v\n");
|
log(" techmap -map +/xilinx/arith_map.v (without '-nocarry' only)\n");
|
||||||
log(" opt -fast\n");
|
log(" opt -fast\n");
|
||||||
log("\n");
|
log("\n");
|
||||||
log(" map_cells:\n");
|
log(" map_cells:\n");
|
||||||
|
@ -161,6 +164,7 @@ struct SynthXilinxPass : public Pass
|
||||||
bool flatten = false;
|
bool flatten = false;
|
||||||
bool retime = false;
|
bool retime = false;
|
||||||
bool vpr = false;
|
bool vpr = false;
|
||||||
|
bool nocarry = false;
|
||||||
bool nobram = false;
|
bool nobram = false;
|
||||||
bool nodram = false;
|
bool nodram = false;
|
||||||
bool nosrl = false;
|
bool nosrl = false;
|
||||||
|
@ -201,6 +205,10 @@ struct SynthXilinxPass : public Pass
|
||||||
vpr = true;
|
vpr = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (args[argidx] == "-nocarry") {
|
||||||
|
nocarry = true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (args[argidx] == "-nobram") {
|
if (args[argidx] == "-nobram") {
|
||||||
nobram = true;
|
nobram = true;
|
||||||
continue;
|
continue;
|
||||||
|
@ -284,9 +292,10 @@ struct SynthXilinxPass : public Pass
|
||||||
Pass::call(design, "dffsr2dff");
|
Pass::call(design, "dffsr2dff");
|
||||||
Pass::call(design, "dff2dffe");
|
Pass::call(design, "dff2dffe");
|
||||||
|
|
||||||
if (vpr) {
|
if (!nocarry) {
|
||||||
|
if (vpr)
|
||||||
Pass::call(design, "techmap -map +/xilinx/arith_map.v -D _EXPLICIT_CARRY");
|
Pass::call(design, "techmap -map +/xilinx/arith_map.v -D _EXPLICIT_CARRY");
|
||||||
} else {
|
else
|
||||||
Pass::call(design, "techmap -map +/xilinx/arith_map.v");
|
Pass::call(design, "techmap -map +/xilinx/arith_map.v");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue