1. 14 7月, 2022 4 次提交
  2. 13 7月, 2022 3 次提交
    • Y
      dispatch2: optimize slow path and enqPtr matching timing (#1650) · fd09b64a
      Yinan Xu 提交于
      * dpq: add slow path for non-critical registers
      
      This commit separates the data module in Dispatch to slow and fast path.
      Slow path stores the data with a bad timing at Dispatch but a good timing
      at Dispatch2. Thus should benefit the timing at Dispatch, such as the LFST.
      
      For now, we merge the slow and fast data module. Chisel DCE does not
      eliminate the dead registers. We manully merge the two data modules
      for now.
      
      * dpq: optimize timing for enqPtr/deqPtr matching
      
      This commit optimizes the matching timing between enqPtr and deqPtr,
      which is used further for bypassing enqData to deqData.
      
      Now enqOffset and deqPtr/enqPtr matching work in parallel.
      fd09b64a
    • Y
      decode: move the soft-prefetch decoder to rename (#1646) · f025d715
      Yinan Xu 提交于
      This commit moves the decoder of software prefetch instructions to
      the rename stage.
      
      Previously the decoding of software prefetch instructions affects
      the imm gen and causes a long critical path.
      f025d715
    • Y
      utils: optimize OnesMoreThan and XORFold (#1645) · 2a08c787
      Yinan Xu 提交于
      * utils: optimize the timing of OnesMoreThan
      
      * utils: fix XORFold width
      2a08c787
  3. 12 7月, 2022 7 次提交
    • W
      ldu: set load to use latency to 4 (#1623) · c837faaa
      William Wang 提交于
      This commit adds an extra cycle for load pipeline. It should fix timing problem caused by load pipeline.
      Huge perf loss is expected. Now load data result is sent to rs in load_s3, load may hit hint
      (fastUop.valid) is sent to rs in load_s2.
      
      We add a 3 cycle load to load fast forward data path. There should be enough time to forward
      data inside memory block.
      
      We will refactor code and add a load_s3 module in the future.
      
      BREAKING CHANGE: load pipeline reorginized
      c837faaa
    • Y
      ctrl: optimize freelist timing (#1633) · 66b2c4a4
      Yinan Xu 提交于
      * rat: map all arch registers to zero when init
      
      * freelist: fix stepBack width
      
      * freelist: fix timing of free offset
      66b2c4a4
    • Z
      MissQueue: use FastArbiter for main pipe req (#1639) · 7cd72b71
      zhanglinjuan 提交于
      7cd72b71
    • Y
      jump: delay pc and jalr_target for one cycle (#1640) · 74515c5a
      Yinan Xu 提交于
      74515c5a
    • Y
      ctrl: optimize the timing of dispatch2 stage (#1632) · 1cee9cb8
      Yinan Xu 提交于
      * ctrl: copy dispatch2 to avoid cross-module loops
      
      This commit makes copies of dispatch2 in CtrlBlock to avoid long
      cross-module timing loop paths. Should be good for timing.
      
      * dpq: re-write queue read logic
      
      This commit adds a Reg-Vec to store the queue read data. Since
      most queues read at most the current numRead and the next numRead
      entries, the read timing can be optimized by reading the data one
      cycle earlier.
      1cee9cb8
    • Y
      rs: optimize timing for dispatch and wakeup (#1621) · bcce877b
      Yinan Xu 提交于
      This commit optimizes the timing of reservation stations.
      
      * dispatched uops are latched and bypassed to s1_out
      
      * wakeup from slowPorts are latched and bypassed to s1_data
      
      * rs: optimize allocation selection
      
      Change select policy for allocation. Should avoid issuing the just
      dispatched instructions in some cases.
      
      * rs: disable load balance for load units
      bcce877b
    • Y
      sim,mmio: remove the vga device (#1638) · 613eddad
      Yinan Xu 提交于
      The VGA device may cause assertions in AXI4SlaveModule because it
      may send arbitrary requests to fb (AXI4RAM).
      613eddad
  4. 11 7月, 2022 2 次提交
  5. 10 7月, 2022 1 次提交
    • Y
      core: optimize redirect timing (#1630) · 0dc4893d
      Yinan Xu 提交于
      This commit adds separated redirect registers in ExuBlock and MemBlock.
      They have one cycle latency compared to redirect in CtrlBlock. This will
      help reduce the fanout of redirect registers.
      0dc4893d
  6. 09 7月, 2022 2 次提交
    • Y
      decode: move fusion decoder result Mux to rename (#1631) · 0febc381
      Yinan Xu 提交于
      This commit moves the fusion decoder to both decode and rename stage.
      
      In the decode stage, fusion decoder determines whether the instruction
      pairs can be fused. Valid bits of decode are not affected by fusion
      decoder. This should fix the timing issues of rename.valid.
      
      In the rename stage, some fields are updated according the result of
      fusion decoder. This will bring a minor timing path to both valid and
      other fields in uop in the rename stage. However, since freelist and
      rat have worse timing. This should not cause timing issues.
      0febc381
    • L
      dtlb: replace sram with SyncDataModule (#1627) · e05a24ab
      Lemover 提交于
      * dtlb: replace sram to SyncDataModule, nWays is useless
      
      * itlb: if miss_sameCycle, regnext ptw resp and block tlb check
      
      * dtlb: for normal_entry, when refill, do not need set miss by force
      e05a24ab
  7. 08 7月, 2022 2 次提交
  8. 07 7月, 2022 2 次提交
  9. 06 7月, 2022 5 次提交
  10. 02 7月, 2022 1 次提交
  11. 30 6月, 2022 1 次提交
  12. 29 6月, 2022 2 次提交
  13. 28 6月, 2022 1 次提交
  14. 27 6月, 2022 3 次提交
    • Y
      dp2: add a pipeline for load/store (#1597) · fa9d712c
      Yinan Xu 提交于
      * dp2: add a pipeline for load/store
      
      Load/store Dispatch2 has a bad timing because it requires the fuType
      to disguish the out ports. This brings timing issues because the
      instruction has to read busyTable after the port arbitration.
      
      This commit adds a pipeline in dp2Ls, which may cause performance
      degradation. Instructions are dispatched according to out, and at
      the next cycle it will leave dp2.
      
      * bump difftest trying to fix vcs
      fa9d712c
    • W
      dcache: do not access plru when refill (#1591) · 92816bbc
      William Wang 提交于
      * dcache: do not access plru when refill
      
      Now we have accessed plru when load miss, we should not access plru
      when refill
      
      * dcache: not not access plru when miss queue full
      
      It will help avoid invalid plru access when miss queue full
      92816bbc
    • Z
  15. 26 6月, 2022 1 次提交
    • L
      l2tlb: add counter to ptw-filter to avoid l2tlb deadlock & sync sfence to mmu (#1599) · fa9f9690
      Lemover 提交于
      fix some bugs.
      
      1. fix l2tlb dead-lock bug
      l2tlb won't merge requests at same addr. It will be blocked when having too many requests.
      PtwFilter has a bug that will send too many requests. Add a counter to avoid that.
      
      2. fix sfence sync at mmu
      different modules in mmu may get sfence at different latency, which will lost requests or some requests have no receiver.
      Sync the sfence latency manually to avoid the bug.
      
      * mmu.filter: add counter not to send to many req to l2tlb
      
      * mmu.filter: fix bug that forget counter signal when block issue and deq
      
      * mmu: set sfence/csr delay to 2 cycle, must sync in mmu
      fa9f9690
  16. 25 6月, 2022 3 次提交
    • L
      l2tlb: delay one cycle when read from sram (#1596) · 6c4dcc2d
      Lemover 提交于
      now the l2tlb page cache are divided into:
      1. stageReq: input && read sram valid && will block when sram write
      2. stageDelay: get sram data and delay one cycle
      3. stageCheck: check hit and ecc result
      4. stageResp: output
      6c4dcc2d
    • L
      tlb: divide v-select into two cycle for timing optimization (#1598) · 445d5c05
      Lemover 提交于
      Background:
      dtlb has 128 entries stored in sram. 128 sets, 1 ways.
      advantage: large volume & 1 ways means no tag match logic at data select path
      disadvantage: 128 sets means long latency at valid select, which is a Vec-Register.
      
      Optimization: divide valid select into two-cycles
      445d5c05
    • Y
      freelist: optimize timing of read and writing (#1593) · 5ef86c38
      Yinan Xu 提交于
      This commit optimizes the timing of freelist by changing the updating
      function of headPtr and tailPtr.
      
      We maintains an one-hot representation of headPtr and further uses it to
      read the free registers from the list, which should be better than the
      previous implementation where headPtr is used to indexed into the queue.
      
      The update of tailPtr and the freelist is delayed by one cycle to
      optimize the timing. Because freelist allocates new registers in the
      next cycle iff there are more than RenameWidth free registers in this
      cycle. The freed registers in this cycle will never be used in the next
      cycle. Thus, we can delay the updating of queue data to the next cycle.
      We also move the update of tailPtr to the next cycle, since PopCount
      takes a long timing and we move the last adder to the next cycle. Now
      the adder works parallely with PopCount. That is, the updating of
      tailPtr is pipelined.
      5ef86c38