Closed Kuree closed 5 years ago
@Kuree In the future, I agree it would be ideal to parse either cgra_info.txt or other collateral to generate the correct mappings.
You should easily be able to edit the cgralib_def.h file to implement this change.
Can you make sure that for our next chip, this bug gets fixed and the mux gets fixed? @rsetaluri, @leonardt
Note, sorry I have not been able to fix these issues. I have a paper deadline on Saturday which is consuming all my time.
Implementation of mux in the PE tile (see
cgra_info.txt
inCGRAGenerator
repo):It seems that CoreIR is assuming if selection bit
bit0 == 0
, outputsdata0
, which is consistent with most logic designs (I made that assumption too early on when debugging).An easy and dirty fix would be swapping
data.in.0
anddata.in.1
in the mux pass, but it would be nice for the mapper to parsecgra_info.txt
in the future so that it could generate netlists against different targets.I can send a pull request to swap two operands if you want, but I'd like to do that based on your suggestion.