From: Sebastien Bourdeauducq Date: Thu, 8 Dec 2011 20:15:24 +0000 (+0100) Subject: verilog: fix unary operator conversion X-Git-Tag: 24jan2021_ls180~2099^2~1166 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf021efa2b3019f7846dd1afa4ac577dc569df49;p=litex.git verilog: fix unary operator conversion --- diff --git a/migen/fhdl/verilog.py b/migen/fhdl/verilog.py index 979005b1..05b231cc 100644 --- a/migen/fhdl/verilog.py +++ b/migen/fhdl/verilog.py @@ -23,7 +23,7 @@ def _printexpr(ns, node): elif isinstance(node, Operator): arity = len(node.operands) if arity == 1: - r = self.op + _printexpr(ns, node.operands[0]) + r = node.op + _printexpr(ns, node.operands[0]) elif arity == 2: r = _printexpr(ns, node.operands[0]) + " " + node.op + " " + _printexpr(ns, node.operands[1]) else: