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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [rtl/] [verilog/] [orpsoc_top/] [orpsoc_top.v] - Diff between revs 360 and 363

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

Rev 360 Rev 363
Line 70... Line 70...
   ////////////////////////////////////////////////////////////////////////
   ////////////////////////////////////////////////////////////////////////
 
 
   //
   //
   // Wires
   // Wires
   //
   //
 
   wire   async_rst;
   wire                       wb_clk, wb_rst;
   wire                       wb_clk, wb_rst;
   wire                       dbg_tck;
   wire                       dbg_tck;
 
 
 
 
   clkgen clkgen0
   clkgen clkgen0
     (
     (
 
 
      .clk_pad_i             (clk_pad_i),
      .clk_pad_i             (clk_pad_i),
 
 
 
      .async_rst_o            (async_rst),
 
 
      .wb_clk_o                  (wb_clk),
      .wb_clk_o                  (wb_clk),
      .wb_rst_o                  (wb_rst),
      .wb_rst_o                  (wb_rst),
 
 
`ifdef JTAG_DEBUG
`ifdef JTAG_DEBUG
      .tck_pad_i                 (tck_pad_i),
      .tck_pad_i                 (tck_pad_i),
Line 427... Line 430...
   //
   //
   wire                                   dbg_if_select;
   wire                                   dbg_if_select;
   wire                                   dbg_if_tdo;
   wire                                   dbg_if_tdo;
   wire                                   jtag_tap_tdo;
   wire                                   jtag_tap_tdo;
   wire                                   jtag_tap_shift_dr, jtag_tap_pause_dr,
   wire                                   jtag_tap_shift_dr, jtag_tap_pause_dr,
                                          jtag_tap_upate_dr, jtag_tap_capture_dr;
                                          jtag_tap_update_dr, jtag_tap_capture_dr;
   //
   //
   // Instantiation
   // Instantiation
   //
   //
 
 
   jtag_tap jtag_tap0
   jtag_tap jtag_tap0
Line 441... Line 444...
      .tms_pad_i                        (tms_pad_i),
      .tms_pad_i                        (tms_pad_i),
      .tck_pad_i                        (dbg_tck),
      .tck_pad_i                        (dbg_tck),
      .trst_pad_i                       (async_rst),
      .trst_pad_i                       (async_rst),
      .tdi_pad_i                        (tdi_pad_i),
      .tdi_pad_i                        (tdi_pad_i),
 
 
      .tdo_padoe_o                      (tdo_padoe_o),
      .tdo_padoe_o                      (),
 
 
      .tdo_o                            (jtag_tap_tdo),
      .tdo_o                            (jtag_tap_tdo),
 
 
      .shift_dr_o                       (jtag_tap_shift_dr),
      .shift_dr_o                       (jtag_tap_shift_dr),
      .pause_dr_o                       (jtag_tap_pause_dr),
      .pause_dr_o                       (jtag_tap_pause_dr),
Line 690... Line 693...
   // Generic main RAM
   // Generic main RAM
   // 
   // 
   ////////////////////////////////////////////////////////////////////////
   ////////////////////////////////////////////////////////////////////////
 
 
   parameter wb_ram_dat_width = 32;
   parameter wb_ram_dat_width = 32;
   parameter wb_ram_adr_width = 25;
   parameter wb_ram_adr_width = 23;
   //parameter ram_wb_mem_size  = 2097152; // 8MB
   //parameter ram_wb_mem_size  = 2097152; // 8MB
   parameter wb_ram_mem_size  = 8388608; // 32MB -- for linux test
   parameter wb_ram_mem_size  = 8388608; // 32MB -- for linux test
 
 
 
 
   // Arbiter logic for sharing the RAM between 2 masters
   // Arbiter logic for sharing the RAM between 2 masters
Line 744... Line 747...
       wb_ram_last_selected <= 2'b01;
       wb_ram_last_selected <= 2'b01;
     else if (!(&wb_ram_mast_select) & wbs_i_mc0_cyc_i & wb_ram_arb_for_ibus)
     else if (!(&wb_ram_mast_select) & wbs_i_mc0_cyc_i & wb_ram_arb_for_ibus)
       wb_ram_last_selected <= 2'b10;
       wb_ram_last_selected <= 2'b10;
 
 
   // Mux input signals to RAM (default to wbs_d_mc0)
   // Mux input signals to RAM (default to wbs_d_mc0)
   assign wb_ram_adr_i = (wb_ram_mast_select[1]) ? wbs_i_mc0_adr_i :
   assign wb_ram_adr_i = (wb_ram_mast_select[1]) ?
                         (wb_ram_mast_select[0]) ? wbs_d_mc0_adr_i : 0;
                         wbs_i_mc0_adr_i[wb_ram_adr_width-1:0] :
 
                         (wb_ram_mast_select[0]) ?
 
                         wbs_d_mc0_adr_i[wb_ram_adr_width-1:0] : 0;
   assign wb_ram_bte_i = (wb_ram_mast_select[1]) ? wbs_i_mc0_bte_i :
   assign wb_ram_bte_i = (wb_ram_mast_select[1]) ? wbs_i_mc0_bte_i :
                         (wb_ram_mast_select[0]) ? wbs_d_mc0_bte_i : 0;
                         (wb_ram_mast_select[0]) ? wbs_d_mc0_bte_i : 0;
   assign wb_ram_cti_i = (wb_ram_mast_select[1]) ? wbs_i_mc0_cti_i :
   assign wb_ram_cti_i = (wb_ram_mast_select[1]) ? wbs_i_mc0_cti_i :
                         (wb_ram_mast_select[0]) ? wbs_d_mc0_cti_i : 0;
                         (wb_ram_mast_select[0]) ? wbs_d_mc0_cti_i : 0;
   assign wb_ram_cyc_i = (wb_ram_mast_select[1]) ? wbs_i_mc0_cyc_i :
   assign wb_ram_cyc_i = (wb_ram_mast_select[1]) ? wbs_i_mc0_cyc_i :

powered by: WebSVN 2.1.0

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