Skip to the content
2 layers61.5 × 47.5 mmPcb reset buffer, the printed circuit board in 3D

Simulink models for Digital Sideband Separation on RFSoC 4x2

Size
61.5 × 47.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
13
Nets
35
Pads
65
Tracks, vias
43, 4
Pours
1
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
26 Sep 2024
Updated
31 Jul 2025

Overview

Pcb reset buffer is an open-source printed circuit board by millimeter-wave-lab, from the millimeter-wave-lab/RFSoC-MINI-2SB-Receiver repository on GitHub. It is a 2-layer board of 61.5 × 47.5 mm with 13 parts on 35 nets, routed with 43 tracks and 4 vias.

It is built around the SN74HC125N. Its parts include 5 resistors, 2 connectors, 1 capacitor and 1 IC.

Main components

1

README

README.md

RFSoC MINI 2SB Receiver

This repository contains Simulink models for (Ideal) Digital Sideband Separation on RFSoC 4x2 for Southern Millimeter Wave Telescope (or Southern Mini). Python and C++ scripts for initialization, control, and data analysis are included.

Simulink Models

The 64_bits_models/ and 32_bits_models/ folder contains Simulink designs for FPGA programming. Each model is built using Xilinx System Generator for DSP and targets FPGA boards such as the Zynq UltraScale+ RFSoC. To design the spectrometers, CASPER toolflow must be installed.

64 bits models (Experimental Only)

Three 64-bits models were designed and used in laboratory for test ideal sideband separation. These models have a 1.96608 GHz bandwidth and 64-bit BRAMs, and are available for the next spectral resolutions:

  • 2048 channels
  • 8192 channels
  • 16384 channels

32 bits models

Due to the 32-bit limitation of the radiotelescope microcontroller (PIC32), this repository includes spectrometer models with 32-bit BRAMs. These models are available for different spectral resolutions:

  • 8192 channels
  • 16384 channels
  • 32768 channels
  • 65536 channels (implemented in two separate models due to resource limitations.)

Each model includes:

  • 32-bit BRAM blocks for data acquisition, named synth0_i and synth1_i for the high-resolution spectrometer, and re_bin_synth0_i and re_bin_synth1_i for the parallel 512-channel spectrometer.
  • Reset accumulation control.
  • Bits re-quantization blocks.

Note: For the 65536-channel models, the User IP Clock Rate in the RFSoC 4x2 Simulink block was set to 122.88 MHz. This setting is required to match the Required AXI4-Stream Clock Rate of the RFDC block; otherwise, the model will fail to compile.

Python Scripts

This repository includes Python scripts for initializing the RFSoC, configuring registers, capturing data, and performing post-processing (e.g., plotting spectra, calculate SRR, etc.).

FileDescription
anim_dss_spectrum_1966mhz.pyPlots the spectrum in real time for a 1.96608 GHz bandwidth.
Usage: python anim_dss_spectrum_1966mhz.py <HOSTNAME_or_IP> <Nfft Size> <Data Output Width>
anim_dss_spectrum_65536ch_1966mhz.pyPlots the spectrum in real time for 65536-channel models, selects first or second half of the spectrum via part argument.
Usage: python anim_dss_spectrum_65536ch_1966mhz.py <HOSTNAME_or_IP> <Nfft Size> <Data Output Width> <part> (where part = 1 or 2)
sweep_srr_plot_1966mhz.pyPerforms a sweep across the full bandwidth and computes the Sideband Rejection Ratio (SRR).
Usage: python sweep_srr_plot_1966mhz.py <HOSTNAME_or_IP> <Nfft Size> <RF Instrument IP address> <Data Output Width>
sweep_srr_plot_65536ch_1966mhz.pySweeps a portion of the bandwidth and calculates the Sideband Rejection Ratio (SRR) for 65536-channel models. The script selects either the first or second half of the spectrum using the part argument.
Usage: python sweep_srr_plot_65536ch_1966mhz.py <HOSTNAME_or_IP> <Nfft Size> <RF Instrument IP address> <Data Output Width> <part> (where part = 1 or 2)
sweep_ph_plot_1966mhz.pySweeps across the full bandwidth and calculates phase difference between I and Q outputs. Only works for 64-bits models.
Usage: python sweep_ph_plot_1966mhz.py <HOSTNAME_or_IP> <Nfft Size> <RF instrument IP address> <Data Output Width>
plot_srr_ph_diff.pyPlots SRR or phase difference from a CSV file.
Usage: python plot_srr_ph_diff.py
plot_srr_65536ch.pyPlots SRR for 65536-channels spectrometer models. Reads two CSV files corresponding to first and second part of the bandwidth.
Usage: python plot_srr_65536ch.py
test_spec_cnt.pyTests the accumulation counter.
Usage: python test_spec_cnt.py

Mini Implementation

This section includes Python and C++ scripts used for communication testing and deployment of the RFSoC-based spectrometer system at the Southern Millimeter Wave Telescope (Mini).

Python Scripts

FileDescription
rfsoc4x2_spec_ini.pyInitializes and programs the RFSoC with the selected spectrometer model.
Usage: python rfsoc4x2_spec_ini.py
cpp_interface.pyPython interface that repeatedly requests spectra via the C++ client and measures the response time. Results are logged to a .csv file.
Usage: python cpp_interface.py
plot.pyPlots delays recorded during spectrum acquisition requests.
Usage: python plot.py
rfsoc_mini_client.pyPython client script used in the Mini radiotelescope Data Server. Requests spectra and transmits them to the PIC32 microcontroller.
Usage: python rfsoc_mini_client.py

