Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: ncu_siu_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 ============================================ | |
35 | sample siu_ncu_intf_type_sample (ncu_siu_pio) | |
36 | { | |
37 | state SIU_READ_RTN (1'b1); | |
38 | state SIU_MONDO_INT (1'b0); | |
39 | } | |
40 | ||
41 | ||
42 | sample siu_ncu_intf_err_sample (ncu_siu_err) | |
43 | { | |
44 | wildcard state SIU_ERR1 (4'bxxx1); | |
45 | wildcard state SIU_ERR2 (4'bxx1x); | |
46 | wildcard state SIU_ERR3 (4'bx1xx); | |
47 | wildcard state SIU_ERR4 (4'b1xxx); | |
48 | } | |
49 | ||
50 | ||
51 | sample siu_ncu_intf_bufid_sample (ncu_siu_bufid) | |
52 | { | |
53 | state BUFID0 (2'b00) if (ncu_siu_pio===1); | |
54 | //state BUFID1 (2'b01) if (ncu_siu_pio===1); // need tcu to do pio via JTAG | |
55 | } | |
56 | ||
57 | sample siu_ncu_intf_cpu_sample (ncu_siu_cpu) | |
58 | { | |
59 | m_state CPU (0:63) if (ncu_siu_pio===1); | |
60 | } | |
61 | ||
62 | sample ncu_siu_intf_intr_thread_id_cov (ncu_siu_cpu) | |
63 | { | |
64 | m_state CPU (0:63) if (ncu_siu_pio===0); | |
65 | } | |
66 | ||
67 | sample siu_ncu_intf_credid_sample (ncu_siu_credid) | |
68 | { | |
69 | m_state CREDIT (0:15) if (ncu_siu_pio===1); | |
70 | } | |
71 | ||
72 | sample siu_ncu_intf_mondoid_sample (ncu_siu_mondid) | |
73 | { | |
74 | m_state MONDID (0:15) if (ncu_siu_pio===0); | |
75 | } | |
76 | ||
77 | sample siu_ncu_intf_b2b_sample (ncu_siu_b2b) | |
78 | { | |
79 | m_state SIU_B2B (2:16) ; | |
80 | } | |
81 | ||
82 | sample siu_ncu_intf_pkt_gap (siu_ncu_pkt_gap_cnt) | |
83 | { | |
84 | m_state SIU_PKT_GAP (4:13) ; | |
85 | } |