Re: [myhdl-list] Tristate top-level ports, (was Hello World)
Brought to you by:
jandecaluwe
From: Jose M. G. C. <ch...@gm...> - 2015-07-10 21:28:29
|
Dear both, The problem with the ternary operator is not myhdl but the VHDL version. The conditional assignment is not available inside procedures before the version 2008. In version 93 the conditional assignment can only be concurrent (always_comb). There is also a comment in the test_ternary.py. Best > El 10/07/2015, a las 22:11, Christopher Felton <chr...@gm...> escribió: > >> On 7/10/15 2:21 AM, Josy Boelen wrote: >> Christopher Felton <chris.felton <at> gmail.com> writes: >> >>> Think I found it #74: >>> https://github.com/jandecaluwe/myhdl/pull/74 >>> >>> For reasons unknown (thus far) this breaks code >>> that previously converted: >>> https://gist.github.com/cfelton/6119313 >> >> MyHDL doesn't always like the ternary construct: >> 'sda_d.next = False if not sda_o else None' >> >> The PR #74 has, IMHO, no influence on the conversion of that construct. >> >> I have seen some of these ternary statements fail, and some not ... >> >> Also see issue #86 > > Josy, > > Makes sense, when I used git bisect it ended up at > the version created after the #74 PR merge (unless > I misinterpreted bisect results). > https://github.com/jandecaluwe/myhdl/issues/98 > > Thanks! > 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/ > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list |