Forum Discussion
Altera_Forum
Honored Contributor
21 years agoAbout external SRAM
Hi, I have problems with my NIOS and external SRAM. any of your help are appreciated. the case is as following: I have a board built of my own, the board contain a Stratix chip EP1S20F7...
Altera_Forum
Honored Contributor
21 years ago --- Quote Start --- originally posted by yesdingsheng@Apr 17 2005, 08:47 AM hi:qxc!
have you done that question?i am now meeting the same with you,i have tried the ways as them said,but i still failed!can you give me some ideas,thanks in advance! --- Quote End --- I have done the experiment using development board that the same as qxc have been described. I added the ram as user logic.My user logic interface file : module sraminterface(ram_data,ram_addr,ram_we,ram_oe); inout [31:0]ram_data; input [15:0]ram_addr; input ram_we,ram_oe; endmodule and my project's top entity file: module sram(clk,rst,ram_addr,ram_oe,ram_we,ram_data); input clk,rst; output ram_we,ram_oe; output [15:0]ram_addr; inout [31:0]ram_data; sramsopc mysram(clk,rst,ram_addr,ram_oe,ram_we,ram_data); endmodule my c file is: # include <stdio.h> int main() { printf("hello from nios ii!\n"); return 0; } During the experiment ,I encountered two problem: 1, In my user logic interface file , I set sram address width as 16bits,but in sopc bulilder generated file,it became to 18bits . 2,there is no warning or error but the string displayed on the nios2 console is not "Hello from Nios II!".just some strange code. I wonder what's happened.