// ========== Copyright Header Begin ==========================================
// OpenSPARC T2 Processor File: dmu_imu_gcs_gc.v
// Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
// 4150 Network Circle, Santa Clara, California 95054, U.S.A.
// * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; version 2 of the License.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
// For the avoidance of doubt, and except that if any non-GPL license
// choice is available it will apply instead, Sun elects to use only
// the General Public License version 2 (GPLv2) at this time for any
// software where a choice of GPL license versions is made
// available with the language indicating that GPLv2 or any later version
// may be used, or where a choice of which version of the GPL is applied is
// otherwise unspecified.
// Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
// CA 95054 USA or visit www.sun.com if you need additional information or
// ========== Copyright Header End ============================================
// Mondo Input Vector from the ISS
// Interface to Group Controller Arbiter
// Interface from the Reply status
// Interface for Interrupt Retry Timer
//############################################################################
//############################################################################
//------------------------------------------------------------------------
// Clock and Reset Signals
//------------------------------------------------------------------------
//------------------------------------------------------------------------
// Mondo Input Vector from the ISS
//------------------------------------------------------------------------
input [63:0] int_req_vec; //Requests to issue and interrupt
//-----------------------------------------------------
// Interface to Group Controller Arbiter
//-----------------------------------------------------
output gcs_req; // Request to group controller arbiter
output [5:0] gcs_ino; // INO for requesting mondo
input gcs_gnt; // Acknowldge for Request signal
//-----------------------------------------------------
// Interface from the Reply status block
//-----------------------------------------------------
input rss2gcs_rply; // Reply type from RSS ack =1 nack =0
input [1:0] rss2gcs_id; // Group controller ID for response
input rss2gcs_valid; // Valid signal to validate respose
//-----------------------------------------------------
// Interface for Interrupt Retry Timer
//-----------------------------------------------------
input [24:0] iss2gcs_counter_limit; // Cuunter Limit fo rthe retry counter
input [1:0] static_gc_id; // Id for group controller
//-----------------------------------------------------
//-----------------------------------------------------
output [`FIRE_DEBUG_WDTH-1:0] fsm_dbg;
//############################################################################
//############################################################################
//------------------------
//------------------------
wire [63:0] int_winner_vec;
wire timer_start; // Signal to start retry timer
wire timer_done; // SIgnal showing the retry timer is done
//############################################################################
//############################################################################
pcie_common_frr_arbiter #(64) frr_gc_arb(
.current_request_vector (int_req_vec),
.update_winner (update_winner),
.current_winner_vector (int_winner_vec)
.timer_start (timer_start),
.timer_done (timer_done),
.iss2gcs_counter_limit (iss2gcs_counter_limit)
.int_req_vec (int_req_vec),
.int_winner_vec (int_winner_vec),
.update_winner (update_winner),
.rss2gcs_rply (rss2gcs_rply),
.rss2gcs_id (rss2gcs_id),
.rss2gcs_valid (rss2gcs_valid),
.timer_start (timer_start),
.timer_done (timer_done),
.static_gc_id (static_gc_id),