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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [jtag/] [jp2.c] - Diff between revs 1274 and 1277

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

Rev 1274 Rev 1277
Line 916... Line 916...
  CHECK(dbg_wb_read32(MC_BASE_ADDR+MC_CCR_4, &insn));
  CHECK(dbg_wb_read32(MC_BASE_ADDR+MC_CCR_4, &insn));
  printf("expected %x, read %x\n", 0xc0bf0005, insn);
  printf("expected %x, read %x\n", 0xc0bf0005, insn);
 
 
  // SRAM initialized to 0x40000000
  // SRAM initialized to 0x40000000
  CHECK(dbg_wb_write32(MC_BASE_ADDR + MC_BAR_1, SRAM_BASE & 0xffff0000));
  CHECK(dbg_wb_write32(MC_BASE_ADDR + MC_BAR_1, SRAM_BASE & 0xffff0000));
  CHECK(dbg_wb_write32(MC_BASE_ADDR + MC_AMR_1, SRAM_BASE & 0xffff0000)); // This is not OK
  CHECK(dbg_wb_write32(MC_BASE_ADDR + MC_AMR_1, ~(SRAM_SIZE - 1) & 0xffff0000));
  CHECK(dbg_wb_write32(MC_BASE_ADDR + MC_CCR_1, 0xc020001f));
  CHECK(dbg_wb_write32(MC_BASE_ADDR + MC_CCR_1, 0xc020001f));
#endif
#endif
 
 
#if 1
#if 1
#define CPU_OP_ADR  0
#define CPU_OP_ADR  0

powered by: WebSVN 2.1.0

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