--- Quote Start ---
originally posted by m_llaa@Oct 29 2006, 06:18 AM
hi gomiboy
i am using sram with 1024kb, then i have 20 bits for addressing.
this is my simple program in nios. i can write and read.
for(i=1;i<30;i++)
{
iowr_32direct(base_sram,4*i,i+1);
for(beta=1;beta<5;beta++)
{
}
alpha = iord_32direct(base_sram,4*i);
printf("%x\t",alpha);
}
but
if in second "for" i increse delay for example for(beta=1;beta<10;beta++)
when i read from sram i can just read 0xffffffff
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18990)
--- quote end ---
--- Quote End ---
was anybody able to resolve these issues? i am using IOWR/RD_32DIRECT, in fact i copied and pasted above code into my program, but was unable to write to or read from the SRAM on the DE2 board. furthermore, when i attempt to read from the SRAM, it is overwritten. any ideas?