diff --git a/litex/gen/fhdl/verilog.py b/litex/gen/fhdl/verilog.py index 9f3d1b672..773c763f1 100644 --- a/litex/gen/fhdl/verilog.py +++ b/litex/gen/fhdl/verilog.py @@ -155,6 +155,17 @@ def _printnode(ns, at, level, node, target_filter=None): return r else: return "" + elif isinstance(node, Display): + s = "\"" + node.s + "\"" + for arg in node.args: + s += ", " + if isinstance(arg, Signal): + s += ns.get_name(arg) + else: + s += str(arg) + return "\t"*level + "$display(" + s + ");\n" + elif isinstance(node, Finish): + return "\t"*level + "$finish;\n" else: raise TypeError("Node of unrecognized type: "+str(type(node)))