diff options
| author | Jack Koenig | 2017-05-10 12:09:59 -0700 |
|---|---|---|
| committer | GitHub | 2017-05-10 12:09:59 -0700 |
| commit | 45e235a5948a1cd15b8ccb5f437dc6f2ff80cb96 (patch) | |
| tree | e21826d7f231b3553a0d9001cdf987beded4c1d4 /chiselFrontend/src/main/scala/chisel3/core/Aggregate.scala | |
| parent | 9ad6c747ddcedb831dbfbcd970a46966f986b800 (diff) | |
Add implicit CompileOptions to Record and Bundle (#595)
Fixes #495
Helps distinguish between Records/Bundles defined in Chisel._ vs.
chisel3._. Also override compilationOptions when bulk connecting
Records/Bundles defined in Chisel._. This allows Records/Bundles defined
in Chisel._ code to be correctly bulk connected in chisel3._ code.
Diffstat (limited to 'chiselFrontend/src/main/scala/chisel3/core/Aggregate.scala')
| -rw-r--r-- | chiselFrontend/src/main/scala/chisel3/core/Aggregate.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/core/Aggregate.scala b/chiselFrontend/src/main/scala/chisel3/core/Aggregate.scala index 6a4d8cff..3f81de9f 100644 --- a/chiselFrontend/src/main/scala/chisel3/core/Aggregate.scala +++ b/chiselFrontend/src/main/scala/chisel3/core/Aggregate.scala @@ -362,7 +362,7 @@ trait VecLike[T <: Data] extends collection.IndexedSeq[T] with HasId { * Record should only be extended by libraries and fairly sophisticated generators. * RTL writers should use [[Bundle]]. See [[Record#elements]] for an example. */ -abstract class Record extends Aggregate { +abstract class Record(private[chisel3] implicit val compileOptions: CompileOptions) extends Aggregate { /** The collection of [[Data]] * @@ -464,7 +464,7 @@ abstract class Record extends Aggregate { * } * }}} */ -class Bundle extends Record { +class Bundle(implicit compileOptions: CompileOptions) extends Record { override def className = "Bundle" /** The collection of [[Data]] |
