From: Johann Glaser Date: Mon, 18 Mar 2013 21:06:16 +0000 (+0100) Subject: added one more suggestion to optimize MUXes in pass "opt_const" X-Git-Tag: yosys-0.2.0~711^2~4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=69674652c5eafab7f96bcdab7618d57630ab0ae7;p=yosys.git added one more suggestion to optimize MUXes in pass "opt_const" --- diff --git a/passes/opt/opt_const.cc b/passes/opt/opt_const.cc index 909500967..5b87aeaa2 100644 --- a/passes/opt/opt_const.cc +++ b/passes/opt/opt_const.cc @@ -125,6 +125,7 @@ void replace_const_cells(RTLIL::Design *design, RTLIL::Module *module) if (input.match(" 1")) ACTION_DO("\\Y", input.extract(1, 1)); #ifdef MUX_UNDEF_SEL_TO_UNDEF_RESULTS if (input.match("01 ")) ACTION_DO("\\Y", input.extract(0, 1)); + // TODO: "10 " -> replace with "!S" gate // TODO: "0 " -> replace with "B AND S" gate // TODO: " 1 " -> replace with "A OR S" gate // TODO: "1 " -> replace with "B OR !S" gate