fixup! Update MacroCompiler for Chisel 3.4
Need to collect the annotations into a Seq. Also updated the macros project tests.
This commit is contained in:
@@ -656,7 +656,7 @@ class MacroCompilerTransform extends Transform {
|
||||
def inputForm = MidForm
|
||||
def outputForm = MidForm
|
||||
|
||||
def execute(state: CircuitState) = state.annotations match {
|
||||
def execute(state: CircuitState) = state.annotations.collect { case a: MacroCompilerAnnotation => a } match {
|
||||
case Seq(anno: MacroCompilerAnnotation) =>
|
||||
val MacroCompilerAnnotation.Params(memFile, memFileFormat, libFile, hammerIR, costMetric, mode, useCompiler, forceCompile, forceSynflops) = anno.params
|
||||
if (mode == MacroCompilerAnnotation.FallbackSynflops) {
|
||||
|
||||
Reference in New Issue
Block a user