跳转至

【XiangShan Biweekly 66】20241223

Welcome to XiangShan biweekly column, this is the 66th issue of our biweekly column. Through this column, we will regularly introduce the progress of XiangShan, hoping to learn and improve together with you.

Recently, various teams working on Kunminghu have continued to advance optimizations in area, timing, and power consumption. In addition, the frontend fixed an issue with incorrect RAS predictor updates under power down and up reset, the backend fixed errors in calculating the trap PC for certain interrupts processed in VS mode, and the memory and cache subsystem fixed several bugs releated to misaligned load / store requests. This update also includes the latest performance improvements of the Kunminghu architecture.

Recent developments

Frontend

  • Bug Fixes
  • Fixed the issue where instruction prefetching did not correctly flush after encountering a Guest Pagefault (#3996)
  • Added a workaround for same-address read/write in dual-port SRAM according to SRAM library constraints (#4002)
  • Fixed an issue with incorrect RAS predictor updates under power down and up reset (#4048)

  • Features

  • Allow speculative instruction fetching in Svpbmt NC space (#3944)
  • Fixed some parameterization issues (#3950)

Backend

  • Bug Fixes

    • Fixed an issue where some vector instructions failed to set vs dirty (#4024).
    • Fixed incorrect vlmax configuration when LMUL is less than 1 (#4028).
    • Fixed an issue in rocket-chip where vector mask instructions did not preserve vm = 0 (#3918).
    • Fixed snapshot selection and walk refresh errors when rob is full (#4049).
    • Fixed an issue where writing sdt incorrectly cleared sie when menvcfg.DTE was disabled (#4064).
    • Fixed errors in calculating the trap PC for certain interrupts processed in VS mode (#4054).
    • Fixed FS/VS dirty synchronization logic in NEMU (#720).
    • Fixed a series of issues related to LCOFI interrupts in NEMU (#733, #729).
  • Area Optimization

    • Backend area has been reduced by 25%.
    • Encoded exuOH in IQ as UInt type to reduce storage space (#4033).
    • Fixed the large area issue in VFMA/FMA (#4069).
    • Added an optional parameter to functional units for controlling the copying of source operands (#4063).
    • Incorporated previously completed PPA optimization points, including new dispatch logic, new TargeMem, and reducing four scalar floating-point units to three (#4049).
  • Timing Optimization

    • Modified rob selection logic to accurately select from dequeue groups (#4067).
    • Updated the complex vector decoder to output 6 uop per cycle in order (#4025).
    • Added newestTarget bypass to store one copy instead of one for each read port (#4049).
  • RVA23 Profile

    • Trace extension has been merged into the XiangShan master (#3843).

MemBlock and cache

  • CHI Bus
  • Improve the concurrency of the CHI-AXI bridge (#4008)

  • RVA23 Profile

  • CMO: Add a test environment for cbo.inval instruction on tl-test-new, with dual-core testing (tl-test-new #45)
  • Svpbmt: support pbmt in CHI scene (#4071). Including: L1 deliver the NC and PMA signals of uncacheReq to L2, L2 supports Svpbmt on CHI MemAttr (CoupledL2 #273), OpenLLC supports non-cache requests forwarding directly downstream without entering the slice (OpenLLC #28)
  • Zacas: add support for Zacas extension and has already merged into master (#3958)

  • Bug fixes

  • Fix several bugs releated to misaligned load / store requests (#4053), (#4057), (#4077)

  • PPA Optimizations

  • Timing: Optimize critical path in StoreQueue (#3988)
  • Area: Remove redundant registers in VirtualLoadQueue (#4061); Remove redundant CacheOpDecoder in DCache (#4050)
  • Power Consumption: Trim LSQ and optimize MemBlock power consumption (#4059); Single-core shutdown for smoke testing

RTL Evaluation

We used SimPoint for program sampling and created checkpoint images based on our custom Checkpoint format, with a SimPoint clustering coverage of 100%. SPEC CPU2006 was compiled using gcc12 with O3 optimization enabled, the jemalloc memory library, and the -ffp-contraction option for SPECfp 2006 set to fast. The instruction set used was RV64GCB. We ran SPEC CPU2006 checkpoints on the XiangShan processor commit 0ed0e48 from December 22 (configured with 64KB L1 ICache, 64KB L1 DCache, 1MB L2, and 16MB L3, and a 3ld2st LSU) in a simulation environment. DRAMsim3 was used to simulate DDR4-3200 memory latency with a CPU running at 3GHz. Below are the estimated SPEC CPU2006 scores:

SPECint 2006 est. @ 3GHz SPECfp 2006 est. @ 3GHz
400.perlbench 35.86 410.bwaves 66.67
401.bzip2 25.60 416.gamess 41.14
403.gcc 46.75 433.milc 45.41
429.mcf 58.19 434.zeusmp 52.11
445.gobmk 30.74 435.gromacs 33.73
456.hmmer 41.72 436.cactusADM 46.20
458.sjeng 30.64 437.leslie3d 46.19
462.libquantum 119.99 444.namd 28.92
464.h264ref 56.72 447.dealII 73.42
471.omnetpp 39.46 450.soplex 52.28
473.astar 29.27 453.povray 53.68
483.xalancbmk 72.22 454.Calculix 16.39
GEOMEAN 44.21 459.GemsFDTD 36.49
465.tonto 36.77
470.lbm 91.26
481.wrf 40.73
482.sphinx3 48.62
GEOMEAN 44.63

Scores are estimated with SimPoint checkpoints of SPEC CPU2006, which might deviate from real chip!

Afterthought

XiangShan Open Source Processor is under agile development, new features and new optimisations are continuously added, we will regularly synchronise our open source progress through the XiangShan biweekly column. Thank you for your attention, and welcome to communicate with us in the background!

In the late stage of XiangShan Kunminghu architecture development, XiangShan's performance will be announced once a month. Please look forward to it.

  • XiangShan technical discussion QQ group: 879550595
  • XiangShan technical discussion website: https://github.com/OpenXiangShan/XiangShan/discussions
  • XiangShan Documentation: https://xiangshan-doc.readthedocs.io/

Editors: Li Yanqin, Lin Zhida, Man Yang, Liu Zehao, Feng Haoyuan, Ma Yuexiao

Reviewer: XiangShan Publicity Team