Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / verif / env / common / coverage / ncu / ncu_cpx_sample.vrhpal
CommitLineData
86530b38
AT
1// ========== Copyright Header Begin ==========================================
2//
3// OpenSPARC T2 Processor File: ncu_cpx_sample.vrhpal
4// Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
5// 4150 Network Circle, Santa Clara, California 95054, U.S.A.
6//
7// * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8//
9// This program is free software; you can redistribute it and/or modify
10// it under the terms of the GNU General Public License as published by
11// the Free Software Foundation; version 2 of the License.
12//
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17//
18// You should have received a copy of the GNU General Public License
19// along with this program; if not, write to the Free Software
20// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21//
22// For the avoidance of doubt, and except that if any non-GPL license
23// choice is available it will apply instead, Sun elects to use only
24// the General Public License version 2 (GPLv2) at this time for any
25// software where a choice of GPL license versions is made
26// available with the language indicating that GPLv2 or any later version
27// may be used, or where a choice of which version of the GPL is applied is
28// otherwise unspecified.
29//
30// Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
31// CA 95054 USA or visit www.sun.com if you need additional information or
32// have any questions.
33//
34// ========== Copyright Header End ============================================
35sample ncu_cpx_intf_type_sample (ncu_cpx_type)
36{
37 state LOAD_RETURN (4'b1000) ;
38 state STORE_RETURN (4'b0100) ;
39 state IFILL_RETURN (4'b1001) ;
40 state INT_RETURN (4'b0111) ;
41 state SOC_RETURN (4'b1101) ;
42}
43
44
45sample ncu_cpx_intf_cpu_sample (ncu_cpx_cpu)
46{
47 state CPU0 (8'h01) ;
48 state CPU1 (8'h02) ;
49 state CPU2 (8'h04) ;
50 state CPU3 (8'h08) ;
51 state CPU4 (8'h10) ;
52 state CPU5 (8'h20) ;
53 state CPU6 (8'h40) ;
54 state CPU7 (8'h80) ;
55
56}
57
58sample ncu_cpx_intf_thr_id_sample (ncu_cpx_cpu_thr_id)
59{
60 m_state THREAD_ID (0:63) ;
61}
62sample ncu_cpx_intf_err_sample (ncu_cpx_err)
63{
64 m_state CPX_ERR (0:2) ;
65}
66
67sample ncu_cpx_intf_b2b_sample (ncu_cpx_b2b)
68{
69 m_state CPX_B2B (2:3) ;
70}
71sample ccx_ncu_intf_intr_vec_cov (ncu_cpx_int_vec)
72{
73 m_state INT_VEC (0:63) ;
74}
75
76sample ncu_cpx_intf_req_to_gnt_cnt (ncu_cpx_req_to_gnt_cnt)
77{
78 m_state REQ2GNT_CNT (2:50);
79}
80sample ncu_cpx_intf_req (ncu_cov_ccx.ncu_cpx_req_cq)
81{
82 state REQ0 (8'b00000001);
83 state REQ1 (8'b00000010);
84 state REQ2 (8'b00000100);
85 state REQ3 (8'b00001000);
86 state REQ4 (8'b00010000);
87 state REQ5 (8'b00100000);
88 state REQ6 (8'b01000000);
89 state REQ7 (8'b10000000);
90}
91sample ncu_cpx_intf_gnt (ncu_cov_ccx.cpx_ncu_grant_cx_in)
92{
93 state GNT0 (8'b00000001);
94 state GNT1 (8'b00000010);
95 state GNT2 (8'b00000100);
96 state GNT3 (8'b00001000);
97 state GNT4 (8'b00010000);
98 state GNT5 (8'b00100000);
99 state GNT6 (8'b01000000);
100 state GNT7 (8'b10000000);
101}
102sample ncu_cpx_intf_pkt_gap (ncu_pcx_pkt_gap_cnt)
103{
104 m_state PKT_GAP (1:10);
105}
106
107