324-pytorch-to-vhdl

Community

Turn PyTorch models into FPGA-ready VHDL.

Authorulf1
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Converts PyTorch neural networks into synthesizable VHDL so you can deploy bit-accurate inference on FPGA/ASIC hardware without manual RTL rewriting.

Core Features & Use Cases

  • Fixed-point quantization workflow: Converts model weights to hardware-friendly integer formats such as Q8.8 and Q1.15.
  • Layer-to-RTL mapping orchestration: Maps common PyTorch layers (e.g., nn.Linear, nn.ReLU, activations) to VHDL-friendly structures like MAC arrays and comparators using a layer rules knowledge base.
  • Simulation-based verification: Generates and runs GHDL simulation artifacts to validate that RTL behavior matches quantized Python expectations.

Use case: You have a trained PyTorch classifier and need a deterministic, FPGA-optimized inference pipeline with verified fixed-point behavior.

Quick Start

Use the 324-pytorch-to-vhdl skill to convert your PyTorch model into synthesizable VHDL using Q8.8 quantization and generate a matching GHDL testbench for cycle-accurate verification.

Dependency Matrix

Required Modules

None required

Components

assets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: 324-pytorch-to-vhdl
Download link: https://github.com/ulf1/trading-regime/archive/main.zip#324-pytorch-to-vhdl

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.