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

Subversion Repositories plasma

[/] [plasma/] [trunk/] [tools/] [plasma.h] - Blame information for rev 421

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 412 rhoads
/*--------------------------------------------------------------------
2
 * TITLE: Plasma Hardware Defines
3
 * AUTHOR: Steve Rhoads (rhoadss@yahoo.com)
4
 * DATE CREATED: 12/17/05
5
 * FILENAME: plasma.h
6
 * PROJECT: Plasma CPU core
7
 * COPYRIGHT: Software placed into the public domain by the author.
8
 *    Software 'as is' without warranty.  Author liable for nothing.
9
 * DESCRIPTION:
10
 *    Plasma Hardware Defines
11
 *--------------------------------------------------------------------*/
12
#ifndef __PLASMA_H__
13
#define __PLASMA_H__
14
 
15
/*********** Hardware addresses ***********/
16
#define RAM_INTERNAL_BASE 0x00000000 //8KB
17
#define RAM_EXTERNAL_BASE 0x10000000 //1MB or 64MB
18
#define RAM_EXTERNAL_SIZE 0x00100000
19
#define ETHERNET_RECEIVE  0x13ff0000
20
#define ETHERNET_TRANSMIT 0x13fe0000
21
#define MISC_BASE         0x20000000
22
#define UART_WRITE        0x20000000
23
#define UART_READ         0x20000000
24
#define IRQ_MASK          0x20000010
25
#define IRQ_STATUS        0x20000020
26 421 rhoads
#define GPIO0_SET         0x20000030
27 412 rhoads
#define GPIO0_CLEAR       0x20000040
28
#define GPIOA_IN          0x20000050
29
#define COUNTER_REG       0x20000060
30
#define ETHERNET_REG      0x20000070
31
#define FLASH_BASE        0x30000000
32
 
33
/*********** GPIO out bits ***************/
34
#define ETHERNET_MDIO     0x00200000
35
#define ETHERNET_MDIO_WE  0x00400000
36 421 rhoads
#define ETHERNET_MDC      0x00800000
37 412 rhoads
#define ETHERNET_ENABLE   0x01000000
38
 
39
/*********** Interrupt bits **************/
40
#define IRQ_UART_READ_AVAILABLE  0x01
41
#define IRQ_UART_WRITE_AVAILABLE 0x02
42
#define IRQ_COUNTER18_NOT        0x04
43
#define IRQ_COUNTER18            0x08
44
#define IRQ_ETHERNET_RECEIVE     0x10
45
#define IRQ_ETHERNET_TRANSMIT    0x20
46
#define IRQ_GPIO31_NOT           0x40
47
#define IRQ_GPIO31               0x80
48
 
49
#endif //__PLASMA_H__
50
 

powered by: WebSVN 2.1.0

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