Thread: [myhdl-list] Ram initialisation
Brought to you by:
jandecaluwe
From: Nicolas P. <ni...@aa...> - 2016-01-08 17:37:53
|
Hi, I am trying to generate a RAM with initial values. Here is the code : def MemoryGene1000Hz( ... ): data_length = len(dia) # Instanciate RAM array ram = [Signal(intbv(0)[data_length:]) for i in range(2**len(addra))] # Init RAM with full scale sinus (48 samples) scale_factor = (2**(data_length-1)) - 1 for i in range(48) : v = int(sin(i*2*pi/48) * scale_factor) ram[i] = Signal(intbv(v)[data_length:]) #print(i, "%6.6X" % ram[i]) ... VHDL code generated is as follows : type t_array_ram is array(0 to 256-1) of unsigned(23 downto 0); signal ram: t_array_ram; The ram array is not initialised. Bug or bad code ? Nicolas -- *Nicolas PINAULT R&D electronics engineer *** ni...@aa... <mailto:ni...@aa...> *AATON-Digital* 38000 Grenoble - France Tel +33 4 7642 9550 http://www.aaton.com http://www.transvideo.eu French Technologies for Film and Digital Cinematography Follow us on Twitter @Aaton_Digital @Transvideo_HD Like us on Facebook https://www.facebook.com/AatonDigital |
From: Christopher F. <chr...@gm...> - 2016-01-08 18:09:42
|
On 1/8/16 9:08 AM, Nicolas Pinault wrote: > Hi, > > I am trying to generate a RAM with initial values. > <snip> > > The ram array is not initialised. > > Bug or bad code ? > Neither, the feature has not been completed and enabled yet https://github.com/jandecaluwe/myhdl/issues/105 Regards Chris |
From: Nicolas P. <ni...@aa...> - 2016-01-11 09:52:05
|
Le 08/01/2016 19:09, Christopher Felton a écrit : > On 1/8/16 9:08 AM, Nicolas Pinault wrote: >> Hi, >> >> I am trying to generate a RAM with initial values. >> > <snip> >> The ram array is not initialised. >> >> Bug or bad code ? >> > Neither, the feature has not been completed and enabled > yet https://github.com/jandecaluwe/myhdl/issues/105 Ok. Great ! Any idea for release time ? Nicolas > > Regards > Chris > > > > ------------------------------------------------------------------------------ > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > . > -- *Nicolas PINAULT R&D electronics engineer *** ni...@aa... <mailto:ni...@aa...> *AATON-Digital* 38000 Grenoble - France Tel +33 4 7642 9550 http://www.aaton.com http://www.transvideo.eu French Technologies for Film and Digital Cinematography Follow us on Twitter @Aaton_Digital @Transvideo_HD Like us on Facebook https://www.facebook.com/AatonDigital |
From: Christopher F. <chr...@gm...> - 2016-01-12 14:40:12
|
On 1/11/2016 1:24 AM, Nicolas Pinault wrote: > Le 08/01/2016 19:09, Christopher Felton a écrit : >> On 1/8/16 9:08 AM, Nicolas Pinault wrote: >>> Hi, >>> >>> I am trying to generate a RAM with initial values. >>> >> <snip> >>> The ram array is not initialised. >>> >>> Bug or bad code ? >>> >> Neither, the feature has not been completed and enabled >> yet https://github.com/jandecaluwe/myhdl/issues/105 > Ok. Great ! > Any idea for release time ? More complicated question than most would like :) All devs are volunteers and most have other commitments. Bugs are typically addressed timely enhancements depend on availability. Based on past releases, the next release 1.0 will be awhile. But with that said, the trunk is very stable, many use the latest master branch. Regards, Chris |
From: Nicolas P. <ni...@aa...> - 2016-01-12 15:38:14
|
Le 12/01/2016 15:36, Christopher Felton a écrit : > On 1/11/2016 1:24 AM, Nicolas Pinault wrote: >> Le 08/01/2016 19:09, Christopher Felton a écrit : >>> On 1/8/16 9:08 AM, Nicolas Pinault wrote: >>>> Hi, >>>> >>>> I am trying to generate a RAM with initial values. >>>> >>> <snip> >>>> The ram array is not initialised. >>>> >>>> Bug or bad code ? >>>> >>> Neither, the feature has not been completed and enabled >>> yet https://github.com/jandecaluwe/myhdl/issues/105 >> Ok. Great ! >> Any idea for release time ? > More complicated question than most would like :) > All devs are volunteers and most have other commitments. > Bugs are typically addressed timely enhancements depend > on availability. Based on past releases, the next release > 1.0 will be awhile. But with that said, the trunk is > very stable, many use the latest master branch. In fact, I was talking about patch release time, not release time for version 1.0. I already use trunk version. Anyway, thanks for clarifying. Regards, Nicolas > Regards, > Chris > > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > . > -- *Nicolas PINAULT R&D electronics engineer *** ni...@aa... <mailto:ni...@aa...> *AATON-Digital* 38000 Grenoble - France Tel +33 4 7642 9550 http://www.aaton.com http://www.transvideo.eu French Technologies for Film and Digital Cinematography Follow us on Twitter @Aaton_Digital @Transvideo_HD Like us on Facebook https://www.facebook.com/AatonDigital |