Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
『Verylで作るCPU』を読んでいる
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Kenta
October 17, 2025
Technology
250
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
『Verylで作るCPU』を読んでいる
Kenta
October 17, 2025
More Decks by Kenta
See All by Kenta
マイクロプログラム制御方式のCPUを自作した話
kenta11
0
510
Elixirで作る将棋ソフト
kenta11
0
170
失くしたリモコンを作る2
kenta11
0
110
失くしたリモコンを作る
kenta11
0
58
Other Decks in Technology
See All in Technology
Browser Spec: Testing Hotwire with Ruby
takahashim
1
130
Active Record Connection Adaptersにおける長年の課題に再び取り組む
yahonda
0
300
ブラウザとサーバーから考えるAI時代のフロントエンド監視
shogo4131
3
1k
パスキーの自動テストはどこまでいけるのか
teamlab
PRO
0
290
[JAWS-UG彩の国埼玉#12]そろそろ準備する?re:Invent2026をやさしく解説 / reinvent2026-sainokuni
sh_fk2
1
360
自作バイナリを動かす「入口」8選
puhitaku
2
1.3k
『SAR衛星データ解析入門』のご紹介とその応用
syuchimu
0
130
Running Kotlin + Quarkus with Lambda
nealle
1
4k
Conditional PED-ANOVA: Hyperparameter Importance in Hierarchical & Dynamic Search Spaces
pfn
PRO
0
140
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
2
320
How to Design Configuration for Rails Applications
willnet
1
860
OptunaHub: ブラックボックス最適化のためのプラットフォーム
pfn
PRO
0
140
Featured
See All Featured
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
270
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
330
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
330
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
300
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
67k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
So, you think you're a good person
axbom
PRO
2
2.2k
Designing Experiences People Love
moore
143
24k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
What's in a price? How to price your products and services
michaelherold
247
13k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
Transcript
『Verylで作るCPU』 を読んでいる Kenta Arai 2025/10/18 『Verylで作るCPU』を読んでいる@第6回 自作CPUを語る会 1
自己紹介 • 名前:Kenta Arai • Twitter: @isKenta14 • Qiita: Kenta11
• 仕事:組込みソフトウェア開発 • 趣味で作ったもの • micro-alpha • 簡素なマイクロプログラム制御方式CPU • Xilinx FPGA 上で実際に動かせました • simple_uart:UART の SystemVerilog 実装 2025/10/18 『Verylで作るCPU』を読んでいる@第6回 自作CPUを語る会 2
これまでにやった自作CPU • MICRO-1[1]:マイクロプログラム制御方式の簡素なCPU • 制御部 • 制御記憶:1語40ビット、最大4K語の容量 • アドレス長:12ビット •
被制御部 • 主記憶:1語16ビット、最大64K語の容量 • 汎用レジスタ:16ビット×8 • SystemVerilog で実装 • Xilinx FPGA 上で動作させることができた • PC と FPGA 間を UART で接続 • 逆ポーランド記法の電卓が動作した 2025/10/18 『Verylで作るCPU』を読んでいる@第6回 自作CPUを語る会 3 [1] 馬場敬信:ソフトウェア講座(23)マイクロプログラミング, 昭晃堂, pp. 31-107, 1985 図. デモプログラムが動作する様子
SystemVerilog で書くのは結構ツライ • Verilog-HDL から続く古典的な構文スタイル • 手頃なフォーマッタや静的解析ツールが少ない →Veryl が解決してくれるかも? 2025/10/18
『Verylで作るCPU』を読んでいる@第6回 自作CPUを語る会 4
Veryl • SystemVerilog にトランスパイルされる HDL • JavaScript にとっての TypeScript みたいな立ち位置
• 文法がモダンで書きやすい • 公式も「学習の容易さ、設計プロセスの信頼性と効率の向上、および コードの記述の容易さが実現されます。」と言っている • トランスパイラだけでなく、静的解析器やコードフォーマッタ 等のツールチェインも公開されている • verylup で一通りインストールできる • 文法だけでなく、この辺のエコシステムも含めて Rust の影響を受け ているっぽい 2025/10/18 『Verylで作るCPU』を読んでいる@第6回 自作CPUを語る会 5
Veryl の書きやすいところ • コードブロック • SystemVerilog だと begin, end のところ、Veryl
では {} • 複数 bit の信号の宣言 2025/10/18 『Verylで作るCPU』を読んでいる@第6回 自作CPUを語る会 6 • 列挙型の定義と名前空間
Veryl で感心したアイデア • リセットの性質(極性と同期)をコードから分離できる • SystemVerilog では、文法上はリセットはあくまで信号の1つ • Veryl ではリセット型を用意し、リセット専用の構文を備えており
リセットの性質は設定ファイルから変更できる 2025/10/18 『Verylで作るCPU』を読んでいる@第6回 自作CPUを語る会 7
Veryl で自作 CPU をしたい • そんなことを考えていたら、すでに素敵なテキストがあった Verylで作るCPU • Veryl で
RISC-V を実装する内容 • 執筆中のようで、目次を読むと、ゆくゆくは Linux を動かす構 想もあるみたい 2025/10/18 『Verylで作るCPU』を読んでいる@第6回 自作CPUを語る会 8
『Verylで作るCPU』を読んでいる • テキストを読み進めながら RISC-V コアを実装中 • 実装の進捗は Zenn でスクラップにしてます •
テキストで直したら良さそうなところは PR 投げてます • みなさんも一緒に読みませんか? 2025/10/18 『Verylで作るCPU』を読んでいる@第6回 自作CPUを語る会 9