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

Subversion Repositories dbg_interface

[/] [dbg_interface/] [tags/] [new_debug/] [bench/] [verilog/] [dbg_tb_defines.v] - Blame information for rev 158

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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