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

Subversion Repositories dbg_interface

[/] [dbg_interface/] [tags/] [sdram_test_working/] [rtl/] [verilog/] [dbg_defines.v] - Blame information for rev 2

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 mohor
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  dbg_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.3  2001/06/01 22:22:35  mohor
49
// This is a backup. It is not a fully working version. Not for use, yet.
50
//
51
// Revision 1.2  2001/05/18 13:10:00  mohor
52
// Headers changed. All additional information is now avaliable in the README.txt file.
53
//
54
// Revision 1.1.1.1  2001/05/18 06:35:08  mohor
55
// Initial release
56
//
57
//
58
 
59
 
60
 
61
// Enable TRACE
62
//`define TRACE_ENABLED   // Uncomment this define to activate the trace
63
 
64
 
65
// Define IDCODE Value
66
`define IDCODE_VALUE  32'hdeadbeef
67
 
68
// Define master clock (RISC clock)
69
`define RISC_CLOCK  50   // Half period = 50 ns => MCLK = 10 Mhz
70
 
71
// Length of the Instruction register
72
`define IR_LENGTH       4
73
 
74
// Length of the Data register (must be equal to the longest scan chain)
75
`define DR_LENGTH       73
76
 
77
// Length of the CHAIN ID register
78
`define CHAIN_ID_LENGTH 4
79
 
80
// Length of the CRC
81
`define CRC_LENGTH      8
82
 
83
// Trace buffer size and counter and write/read pointer width
84
`define TRACECOUNTERWIDTH        10
85
`define TRACEBUFFERLENGTH        1024 //2^10
86
`define TRACESAMPLEWIDTH         36
87
 
88
// OpSelect width
89
`define OPSELECTWIDTH            3
90
`define OPSELECTIONCOUNTER       8    //2^3
91
 
92
// Supported Instructions
93
`define EXTEST          4'b0000
94
`define SAMPLE_PRELOAD  4'b0001
95
`define IDCODE          4'b0010
96
`define CHAIN_SELECT    4'b0011
97
`define INTEST          4'b0100
98
`define CLAMP           4'b0101
99
`define CLAMPZ          4'b0110
100
`define HIGHZ           4'b0111
101
`define DEBUG           4'b1000
102
`define BYPASS          4'b1111
103
 
104
// Chains
105
`define GLOBAL_BS_CHAIN     4'b0000
106
`define RISC_DEBUG_CHAIN    4'b0001
107
`define RISC_TEST_CHAIN     4'b0010
108
`define TRACE_TEST_CHAIN    4'b0011
109
`define REGISTER_SCAN_CHAIN 4'b0100
110
 
111
 
112
// Registers addresses
113
`define MODER_ADR           5'h00
114
`define TSEL_ADR            5'h01
115
`define QSEL_ADR            5'h02
116
`define SSEL_ADR            5'h03
117
 
118
`define RECWP0_ADR          5'h10
119
`define RECWP1_ADR          5'h11
120
`define RECWP2_ADR          5'h12
121
`define RECWP3_ADR          5'h13
122
`define RECWP4_ADR          5'h14
123
`define RECWP5_ADR          5'h15
124
`define RECWP6_ADR          5'h16
125
`define RECWP7_ADR          5'h17
126
`define RECWP8_ADR          5'h18
127
`define RECWP9_ADR          5'h19
128
`define RECWP10_ADR         5'h1A
129
`define RECBP0_ADR          5'h1B
130
 
131
 
132
// Registers default values (after reset)
133
`define MODER_DEF           32'h00000000
134
`define TSEL_DEF            32'h00000000
135
`define QSEL_DEF            32'h00000000
136
`define SSEL_DEF            32'h00000000
137
 
138
`define RECWP0_DEF          32'h00000000
139
`define RECWP1_DEF          32'h00000000
140
`define RECWP2_DEF          32'h00000000
141
`define RECWP3_DEF          32'h00000000
142
`define RECWP4_DEF          32'h00000000
143
`define RECWP5_DEF          32'h00000000
144
`define RECWP6_DEF          32'h00000000
145
`define RECWP7_DEF          32'h00000000
146
`define RECWP8_DEF          32'h00000000
147
`define RECWP9_DEF          32'h00000000
148
`define RECWP10_DEF         32'h00000000
149
`define RECBP0_DEF          32'h00000000
150
 
151
 
152
 
153
 
154
 
155
 
156
 
157
 

powered by: WebSVN 2.1.0

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