Line 119... |
Line 119... |
wire c3_p0_cmd_full;
|
wire c3_p0_cmd_full;
|
wire c3_p0_wr_full;
|
wire c3_p0_wr_full;
|
`endif
|
`endif
|
|
|
wire phy_init_done;
|
wire phy_init_done;
|
|
wire test_mem_ctrl;
|
|
|
// ======================================
|
// ======================================
|
// Xilinx Virtex-6 DDR3 Controller connections
|
// Xilinx Virtex-6 DDR3 Controller connections
|
// ======================================
|
// ======================================
|
`ifdef XILINX_VIRTEX6_FPGA
|
`ifdef XILINX_VIRTEX6_FPGA
|
Line 380... |
Line 381... |
test_module u_test_module (
|
test_module u_test_module (
|
.i_clk ( sys_clk ),
|
.i_clk ( sys_clk ),
|
|
|
.o_irq ( test_reg_irq ),
|
.o_irq ( test_reg_irq ),
|
.o_firq ( test_reg_firq ),
|
.o_firq ( test_reg_firq ),
|
|
.o_mem_ctrl ( test_mem_ctrl ),
|
.i_wb_adr ( s_wb_adr [5] ),
|
.i_wb_adr ( s_wb_adr [5] ),
|
.i_wb_sel ( s_wb_sel [5] ),
|
.i_wb_sel ( s_wb_sel [5] ),
|
.i_wb_we ( s_wb_we [5] ),
|
.i_wb_we ( s_wb_we [5] ),
|
.o_wb_dat ( s_wb_dat_r[5] ),
|
.o_wb_dat ( s_wb_dat_r[5] ),
|
.i_wb_dat ( s_wb_dat_w[5] ),
|
.i_wb_dat ( s_wb_dat_w[5] ),
|
Line 456... |
Line 458... |
|
|
assign phy_init_done = 1'd1;
|
assign phy_init_done = 1'd1;
|
|
|
main_mem u_main_mem (
|
main_mem u_main_mem (
|
.i_clk ( sys_clk ),
|
.i_clk ( sys_clk ),
|
|
.i_mem_ctrl ( test_mem_ctrl ),
|
.i_wb_adr ( s_wb_adr [2] ),
|
.i_wb_adr ( s_wb_adr [2] ),
|
.i_wb_sel ( s_wb_sel [2] ),
|
.i_wb_sel ( s_wb_sel [2] ),
|
.i_wb_we ( s_wb_we [2] ),
|
.i_wb_we ( s_wb_we [2] ),
|
.o_wb_dat ( s_wb_dat_r[2] ),
|
.o_wb_dat ( s_wb_dat_r[2] ),
|
.i_wb_dat ( s_wb_dat_w[2] ),
|
.i_wb_dat ( s_wb_dat_w[2] ),
|
Line 489... |
Line 492... |
.o_wr_mask ( c3_p0_wr_mask ),
|
.o_wr_mask ( c3_p0_wr_mask ),
|
.o_wr_data ( c3_p0_wr_data ),
|
.o_wr_data ( c3_p0_wr_data ),
|
.i_rd_data ( c3_p0_rd_data ),
|
.i_rd_data ( c3_p0_rd_data ),
|
.i_rd_empty ( c3_p0_rd_empty ),
|
.i_rd_empty ( c3_p0_rd_empty ),
|
|
|
|
.i_mem_ctrl ( test_mem_ctrl ),
|
.i_wb_adr ( s_wb_adr [2] ),
|
.i_wb_adr ( s_wb_adr [2] ),
|
.i_wb_sel ( s_wb_sel [2] ),
|
.i_wb_sel ( s_wb_sel [2] ),
|
.i_wb_we ( s_wb_we [2] ),
|
.i_wb_we ( s_wb_we [2] ),
|
.o_wb_dat ( s_wb_dat_r[2] ),
|
.o_wb_dat ( s_wb_dat_r[2] ),
|
.i_wb_dat ( s_wb_dat_w[2] ),
|
.i_wb_dat ( s_wb_dat_w[2] ),
|
Line 592... |
Line 596... |
.i_ddr_rd_valid ( xv6_rd_data_valid ),
|
.i_ddr_rd_valid ( xv6_rd_data_valid ),
|
|
|
.i_phy_init_done ( phy_init_done1 ),
|
.i_phy_init_done ( phy_init_done1 ),
|
.o_phy_init_done ( phy_init_done ), // delayed version
|
.o_phy_init_done ( phy_init_done ), // delayed version
|
|
|
|
.i_mem_ctrl ( test_mem_ctrl ),
|
.i_wb_adr ( s_wb_adr [2] ),
|
.i_wb_adr ( s_wb_adr [2] ),
|
.i_wb_sel ( s_wb_sel [2] ),
|
.i_wb_sel ( s_wb_sel [2] ),
|
.i_wb_we ( s_wb_we [2] ),
|
.i_wb_we ( s_wb_we [2] ),
|
.o_wb_dat ( s_wb_dat_r[2] ),
|
.o_wb_dat ( s_wb_dat_r[2] ),
|
.i_wb_dat ( s_wb_dat_w[2] ),
|
.i_wb_dat ( s_wb_dat_w[2] ),
|