From fddb5943b1d36925a5435d327c3312572e98ca58 Mon Sep 17 00:00:00 2001 From: Adam Izraelevitz Date: Mon, 12 Aug 2019 15:49:42 -0700 Subject: Aspect-Oriented Programming for Chisel (#1077) Added Aspects to Chisel, enabling a mechanism for dependency injection to hardware modules.--- chiselFrontend/src/main/scala/chisel3/Annotation.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chiselFrontend/src/main/scala/chisel3/Annotation.scala') diff --git a/chiselFrontend/src/main/scala/chisel3/Annotation.scala b/chiselFrontend/src/main/scala/chisel3/Annotation.scala index 08119f44..ec000d93 100644 --- a/chiselFrontend/src/main/scala/chisel3/Annotation.scala +++ b/chiselFrontend/src/main/scala/chisel3/Annotation.scala @@ -3,11 +3,11 @@ package chisel3.experimental import scala.language.existentials - import chisel3.internal.{Builder, InstanceId} import chisel3.{CompileOptions, Data} import firrtl.Transform -import firrtl.annotations.Annotation +import firrtl.annotations._ +import firrtl.options.Unserializable import firrtl.transforms.{DontTouchAnnotation, NoDedupAnnotation} /** Interface for Annotations in Chisel @@ -25,11 +25,11 @@ trait ChiselAnnotation { * Automatic Transform instantiation is *not* supported when the Circuit and Annotations are serialized before invoking * FIRRTL. */ -// TODO There should be a FIRRTL API for this instead trait RunFirrtlTransform extends ChiselAnnotation { def transformClass: Class[_ <: Transform] } + // This exists for implementation reasons, we don't want people using this type directly final case class ChiselLegacyAnnotation private[chisel3] ( component: InstanceId, -- cgit v1.2.3