[myhdl-list] Re: toVerilog and memories
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2005-08-01 15:41:11
|
Tom Dillon wrote: > Jan, > > That works great, I use it with the following code: > > memL = [intbv(0,min=dout._min,max=dout._max) for i in range(depth)] > while 1: > yield posedge(clk) > if we: > memL[int(addr)][:] = din > # print "ram: wrote %d to %d"%(din,addr) > dout.next = memL[int(addr)] > > This synthesized into Virtex blockRAM using Mentor Precision just fine. Ok. The code was committed to the next release. -- Jan Decaluwe - Resources bvba - http://jandecaluwe.com Losbergenlaan 16, B-3010 Leuven, Belgium Using Python as a hardware description language: http://jandecaluwe.com/Tools/MyHDL/Overview.html |