How abdelrahmanadwe/fir_filter works
This repository provides a parameterized FIR-filter hardware IP and an end-to-end DSP simulation. The main hardware workflow accepts AXI4-Stream samples, filters them through a pipelined fixed-point datapath, and buffers the output; an AXI4-Lite register file configures coefficients and runtime controls. The documented simulation separately models analog input, ADC quantization, FIR processing, DAC conversion, and sinc reconstruction. RTL source excerpts were not provided, so hardware relationships below rely on the README’s architecture description; simulation flow is supported by the excerpted script.
Main entry points: fir_filter_top.sv FIR IP Top · axi4_lite_regfile.sv AXI Lite Register File · fir_core_pipelined.sv Pipelined FIR Core · end_to_end_dsp_chain.py ADC Model
Components 14
Hardware Interfaces
- FIR IP Top
rtl/fir_filter_top.sv - AXI Lite Register File
rtl/axi4_lite_regfile.sv - Output Skid Buffer
rtl/axi_stream_skid_buffer.sv
Filter Datapath
- Pipelined FIR Core
rtl/fir_core_pipelined.sv - Adder Tree Stage
rtl/fir_adder_stage.sv
DSP Simulation
- Analog Signal
tb/end_to_end_dsp_chain.py - ADC Model
tb/end_to_end_dsp_chain.py - Fixed-Point FIR Model
tb/end_to_end_dsp_chain.py - DAC Model
tb/end_to_end_dsp_chain.py - Sinc Reconstruction
tb/end_to_end_dsp_chain.py - Signal Comparison
tb/end_to_end_dsp_chain.py - Golden FIR Model
tb/fir_golden_model.py
Other components
- Stream Source
- Control Master
Connections 12
- Stream Source → FIR IP Top: sends samples
README.md - Control Master → AXI Lite Register File: configures
README.md - FIR IP Top → AXI Lite Register File: integrates control
README.md - FIR IP Top → Pipelined FIR Core: routes samples
README.md - FIR IP Top → Output Skid Buffer: routes output
README.md - AXI Lite Register File → Pipelined FIR Core: supplies config
README.md - Pipelined FIR Core → Adder Tree Stage: uses stages
README.md - Analog Signal → ADC Model: is quantized
tb/end_to_end_dsp_chain.py - ADC Model → Fixed-Point FIR Model: provides codes
tb/end_to_end_dsp_chain.py - Fixed-Point FIR Model → DAC Model: provides codes
tb/end_to_end_dsp_chain.py - DAC Model → Sinc Reconstruction: provides voltages
tb/end_to_end_dsp_chain.py - Sinc Reconstruction → Signal Comparison: is evaluated
tb/end_to_end_dsp_chain.py