Forum Discussion
Altera_Forum
Honored Contributor
21 years ago###External 16 bit SRAM ### Help!
Guys and Gurus, I have a problem here... We have a board with 16 bit IDT SRAM and a 8 bit AMD Flash. We are trying to interface it with 32 bit NIOS. We have failed so far. We need help in con...
Altera_Forum
Honored Contributor
21 years agoHad the same problem once. The thing is you cannot just connect 16 bit RAM to a 32 bit bus. You have to shift the address lines accordingly. If you have a 32 bit bus and 32 bit memory then you don't need A0 and A1. Whe adding 16 bit Flash you don't use A0. This is the way used on the development boards.
Now for your design you have to connect your SRAM like the Flash on the development boards and your 8 bit flash must be connected to A0 as well. What I have found is no matter what I do in the ptf file you cannot fool the system. If will now try to access 16 bit memory in a 32 bit way. I also assume that you have already made the boards and that you are kind of stuck. So here is my solution. My simple solution was to write a VHDL patch that shifts the entire requested address bus, now working correctly from a definition, like the plast post, to make the address profile fit the SRAM of Flash. The only problem is that you lose a little speed. The VHDL code reacts on the Select SRAM signal and translates the address to what it should be. If you cannot get this to work on you side PM me and I will email you the VHDL code. VictorS