C++ Scripts

FileDescription
rfsoc_<n_ch>ch_<mode>_server.cppC++ server that runs on the RFSoC. It waits for incoming client connections and sends spectrum data. Located in the rfsoc_server folder.

Parameters:
- n_ch: number of channels, valid values are 8192, 16384, or 32768.
- mode: operation mode, either cal (calibrated) or ideal (ideal model).
cpp_socket.cppC++ client that connects to the RFSoC server and requests spectrum data. It is compiled as a Python extension using pybind11, enabling integration with Python scripts.

Execution Flow

Below is the standard sequence to run the RFSoC spectrometer system:

  1. Program the RFSoC with the spectrometer bitstream
    Load the selected spectrometer model onto the RFSoC using the initialization script:

    bash
    python rfsoc4x2_spec_ini.py
  2. Start the RFSoC Server
    Connect to the RFSoC via SSH:

    bash
    ssh casper@<rfsoc-ip>

    Then, compile and run the server. The following example uses the 8192-channel server for the ideal model:

    bash
    g++ rfsoc_8192ch_ideal_server.cpp -o rfsoc_8192ch_ideal_server
    
    sudo ./rfsoc_8192ch_ideal_server

    Note: For 65536-channel models, use the 32768-channel server. The bitstream dss_ideal1_65536ch_32bits_reset_1966mhz_cx.fpg observes the first 32768 channels of the bandwidth, while dss_ideal2_65536ch_32bits_reset_1966mhz_cx.fpg observes the second 32768 channels.

  3. Compile the C++ Socket Client
    On the control computer, compile:

    bash
    c++ -O3 -Wall -shared -std=c++11 -fPIC `python3 -m pybind11 --includes` cpp_socket.cpp -o cpp_socket`python3-config --extension-suffix`
  4. Run the Python Interface
    Choose one of the following scripts depending on the use case:

    • Laboratory testing interface – This script repeatedly requests spectra via the C++ client and measures the response time. It logs the delays in a .csv file for later analysis.

      bash
      python cpp_interface.py
    • Mini telescope deployment interface – This script runs on the Data Server located at the Mini telescope site. It requests spectra from the RFSoC and sends them directly to the PIC32 microcontroller, without logging timing information.

      bash
      python rfsoc_mini_client.py

Parts

13
QtyValueFootprintReferences
5RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2, R3, R4, R5
1C_SmallCapacitor_THT:C_Disc_D3.0mm_W2.0mm_P2.50mmC1
1Conn_02x15_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x15_P2.54mm_VerticalJ2
1Conn_CoaxialConnector_Coaxial:SMA_Samtec_SMA-J-P-H-ST-EM1_EdgeMountJ1
1SN74HC125NSN74HC125N:DIP794W53P254L1930H508Q14NIC1

The 9 most common of 13 parts.

Similar boards

  • 2 layers127 × 101.6 mmLED Matrix Projectv3, the printed circuit board in 3D

    LED Matrix Projectv3

    Wil7ang/LEDMatrix

    LED Matrix display firmware.

    120 parts4GPL-2.0
  • 2 layers150 × 140 mmTrueskate main v1, the printed circuit board in 3D

    Trueskate main v1

    AsherNoble/trueskate-ai-hardware

    Hand-control layer for TrueSkate-AI: the agent sends touch gestures, a robotic finger performs them. Teensy 4.1 + SimpleFOC firmware, Python host.

    65 parts1MIT
  • 2 layers48.1 × 77.7 mmSensorToAmbient, the printed circuit board in 3D

    SensorToAmbient

    sonatine726/zakojifarm_iotfieldsensor

    座光寺農園の田んぼの環境センシングIoT機器

    27 parts
  • 2 layers53.3 × 101.6 mmCtrl main, the printed circuit board in 3D

    Ctrl main

    TORICA/torica_kicad

    19 parts
  • 2 layers40 × 20 mmUsb uart, the printed circuit board in 3D

    Usb uart

    earthtojake/text-to-cad

    Design physical products with AI

    13 parts26kMIT
  • 2 layers35 × 29 mmMagSpoofTC, the printed circuit board in 3D

    MagSpoofTC

    samyk/magspoof

    A portable device that can spoof/emulate any magnetic stripe, credit card or hotel card "wirelessly", even on standard magstripe (non-NFC/RFID) readers.

    13 parts4.2k
  • 2 layers20.6 × 23.6 mmAO-03 signal amplifier, the printed circuit board in 3D

    AO-03 signal amplifier

    fossasia/pslab-scripts

    Pocket Science Lab - Scripts for Sensor Experiments

    13 parts1.6kApache-2.0

Questions

How big is the Pcb reset buffer PCB?

It measures 61.5 × 47.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Pcb reset buffer use?

13 parts, built around the SN74HC125N. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Pcb reset buffer KiCad files?

From the millimeter-wave-lab/RFSoC-MINI-2SB-Receiver repository on GitHub, at the commit this page was made from: the board is pcb_reset/pcb_reset_buffer.kicad_pcb and its schematic pcb_reset/pcb_reset_buffer.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Pcb reset buffer design in my own project?

Its repository states no licence, so its author keeps all rights: ask millimeter-wave-lab before reusing the design.