URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 59 |
Rev 257 |
Line 5... |
Line 5... |
|
|
#ifndef _COMMON_H_
|
#ifndef _COMMON_H_
|
#define _COMMON_H_
|
#define _COMMON_H_
|
|
|
|
|
#define PAGE_SHIFT 12 /* log2 of page size */
|
#define PAGE_SHFT 12 /* log2 of page size */
|
#define PAGE_SIZE (1 << PAGE_SHIFT) /* page size in bytes */
|
#define PAGE_SIZE ((Word) 1 << PAGE_SHFT) /* page size in bytes */
|
#define OFFSET_MASK (PAGE_SIZE - 1) /* mask for offset in page */
|
#define OFFSET_MASK (PAGE_SIZE - 1) /* mask for offset in page */
|
#define PAGE_MASK (~OFFSET_MASK) /* mask for page number */
|
#define PAGE_MASK (~OFFSET_MASK) /* mask for page number */
|
|
|
|
|
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.