Re: [myhdl-list] to_VHDL() conversion error: 'intbv' object has no attribute '__name__'
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2015-07-09 21:20:41
|
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 |