diff options
| author | Jack Koenig | 2021-01-20 13:46:48 -0800 |
|---|---|---|
| committer | Jack Koenig | 2021-01-21 15:36:55 -0800 |
| commit | 5ece5aa8ac2716d66a6ed91e38a978049d8bf250 (patch) | |
| tree | f83353530e836491bb9b770712f1b8ff3dac3942 /src/test/scala/chiselTests/naming/PrefixSpec.scala | |
| parent | 616256c35cb7de8fcd97df56af1986b747abe54d (diff) | |
Rename MultiIOModule to Module
Diffstat (limited to 'src/test/scala/chiselTests/naming/PrefixSpec.scala')
| -rw-r--r-- | src/test/scala/chiselTests/naming/PrefixSpec.scala | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/test/scala/chiselTests/naming/PrefixSpec.scala b/src/test/scala/chiselTests/naming/PrefixSpec.scala index 83408dea..0712692d 100644 --- a/src/test/scala/chiselTests/naming/PrefixSpec.scala +++ b/src/test/scala/chiselTests/naming/PrefixSpec.scala @@ -10,7 +10,7 @@ import chiselTests.{ChiselPropSpec, Utils} class PrefixSpec extends ChiselPropSpec with Utils { implicit val minimumMajorVersion: Int = 12 property("Scala plugin should interact with prefixing so last plugin name wins?") { - class Test extends MultiIOModule { + class Test extends Module { def builder(): UInt = { val wire1 = Wire(UInt(3.W)) val wire2 = Wire(UInt(3.W)) @@ -34,7 +34,7 @@ class PrefixSpec extends ChiselPropSpec with Utils { } property("Nested prefixes should work") { - class Test extends MultiIOModule { + class Test extends Module { def builder2(): UInt = { val wire1 = Wire(UInt(3.W)) val wire2 = Wire(UInt(3.W)) @@ -68,7 +68,7 @@ class PrefixSpec extends ChiselPropSpec with Utils { } property("Prefixing seeded with signal") { - class Test extends MultiIOModule { + class Test extends Module { def builder(): UInt = { val wire = Wire(UInt(3.W)) wire := 3.U @@ -93,7 +93,7 @@ class PrefixSpec extends ChiselPropSpec with Utils { property("Automatic prefixing should work") { - class Test extends MultiIOModule { + class Test extends Module { def builder(): UInt = { val a = Wire(UInt(3.W)) val b = Wire(UInt(3.W)) @@ -113,7 +113,7 @@ class PrefixSpec extends ChiselPropSpec with Utils { property("No prefixing annotation on defs should work") { - class Test extends MultiIOModule { + class Test extends Module { def builder(): UInt = noPrefix { val a = Wire(UInt(3.W)) val b = Wire(UInt(3.W)) @@ -130,7 +130,7 @@ class PrefixSpec extends ChiselPropSpec with Utils { property("Prefixing on temps should work") { - class Test extends MultiIOModule { + class Test extends Module { def builder(): UInt = { val a = Wire(UInt(3.W)) val b = Wire(UInt(3.W)) @@ -149,13 +149,13 @@ class PrefixSpec extends ChiselPropSpec with Utils { } property("Prefixing should not leak into child modules") { - class Child extends MultiIOModule { + class Child extends Module { { val wire = Wire(UInt()) } } - class Test extends MultiIOModule { + class Test extends Module { { val child = prefix("InTest") { Module(new Child) @@ -169,13 +169,13 @@ class PrefixSpec extends ChiselPropSpec with Utils { } property("Prefixing should not leak into child modules, example 2") { - class Child extends MultiIOModule { + class Child extends Module { { val wire = Wire(UInt()) } } - class Test extends MultiIOModule { + class Test extends Module { val x = IO(Input(UInt(3.W))) val y = { lazy val module = new Child @@ -189,13 +189,13 @@ class PrefixSpec extends ChiselPropSpec with Utils { } property("Instance names should not be added to prefix") { - class Child(tpe: UInt) extends MultiIOModule { + class Child(tpe: UInt) extends Module { { val io = IO(Input(tpe)) } } - class Test extends MultiIOModule { + class Test extends Module { { lazy val module = { val x = UInt(3.W) @@ -212,7 +212,7 @@ class PrefixSpec extends ChiselPropSpec with Utils { property("Prefixing should not be caused by nested Iterable[Iterable[Any]]") { - class Test extends MultiIOModule { + class Test extends Module { { val iia = { val wire = Wire(UInt(3.W)) @@ -227,7 +227,7 @@ class PrefixSpec extends ChiselPropSpec with Utils { } property("Prefixing should be caused by nested Iterable[Iterable[Data]]") { - class Test extends MultiIOModule { + class Test extends Module { { val iia = { val wire = Wire(UInt(3.W)) @@ -242,7 +242,7 @@ class PrefixSpec extends ChiselPropSpec with Utils { } property("Prefixing should be the prefix during the last call to autoName/suggestName") { - class Test extends MultiIOModule { + class Test extends Module { { val wire = { val x = Wire(UInt(3.W)).suggestName("mywire") @@ -258,7 +258,7 @@ class PrefixSpec extends ChiselPropSpec with Utils { } property("Prefixing have intuitive behavior") { - class Test extends MultiIOModule { + class Test extends Module { { val wire = { val x = Wire(UInt(3.W)).suggestName("mywire") @@ -274,7 +274,7 @@ class PrefixSpec extends ChiselPropSpec with Utils { } property("Prefixing on connection to subfields work") { - class Test extends MultiIOModule { + class Test extends Module { { val wire = Wire(new Bundle { val x = UInt(3.W) @@ -301,12 +301,12 @@ class PrefixSpec extends ChiselPropSpec with Utils { } property("Prefixing on connection to IOs should work") { - class Child extends MultiIOModule { + class Child extends Module { val in = IO(Input(UInt(3.W))) val out = IO(Output(UInt(3.W))) out := RegNext(in) } - class Test extends MultiIOModule { + class Test extends Module { { val child = Module(new Child) child.in := RegNext(3.U) @@ -324,12 +324,12 @@ class PrefixSpec extends ChiselPropSpec with Utils { } property("Prefixing on bulk connects should work") { - class Child extends MultiIOModule { + class Child extends Module { val in = IO(Input(UInt(3.W))) val out = IO(Output(UInt(3.W))) out := RegNext(in) } - class Test extends MultiIOModule { + class Test extends Module { { val child = Module(new Child) child.in <> RegNext(3.U) @@ -347,7 +347,7 @@ class PrefixSpec extends ChiselPropSpec with Utils { } property("Connections should use the non-prefixed name of the connected Data") { - class Test extends MultiIOModule { + class Test extends Module { prefix("foo") { val x = Wire(UInt(8.W)) x := { @@ -364,7 +364,7 @@ class PrefixSpec extends ChiselPropSpec with Utils { } property("Connections to aggregate fields should use the non-prefixed aggregate name") { - class Test extends MultiIOModule { + class Test extends Module { prefix("foo") { val x = Wire(new Bundle { val bar = UInt(8.W) }) x.bar := { @@ -382,7 +382,7 @@ class PrefixSpec extends ChiselPropSpec with Utils { property("Prefixing with wires in recursive functions should grow linearly") { - class Test extends MultiIOModule { + class Test extends Module { def func(bools: Seq[Bool]): Bool = { if (bools.isEmpty) true.B else { |
