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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [sim/] [common.h] - Diff between revs 246 and 285

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

Rev 246 Rev 285
Line 35... Line 35...
                                        /* 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 FRAME_MASK      (PAGE_MASK & ~0xC0000000)  /* mask for frame number */
 
 
#define CC_PER_USEC     50              /* clock cycles per microsecond */
#define CC_PER_USEC     50              /* clock cycles per microsecond */
#define CC_PER_INSTR    18              /* clock cycles per instruction */
#define CC_PER_INSTR    18              /* clock cycles per instruction */
 
 
 
 

powered by: WebSVN 2.1.0

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