Hi, I am having a problem with initializing BlockSelect ram that I use through component instantiation and not through IP CORE.
I instantiate it like this:
The problem I have is that many components use their own BlockSelect ram, and I want to instantiate each with a different 'image', so can I put the 'image' on a file? Or do you have another solution? :hmmmm:
thank you in advance
I instantiate it like this:
Code:
RAMB16_S18_S18_inst : RAMB16_S18_S18
generic map (
INIT_A => X"00000", -- Value of output RAM registers on Port A at startup
INIT_B => X"00000", -- Value of output RAM registers on Port B at startup
SRVAL_A => X"00000", -- Port A ouput value upon SSR assertion
SRVAL_B => X"00000", -- Port B ouput value upon SSR assertion
WRITE_MODE_A => "READ_FIRST",
WRITE_MODE_B => "READ_FIRST",
SIM_COLLISION_CHECK => "WARNING",
-- The follosing INIT_xx declarations specify the intiial contents of the RAM
-- Address 0 to 255
INIT_00=> X"...",
INIT_01=> X"...",
....
)
port map (
DOA => buff_douta, -- Port A 16-bit Data Output
DOB => buff_doutb, -- Port B 16-bit Data Output
DOPA => open, -- Port A 2-bit Parity Output
DOPB => open, -- Port B 2-bit Parity Output
ADDRA => addra, -- Port A 10-bit Address Input
ADDRB => addrb, -- Port B 10-bit Address Input
CLKA => clk_falling, -- Port A Clock
CLKB => clk_falling, -- Port B Clock
DIA => dina, -- Port A 16-bit Data Input
DIB => dinb, -- Port B 16-bit Data Input
DIPA => "00", -- Port A 2-bit parity Input
DIPB => "00", -- Port-B 2-bit parity Input
ENA => '1', -- Port A RAM Enable Input
ENB => '1', -- PortB RAM Enable Input
SSRA => '0', -- Port A Synchronous Set/Reset Input
SSRB => '0', -- Port B Synchronous Set/Reset Input
WEA => wea, -- Port A Write Enable Input
WEB => web -- Port B Write Enable Input
);
thank you in advance