summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/experimental/ProgrammaticPortsSpec.scala
diff options
context:
space:
mode:
authorJack Koenig2021-01-20 13:46:48 -0800
committerJack Koenig2021-01-21 15:36:55 -0800
commit5ece5aa8ac2716d66a6ed91e38a978049d8bf250 (patch)
treef83353530e836491bb9b770712f1b8ff3dac3942 /src/test/scala/chiselTests/experimental/ProgrammaticPortsSpec.scala
parent616256c35cb7de8fcd97df56af1986b747abe54d (diff)
Rename MultiIOModule to Module
Diffstat (limited to 'src/test/scala/chiselTests/experimental/ProgrammaticPortsSpec.scala')
-rw-r--r--src/test/scala/chiselTests/experimental/ProgrammaticPortsSpec.scala5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/scala/chiselTests/experimental/ProgrammaticPortsSpec.scala b/src/test/scala/chiselTests/experimental/ProgrammaticPortsSpec.scala
index ffbdb814..ffe3a37f 100644
--- a/src/test/scala/chiselTests/experimental/ProgrammaticPortsSpec.scala
+++ b/src/test/scala/chiselTests/experimental/ProgrammaticPortsSpec.scala
@@ -52,12 +52,11 @@ class ProgrammaticPortsSpec extends ChiselFlatSpec with Utils {
doTest(new PortsWinTester)
}
- "LegacyModule" should "ignore suggestName on ports" in {
+ "Module" should "ignore suggestName on clock and reset" in {
doTest(new Module with NamedModuleTester {
val io = IO(new Bundle {
val foo = Output(UInt(8.W))
})
- expectName(io.suggestName("cheese"), "io")
expectName(clock.suggestName("tart"), "clock")
expectName(reset.suggestName("teser"), "reset")
})
@@ -65,7 +64,7 @@ class ProgrammaticPortsSpec extends ChiselFlatSpec with Utils {
"SuggestName collisions on ports" should "be illegal" in {
a [ChiselException] should be thrownBy extractCause[ChiselException] {
- ChiselStage.elaborate(new MultiIOModule {
+ ChiselStage.elaborate(new Module {
val foo = IO(UInt(8.W)).suggestName("apple")
val bar = IO(UInt(8.W)).suggestName("apple")
})