StanfordAHA / CGRAMapper

CoreIR based mapping tool for CGRA
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

Cascade fails #65

Closed jeffsetter closed 6 years ago

jeffsetter commented 6 years ago

The mapper fails on the cascade app (3x3 convolution followed by another 3x3 convolution).

Travis: https://travis-ci.org/StanfordAHA/CGRAFlow/jobs/416473662

First Error:

ERROR I don't know what 'mul_49919.in0' is Traceback (most recent call last): File "CGRAGenerator/testdir/graphcompare/json2dot.py", line 339, in tf1 = to_or_from(k[1]); File "CGRAGenerator/testdir/graphcompare/json2dot.py", line 249, in to_or_from assert False AssertionError

cascade design attached as txt (change to json) cascade_design_top.txt

jeffsetter commented 6 years ago

I took a look at the error, it appears the error was related to an OR gate that was created that had one bit. The mapper fails to recognize this gate.

This was fixed in coreir branch named "cascade_fix" by replacing the coreir.or gate with a corebit.or gate