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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [or_debug_proxy/] [includes/] [or_debug_proxy.h] - Diff between revs 39 and 46

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 39 Rev 46
Line 90... Line 90...
 
 
#define DC_WISHBONE       0
#define DC_WISHBONE       0
#define DC_CPU0           1
#define DC_CPU0           1
#define DC_CPU1           2
#define DC_CPU1           2
 
 
 
// Defining access types for wishbone
 
#define DBG_WB_WRITE8           0
 
#define DBG_WB_WRITE16          1
 
#define DBG_WB_WRITE32          2
 
#define DBG_WB_READ8            4
 
#define DBG_WB_READ16           5
 
#define DBG_WB_READ32           6
 
 
 
// Defining access types for wishbone
 
#define DBG_CPU_WRITE            2
 
#define DBG_CPU_READ             6
 
 
// Manually figure the 5-bit reversed values again if they change
// Manually figure the 5-bit reversed values again if they change
#define DI_GO          0
#define DI_GO          0
#define DI_READ_CMD    1
#define DI_READ_CMD    1
#define DI_WRITE_CMD   2
#define DI_WRITE_CMD   2
#define DI_READ_CTRL   3
#define DI_READ_CTRL   3
Line 116... Line 128...
int dbg_reset();
int dbg_reset();
/* set instruction register of JTAG TAP */
/* set instruction register of JTAG TAP */
int dbg_set_tap_ir(uint32_t ir);
int dbg_set_tap_ir(uint32_t ir);
/* Set "scan chain" of debug unit (NOT JTAG TAP!) */
/* Set "scan chain" of debug unit (NOT JTAG TAP!) */
int dbg_set_chain(uint32_t chain);
int dbg_set_chain(uint32_t chain);
 
/* read a byte from wishbone */
 
int dbg_wb_write8(uint32_t adr, uint8_t data);
/* read a word from wishbone */
/* read a word from wishbone */
int dbg_wb_read32(uint32_t adr, uint32_t *data);
int dbg_wb_read32(uint32_t adr, uint32_t *data);
/* write a word to wishbone */
/* write a word to wishbone */
int dbg_wb_write32(uint32_t adr, uint32_t data);
int dbg_wb_write32(uint32_t adr, uint32_t data);
/* read a block from wishbone */
/* read a block from wishbone */

powered by: WebSVN 2.1.0

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