Altera_Forum
Honored Contributor
15 years agoDe2-115 sram
Hello, I'm having trouble with the university program SRAM core. There's only one option and that is to select the target board (DE2-115). However, when I go to run my C code it always tells me my processor is not responding.
Because I'm simply just trying to get my SRAM to host my C code (so I can use the DRAM for other purposes) I only have a Nios CPU, switches, and the SRAM in my design. Does anyone know what could be going on or what I should do? Here's everything just for calcification. Also, the system is not accidentally left in a constant reset state; although that has happened to me before! /////////////////////////// VERILOG //////////////////////////////// module dram_system( CLOCK_50, SW, SRAM_DQ, SRAM_ADDR, SRAM_CE_N, SRAM_WE_N, SRAM_OE_N, SRAM_UB_N, SRAM_LB_N); input CLOCK_50; input [17:0] SW; inout [15:0] SRAM_DQ; output[19:0] SRAM_ADDR; output SRAM_CE_N; output SRAM_WE_N; output SRAM_OE_N; output SRAM_UB_N; output SRAM_LB_N; dramImageCPU dCPU ( .clk_0(CLOCK_50), .reset_n(~SW[17]), .in_port_to_the_switches(SW[15:0]), .SRAM_ADDR_from_the_sram_0(SRAM_ADDR), .SRAM_DQ_to_and_from_the_sram_0(SRAM_DQ), .SRAM_CE_N_from_the_sram_0(SRAM_CE_N), .SRAM_WE_N_from_the_sram_0(SRAM_WE_N), .SRAM_OE_N_from_the_sram_0(SRAM_OE_N), .SRAM_UB_N_from_the_sram_0(SRAM_UB_N), .SRAM_LB_N_from_the_sram_0(SRAM_LB_N)); endmodule ///////////////////////////// NIOS ///////////////////////////// # include <iostream> using namespace std; int main (void) { cout << "Running..." << endl; return 0; } -- Like I said, I just want it to run: bash-3.1$ nios2-download -g *.elf Using cable "USB-Blaster [USB-0]", device 1, instance 0x00 Pausing target processor: not responding. Resetting and trying again: FAILED Leaving target processor paused :(:confused::cry::mad: I tried to make a custom SoPC module for the SRAM but I don't think I really know what I'm doing well enough for that, it didn't work. Now, this isn't really all that big a deal project wise since I'm just using the SDRAM controller for other portions but I do need the SRAM to work eventually so I'm open to ideas. Ideally, I would like to make my own core anyway but I don't really know how to do it. Thanks