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

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_1_x/] [or1ksim/] [sim-config.c] - Diff between revs 883 and 889

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

Rev 883 Rev 889
Line 939... Line 939...
    ERROR("invalid device number.");
    ERROR("invalid device number.");
}
}
 
 
void eth_vapi_id () {
void eth_vapi_id () {
  if (current_device >= 0 && current_device < config.nethernets)
  if (current_device >= 0 && current_device < config.nethernets)
    config.ethernets[current_device].vapi_id = tempUL;
    config.ethernets[current_device].base_vapi_id = tempUL;
  else
  else
    ERROR("invalid device number.");
    ERROR("invalid device number.");
}
}
 
 
void gpio_ngpios () {
void gpio_ngpios () {
Line 1458... Line 1458...
  fprintf (f, "  nethernets:%i, ethernets:{", config.nethernets);
  fprintf (f, "  nethernets:%i, ethernets:{", config.nethernets);
  comma = 0;
  comma = 0;
  for (i = 0; i < config.nethernets; i++) {
  for (i = 0; i < config.nethernets; i++) {
    fprintf (f, "%s\n    {baseaddr:0x%08x, dma:%i, tx_channel:0x%08x, rx_channel:0x%08x, rxfile:\"%s\", txfile:\"%s\", vapi_id:0x%08x}",
    fprintf (f, "%s\n    {baseaddr:0x%08x, dma:%i, tx_channel:0x%08x, rx_channel:0x%08x, rxfile:\"%s\", txfile:\"%s\", vapi_id:0x%08x}",
      comma ? "," :"", config.ethernets[i].baseaddr, config.ethernets[i].dma, config.ethernets[i].tx_channel, config.ethernets[i].rx_channel,
      comma ? "," :"", config.ethernets[i].baseaddr, config.ethernets[i].dma, config.ethernets[i].tx_channel, config.ethernets[i].rx_channel,
      config.ethernets[i].rxfile, config.ethernets[i].txfile, config.ethernets[i].vapi_id);
      config.ethernets[i].rxfile, config.ethernets[i].txfile, config.ethernets[i].base_vapi_id);
    comma = 1;
    comma = 1;
  }
  }
  fprintf (f, "},\n");
  fprintf (f, "},\n");
 
 
  fprintf (f, "  ngpios:%i, gpios:{", config.ngpios);
  fprintf (f, "  ngpios:%i, gpios:{", config.ngpios);

powered by: WebSVN 2.1.0

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