Altera_Forum
Honored Contributor
19 years ago16 bit extrenal SRAM
Dear all,
I have made an NIOS 2 processor which has access to an 16b SRAM. The SOPC tri-state bridge address (total width = 19) [A18 downto A1] is connected to the SRAM address (total width = 18) [A17 to A0]. I have written a write/read loop accessing the SRAM ex. for(i=0;i<100;i++) { unsigned int * sram = (int *)(SRAM_BASE_ADDRESS + i); *sram = i; } When I read out the data again, I get following results 3,3,3,3,7,7,7,7,11,11,11,11,... instead of 0,1,2,3,4,5,6,.... For some reason, the address bits A0 and A1 are ignored .... Have anyone an idea where the problem is situated Kind regards Karel