Re: to_VHDL() conversion error: 'intbv' object has no attribute '__name__'

Christopher Felton <[email protected]>
Newsgroups gmane.comp.python.myhdl
Message-ID <[email protected]>
On 7/9/2015 3:34 PM, David Stanford wrote:
> I'm working on some toy problems from projecteuler.org to get a
> better handle on myHDL and have run into a problem converting to
> VHDL.
>

Below this line is incorrect:
     even.next = True if mysum(0) == 0 else False

It needs to be:
     even.next = True if mysum[0] == 0 else False


[] brackets not () for bit-select.  The () are
for ShadowSignals and is elaboration only.

> As far as I can tell, it's something to do with mysum, fib_r1, or
> fib_r2, but I can't figure out what aspect is a problem.  Before the
> wall of text that is the code and the error code, I have 2 questions:
> 1) what's the specific problem I'm running into here? 2) If I wasn't
> emailing this list, where is the right place for me to look for
> solutions to this problem?

1. see above.

2. This mailing-list, #myhdl IRC on freenode, or
    stackoverflow with the myhdl tag.  In some cases
    an issue on github.

Typically creating the test like you did will help
resolve 95% of the issues.  Once in awhile, it might
simulate ok but not convert.

Regards,
Chris


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
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.