summaryrefslogtreecommitdiffstats
path: root/chip.py
diff options
context:
space:
mode:
Diffstat (limited to 'chip.py')
-rw-r--r--chip.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/chip.py b/chip.py
index a953a7f..6f93429 100644
--- a/chip.py
+++ b/chip.py
@@ -37,6 +37,12 @@ class Chip:
def setTOP(self, top):
self.top = top
+ def printWarning(self, message, newline=True):
+ if self.printPrefix:
+ message = self.chipID + ": " + message
+ self.top.printWarning(message, newline)
+ self.printPrefix = newline
+
def printInfo(self, message, newline=True):
if self.printPrefix:
message = self.chipID + ": " + message
bues.ch cgit interface