![]() |
|
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |