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

Subversion Repositories sparc64soc

[/] [sparc64soc/] [trunk/] [os2wb/] [s1_top.v] - Diff between revs 2 and 6

Show entire file | Details | Blame | View Log

Rev 2 Rev 6
Line 46... Line 46...
 
 
  // pcx
  // pcx
  wire [4:0]   spc_pcx_req_pq;    // processor to pcx request
  wire [4:0]   spc_pcx_req_pq;    // processor to pcx request
  wire         spc_pcx_atom_pq;   // processor to pcx atomic request
  wire         spc_pcx_atom_pq;   // processor to pcx atomic request
  wire [123:0] spc_pcx_data_pa;  // processor to pcx packet
  wire [123:0] spc_pcx_data_pa;  // processor to pcx packet
 
  wire [4:0]   spc1_pcx_req_pq;    // processor to pcx request
 
  wire         spc1_pcx_atom_pq;   // processor to pcx atomic request
 
  wire [123:0] spc1_pcx_data_pa;  // processor to pcx packet
 
 
  // shadow scan
  // shadow scan
  wire     spc_sscan_so;         // From ifu of sparc_ifu.v
  wire     spc_sscan_so;         // From ifu of sparc_ifu.v
  wire     spc_scanout0;         // From test_stub of test_stub_bist.v
  wire     spc_scanout0;         // From test_stub of test_stub_bist.v
  wire     spc_scanout1;         // From test_stub of test_stub_bist.v
  wire     spc_scanout1;         // From test_stub of test_stub_bist.v
Line 66... Line 69...
 
 
  // cpx interface
  // cpx interface
  wire [4:0] pcx_spc_grant_px; // pcx to processor grant info  
  wire [4:0] pcx_spc_grant_px; // pcx to processor grant info  
  wire       cpx_spc_data_rdy_cx2; // cpx data inflight to sparc  
  wire       cpx_spc_data_rdy_cx2; // cpx data inflight to sparc  
  wire [144:0] cpx_spc_data_cx2;     // cpx to sparc data packet
  wire [144:0] cpx_spc_data_cx2;     // cpx to sparc data packet
 
  wire [4:0] pcx1_spc_grant_px; // pcx to processor grant info  
 
  wire       cpx1_spc_data_rdy_cx2; // cpx data inflight to sparc  
 
  wire [144:0] cpx1_spc_data_cx2;     // cpx to sparc data packet
 
 
  wire [3:0]  const_cpuid;
  wire [3:0]  const_cpuid;
 
  wire [3:0]  const_cpuid1;
  wire [7:0]  const_maskid;           // To ifu of sparc_ifu.v
  wire [7:0]  const_maskid;           // To ifu of sparc_ifu.v
 
 
  // sscan
  // sscan
  wire        ctu_tck;                // To ifu of sparc_ifu.v
  wire        ctu_tck;                // To ifu of sparc_ifu.v
  wire        ctu_sscan_se;           // To ifu of sparc_ifu.v
  wire        ctu_sscan_se;           // To ifu of sparc_ifu.v
Line 119... Line 126...
 
 
  /*
  /*
   * SPARC Core module instance
   * SPARC Core module instance
   */
   */
reg [  4:0] pcx_spc_grant_px_fifo;
reg [  4:0] pcx_spc_grant_px_fifo;
 
