[myhdl-list] [patch] convertion of Conditional Expressions in python2.5 and up
Brought to you by:
jandecaluwe
From: Jian L. <jia...@go...> - 2008-12-26 01:57:19
|
Hi Jan, I've made a patch for conversion of Conditional Expressions, e.g: x = true_value if condition else false_value which is new in python 2.5 (not quite new as 3.0 is out :) ) This kind of expressions are widely used in both verilog and vhdl. I think it's worth to convert it as well, so I made the patch.(see attachment) And don't worry about the python2.4. Conditional expression will not pass the syntax check in python 2.4 before it fails. So there is no lose at all. btw. Thanks and good job! MyHDL is so sexy, that I plan to use it in my next project to write a synthesizable cpu. Best Jian |