Line-rate Ethernet Frame Inline Network Filter
Achieves 99% accuracy on the USTC-TFC2016 dataset
- RealDigital 4x2 RFSoC (ZYNQ Ultrascale+ ZU48DR)
- Mellanox ConnectX-4 Lx EN (MCX4121A-ACAT)
- QSFP28 to 4xSFP28 Direct Attach Copper cable
MIT 6.S965: Digital Systems Laboratory II (Fall 2025)
# Run the axis_conv1d test
uv run -m sim.nn.test_axis_conv1d
# Preprocess the dataset
uv run -m model.dataset --layer l2 --mode packet
# Train the model
uv run -m model.model --dataset-layer l2
# Export weights to SystemVerilog
uv run -m model.export_weights --ckpt model/checkpoints/ustc_packet_l2/best_int8.pt --out hdl/model/includes/model_params.svh
- Launch vivado from repo directory
- Run
vivado.tclscript from Vivado
uv run replay_filter_eval.py run --tx eth0 --rx eth1 --payload-layer l2 --count 5000