Thank you Anand.
I am opening new thread, would you tell me which category I can find you (when choosing ask a Question>>Post To..).
I know it is really awkward of me but I have a final same quick question in this thread before closing it today (because if i closed it right know , it would really be hard to explain the whole problem right from the beginning to somebody else).
I know it is not that difficult for you and it represents a lot for me as this point is key in my design problem.
I have tried different things but at this point I really need some assistance form an experienced person as I am working alone.
I have created 2 processes(proc1 and proc2).
*inside proc1 I have included: r_Mem(0) <= x; r_Mem(1) <= y; r_Mem(2) <= z; to store my outputs.
*proc2 is for reading:
proc2: process(clock, resetn)
begin
if(rising_edge(clock)) then
if (read='1') then
readdata <= r_Mem(slave_address);
end if;
end if;
end process;
*in eclipse:
while (1)
{
int x=IORD(REG32_AVALON_INTERFACE_0_BASE,0) ;
printf("x=%d",x);
}
but I am not reading the right data even when I have put r_Mem(0) <= x"FFFFFFFF"; (as you adviced)
so it seems that the code is not reaching this line,
I have then tried to include the reading process(proc2) lines inside proc1(right after storing in the memory), it did not work,
after that, I tried to store data right after proc 1 in vain,
lastly, I tried to store in memory r_Mem(0) <= x inside proc 2 then readdata <= r_Mem(slave_address);
Any ideas?