Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: niu_mac_xpcs_sm.vri | |
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 | #define DESKEW_LOSS (8'b00000000) | |
36 | #define ALIGN_DET1 (8'b00000001) | |
37 | #define ALIGN_DET2 (8'b00000010) | |
38 | #define ALIGN_DET3 (8'b00000100) | |
39 | #define DESKEW_OK (8'b00001000) | |
40 | #define ALIGN_ERR1 (8'b00010000) | |
41 | #define ALIGN_ERR2 (8'b00100000) | |
42 | #define ALIGN_ERR3 (8'b01000000) | |
43 | ||
44 | sample niu_coverage_mac_xpcs_state_machine.cs_state | |
45 | { | |
46 | state s_DESKEW_LOSS (DESKEW_LOSS); | |
47 | state s_ALIGN_DET1 (ALIGN_DET1); | |
48 | state s_ALIGN_DET2 (ALIGN_DET2); | |
49 | state s_ALIGN_DET3 (ALIGN_DET3); | |
50 | state s_DESKEW_OK (DESKEW_OK); | |
51 | state s_ALIGN_ERR1 (ALIGN_ERR1); | |
52 | //state s_ALIGN_ERR2 (ALIGN_ERR2); // Filter out until we get help from the designer | |
53 | //state s_ALIGN_ERR3 (ALIGN_ERR3); // Filter out until we get help from the designer | |
54 | ||
55 | trans t_LOSS_DET_01 (DESKEW_LOSS -> ALIGN_DET1); | |
56 | trans t_DET1_DET2_02 (ALIGN_DET1 -> ALIGN_DET2); | |
57 | //trans t_DET1_LOSS_04 (ALIGN_DET1 -> DESKEW_LOSS);// Filter out until we get help from the designer | |
58 | trans t_DET2_DET3_06 (ALIGN_DET2 -> ALIGN_DET3); | |
59 | //trans t_DET2_LOSS_08 (ALIGN_DET2 -> DESKEW_LOSS);// Filter out until we get help from the designer | |
60 | trans t_DET3_OK_09 (ALIGN_DET3 -> DESKEW_OK); | |
61 | //trans t_DET3_LOSS_10 (ALIGN_DET3 -> DESKEW_LOSS);// Filter out until we get help from the designer | |
62 | trans t_OK_ERR1_11 (DESKEW_OK -> ALIGN_ERR1); | |
63 | trans t_ERR1_OK_12 (ALIGN_ERR1 -> DESKEW_OK); | |
64 | //trans t_ERR1_ERR2_13 (ALIGN_ERR1 -> ALIGN_ERR2); // Filter out until we get help from the designer | |
65 | //trans t_ERR2_ERR1_14 (ALIGN_ERR2 -> ALIGN_ERR1); // Filter out until we get help from the designer | |
66 | //trans t_ERR3_LOSS_15 (ALIGN_ERR3 -> DESKEW_LOSS);// Filter out until we get help from the designer | |
67 | //trans t_ERR3_ERR2_16 (ALIGN_ERR3 -> ALIGN_ERR2); // Filter out until we get help from the designer | |
68 | ||
69 | // bad transitions | |
70 | // bad_trans t_OK_LOSS_03 (DESKEW_OK -> DESKEW_LOSS); | |
71 | bad_trans t_DET3_ERR1_05 (ALIGN_DET3 -> ALIGN_ERR1); | |
72 | bad_trans t_ERR3_DET1_07 (ALIGN_ERR3 -> ALIGN_DET1); | |
73 | } |