summaryrefslogtreecommitdiff
path: root/chiselFrontend
diff options
context:
space:
mode:
authorAdam Izraelevitz2016-11-02 13:27:43 -0700
committerAndrew Waterman2016-11-02 13:27:43 -0700
commit30b0d0e2b7e104dd16102f17a03d25fdb3ba617a (patch)
treecf9f4a50e3c97ce7ac8e9d3bbdd9e012c5d5eb17 /chiselFrontend
parent153ef841e4bd76113736202460de906b4af1138a (diff)
Changed T to _T for generated names (#349)
Prefix temporary names with underscores so Verilator won't trace them Use verilator argument "--trace-underscore" if you want to trace these signals
Diffstat (limited to 'chiselFrontend')
-rw-r--r--chiselFrontend/src/main/scala/chisel3/core/BlackBox.scala2
-rw-r--r--chiselFrontend/src/main/scala/chisel3/core/Module.scala2
2 files changed, 2 insertions, 2 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/core/BlackBox.scala b/chiselFrontend/src/main/scala/chisel3/core/BlackBox.scala
index c1352566..7fe429fa 100644
--- a/chiselFrontend/src/main/scala/chisel3/core/BlackBox.scala
+++ b/chiselFrontend/src/main/scala/chisel3/core/BlackBox.scala
@@ -42,7 +42,7 @@ abstract class BlackBox extends Module {
// Doing so would cause the wrong names to be assigned, since their parent
// is now the module itself instead of the io bundle.
for (id <- _ids; if id ne io) {
- id.forceName(default="T", _namespace)
+ id.forceName(default="_T", _namespace)
id._onModuleClose
}
this
diff --git a/chiselFrontend/src/main/scala/chisel3/core/Module.scala b/chiselFrontend/src/main/scala/chisel3/core/Module.scala
index c700dc1b..c3353d85 100644
--- a/chiselFrontend/src/main/scala/chisel3/core/Module.scala
+++ b/chiselFrontend/src/main/scala/chisel3/core/Module.scala
@@ -191,7 +191,7 @@ extends HasId {
}
// All suggestions are in, force names to every node.
- _ids.foreach(_.forceName(default="T", _namespace))
+ _ids.foreach(_.forceName(default="_T", _namespace))
_ids.foreach(_._onModuleClose)
this
}