3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-27 19:05:52 +00:00

Add muxadd peepopt

This commit is contained in:
Akash Levy 2024-08-30 04:45:01 -07:00
parent 8f26fa9077
commit 2c9c6e693f
4 changed files with 47 additions and 0 deletions

View file

@ -42,6 +42,8 @@ struct PeepoptPass : public Pass {
log("\n");
log("This pass employs the following rules:\n");
log("\n");
log(" * muxadd - Replace S?(A+B):A with A+(S?B:0)\n");
log("\n");
log(" * muldiv - Replace (A*B)/B with A\n");
log("\n");
log(" * shiftmul - Replace A>>(B*C) with A'>>(B<<K) where C and K are constants\n");
@ -90,6 +92,7 @@ struct PeepoptPass : public Pass {
pm.run_shiftmul_right();
pm.run_shiftmul_left();
pm.run_muldiv();
pm.run_muxadd();
}
}
}