URL
https://opencores.org/ocsvn/eco32/eco32/trunk
[/] [eco32/] [trunk/] [sim/] [common.h] - Diff between revs 8 and 25
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 8 |
Rev 25 |
Line 28... |
Line 28... |
#define KEYBOARD_BASE 0x30200000 /* physical keyboard base address */
|
#define KEYBOARD_BASE 0x30200000 /* physical keyboard base address */
|
#define TERM_BASE 0x30300000 /* physical terminal base address */
|
#define TERM_BASE 0x30300000 /* physical terminal base address */
|
#define MAX_NTERMS 2 /* max number of terminals */
|
#define MAX_NTERMS 2 /* max number of terminals */
|
#define DISK_BASE 0x30400000 /* physical disk base address */
|
#define DISK_BASE 0x30400000 /* physical disk base address */
|
#define OUTPUT_BASE 0x3F000000 /* physical output device address */
|
#define OUTPUT_BASE 0x3F000000 /* physical output device address */
|
|
#define SHUTDOWN_BASE 0x3F100000 /* physical shutdown device address */
|
#define GRAPH_BASE 0x3FC00000 /* physical grahics base address */
|
#define GRAPH_BASE 0x3FC00000 /* physical grahics base address */
|
/* extends to end of address space */
|
/* extends to end of address space */
|
|
|
#define PAGE_SIZE (4 * K) /* size of a page and a page frame */
|
#define PAGE_SIZE (4 * K) /* size of a page and a page frame */
|
#define OFFSET_MASK (PAGE_SIZE - 1) /* mask for offset within a page */
|
#define OFFSET_MASK (PAGE_SIZE - 1) /* mask for offset within a page */
|
#define PAGE_MASK (~OFFSET_MASK) /* mask for page number */
|
#define PAGE_MASK (~OFFSET_MASK) /* mask for page number */
|
|
|
#define INSTRS_PER_MSEC 1700 /* average execution speed */
|
#define CC_PER_USEC 50 /* clock cycles per microsecond */
|
|
#define CC_PER_INSTR 18 /* clock cycles per instruction */
|
|
|
|
|
typedef enum { false, true } Bool; /* truth values */
|
typedef enum { false, true } Bool; /* truth values */
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.