summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/experimental/ProgrammaticPortsSpec.scala
diff options
context:
space:
mode:
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")
})