Forum Discussion
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.