Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - BRAM init (again ?!)

 
Thread Tools Search this Thread
Old 08-14-2004, 02:41 PM   #1
Default BRAM init (again ?!)


Hi I am trying to get initialization to work for BRAM on a spartan 2e.
I already read a lot of posts about this but till so far, maybe due to
my lack of understanding, found a solution. This is what i have so
far, see code, but all i get is a bram initialized to zeros

Michel.



architecture RTL of ax88796 is
component RAMB4_S16

generic (
INIT_00 : bit_vector :=
X"000000000000000000000000000000000000000000000000 000000000000");


port (DI : in STD_LOGIC_VECTOR (15 downto 0);
EN : in STD_logic;
WE : in STD_logic;
RST : in STD_logic;
CLK : in STD_logic;
ADDR : in STD_LOGIC_VECTOR (7 downto 0);
DO : out STD_LOGIC_VECTOR (15 downto 0));
end component;

attribute INIT_00 : string;
attribute INIT_00 of rom_ax:label is
"1001200210012002100120021001200210012002100120021 001200210012002";


begin

rom_ax : RAMB4_S16

generic map (
INIT_00 =>

X"100120021001200210012002100120021001200210012002 1001200210012002"
)

port map(X"0000",'1','0','0',CLK,ax_rom_addr,ax_rom_dat a);





Michel Bieleveld
  Reply With Quote
Old 08-17-2004, 12:05 AM   #2
Mike Treseler
 
Posts: n/a
Default Re: BRAM init (again ?!)
Michel Bieleveld wrote

> Hi I am trying to get initialization to work for BRAM on a spartan 2e.


Consider using synthesis to infer a rom.
http://groups.google.com/groups?q=ram+init+rom+bhb

-- Mike Treseler


Mike Treseler
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
xilinx Bram lastval Hardware 0 10-08-2007 10:22 PM
Using BRAM in state machines zoki111 Hardware 0 09-18-2007 09:38 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46