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

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [peripheral/] [vga.c] - Diff between revs 1368 and 1390

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

Rev 1368 Rev 1390
Line 208... Line 208...
  /* dump the image? */
  /* dump the image? */
  char temp[STR_SIZE];
  char temp[STR_SIZE];
  sprintf (temp, "%s%04i.bmp", vga->filename, vga->pics++);
  sprintf (temp, "%s%04i.bmp", vga->filename, vga->pics++);
  vga_dump_image (temp, vga);
  vga_dump_image (temp, vga);
 
 
  SCHED_ADD(vga_job, dat, runtime.sim.cycles + vga->refresh_rate);
  SCHED_ADD(vga_job, dat, vga->refresh_rate);
}
}
 
 
/* Reset all VGAs */
/* Reset all VGAs */
void vga_reset (void *dat)
void vga_reset (void *dat)
{
{
Line 232... Line 232...
  vga->pics = 0;
  vga->pics = 0;
 
 
  vga->pindex = 0;
  vga->pindex = 0;
  vga->vbindex = 0;
  vga->vbindex = 0;
 
 
  SCHED_ADD(vga_job, dat, runtime.sim.cycles + vga->refresh_rate);
  SCHED_ADD(vga_job, dat, vga->refresh_rate);
}
}
 
 
/*----------------------------------------------------[ VGA Configuration ]---*/
/*----------------------------------------------------[ VGA Configuration ]---*/
void vga_baseaddr(union param_val val, void *dat)
void vga_baseaddr(union param_val val, void *dat)
{
{

powered by: WebSVN 2.1.0

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