Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / verif / env / cmp / dump_scope.vh
CommitLineData
86530b38
AT
1// ========== Copyright Header Begin ==========================================
2//
3// OpenSPARC T2 Processor File: dump_scope.vh
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`ifdef FSDB_OFF
36`else
37//----------------------------------------------------------
38// Conditionally dump modules in the Bench as defined by the User
39if ($test$plusargs("DUMP_LIMIT")) begin // {
40
41 //--------------------
42 // Conditionally dump verif modules
43 if ($test$plusargs("DUMP_ENV")) begin // {
44 $fsdbDumpvars(1,tb_top);
45 $fsdbDumpvars(0,tb_top.verif_args);
46 $fsdbDumpvars(0,tb_top.nas_top);
47 $fsdbDumpvars(0,tb_top.tlb_sync);
48 $fsdbDumpvars(0,tb_top.ldst_sync);
49 $fsdbDumpvars(0,tb_top.int_sync);
50 //$fsdbDumpvars(0,tb_top.err_sync);
51 //$fsdbDumpvars(0,tb_top.ras);
52 //$fsdbDumpvars(0,tb_top.debug);
53 //$fsdbDumpvars(0,tb_top.monitors);
54 end // }
55
56 //--------------------
57 // Conditionally dump verif modules
58 if ($test$plusargs("DUMP_CCX")) begin // {
59 $fsdbDumpvars(1,tb_top.cpu);
60 $fsdbDumpvars(0,tb_top.cpu.ccx);
61 end // }
62
63
64 //--------------------
65 // Conditionally dump the cores
66 `ifdef CORE_0
67 if ($test$plusargs("DUMP_SPC0")) begin // {
68 $fsdbDumpvars(0,tb_top.intf0);
69 $fsdbDumpvars(0,tb_top.cpu.spc0);
70 $fsdbDumpvars(1,tb_top.cpu);
71 end // }
72 `endif
73 `ifdef CORE_1
74 if ($test$plusargs("DUMP_SPC1")) begin // {
75 $fsdbDumpvars(0,tb_top.intf1);
76 $fsdbDumpvars(0,tb_top.cpu.spc1);
77 $fsdbDumpvars(1,tb_top.cpu);
78 end // }
79 `endif
80 `ifdef CORE_2
81 if ($test$plusargs("DUMP_SPC2")) begin // {
82 $fsdbDumpvars(0,tb_top.intf2);
83 $fsdbDumpvars(0,tb_top.cpu.spc2);
84 $fsdbDumpvars(1,tb_top.cpu);
85 end // }
86 `endif
87 `ifdef CORE_3
88 if ($test$plusargs("DUMP_SPC3")) begin // {
89 $fsdbDumpvars(0,tb_top.intf3);
90 $fsdbDumpvars(0,tb_top.cpu.spc3);
91 $fsdbDumpvars(1,tb_top.cpu);
92 end // }
93 `endif
94 `ifdef CORE_4
95 if ($test$plusargs("DUMP_SPC4")) begin // {
96 $fsdbDumpvars(0,tb_top.intf4);
97 $fsdbDumpvars(0,tb_top.cpu.spc4);
98 $fsdbDumpvars(1,tb_top.cpu);
99 end // }
100 `endif
101 `ifdef CORE_5
102 if ($test$plusargs("DUMP_SPC5")) begin // {
103 $fsdbDumpvars(0,tb_top.intf5);
104 $fsdbDumpvars(0,tb_top.cpu.spc5);
105 $fsdbDumpvars(1,tb_top.cpu);
106 end // }
107 `endif
108 `ifdef CORE_6
109 if ($test$plusargs("DUMP_SPC6")) begin // {
110 $fsdbDumpvars(0,tb_top.intf6);
111 $fsdbDumpvars(0,tb_top.cpu.spc6);
112 $fsdbDumpvars(1,tb_top.cpu);
113 end // }
114 `endif
115 `ifdef CORE_7
116 if ($test$plusargs("DUMP_SPC7")) begin // {
117 $fsdbDumpvars(0,tb_top.intf7);
118 $fsdbDumpvars(0,tb_top.cpu.spc7);
119 $fsdbDumpvars(1,tb_top.cpu);
120 end // }
121 `endif
122
123 if ($test$plusargs("DUMP_BNK01")) begin // {
124 $fsdbDumpvars(1,tb_top.cpu);
125 $fsdbDumpvars(0,tb_top.cpu.l2b0);
126 $fsdbDumpvars(0,tb_top.cpu.l2t0);
127 $fsdbDumpvars(0,tb_top.cpu.l2d0);
128 $fsdbDumpvars(0,tb_top.cpu.l2b1);
129 $fsdbDumpvars(0,tb_top.cpu.l2t1);
130 $fsdbDumpvars(0,tb_top.cpu.l2d1);
131 end // }
132 if ($test$plusargs("DUMP_BNK23")) begin // {
133 $fsdbDumpvars(1,tb_top.cpu);
134 $fsdbDumpvars(0,tb_top.cpu.l2b2);
135 $fsdbDumpvars(0,tb_top.cpu.l2t2);
136 $fsdbDumpvars(0,tb_top.cpu.l2d2);
137 $fsdbDumpvars(0,tb_top.cpu.l2b3);
138 $fsdbDumpvars(0,tb_top.cpu.l2t3);
139 $fsdbDumpvars(0,tb_top.cpu.l2d3);
140 end // }
141 if ($test$plusargs("DUMP_BNK45")) begin // {
142 $fsdbDumpvars(1,tb_top.cpu);
143 $fsdbDumpvars(0,tb_top.cpu.l2b4);
144 $fsdbDumpvars(0,tb_top.cpu.l2t4);
145 $fsdbDumpvars(0,tb_top.cpu.l2d4);
146 $fsdbDumpvars(0,tb_top.cpu.l2b5);
147 $fsdbDumpvars(0,tb_top.cpu.l2t5);
148 $fsdbDumpvars(0,tb_top.cpu.l2d5);
149 end // }
150 if ($test$plusargs("DUMP_BNK67")) begin // {
151 $fsdbDumpvars(1,tb_top.cpu);
152 $fsdbDumpvars(0,tb_top.cpu.l2b6);
153 $fsdbDumpvars(0,tb_top.cpu.l2t6);
154 $fsdbDumpvars(0,tb_top.cpu.l2d6);
155 $fsdbDumpvars(0,tb_top.cpu.l2b7);
156 $fsdbDumpvars(0,tb_top.cpu.l2t7);
157 $fsdbDumpvars(0,tb_top.cpu.l2d7);
158 end // }
159
160end // }
161
162//----------------------------------------------------------
163// Default dumpfile scope
164else begin // {
165 // Dump from TestBench tb_top
166 $fsdbDumpvars(0,tb_top);
167end // }
168
169//----------------------------------------------------------
170if ($test$plusargs("DUMP_ALL")) begin // {
171 // Dump TestBench tb_top and items not instantiated in tb_top (i.e. 0in)
172 $fsdbDumpvars(0);
173end // }
174
175`endif
176
177//----------------------------------------------------------
178//----------------------------------------------------------