hi All, I am trying to initialize the BLOCK RAM :- RAM16_S2 in a design using the following statements On simulation using MODELSIM , I dont get the correct values of the BLOCK RAM, looks like the the BLKRAM is failing to Initialize ,inspite of these INIT statements. What could be the reason? Thanks Faizal
you can create your own ROM block declaring an array of std_logic_vector that is constant, i don't remember well if you should necessary ragister adress_in and data_out but for frequency it's better (name are just for example you could choose what you want)
ex:
entity block_ROM is Port ( clk : in std_logic; adress_in : in std_logic (2 downto 0); data_out : out std_logic_vector(7 downto 0) ) end block_ROM;
architecture Behavioral of block_ROM is
signal adress_reg: std_logic_vector(2 downto 0); signal data_reg : std_logic_vector(7 downto 0);
type TYPE_ROM is array (8 downto 0) of std_logic_vector(7 downto 0);
This is what I've been using. The low address stuff is on the right end.
INIT_00 : bit_vector(255 downto 0) := -- VIOLET BLUE GREEN ?????? ORANGE RED BROWN TEAL X"0080017000980101000170010070408000015AD0000101A00001608000707001";
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.