Skip to content

about the gen.scala and ifetch #119

@duanjiulon

Description

@duanjiulon

Uploading 0fdd12cd-e038-4a25-b084-1f83504b4812.png…
Hi, recently I have been using your nax gen.scala file to generate a core with three axi interfaces, ibus,dbus,pbus, After connecting another axicrossbar to an axi system, the anchipram was set to 0 and the DDR address was 0x40000000. The following problem occurred during axi debugging:

  1. By loading the address of 0x0 through openocd+gdb, single step debugging can be successfully performed
  2. When loading the DDR address containing 0x40000000 through openocd+gdb, the following error message will appear
Loading section .init, size 0x6e lma 0x40000000
Loading section .text, size 0x16fc lma 0x40000070
Loading section .data, size 0x858 lma 0x4000176c
Start address 0x40000000, load size 8130
Transfer rate: 63 KB/sec, 2710 bytes/write.
(gdb) si
unable to resume hart 0
  dmstatus =0x00430c82
  was stepping, halting
unable to halt hart 0
  dmcontrol=0x00000001
  dmstatus =0x00430c82
Hart was not halted after single step!
unable to step rtos hart

By capturing the waveform signal, it can be preliminarily determined that IFetc failed at address 0x40000000
4A2D549A-3065-4A61-8777-2C704E7860FD
you can look at this picture
in the gen.scala, I set

def plugins = {
    val l = Config1.plugins(
      withRdTime = true,
      aluCount    = 2,
      decodeCount = 2,
      debugTriggers = 4,
      withDedicatedLoadAgu = true,
      withRvc = true,
      withLoadStore = true,
      withMmu = true,
      withDebug = true,
      withEmbeddedJtagTap = false,
      jtagTunneled = false,
      withFloat = false,
      withDouble = false,
      withLsu2 = true,
      lqSize = 16,
      sqSize = 16,
            withCoherency = true,
      ioRange = a => a(31 downto 28) === 0xf// || !a(12)//(a(5, 6 bits) ^ a(12, 6 bits)) === 51
    )

May I ask which parameter caused the issue with this fetch,thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions