XiangShan/scripts
Yan Xu 1592abd11e
feat: support inst lifetime trace (#4007)
PerfCCT(performance counter commit trace) is a Instruction-level
granularity perfCounter like GEM5
How to use this:
1. Make with "WITH_CHISELDB=1" argument
2. Run with "--dump-db --dump-select-db lifetime", then get the database
3. Instruction lifetime visualize run "python3 scripts/perfcct.py
"the-db-file-path" -p 1 -v | less"
4. Analysis script now is in XS-GEM5 repo, see
https://github.com/OpenXiangShan/GEM5/blob/xs-dev/util/ClockAnalysis.py

How it works:
1. Allocate one unique tag "seqNum" like GEM5 for each instruction at
fetch stage
2. Passing the "seqNum" in each pipeline
3. Recording perf data through the DPIC interface
2025-04-08 11:21:04 +08:00
..
cache
coverage
rolling chore(scripts): update to a working state by tutorial (#4415) 2025-03-14 11:21:19 +08:00
top-down feat(topdown): add vector freelist stalls 2025-03-17 14:26:24 +08:00
utils
constantHelper.py chore(scripts): update to a working state by tutorial (#4415) 2025-03-14 11:21:19 +08:00
gen_sep_mem.sh
generate_all.sh
parser.py
perfcct.py feat: support inst lifetime trace (#4007) 2025-04-08 11:21:04 +08:00
requirements.txt chore(scripts): update to a working state by tutorial (#4415) 2025-03-14 11:21:19 +08:00
sram_size_collect.py
statistics.py
vlsi_mem_gen
xiangshan.py ci: use fst instead of vcd (#4503) 2025-04-05 05:36:14 +08:00