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

Subversion Repositories dbg_interface

[/] [dbg_interface/] [trunk/] [rtl/] [verilog/] [dbg_cpu_defines.v] - Blame information for rev 139

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

Line No. Rev Author Line
1 100 mohor
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  dbg_cpu_defines.v                                           ////
4
////                                                              ////
5
////                                                              ////
6 139 igorm
////  This file is part of the SoC Debug Interface.               ////
7 100 mohor
////  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: not supported by cvs2svn $
46 139 igorm
// Revision 1.3  2004/03/22 16:35:46  igorm
47
// Temp version before changing dbg interface.
48
//
49 138 igorm
// Revision 1.2  2004/01/17 17:01:14  mohor
50
// Almost finished.
51
//
52 101 mohor
// Revision 1.1  2004/01/16 14:53:33  mohor
53
// *** empty log message ***
54 100 mohor
//
55
//
56 101 mohor
//
57 139 igorm
 
58
 
59 100 mohor
 
60 139 igorm
// Defining length of the command
61
`define DBG_CPU_CMD_LEN          3'd4
62
`define DBG_CPU_CMD_CNT_WIDTH    3
63 100 mohor
 
64 139 igorm
// Defining length of the access_type field
65
`define DBG_CPU_ACC_TYPE_LEN     3'd4
66 100 mohor
 
67 139 igorm
// Defining length of the address
68
`define DBG_CPU_ADR_LEN          6'd32
69 100 mohor
 
70 139 igorm
// Defining length of the length register
71
`define DBG_CPU_LEN_LEN          5'd16
72 100 mohor
 
73 139 igorm
// Defining total length of the DR needed
74
`define DBG_CPU_DR_LEN           (`DBG_CPU_ACC_TYPE_LEN + `DBG_CPU_ADR_LEN + `DBG_CPU_LEN_LEN)
75 100 mohor
 
76 139 igorm
// Defining length of the CRC
77
`define DBG_CPU_CRC_LEN          6'd32
78
`define DBG_CPU_CRC_CNT_WIDTH    6
79 100 mohor
 
80 139 igorm
// Defining length of status
81
`define DBG_CPU_STATUS_LEN       3'd4
82
`define DBG_CPU_STATUS_CNT_WIDTH 3
83 100 mohor
 
84 139 igorm
// Defining length of the data
85
`define DBG_CPU_DATA_CNT_WIDTH   (`DBG_CPU_LEN_LEN + 3)
86 100 mohor
 
87 139 igorm
// Defining length of the control register
88
`define DBG_CPU_CTRL_LEN         2
89 100 mohor
 
90 139 igorm
//Defining commands
91
`define DBG_CPU_GO               4'h0
92
`define DBG_CPU_RD_COMM          4'h1
93
`define DBG_CPU_WR_COMM          4'h2
94
`define DBG_CPU_WR_CTRL          4'h3
95
`define DBG_CPU_RD_CTRL          4'h4
96 100 mohor
 
97 139 igorm
// Defining access types for wishbone
98
`define DBG_CPU_WRITE            4'h2
99
`define DBG_CPU_READ             4'h6
100 138 igorm
 
101 139 igorm
 

powered by: WebSVN 2.1.0

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