mirror of https://github.com/YosysHQ/yosys.git
Cleanup synth_xilinx
This commit is contained in:
parent
06f8f2654a
commit
29a8d4745e
|
@ -95,7 +95,7 @@ module \$__SHREG_ (input C, input D, input [31:0] L, input E, output Q);
|
||||||
MUXF8 fpga_mux_2 (.O(Q), .I0(T7), .I1(T8), .S(L[6]));
|
MUXF8 fpga_mux_2 (.O(Q), .I0(T7), .I1(T8), .S(L[6]));
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else if (DEPTH < 129 || (DEPTH <= 129 && &_TECHMAP_CONSTMSK_L_)) begin
|
else if (DEPTH <= 128 || (DEPTH == 129 && &_TECHMAP_CONSTMSK_L_)) begin
|
||||||
// Handle cases where depth is just 1 over a convenient value,
|
// Handle cases where depth is just 1 over a convenient value,
|
||||||
if (&_TECHMAP_CONSTMSK_L_) begin
|
if (&_TECHMAP_CONSTMSK_L_) begin
|
||||||
// For constant length, use the flop
|
// For constant length, use the flop
|
||||||
|
|
|
@ -110,6 +110,7 @@ struct SynthXilinxPass : public Pass
|
||||||
log(" dffsr2dff\n");
|
log(" dffsr2dff\n");
|
||||||
log(" dff2dffe\n");
|
log(" dff2dffe\n");
|
||||||
log(" opt -full\n");
|
log(" opt -full\n");
|
||||||
|
log(" simplemap t:$dff*\n");
|
||||||
log(" shregmap -tech xilinx\n");
|
log(" shregmap -tech xilinx\n");
|
||||||
log(" techmap -map +/techmap.v -map +/xilinx/arith_map.v +/xilinx/ff_map.v\n");
|
log(" techmap -map +/techmap.v -map +/xilinx/arith_map.v +/xilinx/ff_map.v\n");
|
||||||
log(" opt -fast\n");
|
log(" opt -fast\n");
|
||||||
|
@ -257,8 +258,6 @@ struct SynthXilinxPass : public Pass
|
||||||
|
|
||||||
Pass::call(design, "simplemap t:$dff*");
|
Pass::call(design, "simplemap t:$dff*");
|
||||||
Pass::call(design, "shregmap -tech xilinx");
|
Pass::call(design, "shregmap -tech xilinx");
|
||||||
Pass::call(design, "techmap -map +/xilinx/cells_map.v t:$__SHREG_");
|
|
||||||
Pass::call(design, "opt -fast");
|
|
||||||
|
|
||||||
if (vpr) {
|
if (vpr) {
|
||||||
Pass::call(design, "techmap -map +/techmap.v -map +/xilinx/arith_map.v -map +/xilinx/ff_map.v -D _EXPLICIT_CARRY");
|
Pass::call(design, "techmap -map +/techmap.v -map +/xilinx/arith_map.v -map +/xilinx/ff_map.v -D _EXPLICIT_CARRY");
|
||||||
|
|
Loading…
Reference in New Issue