OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [or1ksim/] [sim-config.c] - Diff between revs 235 and 346

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

Rev 235 Rev 346
Line 287... Line 287...
  /* Debug */
  /* Debug */
  config.debug.jtagcycle_ps = 40000;    /* 40000 for 40ns (25MHz) */
  config.debug.jtagcycle_ps = 40000;    /* 40000 for 40ns (25MHz) */
 
 
  /* VAPI */
  /* VAPI */
  config.vapi.enabled        = 0;
  config.vapi.enabled        = 0;
/*   config.vapi.server_port    = 50000; */
  config.vapi.server_port    = 50000;
  config.vapi.log_enabled    = 0;
  config.vapi.log_enabled    = 0;
  config.vapi.hide_device_id = 0;
  config.vapi.hide_device_id = 0;
  config.vapi.vapi_fn        = strdup ("vapi.log");
  config.vapi.vapi_fn        = strdup ("vapi.log");
 
 
  /* CUC */
  /* CUC */
Line 878... Line 878...
    case 'G': case 'g': multiplier = 0x40000000UL; break;
    case 'G': case 'g': multiplier = 0x40000000UL; break;
    case 'M': case 'm': multiplier =   0x100000UL; break;
    case 'M': case 'm': multiplier =   0x100000UL; break;
    case 'K': case 'k': multiplier =      0x400UL; break;
    case 'K': case 'k': multiplier =      0x400UL; break;
    default:            multiplier =        0x1UL; break;
    default:            multiplier =        0x1UL; break;
    }
    }
 
 
  unsigned long int  mem_size = strtoul (size, NULL, 0) * multiplier;
  unsigned long int  mem_size = strtoul (size, NULL, 0) * multiplier;
 
 
  if (0 == mem_size)
  if (0 == mem_size)
    {
    {
      fprintf (stderr, "Warning: Memory size %s not recognized: ignored.\n",
      fprintf (stderr, "Warning: Memory size %s not recognized: ignored.\n",
Line 909... Line 910...
  set_config_param (sec, lookup_param ("baseaddr", sec), "0");
  set_config_param (sec, lookup_param ("baseaddr", sec), "0");
  set_config_param (sec, lookup_param ("size", sec),     str_size);
  set_config_param (sec, lookup_param ("size", sec),     str_size);
 
 
  sec->sec_end (sec->dat);
  sec->sec_end (sec->dat);
 
 
 
  if (config.sim.verbose)
 
    {
 
      PRINTF ("Memory block of 0x%lx bytes allocated\n", mem_size);
 
    }
}       /* alloc_memory_block () */
}       /* alloc_memory_block () */
 
 
 
 
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/*! Parse the arguments for the standalone simulator
/*! Parse the arguments for the standalone simulator

powered by: WebSVN 2.1.0

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