diff options
Diffstat (limited to 'chiselFrontend/src/main/scala/chisel3/Module.scala')
| -rw-r--r-- | chiselFrontend/src/main/scala/chisel3/Module.scala | 2 |
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 { |
