[myhdl-list] Re: always_comb problem
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2004-11-05 12:53:32
|
David Brochart wrote: > Or maybe there is a better way to do it. Could we have comments around the area > of code we want to ignore, like this: > #Translate off > print ... > #Translate on > This would allow us to add more options in the future. I don't like this kind of "comment abuse". Code that is supposed to have some significant effect, should be part of the language definition in my opinion. Something like the above could be alternatively done by defining "pragma's" using the syntax of the language. Note that Verilog (from where I suppose you got the inspiration) has moved to dedicated pragma syntax in SystemVerilog, for synthesis directives etc. A related practical problem is that comments are not part of the abstract syntax tree as produced by the Python compiler package. This would mean that some dedicated special processing would be required to support comment processing - not good. Jan -- Jan Decaluwe - Resources bvba - http://jandecaluwe.com Losbergenlaan 16, B-3010 Leuven, Belgium Python is fun, and now you can design hardware with it: http://jandecaluwe.com/Tools/MyHDL/Overview.html |