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

Subversion Repositories openarty

[/] [openarty/] [trunk/] [sw/] [host/] [regdefs.h] - Diff between revs 18 and 30

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

Rev 18 Rev 30
Line 55... Line 55...
#define R_UARTRX        0x0000010e
#define R_UARTRX        0x0000010e
#define R_UARTTX        0x0000010f
#define R_UARTTX        0x0000010f
#define R_GPSRX         0x00000110
#define R_GPSRX         0x00000110
#define R_GPSTX         0x00000111
#define R_GPSTX         0x00000111
// WB Scope registers
// WB Scope registers
#define R_QSCOPE        0x00000120      // Quad SPI scope ctrl
#define R_QSCOPE        0x00000120      // Scope #0: Quad SPI scope ctrl
#define R_QSCOPED       0x00000121      //      and data
#define R_QSCOPED       0x00000121      //      and data
#define R_GPSCOPE       0x00000122      // GPS configuration scope control
#define R_CPUSCOPE      0x00000120      // CPU scope (if so configured)
 
#define R_CPUSCOPED     0x00000121      //      and data
 
#define R_GPSCOPE       0x00000122      // Scope #1: GPS config scope control
#define R_GPSCOPED      0x00000123      //      and data
#define R_GPSCOPED      0x00000123      //      and data
#define R_CFGSCOPE      0x00000122      // ICAPE2 configuration scop control
#define R_CFGSCOPE      0x00000122      // ICAPE2 configuration scop control
#define R_CFGSCOPED     0x00000123      //      and data
#define R_CFGSCOPED     0x00000123      //      and data
#define R_RAMSCOPE      0x00000124      // DDR3 SDRAM Scope
#define R_BUSSCOPE      0x00000122      // WBUBUS scope control
 
#define R_BUSSCOPED     0x00000123      //      and data
 
#define R_RAMSCOPE      0x00000124      // Scope #2: DDR3 SDRAM Scope
#define R_RAMSCOPED     0x00000125      //
#define R_RAMSCOPED     0x00000125      //
#define R_NETSCOPE      0x00000126      // Ethernet debug scope
#define R_NETSCOPE      0x00000126      // Scope #3: Ethernet debug scope
#define R_NETSCOPED     0x00000127      //
#define R_NETSCOPED     0x00000127      //
// RTC Clock Registers
// RTC Clock Registers
#define R_CLOCK         0x00000128
#define R_CLOCK         0x00000128
#define R_TIMER         0x00000129
#define R_TIMER         0x00000129
#define R_STOPWATCH     0x0000012a
#define R_STOPWATCH     0x0000012a
Line 80... Line 84...
// GPS Loop control, 0x0130
// GPS Loop control, 0x0130
#define R_GPS_ALPHA     0x00000130
#define R_GPS_ALPHA     0x00000130
#define R_GPS_BETA      0x00000131
#define R_GPS_BETA      0x00000131
#define R_GPS_GAMMA     0x00000132
#define R_GPS_GAMMA     0x00000132
#define R_GPS_STEP      0x00000133
#define R_GPS_STEP      0x00000133
// Network packet interface, 0x0134
 
// OLED
// OLED
#define R_OLED_CMD      0x00000138
#define R_OLED_CMD      0x00000134
#define R_OLED_CDATA    0x00000139
#define R_OLED_CDATA    0x00000135
#define R_OLED_CDATB    0x0000013a
#define R_OLED_CDATB    0x00000136
#define R_OLED_DATA     0x0000013b
#define R_OLED_DATA     0x00000137
 
// Network packet interface, 0x0184
 
#define R_NET_RXCMD     0x00000138
 
#define R_NET_TXCMD     0x00000139
 
#define R_NET_MACHI     0x0000013a
 
#define R_NET_MACLO     0x0000013b
 
#define R_NET_RXMISS    0x0000013c
 
#define R_NET_RXERR     0x0000013d
 
#define R_NET_RXCRC     0x0000013e
 
