{"id":13648129,"url":"https://github.com/NNgen/nngen","last_synced_at":"2025-04-22T06:33:12.710Z","repository":{"id":38855717,"uuid":"221174472","full_name":"NNgen/nngen","owner":"NNgen","description":"NNgen: A Fully-Customizable Hardware Synthesis Compiler for Deep Neural Network","archived":false,"fork":false,"pushed_at":"2023-10-17T01:54:07.000Z","size":1475,"stargazers_count":338,"open_issues_count":34,"forks_count":46,"subscribers_count":21,"default_branch":"develop","last_synced_at":"2024-10-14T13:55:54.839Z","etag":null,"topics":["compiler","deep-learning","hardware","high-level-synthesis","neural-network","onnx","python","pyverilog","verilog-hdl","veriloggen"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NNgen.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-11-12T09:04:35.000Z","updated_at":"2024-10-14T05:12:06.000Z","dependencies_parsed_at":"2022-08-10T00:30:15.100Z","dependency_job_id":"ccef9019-7c07-4cb4-a1ca-2702e36c41c6","html_url":"https://github.com/NNgen/nngen","commit_stats":{"total_commits":358,"total_committers":8,"mean_commits":44.75,"dds":0.08938547486033521,"last_synced_commit":"c235f98f25dab348345ed31e06f2f5894814f65e"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NNgen%2Fnngen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NNgen%2Fnngen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NNgen%2Fnngen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NNgen%2Fnngen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NNgen","download_url":"https://codeload.github.com/NNgen/nngen/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223892244,"owners_count":17220731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compiler","deep-learning","hardware","high-level-synthesis","neural-network","onnx","python","pyverilog","verilog-hdl","veriloggen"],"created_at":"2024-08-02T01:03:59.479Z","updated_at":"2025-04-22T06:33:12.704Z","avatar_url":"https://github.com/NNgen.png","language":"Python","funding_links":[],"categories":["Python","Accelerators"],"sub_categories":[],"readme":"NNgen\n==============================\n\nA Fully-Customizable Hardware Synthesis Compiler for Deep Neural Network\n\nCopyright 2017, Shinya Takamaeda-Yamazaki and Contributors\n\n\nライセンス\n==============================\n\nApache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)\n\n\nNNgenとは?\n==============================\n\nNNgenはディープニューラルネットワークのモデル特化ハードウェアアクセラレータを合成するオープンソースのコンパイラです。NNgenは入力モデル定義からDNNアクセラレータのVerilog HDLのソースコードとIPコアのパッケージを生成します。\n\n生成されたハードウェアは、プロセッシングエンジン、オンチップメモリ、オンチップネットワーク、DMAコントローラ、制御回路といったすべてが含まれています。そのため、生成されたハードウェアは、処理を開始した後は、外部の回路やCPUなどからの追加の制御をまったく必要としません。\n\nNNgenのバックエンドには、複数の記述パラダイムが利用できるオープンソースの高位合成コンパイラVeriloggenを用いています。そのため、新しいアルゴリズムやアプリケーションに応じて、NNgenの構成をカスタマイズすることができます。\n\n\nNNgenにコントリビュートするには\n==============================\n\nNNgenプロジェクトは質問、バグ報告、新しい機能提案、[GitHub](https://github.com/NNgen/nngen)上でのプルリクエストを常に歓迎します。\n\nコミュニティ管理者\n--------------------\n\nこのプロジェクトの管理者として、コミュニティ管理を主導し、ソフトウェアの開発と普及を促進する役割を担います。\n\nコミッタ\n--------------------\n\nコミッタは、プロジェクトへの書き込み権限を付与されている個人です。コミッタとして貢献するためには、コミュニティ管理者の承認が必要です。貢献の分野は、コードの貢献とレビュー、ドキュメント、教育、そしてアウトリーチなど、あらゆる形態をとることができます。高品質で健全なプロジェクトにはコミッタが不可欠です。コミュニティは貢献者からの新しいコミッタを積極的に探しています。\n\nレビュアー\n--------------------\n\nレビュアーは、プロジェクトに積極的に貢献し、新しい貢献のコードレビューに積極的に参加する個人です。積極的な貢献者の中から査読者を決定します。 コミッタはレビュアーにレビューを明示的に依頼してください。 高品質のコードレビューは長期にわたる技術的債務を防ぎ、プロジェクトの成功に不可欠です。 プロジェクトへのプルリクエストは、マージするために少なくとも1人のレビュアーによってレビューされる必要があります。\n\n質問、バグ報告、新しい機能提案について\n--------------------\n\nGitHubの[issue tracker](https://github.com/NNgen/nngen/issues)にコメントを残してください。\n\nプルリクエストについて\n--------------------\n\nプルリクエストを提供してくれた貢献者を確認するためには \"CONTRIBUTORS.md\"をチェックしてください。\n\nNNgenは統合テストにpytestフレームワークを使います。 プルリクエストを送信するときは、pytestにテスト例を含めてください。 テストコードを書くには、 \"tests\"ディレクトリにある既存のテスト例を参照してください。\n\nプルリクエスト対象のコードがすべてのテストをパスし、明白な問題がなければ、それはコミッタによってdevelopブランチにマージされます。\n\n\nインストール\n==============================\n\n要求ソフトウェア\n--------------------\n\n- Python3: 3.7.7 or later\n    - Apple Silicon上でのmacOS環境では、Python 3.10.6 (pyenvでインストール) を推奨します。\n- Icarus Verilog: 10.1 or later\n\n```\nsudo apt install iverilog\n```\n\n- veriloggen: 2.3.0 or later\n- numpy: 1.17 or later\n- onnx: 1.9.0 or later\n\n```\npip3 install veriloggen numpy onnx\n```\n\nインストール\n--------------------\n\n```\npython3 setup.py install\n```\n\nテストのための追加要求ソフトウェア\n--------------------\n\n**tests** にいくつかのテストコードがあり、これらを実行するためには以下のソフトウェアが必要になります。\n\n- pytest: 3.8.1 or later\n- pytest-pythonpath: 0.7.3 or later\n- PyTorch: 1.3.1 or later\n- torchvision: 0.4.2 or later\n\n```\npip3 install pytest pytest-pythonpath torch torchvision\n```\n\n高速なRTLシミュレーションにはVerilatorが必要となります。\n\n- Verilator: 3.916 or later\n\n```\nsudo apt install verilator\n```\n\nドキュメント生成のための要件\n--------------------\n\n- TeX Live: 2015 or later\n- dvipng: 1.15 or later\n\n```\nsudo apt install texlive-science texlive-fonts-recommended texlive-fonts-extra dvipng\n```\n\n- Sphinx: 2.10 or later\n- sphinx_rtd_theme : 0.4.3 or later\n\n```\npip3 install sphinx sphinx_rtd_theme\n```\n\nDocker\n--------------------\n\nDockerfileを用いてNNgen用の環境を構築することができます。\n\n```\ncd docker\nsudo docker build -t user/nngen .\nsudo docker run --name nngen -i -t user/nngen /bin/bash\ncd nngen/examples/mlp/\nmake\n```\n\n\nGetting Started\n==============================\n\n準備中です。英語版READMEをご参照下さい。\n\n\n関連プロジェクト\n==============================\n\n[Veriloggen](https://github.com/PyHDI/veriloggen)\n- PythonでVerilog HDLソースコードを構築するためのライブラリ\n\n[Pyverilog](https://github.com/PyHDI/Pyverilog)\n- PythonベースのVerilog HDLハードウェア設計処理ツールキット\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNNgen%2Fnngen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNNgen%2Fnngen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNNgen%2Fnngen/lists"}