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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [rtl/] [verilog/] [include/] [dbg_cpu_defines.v] - Blame information for rev 360

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

Line No. Rev Author Line
1 6 julius
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  dbg_cpu_defines.v                                           ////
4
////                                                              ////
5
////                                                              ////
6
////  This file is part of the SoC Debug 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 - 2004 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: dbg_cpu_defines.v,v $
46
// Revision 1.6  2004/04/05 13:52:54  igorm
47
// CPU_WR_CTRL and CPU_RD_CTRL defines changed.
48
//
49
// Revision 1.5  2004/03/31 14:34:09  igorm
50
// data_cnt_lim length changed to reduce number of warnings.
51
//
52
// Revision 1.4  2004/03/28 20:27:02  igorm
53
// New release of the debug interface (3rd. release).
54
//
55
// Revision 1.3  2004/03/22 16:35:46  igorm
56
// Temp version before changing dbg interface.
57
//
58
// Revision 1.2  2004/01/17 17:01:14  mohor
59
// Almost finished.
60
//
61
// Revision 1.1  2004/01/16 14:53:33  mohor
62
// *** empty log message ***
63
//
64
//
65
//
66
 
67
 
68
 
69
// Defining length of the command
70
`define DBG_CPU_CMD_LEN          3'd4
71
`define DBG_CPU_CMD_CNT_WIDTH    3
72
 
73
// Defining length of the access_type field
74
`define DBG_CPU_ACC_TYPE_LEN     3'd4
75
 
76
// Defining length of the address
77
`define DBG_CPU_ADR_LEN          6'd32
78
 
79
// Defining length of the length register
80
`define DBG_CPU_LEN_LEN          5'd16
81
 
82
// Defining total length of the DR needed
83
//define DBG_CPU_DR_LEN           (`DBG_CPU_ACC_TYPE_LEN + `DBG_CPU_ADR_LEN + `DBG_CPU_LEN_LEN)
84
`define DBG_CPU_DR_LEN           52
85
// Defining length of the CRC
86
`define DBG_CPU_CRC_LEN          6'd32
87
`define DBG_CPU_CRC_CNT_WIDTH    6
88
 
89
// Defining length of status
90
`define DBG_CPU_STATUS_LEN       3'd4
91
`define DBG_CPU_STATUS_CNT_WIDTH 3
92
 
93
// Defining length of the data
94
//define DBG_CPU_DATA_CNT_WIDTH      `DBG_CPU_LEN_LEN + 3
95
`define DBG_CPU_DATA_CNT_WIDTH    19
96
//define DBG_CPU_DATA_CNT_LIM_WIDTH   `DBG_CPU_LEN_LEN
97
`define DBG_CPU_DATA_CNT_LIM_WIDTH 16
98
// Defining length of the control register
99
`define DBG_CPU_CTRL_LEN         2
100
 
101
//Defining commands
102
`define DBG_CPU_GO               4'h0
103
`define DBG_CPU_RD_COMM          4'h1
104
`define DBG_CPU_WR_COMM          4'h2
105
`define DBG_CPU_RD_CTRL          4'h3
106
`define DBG_CPU_WR_CTRL          4'h4
107
 
108
// Defining access types for wishbone
109
`define DBG_CPU_WRITE            4'h2
110
`define DBG_CPU_READ             4'h6
111
 
112
 

powered by: WebSVN 2.1.0

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