🧩 c_to_hdl/

GitHub
Hybrid License


📖 概要 / Overview

JP:
このディレクトリは、Cコードで記述された制御式やアルゴリズムVerilog HDL に変換するためのプロンプトテンプレート集です。
ChatGPTなどのLLMと連携し、自動コード生成実装演習を効率的に行うための基盤を提供します。

EN:
This directory contains prompt templates for converting control expressions or algorithms written in C into Verilog HDL.
It is designed to work with ChatGPT or similar LLMs, enabling efficient automatic code generation and hands-on implementation exercises.


📄 内容 / Contents

ファイル名 / Filename 内容 / Description
prompt.md C→Verilog変換プロンプト(ChatGPT連携)
Prompt template for C→Verilog conversion (ChatGPT integration)

🔧 使用例 / Usage Examples

例 / Example (C code → Verilog):

// C言語での制御式
output = Kp * error + Ki * integral;

prompt.md に貼り付けて Verilog変換を依頼
→ Paste into prompt.md and request Verilog conversion


🛠️ 今後の拡張 / Planned Extensions



📄 ライセンス / License

教材・コード・図表の性質に応じた ハイブリッドライセンス を採用
Hybrid licensing based on the nature of materials, code, and diagrams.

項目 / Item ライセンス / License 説明 / Description
コード(Code) MIT License 自由に使用・改変・再配布可
Free to use, modify, and redistribute
教材テキスト(Text materials) CC BY 4.0 著者表示必須
Attribution required
図表・イラスト(Figures & diagrams) CC BY-NC 4.0 非商用利用のみ可
Non-commercial use only
外部引用(External references) 元ライセンスに従う
Follow the original license
引用元を明記
Cite the original source

🏠 トップページ / Back to Home