Altera_Forum
Honored Contributor
15 years agoAdding ssram to NIOS
Hello!
I would like to add some RAM to the NIOS processor. I am using the NEEK kit. So in SOPC builder, I have added ssram. As there was an error message, I also added an AVALLON MM tristate bridge. Apparently SOPC is happy with it, there are no errors. Just in case, I also looked to the SOPC design of Cyclone III NIOS II video sample code. The ssram is connected the same way, so I suppose this part is right. sram clock problem Now when I generate the system, I obtain the following instantiation sample:niossram niossram_inst
(
.address_to_the_ssram (address_to_the_ssram),
.adsc_n_to_the_ssram (adsc_n_to_the_ssram),
.bw_n_to_the_ssram (bw_n_to_the_ssram),
.bwe_n_to_the_ssram (bwe_n_to_the_ssram),
.chipenable1_n_to_the_ssram (chipenable1_n_to_the_ssram),
.data_to_and_from_the_ssram (data_to_and_from_the_ssram),
.out_port_from_the_LEDs (out_port_from_the_LEDs),
.outputenable_n_to_the_ssram (outputenable_n_to_the_ssram),
.reset_n (reset_n),
.sysclk (sysclk)
);
However, in this instantiation, there is no clock dedicated to SRAM. So here is the problem: how do I get an output from NIOS to SRAM? sram address bus problem I have been looking at samples, namely the NEEK_VIP_DEMO_LCD_SVGA, just to know which pins go where. There I noticed that the addresses don't begin at 0, but at 1. I was told that it's because the NIOS input is 8 bit and therefore the 2 last bits are unused. Shouldn't it begin at 2 in this case? Now isn't there a problem if I conect Now I have looked at the pinout of the cyclone_III_3c25_niosII_video and the scram clock is at pin labeled "PIN_A2". So if I don't assign some clock to this PIN_A2 in my pin assignment, I guess the scram will get no clock. Can anyone tell me how to solve this? sram data bus problem Now I have tried to compile as is. But there is another problem: I get this message: Error: Can't place multiple pins assigned to pin location PIN_D1 (IOPAD_X0_Y27_N7) Error: Can't place multiple pins assigned to pin location PIN_H3 (IOPAD_X0_Y22_N7) Pins D1 and H3 are the data bus D1 and D0. But I verified in NEEK_VIP_DEMO_LCD_SVGA (this one compiles) that the data bus is exactly at the same pins. Could anybody give me hints? Thanks. Pascal