toVHDL - lazy debug?

Jan Coombs <[email protected]>
Newsgroups gmane.comp.python.myhdl
Message-ID <20150515214412.66618cc9@T60A>
I have a convoluted module which passes outline
testing, and converts to ~500 lines of Verilog,
but will not convert to VHDL. 

On VHDL conversion failure the call stack has
entries for toVHDL and ast, and ends with the
message: 

"AttributeError: 'NoneType' object has no
attribute 'size'"

The resulting .vhd file has a complete list of
signals, but no code. 


I'd prefer not to hack the code apart to find the
problem, are there any simpler ways of
unravelling this problem?


Jan Coombs. 
--

toVHDL
Traceback (most recent call last):
  File "./testStackCacheHandles.py", line 253, in
<module> clk,coreClkEn,rst, NumHndls)
  File
"/usr/local/lib/python2.7/dist-packages/myhdl/conversion/_toVHDL.py",
line 203, in __call__ _convertGens(genlist,
siglist, memlist, vfile) File
"/usr/local/lib/python2.7/dist-packages/myhdl/conversion/_toVHDL.py",
line 461, in _convertGens v.visit(tree) File
"/usr/lib/python2.7/ast.py", line 241, in visit
return visitor(node) File
"/usr/local/lib/python2.7/dist-packages/myhdl/conversion/_toVHDL.py",
line 1224, in visit_Module self.visit(stmt) File
"/usr/lib/python2.7/ast.py", line 241, in visit
return visitor(node) File
"/usr/local/lib/python2.7/dist-packages/myhdl/conversion/_toVHDL.py",
line 1606, in visit_FunctionDef
self.visit_stmt(node.body) File
"/usr/local/lib/python2.7/dist-packages/myhdl/conversion/_toVHDL.py",
line 1432, in visit_stmt self.visit(stmt) File
"/usr/lib/python2.7/ast.py", line 241, in visit
return visitor(node) File
"/usr/local/lib/python2.7/dist-packages/myhdl/conversion/_toVHDL.py",
line 872, in visit_Assign self.visit(rhs) File
"/usr/lib/python2.7/ast.py", line 241, in visit
return visitor(node) File
"/usr/local/lib/python2.7/dist-packages/myhdl/conversion/_toVHDL.py",
line 644, in visit_BinOp self.BitOp(node) File
"/usr/local/lib/python2.7/dist-packages/myhdl/conversion/_toVHDL.py",
line 729, in BitOp self.visit(node.left) File
"/usr/lib/python2.7/ast.py", line 241, in visit
return visitor(node) File
"/usr/local/lib/python2.7/dist-packages/myhdl/conversion/_toVHDL.py",
line 1003, in visit_Compare ns = node.vhd.size
AttributeError: 'NoneType' object has no
attribute 'size'

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.