From c7eb1570dfb1c7701ea32d1209982a053f3cec1d Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Tue, 27 Feb 2018 18:07:11 -0800 Subject: Refactor Annotations (#721) - Old Annotation renamed to deprecated LegacyAnnotation - Annotation is now a trait that can be extended - New JsonProtocol for Annotation [de]serialization - Replace AnnotationMap with AnnotationSeq - Deprecate Transform.getMyAnnotations - Update Transforms - Turn on deprecation warnings - Remove deprecated Driver.compile - Make AnnotationTests abstract with Legacy and Json subclasses - Add functionality to convert LegacyAnnotations of built-in annos This will give a noisy warning and is more of a best effort than a robust solution. Fixes #475 Closes #609--- src/test/scala/firrtlTests/fixed/FixedPointMathSpec.scala | 2 +- src/test/scala/firrtlTests/fixed/RemoveFixedTypeSpec.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/scala/firrtlTests/fixed') diff --git a/src/test/scala/firrtlTests/fixed/FixedPointMathSpec.scala b/src/test/scala/firrtlTests/fixed/FixedPointMathSpec.scala index 39da2a33..a4319e8b 100644 --- a/src/test/scala/firrtlTests/fixed/FixedPointMathSpec.scala +++ b/src/test/scala/firrtlTests/fixed/FixedPointMathSpec.scala @@ -2,7 +2,7 @@ package firrtlTests.fixed -import firrtl.{CircuitState, ChirrtlForm, LowFirrtlCompiler, Parser, AnnotationMap} +import firrtl.{CircuitState, ChirrtlForm, LowFirrtlCompiler, Parser} import firrtl.Parser.IgnoreInfo import firrtlTests.FirrtlFlatSpec diff --git a/src/test/scala/firrtlTests/fixed/RemoveFixedTypeSpec.scala b/src/test/scala/firrtlTests/fixed/RemoveFixedTypeSpec.scala index 34a22c26..8645fa62 100644 --- a/src/test/scala/firrtlTests/fixed/RemoveFixedTypeSpec.scala +++ b/src/test/scala/firrtlTests/fixed/RemoveFixedTypeSpec.scala @@ -185,7 +185,7 @@ class RemoveFixedTypeSpec extends FirrtlFlatSpec { } val chirrtlTransform = new CheckChirrtlTransform - chirrtlTransform.execute(CircuitState(parse(input), ChirrtlForm, Some(new AnnotationMap(Seq.empty)))) + chirrtlTransform.execute(CircuitState(parse(input), ChirrtlForm)) } "Fixed point numbers" should "remove nested AsFixedPoint" in { -- cgit v1.2.3