1
0
mirror of https://github.com/myhdl/myhdl.git synced 2025-01-24 21:52:56 +08:00

cleared out remaining debug-print

This commit is contained in:
Josy Boelen 2021-03-08 09:55:28 +01:00
parent 65c456b680
commit 55e7113311

View File

@ -893,21 +893,17 @@ class _ConvertVisitor(ast.NodeVisitor, _ConversionMixin):
def visit_Constant(self, node): def visit_Constant(self, node):
if node.value is None: if node.value is None:
# NameConstant # NameConstant
print('NameConstant: None')
self.write(nameconstant_map[node.obj]) self.write(nameconstant_map[node.obj])
elif isinstance(node.value, bool): elif isinstance(node.value, bool):
print('NameConstant: bool')
self.write(nameconstant_map[node.obj]) self.write(nameconstant_map[node.obj])
elif isinstance(node.value, int): elif isinstance(node.value, int):
# Num # Num
print('Num')
if self.context == _context.PRINT: if self.context == _context.PRINT:
self.write('"%s"' % node.value) self.write('"%s"' % node.value)
else: else:
self.write(self.IntRepr(node.value)) self.write(self.IntRepr(node.value))
elif isinstance(node.value, str): elif isinstance(node.value, str):
# Str # Str
print('Str')
s = node.value s = node.value
if self.context == _context.PRINT: if self.context == _context.PRINT:
self.write('"%s"' % s) self.write('"%s"' % s)
@ -1204,7 +1200,6 @@ class _ConvertVisitor(ast.NodeVisitor, _ConversionMixin):
self.writeline() self.writeline()
self.write("endcase") self.write("endcase")
else: else:
print (type(obj), type(a))
self.write('$write("%s", ' % fs) self.write('$write("%s", ' % fs)
self.visit(a) self.visit(a)
self.write(');') self.write(');')