From 2e6444cc55b54b59f781a14823e219d9a2413f72 Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Fri, 20 Jan 2017 12:37:40 -0800 Subject: 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.--- src/main/scala/chisel3/compatibility.scala | 1 + src/main/scala/chisel3/package.scala | 1 + 2 files changed, 2 insertions(+) (limited to 'src/main') 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 -- cgit v1.2.3