Re: toVHDL - lazy debug?

Jan Coombs <[email protected]>
Newsgroups gmane.comp.python.myhdl
Message-ID <20150516084206.3df67487@T60A>
On Fri, 15 May 2015 18:07:49 -0400
"Jose M. Gomez Cama" <[email protected]> wrote:

> 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.

Thanks, all fixed.  I had to put the dump at the
indicated line number, ~1006, and remove the
conditional, as I could not adapt it quickly. 

The problem was consistent use of bitwise
operators in a boolean expression. 

I noticed that if there is a mixture of logical
and boolean operators you get a nice error
message:

"myhdl.ConversionError: in
file /.../bcDscHndls.py, line 214: Not supported:
non-boolean argument in logical operator"

but no help for the completely stupid! 

Help much appreciated, now I'll check the rest of
this old code set. 

Kind regards, Jan Coombs. 
-- 

> > El 15/5/2015, a las 16:44, Jan Coombs
> > 
> > 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. 
> > 
> > Jan Coombs. 


------------------------------------------------------------------------------
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.