From 161e9a66e417ffc3f8b7d3af281aaedb47ac19f5 Mon Sep 17 00:00:00 2001 From: Jason <83615043+JJassonn69@users.noreply.github.com> Date: Thu, 16 Apr 2026 17:51:09 +0545 Subject: [PATCH] =?UTF-8?q?fix:=20clarify=20comments=20=E2=80=94=20AGC=20w?= =?UTF-8?q?idth,=20dual-USB=20docstring,=20BE=20datasheet=20ref?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 9_Firmware/9_2_FPGA/usb_data_interface.v | 4 ++-- 9_Firmware/9_3_GUI/v7/hardware.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/9_Firmware/9_2_FPGA/usb_data_interface.v b/9_Firmware/9_2_FPGA/usb_data_interface.v index 2545591..bcb0272 100644 --- a/9_Firmware/9_2_FPGA/usb_data_interface.v +++ b/9_Firmware/9_2_FPGA/usb_data_interface.v @@ -29,7 +29,7 @@ module usb_data_interface ( // FT601 Interface (Slave FIFO mode) // Data bus inout wire [31:0] ft601_data, // 32-bit bidirectional data bus - output reg [3:0] ft601_be, // Byte enable (active-HIGH per FT601 datasheet / AN_378) + output reg [3:0] ft601_be, // Byte enable (active-HIGH per DS_FT600Q-FT601Q Table 3.2) // Control signals // VESTIGIAL OUTPUTS — kept for 200T board port compatibility. @@ -374,7 +374,7 @@ always @(posedge ft601_clk_in or negedge ft601_effective_reset_n) begin // Word 4: AGC metrics + range_mode status_words[4] <= {status_agc_current_gain, // [31:28] status_agc_peak_magnitude, // [27:20] - status_agc_saturation_count, // [19:12] + status_agc_saturation_count, // [19:12] 8-bit saturation count status_agc_enable, // [11] 9'd0, // [10:2] reserved status_range_mode}; // [1:0] diff --git a/9_Firmware/9_3_GUI/v7/hardware.py b/9_Firmware/9_3_GUI/v7/hardware.py index 2d85dc7..d36aa1a 100644 --- a/9_Firmware/9_3_GUI/v7/hardware.py +++ b/9_Firmware/9_3_GUI/v7/hardware.py @@ -47,8 +47,9 @@ class STM32USBInterface: Used ONLY for receiving GPS data from the MCU. - FPGA register commands are sent via FT2232H (see FT2232HConnection - from radar_protocol.py). The old send_start_flag() / send_settings() + FPGA register commands are sent via the USB data interface — either + FT2232HConnection (production) or FT601Connection (premium), both + from radar_protocol.py. The old send_start_flag() / send_settings() methods have been removed — they used an incompatible magic-packet protocol that the FPGA does not understand. """