2026-02-01から1ヶ月間の記事一覧
前回の続き: msyksphinz.hatenablog.com Computer Architecture: A Quantitative Approach 7th Edition において、4章を全体的に読んでいこうと思う。 Computer Architecture: A Quantitative Approach (The Morgan Kaufmann Series in Computer Architectur…
前回の続き: msyksphinz.hatenablog.com Computer Architecture: A Quantitative Approach 7th Edition において、4章を全体的に読んでいこうと思う。 Computer Architecture: A Quantitative Approach (The Morgan Kaufmann Series in Computer Architectur…
前回の続き: msyksphinz.hatenablog.com 最後に、Phase 3 で用意している estimate_ipc を使って、SPEC CPU2006 の整数ベンチ(SPECint、全 12 本)をまとめて流し切った結果を記録しておく。 対象は次のベンチマーク群で、いずれも「SimPoint ごとの IPC を…
前回の続き: msyksphinz.hatenablog.com Phase 3 では estimate_ipc により、各 SimPoint の IPC を重み付きで集約し、ベンチマーク単位の 全体 IPC と SPEC/GHz を求め、CSV とテキストで出力する。ここで動く estimate_ipc.py の入出力と処理内容をまとめ…
前回の続き。Phase 2 では、全 SimPoint を列挙し、それぞれについて SIFT トレースの生成 → Sniper でのシミュレーション → SIFT の削除 を行う。ここで動く ci_pipeline.sh の phase2 と run_sift_single_simpoint.sh の入出力・処理内容を整理する。 Phas…
前回の続き:msyksphinz.hatenablog.com build_simpoint、run_simpoint、build_sniper、clean-bbv の役割と、Makefile がどう動かしているかをまとめる。 Phase 1 後半のブロック図 bbv_results/<benchmark>/bbv_*.out.*.bb │ v run_simpoint (Makefile 内で parallel </benchmark>…
msyksphinz.hatenablog.com 前回の続き。Phase 1 の前半として、build-qemu、prepare、build、run_bbv が何をしているか、どのスクリプトが動くか、入出力を整理する。 Phase 1 前半のブロック図 [リポジトリルート] │ ├─ make -C REPO_ROOT build-qemu │ → …
GitHub Actions で動かしている SPEC CPU2006 の SimPoint ベース評価パイプラインについて、何が実行されているかをステップごとに説明する。 パイプラインでやっていること(一行要約) QEMU (RISC-V) 上で SPEC CPU2006 のベンチマークを実行し、BBV(Bas…
前回の続き: msyksphinz.hatenablog.com Computer Architecture: A Quantitative Approach 7th Edition において、GPUの部分の確認したいので、4章を全体的に読んでいこうと思う。 Computer Architecture: A Quantitative Approach (The Morgan Kaufmann Ser…
前回の続き: msyksphinz.hatenablog.com Computer Architecture: A Quantitative Approach 7th Edition において、GPUの部分の確認したいので、4章を全体的に読んでいこうと思う。 Computer Architecture: A Quantitative Approach (The Morgan Kaufmann Ser…
前回の続き: msyksphinz.hatenablog.com Computer Architecture: A Quantitative Approach 7th Edition において、GPUの部分の確認したいので、4章を全体的に読んでいこうと思う。 Computer Architecture: A Quantitative Approach (The Morgan Kaufmann Ser…
Computer Architecture: A Quantitative Approach 7th Edition において、GPUの部分の確認したいので、4章を全体的に読んでいこうと思う。 Computer Architecture: A Quantitative Approach (The Morgan Kaufmann Series in Computer Architecture and Desig…
前回の続き:msyksphinz.hatenablog.com RISC-VのDebug SpecificationにおけるAbstract Commandは、DM(Debug Module)がHARTに対して指令を送るためのコマンドである。Abstract Commandを通じて、HART内のレジスタアクセスやプログラムの実行などを行うことが…
前回の続き:msyksphinz.hatenablog.com 前回までで、 Debug Mode Debug Module Abstract Command レジスタアクセス あたりを整理した。 ここまでで 最小構成のDebug機能 は作れるが、ただ、Debug SpecのSystem Overviewを見ると、まだいくつかのブロックが…
前回の続き:msyksphinz.hatenablog.com 前回までで、RISC-V Debugの最小構成として DTM: Debug Transport Unit DMI: Debug Module Interface DM: Debug Module HART の Debug Mode を整理した。このなかで、DMはAbstract Command は DM から HART へ流され…
前回の続き:msyksphinz.hatenablog.com レジスタアクセス用のインタフェース 次に、DMからHARTのレジスタファイルやdebug CSRへアクセスするためのインタフェースを考える。 最小構成ではAbstract Command経由で、 GPR dcsr dpc を読み書きできればよい。 …
前回の続き:msyksphinz.hatenablog.com RISC-V Debugのインタフェースを整理する 前回は、RISC-V Debugの最小構成として DTM DMI DM HARTのDebug Mode の4つに分けて整理した。 今回は、これをRTLに落とすときに必要になるインタフェースを整理する。Debug …
前回の続き:msyksphinz.hatenablog.com Debug Module(DM) がやること CPU の外に置く Debug Module(DM) は、外部デバッガから来た要求を各 hart への制御に変換する中核である。 最小構成の DM に最低限ほしい役割は以下だ。 HART の halt HART の resume h…
RISC-V Debug Specを読みながら、自作CPUにデバッグ機能を入れるための構成を整理している。 Debug Spec は対象範囲が広く、最初に読むと「CPU に何を追加すればよいのか」と「CPU の外に何を置くべきか」が少し見えづらい。 特に整理したいのは以下の点だ。…