#define R_NET_TXCOL     0x0000013f
// Unused: 0x13c-0x13f
// Unused: 0x13c-0x13f
// GPS Testbench: 0x140-0x147
// GPS Testbench: 0x140-0x147
#define R_GPSTB_FREQ    0x00000140
#define R_GPSTB_FREQ    0x00000140
#define R_GPSTB_JUMP    0x00000141
#define R_GPSTB_JUMP    0x00000141
#define R_GPSTB_ERRHI   0x00000142
#define R_GPSTB_ERRHI   0x00000142
Line 156... Line 168...
#define R_CFG_WBSTAR    0x000001f0
#define R_CFG_WBSTAR    0x000001f0
#define R_CFG_TIMER     0x000001f1
#define R_CFG_TIMER     0x000001f1
#define R_CFG_BOOTSTS   0x000001f6
#define R_CFG_BOOTSTS   0x000001f6
#define R_CFG_CTL1      0x000001f8
#define R_CFG_CTL1      0x000001f8
#define R_CFG_BSPI      0x000001ff
#define R_CFG_BSPI      0x000001ff
 
// Network buffer space
 
#define R_NET_RXBUF     0x00000800
 
#define R_NET_TXBUF     0x00000c00
// Block RAM memory space
// Block RAM memory space
#define MEMBASE         0x00008000
#define MEMBASE         0x00008000
#define MEMWORDS        0x00008000
#define MEMWORDS        0x00008000
// Flash memory space
// Flash memory space
#define EQSPIFLASH      0x00400000
#define EQSPIFLASH      0x00400000
 
#define RESET_ADDRESS   0x004e0000
#define FLASHWORDS      (1<<22)
#define FLASHWORDS      (1<<22)
// DDR3 SDRAM memory space
// DDR3 SDRAM memory space
#define RAMBASE         0x04000000
#define RAMBASE         0x04000000
#define SDRAMBASE       RAMBASE
#define SDRAMBASE       RAMBASE
#define RAMWORDS        (1<<26)
#define RAMWORDS        (1<<26)
// Zip CPU Control and Debug registers
// Zip CPU Control and Debug registers
#define R_ZIPCTRL       0x01000000
#define R_ZIPCTRL       0x08000000
#define R_ZIPDATA       0x01000001
#define R_ZIPDATA       0x08000001
 
 
// Interrupt control constants
// Interrupt control constants
#define GIE             0x80000000      // Enable all interrupts
#define GIE             0x80000000      // Enable all interrupts
#define ISPIF_EN        0x82000200      // Enable all, enable QSPI, clear QSPI
#define ISPIF_EN        0x82000200      // Enable all, enable QSPI, clear QSPI
#define ISPIF_DIS       0x02000200      // Disable all, disable QSPI
#define ISPIF_DIS       0x02000200      // Disable all, disable QSPI
Line 201... Line 217...
#define CPU_INT         0x0080
#define CPU_INT         0x0080
#define CPU_STEP        0x0100
#define CPU_STEP        0x0100
#define CPU_STALL       0x0200
#define CPU_STALL       0x0200
#define CPU_HALT        0x0400
#define CPU_HALT        0x0400
#define CPU_CLRCACHE    0x0800
#define CPU_CLRCACHE    0x0800
#define CPU_sR0         (0x0000|CPU_HALT)
#define CPU_sR0         0x0000
#define CPU_sSP         (0x000d|CPU_HALT)
#define CPU_sSP         0x000d
#define CPU_sCC         (0x000e|CPU_HALT)
#define CPU_sCC         0x000e
#define CPU_sPC         (0x000f|CPU_HALT)
#define CPU_sPC         0x000f
#define CPU_uR0         (0x0010|CPU_HALT)
#define CPU_uR0         0x0010
#define CPU_uSP         (0x001d|CPU_HALT)
#define CPU_uSP         0x001d
#define CPU_uCC         (0x001e|CPU_HALT)
#define CPU_uCC         0x001e
#define CPU_uPC         (0x001f|CPU_HALT)
#define CPU_uPC         0x001f
 
 
#define SCOPE_NO_RESET  0x80000000
#define SCOPE_NO_RESET  0x80000000
#define SCOPE_TRIGGER   (0x08000000|SCOPE_NO_RESET)
#define SCOPE_TRIGGER   (0x08000000|SCOPE_NO_RESET)
 
#define SCOPE_MANUAL    SCOPE_TRIGGER
#define SCOPE_DISABLE   (0x04000000)
#define SCOPE_DISABLE   (0x04000000)
 
 
typedef struct {
typedef struct {
        unsigned        m_addr;
        unsigned        m_addr;
        const char      *m_name;
        const char      *m_name;

powered by: WebSVN 2.1.0

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