T
thomas
Guest
Hi
I am have a problem with this code
process (notAccessStart, notWrite)
begin -- process
if notAccessStart'event and notAccessStart = '1' then
if notWrite = '0' then
case AddressByte is
when "00000" => reg0(rx_index) <= DataByte;
rx_index <= rx_index + 1;
if rx_index = 5 then
rx_index <= 0;
end if;
when "00001" => reg1(rx_index) <= DataByte;
rx_index <= rx_index + 1;
if rx_index = 5 then
rx_index <= 0;
end if;
.
.
.
when "10110" => rx_index <= 0;
when others => null;
end process;
if AddressByte is "00000" I what to start writing to reg0(0) then
reg0(1) then reg0(2) ...
but the first write always starts at rx_index=1 ( reg0(1) )
does anyone know what the problem is ??
regards
thomas
I am have a problem with this code
process (notAccessStart, notWrite)
begin -- process
if notAccessStart'event and notAccessStart = '1' then
if notWrite = '0' then
case AddressByte is
when "00000" => reg0(rx_index) <= DataByte;
rx_index <= rx_index + 1;
if rx_index = 5 then
rx_index <= 0;
end if;
when "00001" => reg1(rx_index) <= DataByte;
rx_index <= rx_index + 1;
if rx_index = 5 then
rx_index <= 0;
end if;
.
.
.
when "10110" => rx_index <= 0;
when others => null;
end process;
if AddressByte is "00000" I what to start writing to reg0(0) then
reg0(1) then reg0(2) ...
but the first write always starts at rx_index=1 ( reg0(1) )
does anyone know what the problem is ??
regards
thomas