Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: ilupeuPioBaseStr.vr | |
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 | virtual class PioBasePEUStr extends PEUStrBase { | |
36 | ||
37 | ||
38 | // ****************************************************************** | |
39 | // The Test Environment objects need to execute the strategy. | |
40 | // ****************************************************************** | |
41 | local PEUTestEnv _env; | |
42 | ||
43 | ||
44 | // ****************************************************************** | |
45 | // Randomization Constraints - These fields are set by the user prior | |
46 | // to executing the strategy. These fields are used as randomization | |
47 | // constraints for the TLP field contained within the sub class. | |
48 | // ****************************************************************** | |
49 | public integer _format_req_prob_3dw = 50; | |
50 | public integer _format_req_prob_4dw = 50; | |
51 | ||
52 | public integer _td_cpl_prob_false = 50; | |
53 | public integer _td_cpl_prob_true = 50; | |
54 | ||
55 | public integer _ep_cpl_prob_false = 50; | |
56 | public integer _ep_cpl_prob_true = 50; | |
57 | ||
58 | public bit [9:0] _len_min = 10'h_001; | |
59 | public bit [9:0] _len_max = 10'h_004; | |
60 | ||
61 | public bit [15:0] _req_id_min = 16'h_0000; | |
62 | public bit [15:0] _req_id_max = 16'h_FFFF; | |
63 | ||
64 | public bit [31:0] _addr_lsb_min = 32'h_0000_0000; | |
65 | public bit [31:0] _addr_lsb_max = 32'h_FFFF_FFFF; | |
66 | ||
67 | public bit [31:0] _addr_msb_min = 32'h_0000_0000; | |
68 | public bit [31:0] _addr_msb_max = 32'h_FFFF_FFFF; | |
69 | ||
70 | ||
71 | // Request Only Fields | |
72 | public bit [3:0] _first_dwbe_min = 4'h_0; | |
73 | public bit [3:0] _first_dwbe_max = 4'h_F; | |
74 | ||
75 | public bit [3:0] _last_dwbe_min = 4'h_0; | |
76 | public bit [3:0] _last_dwbe_max = 4'h_F; | |
77 | ||
78 | public integer _type_req_prob_cfg0 = 1; | |
79 | public integer _type_req_prob_cfg1 = 1; | |
80 | public integer _type_req_prob_io = 1; | |
81 | ||
82 | ||
83 | // Completion Only Fields | |
84 | public bit [15:0] _cpl_id_min = 16'h_0000; | |
85 | public bit [15:0] _cpl_id_max = 16'h_FFFF; | |
86 | ||
87 | public integer _cpl_status_prob_sc = 1; | |
88 | public integer _cpl_status_prob_ur = 0; | |
89 | public integer _cpl_status_prob_crs = 0; | |
90 | public integer _cpl_status_prob_ca = 0; | |
91 | public integer _cpl_status_prob_rsvd1 = 0; | |
92 | public integer _cpl_status_prob_rsvd2 = 0; | |
93 | public integer _cpl_status_prob_rsvd3 = 0; | |
94 | public integer _cpl_status_prob_rsvd4 = 0; | |
95 | ||
96 | public integer _bcm_prob_false = 50; | |
97 | public integer _bcm_prob_true = 50; | |
98 | ||
99 | public bit [63:0] _data_min = 0; | |
100 | public bit [63:0] _data_max = 8'h_FF; | |
101 | ||
102 | ||
103 | ||
104 | ||
105 | // ****************************************************************** | |
106 | // Constructor | |
107 | // ****************************************************************** | |
108 | public task new(PEUTestEnv a_env); | |
109 | } | |
110 | ||
111 | ||
112 | ||
113 | ||
114 | //------------------------------------------------------------------- | |
115 | // Method Name: | |
116 | // Description: | |
117 | //------------------------------------------------------------------- | |
118 | task PioBasePEUStr::new(PEUTestEnv a_env) { | |
119 | ||
120 | ||
121 | super.new(a_env); | |
122 | this._env = a_env; | |
123 | } |