Reduce Yosys ECP5 cell usage by 30% with -abc9 -nowidelut
authorAnton Blanchard <anton@linux.ibm.com>
Wed, 11 Aug 2021 04:34:41 +0000 (14:34 +1000)
committerAnton Blanchard <anton@ozlabs.org>
Wed, 11 Aug 2021 04:49:30 +0000 (14:49 +1000)
commit6254bb5ee943e475a2959d1f9a78b2e988f6162c
tree70e764ad7b14064fc243526030f7b0f1eb830452
parentaa4e4e77c4b2ac1123c584d71cc12a202df05b86
Reduce Yosys ECP5 cell usage by 30% with -abc9 -nowidelut

We've been investigating why the barrel rotator uses an enormous
number of cells on the yosys ECP5 target. Eventually it was narrowed
down to the -abc9 -nowidelut options, which see the cell count go from
4985 cells to 841 cells.

Using the same options on an Orange Crab build reduces the cell count
from 50864 to 36085. The main differences:

     LUT4                        31040 -> 25270
     PFUMX                        6956 ->     0
     L6MUX21                      1746 ->     0
     CCU2C                        2066 ->  1759

Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
Makefile