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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_47/] [or1ksim/] [testbench/] [except_test.c] - Diff between revs 600 and 608

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

Rev 600 Rev 608
Line 7... Line 7...
/* Define RAM physical location and size
/* Define RAM physical location and size
   Bottom half will be used for this program, the rest
   Bottom half will be used for this program, the rest
   will be used for testing */
   will be used for testing */
#define FLASH_START 0x00000000
#define FLASH_START 0x00000000
#define FLASH_SIZE  0x00200000
#define FLASH_SIZE  0x00200000
#define RAM_START   0x40000000
#define RAM_START   0x80000000
#define RAM_SIZE    0x00200000
#define RAM_SIZE    0x00200000
 
 
/* MMU page size */
/* MMU page size */
#define PAGE_SIZE 8192
#define PAGE_SIZE 8192
 
 
Line 1063... Line 1063...
  ASSERT(except_count == 1);
  ASSERT(except_count == 1);
  ASSERT(except_mask == (1 << V_TRAP));
  ASSERT(except_mask == (1 << V_TRAP));
  ASSERT(except_pc == (unsigned long)(trap));
  ASSERT(except_pc == (unsigned long)(trap));
  ASSERT(except_ea == 0);
  ASSERT(except_ea == 0);
 
 
 
#if 0
  /* Reset except counter */
  /* Reset except counter */
  except_count = 0;
  except_count = 0;
  except_mask = 0;
  except_mask = 0;
  except_pc = 0;
  except_pc = 0;
  except_ea = 0;
  except_ea = 0;
Line 1076... Line 1077...
  call ((unsigned long)&range, 0);
  call ((unsigned long)&range, 0);
  ASSERT(except_count == 1);
  ASSERT(except_count == 1);
  ASSERT(except_mask == (1 << V_RANGE));
  ASSERT(except_mask == (1 << V_RANGE));
  ASSERT(except_pc == (unsigned long)(range));
  ASSERT(except_pc == (unsigned long)(range));
  ASSERT(except_ea == 0);
  ASSERT(except_ea == 0);
 
#endif
}
}
 
 
int main (void)
int main (void)
{
{
  int ret;
  int ret;

powered by: WebSVN 2.1.0

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