Re: [myhdl-list] help - hot bit encoder
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2011-04-22 19:48:34
|
Jan: Sorry for the delay in responding - I'm not very motivated to make things more complex than needed :-) Anyway, I understand you want to investigate and learn, but in that case, please read the manual. I wrote it for you :-) http://www.myhdl.org/doc/current/manual/conversion.html#supported-types It clearly states that the kind of thing your are doing with object 'map' is just not supported by the converter. As I keep repeating, conversion is really very restricted. We really should be discussing anything you don't understand or is unclear in the manual. Your starting assumption should be that almost nothing inside a generator is convertible :-) Don't just keep on trying and be frustrated - first read about the restrictions in the manual. Of course, it remains a software bug to let assertions escape to the user, and I have now added a clearer error message in development. Jan On 04/10/2011 02:17 AM, Jan Coombs wrote: > On 08/04/11 08:31, Jan Coombs wrote: >> On 03/04/11 12:02, Jan Decaluwe wrote: >> > Jan: >> > >> > You struggle . . . >> >> Yes. . . . > > I now have simulation working correctly, though I'm not sure if this is the simplest way to write the code I want. > > Conversion to VHDL or Verilog is a problem. I get the error: > > Traceback (most recent call last): > File "./encodeHotBit_map11.py", line 83, in <module> > test_ehb() > File "./encodeHotBit_map11.py", line 81, in test_ehb > toVHDL(hotBit2binary, iv, ov, Width) > File "/usr/local/lib/python2.6/dist-packages/myhdl/conversion/_toVHDL.py", line 145, in __call__ > genlist = _analyzeGens(arglist, h.absnames) > File "/usr/local/lib/python2.6/dist-packages/myhdl/conversion/_analyze.py", line 165, in _analyzeGens > _isMem(obj) or _isTupleOfInts(obj) > AssertionError > > > Any suggestions? Jan Coombs > > > > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > > > > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Python as a HDL: http://www.myhdl.org VHDL development, the modern way: http://www.sigasi.com Analog design automation: http://www.mephisto-da.com World-class digital design: http://www.easics.com |