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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [hwtests/] [tlbtest/] [common.h] - Blame information for rev 167

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 14 hellwig
/*
2
 * common.h -- common definitions
3
 */
4
 
5
 
6
#ifndef _COMMON_H_
7
#define _COMMON_H_
8
 
9
 
10
#define PAGE_SHIFT      12                      /* log2 of page size */
11
#define PAGE_SIZE       (1 << PAGE_SHIFT)       /* page size in bytes */
12
#define OFFSET_MASK     (PAGE_SIZE - 1)         /* mask for offset in page */
13
#define PAGE_MASK       (~OFFSET_MASK)          /* mask for page number */
14
 
15
 
16
typedef enum { false, true } Bool;              /* truth values */
17
 
18
 
19
typedef unsigned int Word;                      /* 32 bit quantities */
20
typedef unsigned short Half;                    /* 16 bit quantities */
21
typedef unsigned char Byte;                     /*  8 bit quantities */
22
 
23
 
24
#define NULL    ((void *) 0)
25
 
26
 
27
#endif /* _COMMON_H_ */

powered by: WebSVN 2.1.0

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