Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: ncu_io_sample.vrh | |
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 ncu_mio_intf_req_cov (ncu_cov_ios.ncu_mio_ssi_mosi) | |
36 | { | |
37 | state mio_req (1'b1); | |
38 | } | |
39 | sample ncu_mio_intf_res_cov (ncu_cov_ios.mio_ncu_ssi_miso) | |
40 | { | |
41 | state mio_res (1'b1); | |
42 | } | |
43 | sample ncu_mio_intf_int_cov (ncu_cov_ios.mio_ncu_ext_int_l) | |
44 | { | |
45 | state mio_int (1'b1); | |
46 | } | |
47 | ||
48 | ||
49 | sample ncu_siu_intf_req_cnt (ncu_siu_req_cnt) | |
50 | { | |
51 | m_state REQ_ASSERT (1:5) ; | |
52 | } | |
53 | ||
54 | sample ssi_ufsm_cov (ncu_cov_ios.if_sm) | |
55 | { | |
56 | state IDLE (2'b00) ; | |
57 | state ACPT (2'b01) ; | |
58 | // state DROP (2'b10) ; | |
59 | trans IDLE_to_ACPT ("IDLE" -> "ACPT"); | |
60 | // trans IDLE_to_DROP ("IDLE" -> "DROP"); | |
61 | trans ACPT_to_IDLE ("ACPT" -> "IDLE"); | |
62 | // trans DROP_to_IDLE ("DROP" -> "IDLE"); | |
63 | } | |
64 | ||
65 | sample ssi_fsm_cov (ncu_cov_ios.ssi_sm) | |
66 | { | |
67 | state IDLE (3'b000) ; | |
68 | state REQ (3'b001) ; | |
69 | state WDATA (3'b011) ; | |
70 | state REQ_PAR (3'b101) ; | |
71 | state ACK (3'b111) ; | |
72 | state RDATA (3'b110) ; | |
73 | state ACK_PAR (3'b010) ; | |
74 | trans IDLE_to_REQ ("IDLE" -> "REQ"); | |
75 | trans REQ_to_REQ_PAR ("REQ" -> "REQ_PAR"); | |
76 | trans REQ_to_WDATA ("REQ" -> "WDATA"); | |
77 | trans WDATA_to_REQ_PAR ("WDATA" -> "REQ_PAR"); | |
78 | trans REQ_PAR_to_SSI_ACK ("REQ_PAR" -> "ACK"); | |
79 | trans ACK_to_RDATA ("ACK" -> "RDATA"); | |
80 | trans ACK_to_ACK_PAR ("ACK" -> "ACK_PAR"); | |
81 | trans ACK_to_IDLE ("ACK" -> "IDLE"); | |
82 | trans RDATA_to_ACK_AAR ("RDATA" -> "ACK_PAR"); | |
83 | trans ACK_PAR_to_IDLE ("ACK_PAR" -> "IDLE"); | |
84 | } | |
85 | sample ssi_scksel_cov (ncu_cov_ios.ssi_scksel) | |
86 | { | |
87 | state CLK_DIV8 (2'b00) if(ncu_io_sample_flag); | |
88 | state CLK_DIV4 (2'b10) if(ncu_io_sample_flag); | |
89 | } |