diff options
| author | jackkoenig | 2016-10-20 00:19:01 -0700 |
|---|---|---|
| committer | Jack Koenig | 2016-11-04 13:29:09 -0700 |
| commit | 8fa9429a6e916ab2a789f5d81fa803b022805b52 (patch) | |
| tree | fac2efcbd0a68bfb1916f09afc7f003c7a3d6528 /src/test/scala/firrtlTests/CInferMDirSpec.scala | |
| parent | 62133264a788f46b319ebab9c31424b7e0536101 (diff) | |
Refactor Compilers and Transforms
* Transform Ids now handled by Class[_ <: Transform] instead of magic numbers
* Transforms define inputForm and outputForm
* Custom transforms can be inserted at runtime into compiler or the Driver
* Current "built-in" custom transforms handled via above mechanism
* Verilog-specific passes moved to the Verilog emitter
Diffstat (limited to 'src/test/scala/firrtlTests/CInferMDirSpec.scala')
| -rw-r--r-- | src/test/scala/firrtlTests/CInferMDirSpec.scala | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/test/scala/firrtlTests/CInferMDirSpec.scala b/src/test/scala/firrtlTests/CInferMDirSpec.scala index 719a3334..51663eaf 100644 --- a/src/test/scala/firrtlTests/CInferMDirSpec.scala +++ b/src/test/scala/firrtlTests/CInferMDirSpec.scala @@ -63,13 +63,12 @@ class CInferMDir extends LowTransformSpec { } } - object CInferMDirCheck extends Transform with SimpleRun { - def execute(c: Circuit, map: AnnotationMap) = - run(c, Seq(ConstProp, CInferMDirCheckPass)) + def transform = new PassBasedTransform { + def inputForm = LowForm + def outputForm = LowForm + def passSeq = Seq(ConstProp, CInferMDirCheckPass) } - def transform = CInferMDirCheck - "Memory" should "have correct mem port directions" in { val input = """ circuit foo : @@ -97,7 +96,7 @@ circuit foo : val annotationMap = AnnotationMap(Nil) val writer = new java.io.StringWriter - compile(parse(input), annotationMap, writer) + compile(CircuitState(parse(input), ChirrtlForm, Some(annotationMap)), writer) // Check correctness of firrtl parse(writer.toString) } |
