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

Subversion Repositories dbg_interface

[/] [dbg_interface/] [tags/] [rel_15/] [rtl/] [verilog/] [dbg_wb_defines.v] - Blame information for rev 90

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

Line No. Rev Author Line
1 82 mohor
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  dbg_wb_defines.v                                            ////
4
////                                                              ////
5
////                                                              ////
6
////  This file is part of the SoC/OpenRISC Development Interface ////
7
////  http://www.opencores.org/projects/DebugInterface/           ////
8
////                                                              ////
9
////  Author(s):                                                  ////
10
////       Igor Mohor (igorm@opencores.org)                       ////
11
////                                                              ////
12
////                                                              ////
13
////  All additional information is avaliable in the README.txt   ////
14
////  file.                                                       ////
15
////                                                              ////
16
//////////////////////////////////////////////////////////////////////
17
////                                                              ////
18
//// Copyright (C) 2000 - 2003 Authors                            ////
19
////                                                              ////
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 90 mohor
// Revision 1.2  2004/01/06 17:15:19  mohor
47
// temp3 version.
48
//
49 88 mohor
// Revision 1.1  2003/12/23 15:09:04  mohor
50
// New directory structure. New version of the debug interface.
51 82 mohor
//
52
//
53 88 mohor
//
54 82 mohor
 
55
 
56
// Defining commands for wishbone
57
`define WB_STATUS     3'h0
58
`define WB_WRITE8     3'h1
59
`define WB_WRITE16    3'h2
60
`define WB_WRITE32    3'h3
61
`define WB_GO         3'h4
62
`define WB_READ8      3'h5
63
`define WB_READ16     3'h6
64
`define WB_READ32     3'h7
65
 
66
 
67
// Length of status
68
`define STATUS_LEN      4
69
 
70
 
71
 
72
// Enable TRACE
73
//`define TRACE_ENABLED  // Uncomment this define to activate the trace
74
 
75
// Define number of cpus supported by the dbg interface
76
`define CPU_NUM 2
77
 
78
// Define master clock (CPU clock)
79
//`define       CPU_CLOCK  50   // Half period = 50 ns => MCLK = 10 Mhz
80
`define CPU_CLOCK  2.5   // Half period = 5 ns => MCLK = 200 Mhz
81
 
82
 
83
 
84
// Trace buffer size and counter and write/read pointer width. This can be expanded when more RAM is avaliable
85
`define TRACECOUNTERWIDTH        5
86
`define TRACEBUFFERLENGTH        32 // 2^5
87
 
88
`define TRACESAMPLEWIDTH         36
89
 
90
// OpSelect width
91
`define OPSELECTWIDTH            3
92
`define OPSELECTIONCOUNTER       8    //2^3
93
 
94
// OpSelect (dbg_op_i) signal meaning
95
`define DEBUG_READ_0               0
96
`define DEBUG_WRITE_0              1
97
`define DEBUG_READ_1               2
98
`define DEBUG_WRITE_1              3
99
`define DEBUG_READ_2               4
100
`define DEBUG_WRITE_2              5
101
`define DEBUG_READ_3               6
102
`define DEBUG_WRITE_3              7
103
 
104
// Registers addresses
105
`define MODER_ADR           5'h00
106
`define TSEL_ADR            5'h01
107
`define QSEL_ADR            5'h02
108
`define SSEL_ADR            5'h03
109
`define CPUOP_ADR           5'h04
110
`define CPUSEL_ADR          5'h05
111
`define RECSEL_ADR          5'h10
112
`define MON_CNTL_ADR        5'h11
113
`define WB_CNTL_ADR         5'h12
114
 
115
 
116
// Registers default values (after reset)
117
`define MODER_DEF           2'h0
118
`define TSEL_DEF            32'h00000000
119
`define QSEL_DEF            32'h00000000
120
`define SSEL_DEF            32'h00000000
121
`define CPUOP_DEF           2'h0
122
`define RECSEL_DEF          7'h0
123
`define MON_CNTL_DEF        4'h0

powered by: WebSVN 2.1.0

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