Line 88... |
Line 88... |
// PMod I/O
|
// PMod I/O
|
i_aux_rx, o_aux_tx, o_aux_cts, i_gps_rx, o_gps_tx,
|
i_aux_rx, o_aux_tx, o_aux_cts, i_gps_rx, o_gps_tx,
|
// The Quad SPI Flash
|
// The Quad SPI Flash
|
o_qspi_cs_n, o_qspi_sck, o_qspi_dat, i_qspi_dat, o_qspi_mod,
|
o_qspi_cs_n, o_qspi_sck, o_qspi_dat, i_qspi_dat, o_qspi_mod,
|
// The DDR3 SDRAM
|
// The DDR3 SDRAM
|
o_ddr_reset_n, o_ddr_cke,
|
o_ddr_reset_n, o_ddr_cke, o_ddr_bus_oe,
|
o_ddr_cs_n, o_ddr_ras_n, o_ddr_cas_n, o_ddr_we_n,
|
o_ddr_cmd_a, o_ddr_cmd_b, o_ddr_data, i_ddr_data,
|
o_ddr_dqs, o_ddr_dm, o_ddr_odt, o_ddr_bus_oe,
|
|
o_ddr_addr, o_ddr_ba, o_ddr_data, i_ddr_data,
|
|
// The SD Card
|
// The SD Card
|
o_sd_sck, o_sd_cmd, o_sd_data, i_sd_cmd, i_sd_data, i_sd_detect,
|
o_sd_sck, o_sd_cmd, o_sd_data, i_sd_cmd, i_sd_data, i_sd_detect,
|
// Ethernet control (MDIO) lines
|
// Ethernet control (MDIO) lines
|
o_mdclk, o_mdio, o_mdwe, i_mdio,
|
o_mdclk, o_mdio, o_mdwe, i_mdio,
|
// OLED Control interface (roughly SPI)
|
// OLED Control interface (roughly SPI)
|
Line 126... |
Line 124... |
output wire o_qspi_cs_n, o_qspi_sck;
|
output wire o_qspi_cs_n, o_qspi_sck;
|
output wire [3:0] o_qspi_dat;
|
output wire [3:0] o_qspi_dat;
|
input [3:0] i_qspi_dat;
|
input [3:0] i_qspi_dat;
|
output wire [1:0] o_qspi_mod;
|
output wire [1:0] o_qspi_mod;
|
// DDR3 RAM controller
|
// DDR3 RAM controller
|
output wire o_ddr_reset_n, o_ddr_cke,
|
output wire o_ddr_reset_n, o_ddr_cke, o_ddr_bus_oe;
|
o_ddr_cs_n, o_ddr_ras_n, o_ddr_cas_n,o_ddr_we_n;
|
output wire [26:0] o_ddr_cmd_a, o_ddr_cmd_b;
|
output wire o_ddr_dqs;
|
output wire [63:0] o_ddr_data;
|
output wire o_ddr_dm, o_ddr_odt, o_ddr_bus_oe;
|
input [63:0] i_ddr_data;
|
output wire [13:0] o_ddr_addr;
|
|
output wire [2:0] o_ddr_ba;
|
|
output wire [31:0] o_ddr_data;
|
|
input [31:0] i_ddr_data;
|
|
// The SD Card
|
// The SD Card
|
output wire o_sd_sck;
|
output wire o_sd_sck;
|
output wire o_sd_cmd;
|
output wire o_sd_cmd;
|
output wire [3:0] o_sd_data;
|
output wire [3:0] o_sd_data;
|
input i_sd_cmd;
|
input i_sd_cmd;
|
Line 913... |
Line 907... |
//
|
//
|
// DDR3-SDRAM
|
// DDR3-SDRAM
|
//
|
//
|
//
|
//
|
`ifdef SDRAM_ACCESS
|
`ifdef SDRAM_ACCESS
|
|
wire [63:0] w_ram_wide_data;
|
wbddrsdram #(13,13'd1520) rami(i_clk, i_rst,
|
wbddrsdram #(13,13'd1520) rami(i_clk, i_rst,
|
wb_cyc, (wb_stb)&&(ram_sel), wb_we, wb_addr[25:0], wb_data,
|
wb_cyc, (wb_stb)&&(ram_sel), wb_we, wb_addr[24:0],
|
ram_ack, ram_stall, ram_data,
|
{ wb_data, wb_data }, (wb_addr[25])? 8'hf0:8'h0f,
|
o_ddr_reset_n, o_ddr_cke,
|
ram_ack, ram_stall, w_ram_wide_data,
|
o_ddr_cs_n, o_ddr_ras_n, o_ddr_cas_n, o_ddr_we_n,
|
o_ddr_reset_n, o_ddr_cke, o_ddr_bus_oe,
|
o_ddr_dqs, o_ddr_dm, o_ddr_odt, o_ddr_bus_oe,
|
o_ddr_cmd_a, o_ddr_cmd_b, o_ddr_data, i_ddr_data);
|
o_ddr_addr, o_ddr_ba, o_ddr_data, i_ddr_data);
|
|
|
// assign ram_data = (wb_addr[25])?w_ram_wide_data[63:32]:w_ram_wide_data[
|
|
assign ram_data = w_ram_wide_data[31:0];
|
`else
|
`else
|
assign ram_data = 32'h00;
|
assign ram_data = 32'h00;
|
assign ram_stall = 1'b0;
|
assign ram_stall = 1'b0;
|
reg r_ram_ack;
|
reg r_ram_ack;
|
always @(posedge i_clk)
|
always @(posedge i_clk)
|