How gajaredarsh/qpsk-modulator-and-demodulator-on-fpga works
This repository is a Python golden-model simulation of a QPSK digital communication chain intended to support an FPGA project. A bit source and QPSK modulator generate a carrier-based signal; the simulated AWGN channel adds noise; receiver mixing and FIR filtering recover I/Q samples; symbol integration and decisions recover bits; and the runner evaluates BER, plots results, and exports hardware-oriented vectors. The graph also includes shared parameters and fixed-point utilities. Some documented capabilities, including channel internals, are represented by their source paths but were not sampled directly.
Main entry points: main.py End-to-end runner · fixedpoint.py Fixed-point utilities · tx_nco.py TX modulator · rx_frontend.py RX downconverter
Components 16
Transmit
- PRBS bit source
python_codes/tx_nco.py - QPSK mapper
python_codes/tx_nco.py - Carrier NCO
python_codes/tx_nco.py - TX modulator
python_codes/tx_nco.py
Channel
- AWGN channel
python_codes/channel.py - Noise modes
python_codes/channel.py
Receive
- RX downconverter
python_codes/rx_frontend.py - FIR filter
python_codes/rx_frontend.py - Symbol decisions
python_codes/rx_backend_eval.py
Model and evaluation
- End-to-end runner
python_codes/main.py - BER analysis
python_codes/rx_backend_eval.py - Plots
python_codes/rx_backend_eval.py - Vector export
python_codes/rx_backend_eval.py - Fixed-point utilities
python_codes/fixedpoint.py - Shared parameters
python_codes/params.py
Other components
- Simulation user
Connections 18
- Simulation user → End-to-end runner: runs
README.md - End-to-end runner → PRBS bit source: generates bits
python_codes/main.py - End-to-end runner → QPSK mapper: maps symbols
python_codes/main.py - End-to-end runner → Carrier NCO: generates carrier
python_codes/main.py - End-to-end runner → TX modulator: modulates
python_codes/main.py - End-to-end runner → AWGN channel: adds noise
python_codes/main.py - End-to-end runner → Noise modes: selects noise
README.md - End-to-end runner → RX downconverter: downconverts
python_codes/main.py - End-to-end runner → FIR filter: filters
python_codes/main.py - End-to-end runner → Symbol decisions: decodes symbols
python_codes/main.py - End-to-end runner → BER analysis: evaluates BER
python_codes/main.py - End-to-end runner → Plots: creates plots
python_codes/main.py - End-to-end runner → Vector export: exports vectors
python_codes/main.py - End-to-end runner → Fixed-point utilities: uses quantization
python_codes/main.py - TX modulator → Shared parameters: reads settings
python_codes/tx_nco.py - RX downconverter → Fixed-point utilities: quantizes samples
python_codes/rx_frontend.py - FIR filter → Fixed-point utilities: uses quantization
python_codes/rx_frontend.py - Symbol decisions → Fixed-point utilities: writes hex
python_codes/rx_backend_eval.py