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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_67/] [or1ksim/] [sim-config.h] - Diff between revs 1369 and 1370

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

Rev 1369 Rev 1370
Line 22... Line 22...
 
 
#include <stdio.h>
#include <stdio.h>
 
 
/* Simulator configuration macros. Eventually this one will be a lot bigger. */
/* Simulator configuration macros. Eventually this one will be a lot bigger. */
 
 
#define MAX_DMAS         4            /* Max. number of DMA controllers */
 
#define MAX_ETHERNETS    4            /* Max. number of Ethernet MACs   */
#define MAX_ETHERNETS    4            /* Max. number of Ethernet MACs   */
#define MAX_GPIOS        4            /* Max. number of GPIO modules    */
#define MAX_GPIOS        4            /* Max. number of GPIO modules    */
#define MAX_MEMORIES     16           /* Max. number of memory devices attached */
#define MAX_MEMORIES     16           /* Max. number of memory devices attached */
#define MAX_ATAS         4            /* Max. number of ATAS */
#define MAX_ATAS         4            /* Max. number of ATAS */
#define MAX_SBUF_LEN     256          /* Max. length of store buffer */
#define MAX_SBUF_LEN     256          /* Max. length of store buffer */
Line 40... Line 39...
struct config {
struct config {
  struct {
  struct {
    int enabled;                      /* Is tick timer enabled?  */
    int enabled;                      /* Is tick timer enabled?  */
  } tick;
  } tick;
 
 
  int ndmas;
 
  struct {
 
    unsigned long baseaddr;
 
    int irq;                          /* IRQ of this device */
 
    unsigned long vapi_id;            /* VAPI id for this instance */
 
  } dmas[MAX_DMAS];
 
 
 
  int nethernets;
  int nethernets;
  struct {
  struct {
    unsigned long baseaddr;
    unsigned long baseaddr;
    int irq;                          /* IRQ of this device */
    int irq;                          /* IRQ of this device */
    unsigned dma;                     /* Which controller is this ethernet "connected" to */
    unsigned dma;                     /* Which controller is this ethernet "connected" to */

powered by: WebSVN 2.1.0

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