How bhaskar0120/hardpy works
HardPy is a small Python toolkit for describing digital circuits as composable signal and operation objects, then rendering them as synthesizable Verilog. The main workflow is to create nodes and primitives, connect them into a circuit, and use a Module to traverse the output dependencies and assemble declarations and assignments. The excerpts support these core relationships; the README also describes the graph-building capability. No external integrations or separate storage systems are shown.
Main entry points: Node.py Signals and operations · Module.py Module builder · Primitives.py Circuit primitives
Components 5
Circuit model
- Signals and operations
Node.py - Circuit primitives
Primitives.py
Verilog output
- Module builder
Module.py - Synthesizable Verilog
Other components
- Circuit designer
Connections 5
- Circuit designer → Signals and operations: describes circuits
README.md - Circuit designer → Circuit primitives: uses primitives
README.md - Circuit primitives → Signals and operations: constructs nodes
Primitives.py - Module builder → Signals and operations: traverses dependencies
Module.py - Module builder → Synthesizable Verilog: renders Verilog
Module.py