summaryrefslogtreecommitdiff
path: root/chiselFrontend
diff options
context:
space:
mode:
authorSchuyler Eldridge2019-10-07 17:03:22 -0400
committerGitHub2019-10-07 17:03:22 -0400
commit98bfe2416676651b29cd40fc8388c16bfda467d6 (patch)
tree130ab2ede4513e0be9e4287f0bfc1f0ff91940da /chiselFrontend
parent896cad0bbb26e647c20a182c0c645fff350650ba (diff)
parentb8f68f16ce7c3d78e1918e7a0be868200cdfd8e7 (diff)
Merge pull request #1194 from freechipsproject/issue-1166
Strip Object and Outer Class from desiredName
Diffstat (limited to 'chiselFrontend')
-rw-r--r--chiselFrontend/src/main/scala/chisel3/Module.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/Module.scala b/chiselFrontend/src/main/scala/chisel3/Module.scala
index cd6bbeb8..f88d637f 100644
--- a/chiselFrontend/src/main/scala/chisel3/Module.scala
+++ b/chiselFrontend/src/main/scala/chisel3/Module.scala
@@ -221,7 +221,7 @@ package experimental {
/** Desired name of this module. Override this to give this module a custom, perhaps parametric,
* name.
*/
- def desiredName: String = this.getClass.getName.split('.').last
+ def desiredName: String = this.getClass.getName.split("\\.|\\$").last
/** Legalized name of this module. */
final lazy val name = try {