FPGA開発日記

カテゴリ別記事インデックス https://msyksphinz.github.io/github_pages , English Version https://fpgadevdiary.hatenadiary.com/

2026-02-01から1ヶ月間の記事一覧

Computer Architecture: A Quantitative Approach 7th Edition の 4章 (ベクタ、SIMD、GPU) を読む (6. ループの並列性)

前回の続き: msyksphinz.hatenablog.com Computer Architecture: A Quantitative Approach 7th Edition において、4章を全体的に読んでいこうと思う。 Computer Architecture: A Quantitative Approach (The Morgan Kaufmann Series in Computer Architectur…

Computer Architecture: A Quantitative Approach 7th Edition の 4章 (ベクタ、SIMD、GPU) を読む (5. ループの並列性)

前回の続き: msyksphinz.hatenablog.com Computer Architecture: A Quantitative Approach 7th Edition において、4章を全体的に読んでいこうと思う。 Computer Architecture: A Quantitative Approach (The Morgan Kaufmann Series in Computer Architectur…

SPEC CPU2006 SimPoint CI パイプラインまとめ (6. SPECベンチマーク全体を流してみる)

前回の続き: msyksphinz.hatenablog.com 最後に、Phase 3 で用意している estimate_ipc を使って、SPEC CPU2006 の整数ベンチ(SPECint、全 12 本)をまとめて流し切った結果を記録しておく。 対象は次のベンチマーク群で、いずれも「SimPoint ごとの IPC を…

SPEC CPU2006 SimPoint CI パイプラインまとめ (5. IPC 推定とレポート)

前回の続き: msyksphinz.hatenablog.com Phase 3 では estimate_ipc により、各 SimPoint の IPC を重み付きで集約し、ベンチマーク単位の 全体 IPC と SPEC/GHz を求め、CSV とテキストで出力する。ここで動く estimate_ipc.py の入出力と処理内容をまとめ…

SPEC CPU2006 SimPoint CI パイプラインまとめ (4. SIFT 生成と Sniper シミュレーション)

前回の続き。Phase 2 では、全 SimPoint を列挙し、それぞれについて SIFT トレースの生成 → Sniper でのシミュレーション → SIFT の削除 を行う。ここで動く ci_pipeline.sh の phase2 と run_sift_single_simpoint.sh の入出力・処理内容を整理する。 Phas…

SPEC CPU2006 SimPoint CI パイプラインまとめ (3. SimPoint 解析と Sniper ビルド)

前回の続き: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>…

SPEC CPU2006 SimPoint CI パイプラインまとめ (2. QEMU・SPEC準備・BBV収集)

msyksphinz.hatenablog.com 前回の続き。Phase 1 の前半として、build-qemu、prepare、build、run_bbv が何をしているか、どのスクリプトが動くか、入出力を整理する。 Phase 1 前半のブロック図 [リポジトリルート] │ ├─ make -C REPO_ROOT build-qemu │ → …

SPEC CPU2006 SimPoint CI パイプラインまとめ (1. 全体像とCIワークフロー)

GitHub Actions で動かしている SPEC CPU2006 の SimPoint ベース評価パイプラインについて、何が実行されているかをステップごとに説明する。 パイプラインでやっていること(一行要約) QEMU (RISC-V) 上で SPEC CPU2006 のベンチマークを実行し、BBV(Bas…

Computer Architecture: A Quantitative Approach 7th Edition の 4章 (ベクタ、SIMD、GPU) を読む (4. GPUについて)

前回の続き: 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 の 4章 (ベクタ、SIMD、GPU) を読む (3. convoy / chimeについて)

前回の続き: 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 の 4章 (ベクタ、SIMD、GPU) を読む (2. 4.2 ベクトル命令について)

前回の続き: 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 の 4章 (ベクタ、SIMD、GPU) を読む

Computer Architecture: A Quantitative Approach 7th Edition において、GPUの部分の確認したいので、4章を全体的に読んでいこうと思う。 Computer Architecture: A Quantitative Approach (The Morgan Kaufmann Series in Computer Architecture and Desig…

RISC-V Debugの最小構成を整理する(7. Abstract Commandの使い方についてまとめる)

前回の続き:msyksphinz.hatenablog.com RISC-VのDebug SpecificationにおけるAbstract Commandは、DM(Debug Module)がHARTに対して指令を送るためのコマンドである。Abstract Commandを通じて、HART内のレジスタアクセスやプログラムの実行などを行うことが…

RISC-V Debugの最小構成を整理する(6. Program Buffer / SBA / Trigger / Halt Groups を含めたRISC-V Debug全体構成)

前回の続き:msyksphinz.hatenablog.com 前回までで、 Debug Mode Debug Module Abstract Command レジスタアクセス あたりを整理した。 ここまでで 最小構成のDebug機能 は作れるが、ただ、Debug SpecのSystem Overviewを見ると、まだいくつかのブロックが…

RISC-V Debugの最小構成を整理する(5. Abstract Commandの扱い方)

前回の続き: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 へ流され…

RISC-V Debugの最小構成を整理する(4. Debugのレジスタアクセス用のインタフェース)

前回の続き:msyksphinz.hatenablog.com レジスタアクセス用のインタフェース 次に、DMからHARTのレジスタファイルやdebug CSRへアクセスするためのインタフェースを考える。 最小構成ではAbstract Command経由で、 GPR dcsr dpc を読み書きできればよい。 …

RISC-V Debugの最小構成を整理する(3. Debugのインタフェース)

前回の続き:msyksphinz.hatenablog.com RISC-V Debugのインタフェースを整理する 前回は、RISC-V Debugの最小構成として DTM DMI DM HARTのDebug Mode の4つに分けて整理した。 今回は、これをRTLに落とすときに必要になるインタフェースを整理する。Debug …

RISC-V Debugの最小構成を整理する(2. Debug Module: DM)

前回の続き:msyksphinz.hatenablog.com Debug Module(DM) がやること CPU の外に置く Debug Module(DM) は、外部デバッガから来た要求を各 hart への制御に変換する中核である。 最小構成の DM に最低限ほしい役割は以下だ。 HART の halt HART の resume h…

RISC-V Debugの最小構成を整理する(1. 最小構成の整理)

RISC-V Debug Specを読みながら、自作CPUにデバッグ機能を入れるための構成を整理している。 Debug Spec は対象範囲が広く、最初に読むと「CPU に何を追加すればよいのか」と「CPU の外に何を置くべきか」が少し見えづらい。 特に整理したいのは以下の点だ。…