diff options
| author | Adam Izraelevitz | 2016-11-02 13:27:43 -0700 |
|---|---|---|
| committer | Andrew Waterman | 2016-11-02 13:27:43 -0700 |
| commit | 30b0d0e2b7e104dd16102f17a03d25fdb3ba617a (patch) | |
| tree | cf9f4a50e3c97ce7ac8e9d3bbdd9e012c5d5eb17 /chiselFrontend/src/main | |
| parent | 153ef841e4bd76113736202460de906b4af1138a (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/src/main')
| -rw-r--r-- | chiselFrontend/src/main/scala/chisel3/core/BlackBox.scala | 2 | ||||
| -rw-r--r-- | chiselFrontend/src/main/scala/chisel3/core/Module.scala | 2 |
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 } |
