OpenCores
URL https://opencores.org/ocsvn/versatile_mem_ctrl/versatile_mem_ctrl/trunk

Subversion Repositories versatile_mem_ctrl

[/] [versatile_mem_ctrl/] [trunk/] [bench/] [tb.v] - Diff between revs 82 and 94

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 82 Rev 94
Line 7... Line 7...
 
 
   reg         wb_clk, wb_rst;
   reg         wb_clk, wb_rst;
   reg         sdram_clk, sdram_rst;
   reg         sdram_clk, sdram_rst;
   reg         tb_rst;
   reg         tb_rst;
 
 
   wire [31:0] wb0_dat_i;
   wire [31:0] wbm_dat_i [1:nr_of_wbm];
   wire [3:0]  wb0_sel_i;
   wire [3:0]  wbm_sel_i [1:nr_of_wbm];
   wire [31:0] wb0_adr_i;
   wire [31:0] wbm_adr_i [1:nr_of_wbm];
   wire [2:0]  wb0_cti_i;
   wire [2:0]  wbm_cti_i [1:nr_of_wbm];
   wire [1:0]  wb0_bte_i;
   wire [1:0]  wbm_bte_i [1:nr_of_wbm];
   wire        wb0_cyc_i;
   wire        wbm_cyc_i [1:nr_of_wbm];
   wire        wb0_stb_i;
   wire        wbm_stb_i [1:nr_of_wbm];
   wire [31:0] wb0_dat_o;
   wire [31:0] wbm_dat_o [1:nr_of_wbm];
   wire        wb0_ack_o;
   wire        wbm_ack_o [1:nr_of_wbm];
 
   wire        wbm_clk   [1:nr_of_wbm];
   wire [31:0] wb1_dat_i;
   wire        wbm_rst;
   wire [3:0]  wb1_sel_i;
 
   wire [31:0] wb1_adr_i;
   wire [31:0] wb_sdram_dat_i;
   wire [2:0]  wb1_cti_i;
   wire [3:0]  wb_sdram_sel_i;
   wire [1:0]  wb1_bte_i;
   wire [31:0] wb_sdram_adr_i;
   wire        wb1_cyc_i;
   wire [2:0]  wb_sdram_cti_i;
   wire        wb1_stb_i;
   wire [1:0]  wb_sdram_bte_i;
   wire [31:0] wb1_dat_o;
   wire        wb_sdram_cyc_i;
   wire        wb1_ack_o;
   wire        wb_sdram_stb_i;
 
   wire [31:0] wb_sdram_dat_o;
   wire [31:0] wb4_dat_i;
   wire        wb_sdram_ack_o;
   wire [3:0]  wb4_sel_i;
 
   wire [31:0] wb4_adr_i;
 
   wire [2:0]  wb4_cti_i;
 
   wire [1:0]  wb4_bte_i;
 
   wire        wb4_cyc_i;
 
   wire        wb4_stb_i;
 
   wire [31:0] wb4_dat_o;
 
   wire        wb4_ack_o;
 
 
 
   wire [1:0]  ba, bad;
   wire [1:0]  ba, bad;
   wire [12:0] a, ad;
   wire [12:0] a, ad;
   wire [15:0] dq_i;
   wire [15:0] dq_i;
   wire [15:0] dq_o;
   wire [15:0] dq_o;
Line 310... Line 303...
   // Wishbone clock
   // Wishbone clock
   initial
   initial
     begin
     begin
        #0 wb_clk = 1'b0;
        #0 wb_clk = 1'b0;
        forever
        forever
          //#200 wb_clk = !wb_clk;   // 2.5 MHz
          #(wb0_clk_period/2) wb_clk = !wb_clk;
          #20 wb_clk = !wb_clk;   // 25 MHz
 
     end
     end
 
 
   // SDRAM clock
   // SDRAM clock
   initial
   initial
     begin
     begin
        #0 sdram_clk = 1'b0;
        #0 sdram_clk = 1'b0;
        forever
        forever
          #4 sdram_clk = !sdram_clk;   // 125 MHz
          #(sdram_clk_period/2) sdram_clk = !sdram_clk;
          //#5 sdram_clk = !sdram_clk;   // 100 MHz
 
     end
     end
 
 
endmodule // versatile_mem_ctrl_tb
endmodule // versatile_mem_ctrl_tb
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.