Mai89
Junior Member level 2
In this code i have input called IP i want to divide it into sub-parts and each part appear in output (SUb_M) every clock cycle, but after simulation output remains at the same value at every clock cycle (which is the first part)
I need SUb_m to be changed at every clcok cycle.
I need SUb_m to be changed at every clcok cycle.
Code:
process (clk, en)
begin
for i in 0 to addi-1 loop
if(clk='1' and clk'event) then
if(EN='1') then
Sub_M <= w(i); --- w is an array
end if;[syntax=vhdl][/syntax]