Skip to content

Commit 535c687

Browse files
committed
add minimum limit for carry
1 parent 0c3a837 commit 535c687

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/synth_rapidsilicon.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9033,6 +9033,10 @@ void collect_clocks (RTLIL::Module* module,
90339033
break;
90349034
}
90359035
}
9036+
run("stat");
9037+
// Awais: Convert Carry to logic if carry in a chain exceed max carry length limit in a chain.
9038+
if (max_carry_length != -1)
9039+
carry_2_gate();
90369040
run("stat");
90379041
break;
90389042
}
@@ -9041,8 +9045,6 @@ void collect_clocks (RTLIL::Module* module,
90419045
break;
90429046
}
90439047
}
9044-
// Awais: Convert Carry to logic if carry in a chain exceed max carry length limit in a chain.
9045-
carry_2_gate();
90469048
if (cec) {
90479049
run("write_verilog -noexpr -noattr -nohex after_tech_map.v");
90489050
}

0 commit comments

Comments
 (0)