How hrishinahta/ml-based-hardware-for-gesture-recognition-at-the-edge works
This repository contains a hardware-oriented, four-layer neural-network inference model, alongside Python scripts that reproduce and inspect its calculations. The Python workflow loads Layer 1 inputs and parameters, produces intermediate files consumed by Layers 2–4, and emits numeric outputs. RTL directories show corresponding layer components and a top module; their internal wiring is not shown in the supplied excerpts, so inferred RTL stage connections are dashed. No README content was supplied, and the Layer 5 hard-max module’s role in the full inference path is therefore uncertain.
Main entry points: Model_2_top.v Model top module · Layer_1.py Layer 1 reference · Layer_2.py Layer 2 reference · layer 2 Convolution and pooling
Components 16
Model data
- Input samples
inputs - Weights and biases
weights
Python reference
- Layer 1 reference
python/code/Layer_1.py - Layer 2 reference
python/code/Layer_2.py - Layer 3 reference
python/code/Layer_3.py - Layer 4 reference
python/code/Layer_4.py
RTL inference
- Model top module
rtl/top module/Model_2_top.v - Convolution and pooling
rtl/layer 1/L_1_0_0_Main.v - Layer interface
rtl/layer 1 to layer 2 interface/L_1_6_L_2_0_Interface.v - Convolution and pooling
rtl/layer 2 - Dense layer
rtl/layer 3/L_3_0_0_Dense1.v - Dense layer
rtl/layer 4/L_4_0_0_Dense2.v - Hard-max output
rtl/layer 5/L_5_0_0_HardMax.v
Python verification
- Layer 1 verifier
python/code/Layer_1_Verify.py - Layer 2 verifier
python/code/Layer_2_Verify_All_Process.py - Single-process verifier
python/code/Layer_2_Verify_Single_Process.py
Connections 20
- Input samples → Layer 1 reference: loads samples
python/code/Layer_1.py - Weights and biases → Layer 1 reference: loads parameters
python/code/Layer_1.py - Layer 1 reference → Layer 2 reference: writes layer outputs
python/code/Layer_1.py - Layer 2 reference → Layer 3 reference: writes layer outputs
python/code/Layer_2.py - Layer 3 reference → Layer 4 reference: writes layer outputs
python/code/Layer_3.py - Input samples → Layer 1 verifier: loads samples
python/code/Layer_1_Verify.py - Weights and biases → Layer 1 verifier: loads parameters
python/code/Layer_1_Verify.py - Layer 1 verifier → Layer 2 reference: writes layer outputs
python/code/Layer_1_Verify.py - Layer 1 reference → Layer 2 verifier: loads layer outputs
python/code/Layer_2_Verify_All_Process.py - Layer 1 reference → Single-process verifier: loads layer outputs
python/code/Layer_2_Verify_Single_Process.py - Model top module → Convolution and pooling: dispatches to
- Model top module → Convolution and pooling: dispatches to
- Model top module → Dense layer: dispatches to
- Model top module → Dense layer: dispatches to
- Model top module → Hard-max output: dispatches to
- Convolution and pooling → Layer interface: feeds interface
- Layer interface → Convolution and pooling: feeds layer
- Convolution and pooling → Dense layer: feeds layer
- Dense layer → Dense layer: feeds layer
- Dense layer → Hard-max output: feeds output