This repository contains the design and simulation of a real-time fall detection system based on a Convolutional Neural Network (CNN), implemented entirely in Verilog. The project focuses on simulating the CNN inference for fall detection using grayscale image inputs.
⚠️ Note: This project is a simulation-only design. No physical FPGA implementation was performed.
- Simulates a CNN-based fall detection system using Verilog HDL.
- Processes 64x64 grayscale images and classifies them as "Fall" or "Not Fall".
- CNN was trained in Python using TensorFlow, and weights were exported as
.memfiles for simulation. - Convolution, Pooling, Flattening, Dense layers, and Softmax is implemented in Verilog using fixed-point arithmetic.
- A comprehensive testbench loads inputs and verifies the output classification through simulation.
-
Hardware-Accurate CNN Simulation
Entire inference logic modeled in Verilog for real-time use-case simulation. -
Custom CNN Model
Lightweight grayscale CNN trained for binary classification (fall vs not fall) with exported.memfiles. -
Fixed-Point Design
Uses fixed-point representation for efficient computation and resource estimation. -
Verilog Testbench
A complete testbench is included to:- Load
.memfiles - Stimulate the design with input images
- Observe internal states and output
- Load
Design code,Testbench code,Python scripts used to train and generate weights and biases and .mem files.
📦 Note: The
.memfiles included in this repo are generated specifically for the trained CNN model used in this project and are not generic.
- Train the CNN model using Python (TensorFlow).
- Export trained weights, biases, and test image data to
.memformat. - Load the
.memfiles in the Verilog testbench. - Run the simulation using a tool like ModelSim or Vivado Simulator.
- Observe classification output and waveform behavior.
- Language: Verilog HDL
- Training: Python + TensorFlow
- Simulation: Xilinx Vivado
This project successfully simulates a CNN-based fall detection system in Verilog.
1.Naveen Kumar B-([email protected]) 2.Sabarish Mohan JS 3.Hemanth S
MIT – Feel free to use and modify with attribution.