Re: [myhdl-list] Pre-Init RAM
Brought to you by:
jandecaluwe
From: Daryl W. <dw...@ou...> - 2014-07-21 23:56:43
|
Chris, Thanks for the reply. At first, I thought user-defined code would be just the thing, but I couldn't figure out a way to suppress the signal instantiation in the MyHDL-generated output, and then provide my own to replace it. So, I gave up and tried this. I'll read up on the initial values support link you provided and see what I can see. -Daryl > To: myh...@li... > From: chr...@gm... > Date: Mon, 21 Jul 2014 18:21:04 -0500 > Subject: Re: [myhdl-list] Pre-Init RAM > > On 7/21/14 4:50 PM, Daryl Wasden wrote: > > > > > http://article.gmane.org/gmane.comp.python.myhdl/2235 > > > > Its a long thread with lots of discussion. The use-case for converting > > initial values that I find most interesting is the pre-init RAM for > > FPGAs. I have used this extensively with xst and VHDL. I often use an > > array of signed numbers for storing filter coefficients, twiddle factors > > for FFTs, and other quantities. Sometimes, I want these things to be > > modifiable at run-time (which prevents me from using the case > > structure/tuple of ints method). I prefer to write it into my RTL, > > because it allows the synthesis tool to choose between block RAM, > > distributed RAM, etc. for me. Unless I have a compelling reason to worry > > about these low level details, I'd rather not. > > Code exists to enable initial values but the difficult > part has been making sure support is consistent across > synthesis vendors (mainly FPGA). Since we have not had > someone willing to test all the vendors and verify the > generic approach we have not been able to turn it on. > > The latest information on the initial value support can be > found here (this is probably a little outdated): > http://dev.myhdl.org/ideas/initial-values.html > > The previous does not require a separate function call but > will use the initial value in the declaration (instantiation) > as the init value. > > Maybe we need a hook to provide people with there own approach. > One such hook is using the "user defined" modules. This way > you can write whatever VHDL you need to generate the initial > values. This might be the best option until we know the > generic method is supported by "most" tools. > > Regards, > Chris > > > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list |