Give a trace name for each exception type
authorCesar Strauss <cestrauss@gmail.com>
Sun, 23 May 2021 18:53:51 +0000 (15:53 -0300)
committerCesar Strauss <cestrauss@gmail.com>
Sun, 23 May 2021 18:53:51 +0000 (15:53 -0300)
This helps to identify them in GTKWave for debugging.

src/openpower/exceptions.py

index e648ba1fc62d4623b2fb473cb8dc19413c91d1f0..9aa09522477e4fc4c0e54d1de156a7150491438c 100644 (file)
@@ -11,5 +11,5 @@ class LDSTException(RecordObject):
     def __init__(self, name=None):
         RecordObject.__init__(self, name=name)
         for f in self._exc_types:
-            setattr(self, f, Signal())
+            setattr(self, f, Signal(name=f))