Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / verif / env / niu / txc_sat / vera / include / tx_test_class_defines.vri
// ========== Copyright Header Begin ==========================================
//
// OpenSPARC T2 Processor File: tx_test_class_defines.vri
// 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
// have any questions.
//
// ========== Copyright Header End ============================================
#define PKT_PRT_ERR 64'h1
#define CONF_PART_ERR 64'h2
#define NACK_PKT_RD 64'h4
#define NACK_PERF 64'h8
#define PERF_BUF_PAR_ERR 64'h10
#define TX_RING_OFLOW 64'h20
#define PKT_SIZE_ERR 64'h40
#define MBOX_ERR 64'h80
#define PKT_PRT_ERR_MASK 64'h1
#define CONF_PART_ERR_MASK 64'h2
#define NACK_PKT_RD_MASK 64'h4
#define NACK_PERF_MASK 64'h8
#define PERF_BUF_PAR_ERR_MASK 64'h10
#define TX_RING_OFLOW_MASK 64'h20
#define PKT_SIZE_ERR_MASK 64'h40
#define MBOX_ERR_MASK 64'h80
#define SF_CorrecrError_P0 64'h1
#define SF_UnCorrecrError_P0 64'h2
#define RO_CorrecrError_P0 64'h4
#define RO_UnCorrecrError_P0 64'h8
#define ReorderError_P0 64'h10
#define PacketAssyDead_P0 64'h20
#define SF_CorrecrError_P1 64'h100
#define SF_UnCorrecrError_P1 64'h200
#define RO_CorrecrError_P1 64'h400
#define RO_UnCorrecrError_P1 64'h800
#define ReorderError_P1 64'h1000
#define PacketAssyDead_P1 64'h2000
#define SF_CorrecrError_P2 64'h10000
#define SF_UnCorrecrError_P2 64'h20000
#define RO_CorrecrError_P2 64'h40000
#define RO_UnCorrecrError_P2 64'h80000
#define ReorderError_P2 64'h100000
#define PacketAssyDead_P2 64'h200000
#define SF_CorrecrError_P3 64'h1000000
#define SF_UnCorrecrError_P3 64'h2000000
#define RO_CorrecrError_P3 64'h4000000
#define RO_UnCorrecrError_P3 64'h8000000
#define ReorderError_P3 64'h10000000
#define PacketAssyDead_P3 64'h20000000
// Tx FIFO Error Injection
#define TxFIFO_SF_ERROR (64'h1<<24)
#define TxFIFO_RO_ERROR (64'h2<<24)
#define TxFIFO_CorrectError (64'h1<<16)
#define TxFIFO_UnCorrectError (64'h2<<16)
#define TxFIFO_ErrorAllPkts (64'h4 <<8)
#define TxFIFO_ErrorAltPkts (64'h2 <<8)
#define TxFIFO_ErrorSinglePkts (64'h1 <<8)
#define TxFIFO_ErrorFirstLine 64'h1
#define TxFIFO_ErrorSecondLine 64'h2
#define TxFIFO_ErrorLastLine 64'h4