diff options
| author | Aditya Naik | 2021-12-01 16:09:34 -0800 |
|---|---|---|
| committer | GitHub | 2021-12-02 00:09:34 +0000 |
| commit | 9dfee489b15642745174d191181ebf6f570db3ca (patch) | |
| tree | f562daae738f1a8cfc93a75ca13c6c67d1967489 /core/src/main/scala/chisel3/Clock.scala | |
| parent | 392ea3c9b5b04e374eeb1bf3b0d87ac9fbf45513 (diff) | |
Refactor Data.toString (#2197)
Provides a more intuitive implementation of toString for Data.
Utilizes the fact that the compiler plugin provides names earlier than
Chisel had in the past so we can accurately guess the name of
signals even in the currently elaborating module.
Co-authored-by: Megan Wachs <megan@sifive.com>
Co-authored-by: Jack Koenig <jack.koenig3@gmail.com>
Diffstat (limited to 'core/src/main/scala/chisel3/Clock.scala')
| -rw-r--r-- | core/src/main/scala/chisel3/Clock.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/chisel3/Clock.scala b/core/src/main/scala/chisel3/Clock.scala index 0400697d..e4be6558 100644 --- a/core/src/main/scala/chisel3/Clock.scala +++ b/core/src/main/scala/chisel3/Clock.scala @@ -14,7 +14,7 @@ object Clock { // TODO: Document this. sealed class Clock(private[chisel3] val width: Width = Width(1)) extends Element { - override def toString: String = s"Clock$bindingToString" + override def toString: String = stringAccessor("Clock") def cloneType: this.type = Clock().asInstanceOf[this.type] |
