Forum Discussion
Altera_Forum
Honored Contributor
16 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 tristat...
Altera_Forum
Honored Contributor
16 years agoHi,
I found this thread on the search of how to put the ssram into operation. My ssram seems to work now, so I write how I think it is: --- Quote Start --- Shouldn't it begin at 2 in this case? --- Quote End --- You are right, for the ssram it should begin at 2, because it has a 32 bit word size. But in the example there is also the flash memory which has a word size of 16 bit, and both memorys share the same addressbus. So I guess for the sake of the flash it includes a[1]. My sopc don´t use the flash so I left tristate-bridge at defaults. (no bus sharing, because senseless without more than one slave) My sopc has a 20 bit addressbus for the ssram. Makes sense because 2^20 = 1 M, so one address for each byte of the ssram-memory as mentioned in "Avalon Interface Specifications". I took bit 19 to 2 of this addressbus to the flash_sram_a[19..2] pins according to CIII FPGA Starter Board Reference Manual. At least a hello world programm runs in that way (I haven´t tested more than that till now). I hope the tristate bridge manages the writebyteenable bus bw_n to use the complete memory, but still have to test that. --- Quote Start --- 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? --- Quote End --- I think you just have to put a clock signal with apropriate frequency (same frequency as defined in sopc) on this pin. --- Quote Start --- 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? --- Quote End --- Follow the advices in this thread: Damn, I can´t post links so use google and take the first hit. Google for: "problems with pin assignments with cyclone iii starter board" Regards Andreas