Forum Discussion
Altera_Forum
Honored Contributor
19 years agoIDT SRAM
hello I am working with stratix II EP2S60. I cant find any documents about nios programming for sram (IDT SRAM). for example, how can i write a 32 bit data in known address in nios. thanks
Altera_Forum
Honored Contributor
19 years agoHi 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