Re: [myhdl-list] toVHDL - lazy debug?
Brought to you by:
jandecaluwe
From: Jose M. G. C. <ch...@gm...> - 2015-05-15 22:07:59
|
Dear Jan, I think this should come from a non initialized Signal, or some forgot .next. In any case, I have this lines just after the visit_Compare: def visit_Compare(self, node): node.vhd = vhd_boolean() self.generic_visit(node) left, op, right = node.left, node.ops[0], node.comparators[0] if left.vhd is None: print(ast.dump(node)) The dump should provide you some hints. Best, Jose M. > El 15/5/2015, a las 16:44, Jan Coombs <jen...@mu...> escribió: > > 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 > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list |