Re: [myhdl-list] "Error in user defined VHDL code" should show line, and column for error, rather t
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2010-07-02 19:55:34
|
Angel Ezquerra wrote: > Hi, > > I am trying to create a MyHDL wrapper for some of the most common xilinx FPGA > constructs (such as PLLs and DSP48 blocks). In order to do so I'm following the > example that can be found at: > > http://www.myhdl.org/doc/0.6/manual/conversion_examples.html#conv-usage-custom > > While doing so, I've found some problems. These are certainly in my own code. > However I've noticed that the error message could be improved a bit. The current > message is not very informative in the sense that it tells you that there is a > problem at a certain "index". I assume that the index is an offset from the > beginning of the __vhdl__ string that contains the user defined code. > > Instead, it would be much better if it could tell you the line that contains the > error and also the column offset in that line (if possible). > > This would make it much easier to spot where the error is, specially when the > __vhdl__ string is very long (as in this case). Error messages are often a weak point, but I thought that in the particular case of user-defined code, it was reasonable. I don't immediately understand what you describe here, a small example welcome. > Also (and I don't know if this may be possible at all), it would be nice if the > error message told you the line in which the __vhdl__ string was declared. Probably not trivial. > On a related note, I get the following warning while trying to do the conversion > of this user-defined block: > > "c:\Python26\lib\site-packages\myhdl\conversion\_toVHDL.py:232: DeprecationWarnin > g: functions overriding warnings.showwarning() must support the 'line' argument > category=ToVHDLWarning" > > PErhaps this is a Python 2.6 vs 2.5 issue? Probably. -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Python as a HDL: http://www.myhdl.org VHDL development, the modern way: http://www.sigasi.com Analog design automation: http://www.mephisto-da.com World-class digital design: http://www.easics.com |