treadle icon indicating copy to clipboard operation
treadle copied to clipboard

Make it possible to create a TreadleTester without running firrtl optimizations

Open ekiwi opened this issue 4 years ago • 3 comments
trafficstars

It would be nice if we could allow users to test an un-optimized circuit.

This shouldn't be too hard to do, the major question is how to best expose this option to the user.

ekiwi avatar Aug 23 '21 22:08 ekiwi

Is this just mean changing Forms.LowFormOptimized to Forms.LowForm in PrepareAst

chick avatar Feb 23 '22 19:02 chick

Potentially. We would have to play around with this a little bit.

ekiwi avatar Feb 23 '22 22:02 ekiwi

MIght as well add this in too. Treadle's transformations should be idempotent. Which it is not right now, the Augment printf will keep adding registers in between the clock, enable, and arguments each time it is run. Actually. at the moment, is not even possible because the registers generated by Augment do not have correctly sized init values, which causes failures in CheckTypes, this should be fixed.

chick avatar Feb 25 '22 02:02 chick