1. 25 4月, 2022 3 次提交
  2. 14 4月, 2022 1 次提交
    • L
      mmu.l2tlb: divide missqueue into 'missqueue' and llptw (#1522) · 92e3bfef
      Lemover 提交于
      old missqueue: cache req miss slot and mem access-er
      Problem: these two func are totally different, make mq hard to handle in a single select policy.
      Solution: divide these two funciton into two module.
        new MissQueue: only hold reqs that page cache miss and need re-req cache, a simple flushable queue
        llptw: Last level ptw, only access ptes, priorityMux queue
      
      * mmu: rename PTW.scala to L2TLB.scala
      
      * mmu: rename PTW to L2TLB
      
      * mmu: rename PtwFsm to PTW
      
      * mmu.l2tlb: divide missqueue into 'missqueue' and llptw
      
      old missqueue: cache req miss slot and mem access-er
      Problem: these two func are totally different, make mq hard to handle
        in single select policy.
      Solution: divide these two funciton into two module.
        new MissQueue: only hold reqs that page cache miss and new re-req
        cache
        llptw: Last level ptw, only access ptes
      
      * mmu.l2tlb: syntax bug that misses io assign
      
      * mmu.l2tlb: fix bug that mistakes ptw's block signal
      92e3bfef
  3. 02 4月, 2022 1 次提交
    • W
      mem: reduce refill to use latency (#1401) · 09203307
      William Wang 提交于
      * mem: optimize missq reject to lq timing
      
      DCache replay request is quite slow to generate, as it need to compare
      load address with address in all valid miss queue entries.
      
      Now we delay the usage of replay request from data cache.
      Now replay request will not influence normal execuation flow until
      load_s3 (1 cycle after load_s2, load result writeback to RS).
      
      It is worth mentioning that "select refilling inst for load
      writeback" will be disabled if dcacheRequireReplay in the
      last cycle.
      
      * dcache: compare probe block addr instead of full addr
      
      * mem: do not replay from RS when ldld vio or fwd failed
      
      ld-ld violation or forward failure will let an normal load inst replay
      from fetch. If TLB hit and ld-ld violation / forward failure happens,
      we write back that inst immediately. Meanwhile, such insts will not be
      replayed from rs.
      
      It should fix "mem: optimize missq reject to lq timing"
      
      * mem: fix replay from rs condition
      
      * mem: reduce refill to use latency
      
      This commit update lq entry flag carefully in load_s3 to avoid extra
      refill delay. It will remove the extra refill delay introduced by #1375
      without harming memblock timing.
      
      In #1375, we delayed load refill when dcache miss queue entry fails
      to accept a miss. #1375 exchanges performance for better timing.
      
      * mem: fix rs feedback priority
      
      When dataInvalid && mshrFull, a succeed refill should not cancel
      rs replay.
      09203307
  4. 01 4月, 2022 2 次提交
    • L
      l2tlb.cache: store invalid entries(only super entries) into sp to avoid mem access waste (#1518) · 8d8ac704
      Lemover 提交于
      Corner Case that makes l2tlb's performance decrease sharply:
      core may have mis-speculative memory access, which may cause tlb-miss and ptw req to l2tlb.
      In l2tlb, the reqs may still miss and even have invalid pte that won't be stored in l2tlb.cache.
      If the relative ptes are invalid, these reqs will be held by miss queue and wait for page walker performing
      page table walk one by one. It's too slow and will raise time out assert in l2tlb.missqueue.
      
      Solution:
      store invalid entries(only super entries) into sp.
      Bad news is that sp only has16 entries, so invaid entries will pollute sp as well.
      Good news is that the invalid reqs are always in same super page, so only one entries is mostly enough.
      
      * l2tlb.cache: sp entries now handles invalid entries
      
      * l2tlb.cache: fix syntax error, forgot assgin some signals
      8d8ac704
    • J
      Merge pull request #1517 from OpenXiangShan/circt-support · 128703a2
      Jiawei Lin 提交于
      Add support for compiling XiangShan with CIRCT
      128703a2
  5. 31 3月, 2022 3 次提交
  6. 30 3月, 2022 1 次提交
  7. 28 3月, 2022 2 次提交
  8. 27 3月, 2022 3 次提交
  9. 26 3月, 2022 1 次提交
  10. 23 3月, 2022 2 次提交
  11. 22 3月, 2022 1 次提交
  12. 15 3月, 2022 1 次提交
  13. 06 3月, 2022 1 次提交
  14. 28 2月, 2022 3 次提交
  15. 25 2月, 2022 1 次提交
  16. 24 2月, 2022 2 次提交
  17. 18 2月, 2022 3 次提交
  18. 16 2月, 2022 2 次提交
    • J
      b127c1ed
    • W
      mem: opt tag error exception writeback logic (#1464) · a9a812d4
      William Wang 提交于
      * mem: opt dcache tag error check timing
      
      dcache.resp.bits.miss used to depend on tag_error, it causes severe
      timing problem. That dependence is now removed.
      
      Now when tag_error, we:
      
      * Set access fault bit in exception vec
      * Do not update miss queue. That is to say, if miss, that inst
      may not be refilled
      * Mark that inst as dataForwarded so it will not wait for refill
      * Report error to CSR and BEU
      
      If tag_error come with a miss, writeback taht inst from load
      queue. Otherwise, writeback it from load pipeline.
      
      * mem: opt tag error exception writeback logic
      a9a812d4
  19. 14 2月, 2022 1 次提交
  20. 13 2月, 2022 3 次提交
    • W
      mem: opt dcache tag error check timing (#1461) · a469aa4b
      William Wang 提交于
      dcache.resp.bits.miss used to depend on tag_error, it causes severe
      timing problem. That dependence is now removed.
      
      Now when tag_error, we:
      
      * Set access fault bit in exception vec
      * Do not update miss queue. That is to say, if miss, that inst
      may not be refilled
      * Mark that inst as dataForwarded so it will not wait for refill
      * Report error to CSR and BEU
      
      If tag_error come with a miss, writeback taht inst from load
      queue. Otherwise, writeback it from load pipeline.
      a469aa4b
    • J
      ITLB <timing>: delay miss and flush req for ITLB (#1457) · 91df15e5
      Jay 提交于
      * ITLB <timing>: delay miss and flush req for ITLB
      
      * add 2 ILTB requestor and delete tlb_arb
      
      * Bump huancun
      
      * ICacheMainPipe <bug-fix>: fix slot invalid condition
      
      * ITLB <timing>: add port to 6
      
      * ICacheMainPipe <bug-fix>: stop pipe when tlb miss
      
      * ICacheMainPipe <bug-fix>: fix illegal flush
      Co-authored-by: NLinJiawei <linjiawei20s@ict.ac.cn>
      91df15e5
    • W
      mem: fix ldld vio check implementation (#1456) · ef3b5b96
      William Wang 提交于
      * mem: fix ldld vio mask gen logic
      
      * mem: fix lq released flag update logic
      
      Make sure that every load before a probe has correct released flag
      
      See the PR of this commit for illustration
      
      * mem: fix ld-ld violation check logic
      
      * ci: clean up workspace before do real test
      
      * mem: reduce lq released flag update delay for 1 cycle
      
      * chore: bump difftest to run no-smp diff
      
      * ci: add mc test
      
      * mem: fix lq released flag update logic
      
      * chore: set difftest firstCommit_limit to 10000
      
      * ci: use dual-nemu-so for mc test
      ef3b5b96
  21. 12 2月, 2022 1 次提交
  22. 08 2月, 2022 2 次提交