reg [  4:0] pcx1_spc_grant_px_fifo;
 
 
  sparc sparc_0 (
  sparc sparc_0 (
 
 
    // Wires connected to SPARC Core outputs
    // Wires connected to SPARC Core outputs
    .spc_pcx_req_pq(spc_pcx_req_pq),
    .spc_pcx_req_pq(spc_pcx_req_pq),
Line 170... Line 178...
    .adbginit_l(adbginit_l),
    .adbginit_l(adbginit_l),
    .gdbginit_l(gdbginit_l)
    .gdbginit_l(gdbginit_l)
 
 
  );
  );
 
 
 
  sparc sparc_1 (
 
 
 
    // Wires connected to SPARC Core outputs
 
    .spc_pcx_req_pq(spc1_pcx_req_pq),
 
    .spc_pcx_atom_pq(spc1_pcx_atom_pq),
 
    .spc_pcx_data_pa(spc1_pcx_data_pa),
 
    .spc_sscan_so(spc_sscan_so),
 
    .spc_scanout0(spc_scanout0),
 
    .spc_scanout1(spc_scanout1),
 
    .tst_ctu_mbist_done(tst_ctu_mbist_done),
 
    .tst_ctu_mbist_fail(tst_ctu_mbist_fail),
 
    .spc_efc_ifuse_data(spc_efc_ifuse_data),
 
    .spc_efc_dfuse_data(spc_efc_dfuse_data),
 
 
 
    // Wires connected to SPARC Core inputs
 
    .pcx_spc_grant_px(pcx1_spc_grant_px),
 
    .cpx_spc_data_rdy_cx2(cpx1_spc_data_rdy_cx2),
 
    .cpx_spc_data_cx2(cpx1_spc_data_cx2),
 
    .const_cpuid(const_cpuid1),
 
    .const_maskid(const_maskid),
 
    .ctu_tck(ctu_tck),
 
    .ctu_sscan_se(ctu_sscan_se),
 
    .ctu_sscan_snap(ctu_sscan_snap),
 
    .ctu_sscan_tid(ctu_sscan_tid),
 
    .ctu_tst_mbist_enable(ctu_tst_mbist_enable),
 
    .efc_spc_fuse_clk1(efc_spc_fuse_clk1),
 
    .efc_spc_fuse_clk2(efc_spc_fuse_clk2),
 
    .efc_spc_ifuse_ashift(efc_spc_ifuse_ashift),
 
    .efc_spc_ifuse_dshift(efc_spc_ifuse_dshift),
 
    .efc_spc_ifuse_data(efc_spc_ifuse_data),
 
    .efc_spc_dfuse_ashift(efc_spc_dfuse_ashift),
 
    .efc_spc_dfuse_dshift(efc_spc_dfuse_dshift),
 
    .efc_spc_dfuse_data(efc_spc_dfuse_data),
 
    .ctu_tst_macrotest(ctu_tst_macrotest),
 
    .ctu_tst_scan_disable(ctu_tst_scan_disable),
 
    .ctu_tst_short_chain(ctu_tst_short_chain),
 
    .global_shift_enable(global_shift_enable),
 
    .ctu_tst_scanmode(ctu_tst_scanmode),
 
    .spc_scanin0(spc_scanin0),
 
    .spc_scanin1(spc_scanin1),
 
    .cluster_cken(cluster_cken),
 
    .gclk(gclk),
 
    .cmp_grst_l(cmp_grst_l),
 
    .cmp_arst_l(cmp_arst_l),
 
    .ctu_tst_pre_grst_l(ctu_tst_pre_grst_l),
 
    .adbginit_l(adbginit_l),
 
    .gdbginit_l(gdbginit_l)
 
 
 
  );
 
 
  /*
  /*
   * SPARC Core to Wishbone Master bridge
   * SPARC Core to Wishbone Master bridge
   */
   */
 
 
wire         fp_req;
wire         fp_req;
wire [123:0] fp_pcx;
wire [123:0] fp_pcx;
wire [  7:0] fp_rdy;
wire [  7:0] fp_rdy;
wire [144:0] fp_cpx;
wire [144:0] fp_cpx;
 
 
os2wb os2wb_inst (
os2wb_dual os2wb_inst (
    .clk(sys_clock_i),
    .clk(sys_clock_i),
    .rstn(~sys_reset_final),
    .rstn(~sys_reset_final),
 
 
    .pcx_req(spc_pcx_req_pq),
    .pcx_req(spc_pcx_req_pq),
    .pcx_atom(spc_pcx_atom_pq),
    .pcx_atom(spc_pcx_atom_pq),
    .pcx_data(spc_pcx_data_pa),
    .pcx_data(spc_pcx_data_pa),
    .pcx_grant(pcx_spc_grant_px),
    .pcx_grant(pcx_spc_grant_px),
    .cpx_ready(cpx_spc_data_rdy_cx2),
    .cpx_ready(cpx_spc_data_rdy_cx2),
    .cpx_packet(cpx_spc_data_cx2),
    .cpx_packet(cpx_spc_data_cx2),
 
 
 
    .pcx1_req(spc1_pcx_req_pq),
 
    .pcx1_atom(spc1_pcx_atom_pq),
 
    .pcx1_data(spc1_pcx_data_pa),
 
    .pcx1_grant(pcx1_spc_grant_px),
 
    .cpx1_ready(cpx1_spc_data_rdy_cx2),
 
    .cpx1_packet(cpx1_spc_data_cx2),
 
 
    .wb_data_i(wbm_data_i),
    .wb_data_i(wbm_data_i),
    .wb_ack(wbm_ack_i),
    .wb_ack(wbm_ack_i),
    .wb_cycle(wbm_cycle_o),
    .wb_cycle(wbm_cycle_o),
    .wb_strobe(wbm_strobe_o),
    .wb_strobe(wbm_strobe_o),
    .wb_we(wbm_we_o),
    .wb_we(wbm_we_o),
Line 257... Line 322...
  /*
  /*
   * Continuous assignments
   * Continuous assignments
   */
   */
 
 
  assign const_cpuid = 4'h0;
  assign const_cpuid = 4'h0;
 
  assign const_cpuid1 = 4'h1;
  assign const_maskid = 8'h20;
  assign const_maskid = 8'h20;
 
 
  // sscan
  // sscan
  assign ctu_tck = 1'b0;
  assign ctu_tck = 1'b0;
  assign ctu_sscan_se = 1'b0;
  assign ctu_sscan_se = 1'b0;

powered by: WebSVN 2.1.0

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