1. 17 10月, 2021 2 次提交
    • Y
      backend: remove lsrc usages after rename (#1124) · a020ce37
      Yinan Xu 提交于
      This commit removes lsrc usages in the fence unit and lsrc is no longer
      needed after an instruction is renamed. It helps timing and area.
      
      lsrc is placed in imm at rename stage (the last stage we need lsrc).
      They are extracted in the fence unit. Imm needs to go through the
      pipelines because Jump needs it (and we re-use it for lsrc).
      a020ce37
    • Y
      rob: fix walkCounter when all entries are flushed (#1125) · a83ae250
      Yinan Xu 提交于
      This commit fixes the walkCounter value in Rob when every instruction is
      flushed.
      
      For example, when rob is full and the head instruction causes an
      exception, the redirect robIdx is the deqPtr. In this case,
      currentWalkPtr is enqPtr - 1.U and redirectWalkDistance is RobSize - 1.
      Since exceptions flush the instruction itself, flushItSelf is true.B.
      Previously we use `+` to count the walk distance and it causes overflows
      when RobSize is power of 2. We change it to `+&` to allow walkCounter to
      be RobSize. The width of walkCounter also needs to be changed.
      a83ae250
  2. 16 10月, 2021 4 次提交
    • Y
      rename: support full-featured move elimination (#1123) · 70224bf6
      Yinan Xu 提交于
      This commit optimizes the move elimination implementation.
      
      Reference counting for every physical register is recorded. Originally
      0-31 registers have counters of ones. Every time the physical register
      is allocated or deallocated, the counter is increased or decreased by
      one. When the counter becomes zero from a non-zero value, the register
      is freed and released to freelist.
      70224bf6
    • J
      Update PrintCtrl transform (#1122) · f79ff60a
      Jiawei Lin 提交于
      * Update PrintControl transform
      
      * CI: add fatal/fwrite check
      f79ff60a
    • Y
      core: use redirect ports for flush (#1121) · f4b2089a
      Yinan Xu 提交于
      This commit removes flush IO for every module. Flush now re-uses
      redirect ports to flush the instructions.
      f4b2089a
    • W
      Add strict mode to reduce mdp mispredict (#1113) · d1fe0262
      William Wang 提交于
      * storeset: fix waitForSqIdx generate logic
      
      Now right waitForSqIdx will be generated for earlier store in the same
      dispatch bundle.
      
      * mdp: add strict wait mode
      
      When loadWaitStrict && loadWaitBit, load will wait in rs until all
      older store addr calculation are finished.
      
      * chore: add storeset_load_strict_wait counter
      d1fe0262
  3. 15 10月, 2021 1 次提交
  4. 14 10月, 2021 2 次提交
    • L
      ci: when error, copy emu and SimTop.v to WAVE_HOME (#1115) · 7e006581
      Lemover 提交于
      * ci: when error, copy emu and SimTop.v to WAVE_HOME
      
      * ci: basic.misc uses numa
      7e006581
    • L
      l2tlb: add next-line prefetcher (#1108) · bc063562
      Lemover 提交于
      预取时机:
      
          或者 发生miss时
          或者 发生hit,但是hit的entry是预取上来的
          当 页表2MB的level命中
          当 预取项不跨2MB项对应的4KB page frame
      
      前面两个限制是为了限制预取的数量
      
      后面两个限制是限制预取请求只会访问最后一级页表 -› 不占用FSM & (几乎)不会重新访问cache,造成卡死。
      
      =============
      some workloads: gcc(5.4%), wrf(13.6%),milc(9.2%)'s ipc increase.
      some workloads decrease: namd(-2.5%).
      but l2tlb's perf counters are better.
      So I think it is worthy to adding the simple next-line prefetch.
      
      The workloads are of ci and in cold-start state, so prefetch may seems to be much better than it should be.
      But l2tlb's memory access ability is much better than what it needs, so the prefetch can be added.
      =============
      
      * mmu.l2tlb: add params filterSize
      
      * mmu.l2tlb: add prefetch,dont work well
      
      * mmu.l2tlb: add prefetch relative perf counter
      
      * l2tlb: prefetch recv miss req and 'hit but pre-fetched' req
      
      * l2tlb: fix some perf counter about prefetch
      
      * l2tlb: prefetch not cross 2MB && not recv when 2MB level miss
      
      * ci: when error, copy emu and SimTop.v to WAVE_HOME
      bc063562
  5. 13 10月, 2021 2 次提交
  6. 12 10月, 2021 6 次提交
    • Y
      rs: add IOs for performance counters (#1109) · 485648fa
      Yinan Xu 提交于
      This commit adds IOs for performance counters in reservation stations.
      Only `full` is included for now.
      485648fa
    • W
      mem: update block load logic (#1035) · c7160cd3
      William Wang 提交于
      * mem: update block load logic
      
      Now load will be selected as soon as the store it depends on is ready,
      which is predicted by Store Sets
      
      * mem: opt block load logic
      
      Load blocked by std invalid will wait for that std to issue
      Load blocked by load violation wait for that sta to issue
      
      * csr: add 2 extra storeset config bits
      
      Following bits were added to slvpredctl:
      - storeset_wait_store
      - storeset_no_fast_wakeup
      
      * storeset: fix waitForSqIdx generate logic
      
      Now right waitForSqIdx will be generated for earlier store in the same
      dispatch bundle
      c7160cd3
    • J
      Merge pull request #1106 from OpenXiangShan/fix-lightSSS · a8a94ddc
      Jay 提交于
      bump difftest and add lightSSS wave dump for CI
      a8a94ddc
    • Y
      core: update dispatch port parameters (#1103) · 33177a7c
      Yinan Xu 提交于
      This commit changes how dispatch ports (regfile ports) are connected to
      reservation station ports:
      
      INT regfile:
      * INT(0-1) --> ALU0, MUL0, JUMP
      * INT(2-3) --> ALU1, MUL0
      * INT(4-5) --> ALU2, MUL1
      * INT(6-7) --> ALU3, MUL1
      * INT(8)   --> LOAD0
      * INT(9)   --> LOAD1
      * INT(10)  --> STA0
      * INT(11)  --> STA1
      * INT(12)  --> STD0
      * INT(13)  --> STD1
      
      FP regfile:
      * FP(0-2)  --> FMA0, FMISC0
      * FP(3-5)  --> FMA1, FMISC0
      * FP(6-8)  --> FMA2, FMISC1
      * FP(9-11) --> FMA3, FMISC1
      * FP(12)   --> STD0
      * FP(13)   --> STD1
      33177a7c
    • W
      Merge branch 'master' into fix-lightSSS · a118996c
      wangkaifan 提交于
      a118996c
    • W
      bump huancun (#1105) · 0b737e67
      wakafa 提交于
      0b737e67
  7. 11 10月, 2021 7 次提交
    • L
      pmp: add pmp support (#1092) · b6982e83
      Lemover 提交于
      * [WIP] PMP: add pmp to tlb & csr(ptw part is not added)
      
      * pmp: add pmp, unified
      
      * pmp: add pmp, distributed but same cycle
      
      * pmp: pmp resp next cycle
      
      * [WIP] PMP: add l2tlb missqueue pmp support
      
      * pmp: add pmp to ptw and regnext pmp for frontend
      
      * pmp: fix bug of napot-match
      
      * pmp: fix bug of method aligned
      
      * pmp: when write cfg, update mask
      
      * pmp: fix bug of store af getting in store unit
      
      * tlb: fix bug, add af check(access fault from ptw)
      
      * tlb: af may have higher priority than pf when ptw has af
      
      * ptw: fix bug of sending paddr to pmp and recv af
      
      * ci: add pmp unit test
      
      * pmp: change PMPPlatformGrain to 6 (512bits)
      
      * pmp: fix bug of read_addr
      
      * ci: re-add pmp unit test
      
      * l2tlb: lazymodule couldn't use @chiselName
      
      * l2tlb: fix bug of l2tlb missqueue duplicate req's logic
      
      filt the duplicate req:
      old: when enq, change enq state to different state
      new: enq + mem.req.fire, more robust
      
      * pmp: pmp checker now supports samecycle & regenable
      b6982e83
    • J
      bump difftest: exit not oldest checkpoints · 02445207
      JinYue 提交于
      02445207
    • W
      Speed up dcache bank conflict feedback (#1081) · d87b76aa
      William Wang 提交于
      Make bank conflict feedback 1 cycle earlier
      d87b76aa
    • J
      Merge branch 'master' into fix-lightSSS · fdb6fc63
      JinYue 提交于
      fdb6fc63
    • J
      script: add wave dump path · 24e2eab6
      JinYue 提交于
      24e2eab6
    • J
      CI: update environment settings for script wave dumping · d4068f8e
      JinYue 提交于
      d4068f8e
    • Y
      bump chisel and code clean up (#1104) · aef67050
      Yinan Xu 提交于
      * bump chisel to 3.5.0-RC1
      
      We don't want to use SNAPSHOT version any more because we don't know
      what will happen when we wake up in the morning.
      
      * misc: remove TMA_* to avoid conflicts
      aef67050
  8. 10 10月, 2021 10 次提交
  9. 09 10月, 2021 6 次提交