summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorJack Koenig2017-01-20 12:37:40 -0800
committerGitHub2017-01-20 12:37:40 -0800
commit2e6444cc55b54b59f781a14823e219d9a2413f72 (patch)
tree0affb83730db42e41df214e8095d1ff1dd02b162 /src/main
parent4512aeeacf594349cf9a816384e92bf3da63892f (diff)
Add Record as new superclass of Bundle (#366)
Record gives uses the power to create collections of heterogenous elements. Bundle is a special case of Record that uses reflection to populate the elements of the collection. Bundle also attempts to implement cloneType whereas users of Record are required to supply one.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/scala/chisel3/compatibility.scala1
-rw-r--r--src/main/scala/chisel3/package.scala1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/main/scala/chisel3/compatibility.scala b/src/main/scala/chisel3/compatibility.scala
index 613385af..abbe8ffe 100644
--- a/src/main/scala/chisel3/compatibility.scala
+++ b/src/main/scala/chisel3/compatibility.scala
@@ -36,6 +36,7 @@ package object Chisel { // scalastyle:ignore package.object.name
val Vec = chisel3.core.Vec
type Vec[T <: Data] = chisel3.core.Vec[T]
type VecLike[T <: Data] = chisel3.core.VecLike[T]
+ type Record = chisel3.core.Record
type Bundle = chisel3.core.Bundle
val assert = chisel3.core.assert
diff --git a/src/main/scala/chisel3/package.scala b/src/main/scala/chisel3/package.scala
index 29095243..cba8dffe 100644
--- a/src/main/scala/chisel3/package.scala
+++ b/src/main/scala/chisel3/package.scala
@@ -26,6 +26,7 @@ package object chisel3 { // scalastyle:ignore package.object.name
type Vec[T <: Data] = chisel3.core.Vec[T]
type VecLike[T <: Data] = chisel3.core.VecLike[T]
type Bundle = chisel3.core.Bundle
+ type Record = chisel3.core.Record
val assert = chisel3.core.assert