Forum Discussion
Nupoor
New Contributor
5 years agoWrite from BRAM to 2D array in transpose manner
I have initialised single port BRAM of IP core with .coe file. BRAM is of 8x10 dimension having we_A,dout,din,addr,clk and declare a 2D array of 10x8 dimension.
I want to read from BRAM and write i...
Nupoor
New Contributor
5 years ago
dat_process: process(clk,addr,i,j,test)
begin
if rising_edge(clk) then
if j = 9 and addr = "1001" then
addr <= "0000";
j <= 0;
i <= 0;
else
M(to_integer(unsigned(addr_array)),j) <= test(i);
addr_array <= addr_array + 1;
i <= i + 1;
if addr_array = "111" and i = 7 then
j <= j + 1;
addr <= addr + 1;
addr_array <= "000";
end if;
end if;
end if;
end process dat_process;
end Behavioral;
I am using the above logic but it runs ok for the 0th column of the array but the rest column value up to 9 is showing undefined.
Nupoor
New Contributor
5 years agoM using Xilinx ISE.