OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [mp3/] [bench/] [verilog/] [dbg_tb_defines.v] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 266 lampret
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  dbgTB_defines.v                                             ////
4
////                                                              ////
5
////                                                              ////
6
////  This file is part of the SoC/OpenRISC Development Interface ////
7
////  http://www.opencores.org/cores/DebugInterface/              ////
8
////                                                              ////
9
////                                                              ////
10
////  Author(s):                                                  ////
11
////       Igor Mohor                                             ////
12
////       igorm@opencores.org                                    ////
13
////                                                              ////
14
////                                                              ////
15
////  All additional information is avaliable in the README.txt   ////
16
////  file.                                                       ////
17
////                                                              ////
18
//////////////////////////////////////////////////////////////////////
19
////                                                              ////
20
//// Copyright (C) 2000,2001 Authors                              ////
21
////                                                              ////
22
//// This source file may be used and distributed without         ////
23
//// restriction provided that this copyright statement is not    ////
24
//// removed from the file and that any derivative work contains  ////
25
//// the original copyright notice and the associated disclaimer. ////
26
////                                                              ////
27
//// This source file is free software; you can redistribute it   ////
28
//// and/or modify it under the terms of the GNU Lesser General   ////
29
//// Public License as published by the Free Software Foundation; ////
30
//// either version 2.1 of the License, or (at your option) any   ////
31
//// later version.                                               ////
32
////                                                              ////
33
//// This source is distributed in the hope that it will be       ////
34
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
35
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
36
//// PURPOSE.  See the GNU Lesser General Public License for more ////
37
//// details.                                                     ////
38
////                                                              ////
39
//// You should have received a copy of the GNU Lesser General    ////
40
//// Public License along with this source; if not, download it   ////
41
//// from http://www.opencores.org/lgpl.shtml                     ////
42
////                                                              ////
43
//////////////////////////////////////////////////////////////////////
44
//
45
// CVS Revision History
46
//
47
// $Log: not supported by cvs2svn $
48
// Revision 1.2  2001/09/18 14:12:43  mohor
49
// Trace fixed. Some registers changed, trace simplified.
50
//
51
// Revision 1.1.1.1  2001/09/13 13:49:19  mohor
52
// Initial official release.
53
//
54
// Revision 1.3  2001/06/01 22:23:40  mohor
55
// This is a backup. It is not a fully working version. Not for use, yet.
56
//
57
// Revision 1.2  2001/05/18 13:10:05  mohor
58
// Headers changed. All additional information is now avaliable in the README.txt file.
59
//
60
// Revision 1.1.1.1  2001/05/18 06:35:12  mohor
61
// Initial release
62
//
63
//
64
 
65
// Following defines are used in the testbench only
66
 
67
  // MODER register
68
  `define ENABLE          32'h00010000
69
  `define CONTIN          32'h00020000
70
 
71
  // TSEL register
72
  `define WPTRIG_0        32'h00000001
73
  `define WPTRIG_1        32'h00000002
74
  `define WPTRIG_2        32'h00000004
75
  `define WPTRIG_3        32'h00000008
76
  `define WPTRIG_4        32'h00000010
77
  `define WPTRIG_5        32'h00000020
78
  `define WPTRIG_6        32'h00000040
79
  `define WPTRIG_7        32'h00000080
80
  `define WPTRIG_8        32'h00000100
81
  `define WPTRIG_9        32'h00000200
82
  `define WPTRIG_10       32'h00000400
83
  `define WPTRIGVALID     32'h00000800
84
 
85
  `define BPTRIG          32'h00001000
86
  `define BPTRIGVALID     32'h00002000
87
 
88
  `define LSSTRIG_0       32'h00010000
89
  `define LSSTRIG_1       32'h00020000
90
  `define LSSTRIG_2       32'h00040000
91
  `define LSSTRIG_3       32'h00080000
92
  `define LSSTRIGVALID    32'h00100000
93
 
94
  `define ISTRIGVALID     32'h00800000
95
 
96
  `define TRIGOP_AND      32'hc0000000
97
  `define TRIGOP_OR       32'h80000000
98
 
99
  // QSEL register
100
  `define WPQUALIF_0      32'h00000001
101
  `define WPQUALIF_1      32'h00000002
102
  `define WPQUALIF_2      32'h00000004
103
  `define WPQUALIF_3      32'h00000008
104
  `define WPQUALIF_4      32'h00000010
105
  `define WPQUALIF_5      32'h00000020
106
  `define WPQUALIF_6      32'h00000040
107
  `define WPQUALIF_7      32'h00000080
108
  `define WPQUALIF_8      32'h00000100
109
  `define WPQUALIF_9      32'h00000200
110
  `define WPQUALIF_10     32'h00000400
111
  `define WPQUALIFVALID   32'h00000800
112
 
113
  `define BPQUALIF        32'h00001000
114
  `define BPQUALIFVALID   32'h00002000
115
 
116
  `define LSSQUALIF_0     32'h00010000
117
  `define LSSQUALIF_1     32'h00020000
118
  `define LSSQUALIF_2     32'h00040000
119
  `define LSSQUALIF_3     32'h00080000
120
  `define LSSQUALIFVALID  32'h00100000
121
 
122
  `define ISQUALIFVALID   32'h00800000
123
 
124
  `define QUALIFOP_AND    32'hc0000000
125
  `define QUALIFOP_OR     32'h80000000
126
 
127
 
128
  // SSEL register
129
  `define WPSTOP_0      32'h00000001
130
  `define WPSTOP_1      32'h00000002
131
  `define WPSTOP_2      32'h00000004
132
  `define WPSTOP_3      32'h00000008
133
  `define WPSTOP_4      32'h00000010
134
  `define WPSTOP_5      32'h00000020
135
  `define WPSTOP_6      32'h00000040
136
  `define WPSTOP_7      32'h00000080
137
  `define WPSTOP_8      32'h00000100
138
  `define WPSTOP_9      32'h00000200
139
  `define WPSTOP_10     32'h00000400
140
  `define WPSTOPVALID   32'h00000800
141
 
142
  `define BPSTOP        32'h00001000
143
  `define BPSTOPVALID   32'h00002000
144
 
145
  `define LSSSTOP_0     32'h00010000
146
  `define LSSSTOP_1     32'h00020000
147
  `define LSSSTOP_2     32'h00040000
148
  `define LSSSTOP_3     32'h00080000
149
  `define LSSSTOPVALID  32'h00100000
150
 
151
  `define ISSTOPVALID   32'h00800000
152
 
153
  `define STOPOP_AND    32'hc0000000
154
  `define STOPOP_OR     32'h80000000
155
 
156
  `define IS_NO_FETCH     32'h00000000
157
  `define IS_FETCH        32'h00200000
158
  `define IS_BRANCH       32'h00400000
159
  `define IS_FETCH_DELAY  32'h00600000
160
 
161
  `define LSS_NO_LOADSTORE      32'h00000000
162
  `define LSS_LOADBYTE_ZEROEXT  32'h00020000
163
  `define LSS_LOADBYTE_SIGNEXT  32'h00030000
164
  `define LSS_LOADHALF_ZEROEXT  32'h00040000
165
  `define LSS_LOADHALF_SIGNEXT  32'h00050000
166
  `define LSS_LOADWORD_ZEROEXT  32'h00060000
167
  `define LSS_LOADWORD_SIGNEXT  32'h00070000
168
  `define LSS_STORE_BYTE        32'h000A0000
169
  `define LSS_STORE_HALF        32'h000C0000
170
 
171
// End: Following defines are used in the testbench only
172
 
173
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.