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

Subversion Repositories eco32

[/] [eco32/] [tags/] [eco32-0.22/] [hwtests/] [dsptest/] [main.c] - Diff between revs 14 and 21

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 14 Rev 21
/*
/*
 * main.c -- the main program
 * main.c -- the main program
 */
 */
 
 
 
 
#include "common.h"
#include "common.h"
#include "lib.h"
#include "lib.h"
#include "start.h"
#include "start.h"
 
 
 
 
int main(void) {
int main(void) {
  int i, j;
  int i, j;
  unsigned int attr, ch;
  unsigned int attr, ch;
  unsigned int *p;
  unsigned int *p;
 
 
  for (i = 0; i < 16; i++) {
  for (i = 0; i < 16; i++) {
    for (j = 0; j < 16; j++) {
    for (j = 0; j < 16; j++) {
      attr = i * 16 + j;
      attr = i * 16 + j;
      ch = (attr << 8) | 0x23;
      ch = (attr << 8) | 0x23;
      p = (unsigned int *) 0xF0100000;
      p = (unsigned int *) 0xF0100000;
      p += 128 * i + 2 * j;
      p += 128 * i + 2 * j;
      *p = ch;
      *p = ch;
    }
    }
  }
  }
  while (1) ;
  while (1) ;
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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