Re: [myhdl-list] List Of Constants
Brought to you by:
jandecaluwe
From: Josy B. <jos...@gm...> - 2015-03-15 20:13:52
|
> > I Josy, my apologies but I'm running short of time this evening, but at > first glance is it not somewhat similar to this: > https://github.com/hgomersall/Veriutils/blob/master/veriutils/hdl_blocks.p y#L264 Henry, at first sight the operations look alike, but I believe the subtle difference between the _fixed_ index in my case and the _variable_ index in your case explains the behaviour: in your case MyHDL recognises this as a memory (RAM or ROM) access and generates the actual code. In my case it is an _ordinary_ list and is not supported. I tried to wrok around that by giving it a list Of Signals, which convert but with _no initialisation_ which makes all coefficients zero. I finally worked around the _problem_ by writing every coefficient as a single parameter in the function call. My ListOfConstants.py example remains for _exploration_ by the _volunteers_ Regards, Josy |