Skip to content

Commit

Permalink
synth_lattice: Optimize flip-flop memories better
Browse files Browse the repository at this point in the history
After `memory_map` maps memories to flip-flops we need to let `opt`
remove undef muxes, otherwise we block enable/reset signal inference by
`opt_dff` which is in detriment to QoR.
  • Loading branch information
povik committed Nov 7, 2023
1 parent ee3a4ce commit fed2720
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion techlibs/lattice/synth_lattice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ struct SynthLatticePass : public ScriptPass
{
run("opt -fast -mux_undef -undriven -fine");
run("memory_map");
run("opt -undriven -fine");
run("opt -undriven -fine -mux_undef");
}

if (check_label("map_gates"))
Expand Down

0 comments on commit fed2720

Please sign in to comment.