diff options
| author | Jack Koenig | 2017-01-20 12:37:40 -0800 |
|---|---|---|
| committer | GitHub | 2017-01-20 12:37:40 -0800 |
| commit | 2e6444cc55b54b59f781a14823e219d9a2413f72 (patch) | |
| tree | 0affb83730db42e41df214e8095d1ff1dd02b162 /chiselFrontend/src/main/scala/chisel3/core/Module.scala | |
| parent | 4512aeeacf594349cf9a816384e92bf3da63892f (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 'chiselFrontend/src/main/scala/chisel3/core/Module.scala')
| -rw-r--r-- | chiselFrontend/src/main/scala/chisel3/core/Module.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/core/Module.scala b/chiselFrontend/src/main/scala/chisel3/core/Module.scala index 76a3b240..609f2ccf 100644 --- a/chiselFrontend/src/main/scala/chisel3/core/Module.scala +++ b/chiselFrontend/src/main/scala/chisel3/core/Module.scala @@ -141,7 +141,7 @@ extends HasId { /** IO for this Module. At the Scala level (pre-FIRRTL transformations), * connections in and out of a Module may only go through `io` elements. */ - def io: Bundle + def io: Record val clock = Port(Input(Clock())) val reset = Port(Input(Bool())) |
