From 6ea4ac666e4ce8dfaca1545660f372fccff610f5 Mon Sep 17 00:00:00 2001 From: Adam Izraelevitz Date: Wed, 21 Mar 2018 14:24:25 -0700 Subject: GroupModule Transform (#766) * Added grouping pass * Added InfoMagnet and infomappers * Changed return type of execute to allow final CircuitState inspection * Updated dedup. Now is name-agnostic * Added GroupAndDedup transform--- src/test/scala/firrtlTests/PassTests.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/test/scala/firrtlTests/PassTests.scala') diff --git a/src/test/scala/firrtlTests/PassTests.scala b/src/test/scala/firrtlTests/PassTests.scala index 847643ef..6f94275e 100644 --- a/src/test/scala/firrtlTests/PassTests.scala +++ b/src/test/scala/firrtlTests/PassTests.scala @@ -20,13 +20,14 @@ abstract class SimpleTransformSpec extends FlatSpec with FirrtlMatchers with Com // Executes the test. Call in tests. // annotations cannot have default value because scalatest trait Suite has a default value - def execute(input: String, check: String, annotations: Seq[Annotation]): Unit = { + def execute(input: String, check: String, annotations: Seq[Annotation]): CircuitState = { val finalState = compileAndEmit(CircuitState(parse(input), ChirrtlForm, annotations)) val actual = RemoveEmpty.run(parse(finalState.getEmittedCircuit.value)).serialize val expected = parse(check).serialize logger.debug(actual) logger.debug(expected) (actual) should be (expected) + finalState } // Executes the test, should throw an error // No default to be consistent with execute -- cgit v1.2.3