Re: [myhdl-list] Activation list problem along with list of signals
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2008-08-26 08:21:01
|
Andrew Lentvorski wrote: > Jan Decaluwe wrote: > >> For conversion, I can see an issue because during source code >> manipulation the decorator needs to be stripped off, and from the >> code this seems to assume a single-line decorator. It's a MyHDL >> conversion issue. > > Yep, that's exactly what it is. Again, a better error is probably > warranted. A "Python Syntax Error" shouldn't look the same as a "MyHDL > Python Syntax Error". What I meant with "issue" is that it's a bug. I don't have time now to look at it, but the culprit is probably the following regexp substitution in conversion/_analyze.py: s = re.sub(r"@.*", "", s) The intention it that this strips off decorators from a function's source code. This should be changed to work for any multiline decorator, but this doesn't look immediately trivial. Jan -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Kaboutermansstraat 97, B-3000 Leuven, Belgium From Python to silicon: http://myhdl.jandecaluwe.com |