diff options
| author | Schuyler Eldridge | 2019-10-07 17:03:22 -0400 |
|---|---|---|
| committer | GitHub | 2019-10-07 17:03:22 -0400 |
| commit | 98bfe2416676651b29cd40fc8388c16bfda467d6 (patch) | |
| tree | 130ab2ede4513e0be9e4287f0bfc1f0ff91940da /src/test | |
| parent | 896cad0bbb26e647c20a182c0c645fff350650ba (diff) | |
| parent | b8f68f16ce7c3d78e1918e7a0be868200cdfd8e7 (diff) | |
Merge pull request #1194 from freechipsproject/issue-1166
Strip Object and Outer Class from desiredName
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/scala/chiselTests/DataPrint.scala | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/scala/chiselTests/DataPrint.scala b/src/test/scala/chiselTests/DataPrint.scala index 493d3c7a..894d4798 100644 --- a/src/test/scala/chiselTests/DataPrint.scala +++ b/src/test/scala/chiselTests/DataPrint.scala @@ -33,14 +33,14 @@ class DataPrintSpec extends ChiselFlatSpec with Matchers { } class BoundDataModule extends MultiIOModule { // not in the test to avoid anon naming suffixes - Wire(UInt()).toString should be("UInt(Wire in DataPrintSpec$BoundDataModule)") - Reg(SInt()).toString should be("SInt(Reg in DataPrintSpec$BoundDataModule)") + Wire(UInt()).toString should be("UInt(Wire in BoundDataModule)") + Reg(SInt()).toString should be("SInt(Reg in BoundDataModule)") val io = IO(Output(Bool())) // needs a name so elaboration doesn't fail - io.toString should be("Bool(IO in unelaborated DataPrintSpec$BoundDataModule)") + io.toString should be("Bool(IO in unelaborated BoundDataModule)") val m = Mem(4, UInt(2.W)) - m(2).toString should be("UInt<2>(MemPort in DataPrintSpec$BoundDataModule)") - (2.U + 2.U).toString should be("UInt<2>(OpResult in DataPrintSpec$BoundDataModule)") - Wire(Vec(3, UInt(2.W))).toString should be ("UInt<2>[3](Wire in DataPrintSpec$BoundDataModule)") + m(2).toString should be("UInt<2>(MemPort in BoundDataModule)") + (2.U + 2.U).toString should be("UInt<2>(OpResult in BoundDataModule)") + Wire(Vec(3, UInt(2.W))).toString should be ("UInt<2>[3](Wire in BoundDataModule)") class InnerModule extends MultiIOModule { val io = IO(Output(new Bundle { @@ -48,8 +48,8 @@ class DataPrintSpec extends ChiselFlatSpec with Matchers { })) } val inner = Module(new InnerModule) - inner.clock.toString should be ("Clock(IO clock in DataPrintSpec$BoundDataModule$InnerModule)") - inner.io.a.toString should be ("UInt<4>(IO io_a in DataPrintSpec$BoundDataModule$InnerModule)") + inner.clock.toString should be ("Clock(IO clock in InnerModule)") + inner.io.a.toString should be ("UInt<4>(IO io_a in InnerModule)") } "Bound data types" should "have a meaningful string representation" in { |
