1 diff -urN myhdl/conversion/_analyze.py myhdl/conversion/_analyze.py
2 --- myhdl/conversion/_analyze.py 2008-12-21 18:19:52.000000000 +0100
3 +++ myhdl/conversion/_analyze.py 2008-12-26 02:03:04.000000000 +0100
8 + def visitIfExp(self, node, *args):
9 + self.visit(node.test)
10 + self.visit(node.then)
11 + self.visit(node.else_)
13 def visitPrintnl(self, node, *args):
14 if node.dest is not None:
15 self.raiseError(node, _error.NotSupported, "printing to a file with >> syntax")
17 if (len(choices) == item1._nritems) or (node.else_ is not None):
18 node.isFullCase = True
20 + def visitIfExp(self, node, *args):
21 + self.visit(node.test, *args)
22 + self.refStack.push()
23 + self.visit(node.then, *args)
25 + self.refStack.push()
26 + self.visit(node.else_, *args)
29 def visitListComp(self, node, *args):
30 mem = node.obj = _Ram()
31 self.visit(node.expr, _access.INPUT, _kind.DECLARATION)
32 diff -urN myhdl/conversion/_toVHDL.py myhdl/conversion/_toVHDL.py
33 --- myhdl/conversion/_toVHDL.py 2008-12-23 19:21:05.000000000 +0100
34 +++ myhdl/conversion/_toVHDL.py 2008-12-26 01:52:23.000000000 +0100
35 @@ -1105,6 +1105,15 @@
39 + def visitIfExp(self, node, *args):
41 + self.visit(node.then)
42 + self.write(") when (")
43 + self.visit(node.test)
44 + self.write(") else (")
45 + self.visit(node.else_)
48 def visitKeyword(self, node, *args):
51 diff -urN myhdl/conversion/_toVerilog.py myhdl/conversion/_toVerilog.py
52 --- myhdl/conversion/_toVerilog.py 2008-12-21 18:19:52.000000000 +0100
53 +++ myhdl/conversion/_toVerilog.py 2008-12-26 01:51:57.000000000 +0100
58 + def visitIfExp(self, node, *args):
60 + self.visit(node.test)
62 + self.visit(node.then)
64 + self.visit(node.else_)
67 def visitKeyword(self, node, *args):