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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_67/] [or1ksim/] [cpu/] [common/] [abstract.h] - Diff between revs 306 and 424

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

Rev 306 Rev 424
Line 54... Line 54...
  unsigned long addr_mask;
  unsigned long addr_mask;
  unsigned long addr_compare;
  unsigned long addr_compare;
  unsigned long size;
  unsigned long size;
  unsigned long size_mask;   /* Address mask, calculated out of size */
  unsigned long size_mask;   /* Address mask, calculated out of size */
  unsigned long granularity; /* how many bytes read/write accepts: 1/2/4 */
  unsigned long granularity; /* how many bytes read/write accepts: 1/2/4 */
 
  int delayr;                /* Read delay */
 
  int delayw;                /* Write delay */
 
 
  int chip_select;           /* Needed by memory controller; specifies chip select number for this memory area. */
  int chip_select;           /* Needed by memory controller; specifies chip select number for this memory area. */
 
 
  unsigned long (*readfunc)(unsigned long);
  unsigned long (*readfunc)(unsigned long);
  void (*writefunc)(unsigned long, unsigned long);
  void (*writefunc)(unsigned long, unsigned long);
Line 82... Line 84...
unsigned char evalsim_mem8(unsigned long);
unsigned char evalsim_mem8(unsigned long);
void setsim_mem32(unsigned long,unsigned long);
void setsim_mem32(unsigned long,unsigned long);
void setsim_mem16(unsigned long,unsigned short);
void setsim_mem16(unsigned long,unsigned short);
void setsim_mem8(unsigned long,unsigned char);
void setsim_mem8(unsigned long,unsigned char);
 
 
void sim_read_memory_table (char *filename);
void init_memory_table ();
 
 
 
/* Changes read/write memory in read/write only */
 
void lock_memory_table ();
 
 
/* Register read and write function for a memory area.
/* Register read and write function for a memory area.
   addr is inside the area, if addr & addr_mask == addr_compare
   addr is inside the area, if addr & addr_mask == addr_compare
   (used also by peripheral devices like 16450 UART etc.) */
   (used also by peripheral devices like 16450 UART etc.) */
void register_memoryarea_mask(unsigned long addr_mask, unsigned long addr_compare,
void register_memoryarea_mask(unsigned long addr_mask, unsigned long addr_compare,

powered by: WebSVN 2.1.0

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