Jelajahi Sumber

Update TD phy CDC checks for x/y limit synchronizers.

Generated with Devin.
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Codex Resource Selftest 4 bulan lalu
induk
melakukan
3cbddfc50f
2 mengubah file dengan 10 tambahan dan 4 penghapusan
  1. 7 1
      td/phy/prod2u_p4_normal_v3.tcl
  2. 3 3
      tools/prod2u_p4_harness.py

+ 7 - 1
td/phy/prod2u_p4_normal_v3.tcl

@@ -18,6 +18,10 @@ set cdc_specs {
     {i2c_scl_1 {{u_temperature_i2c/impl/scl_sync_reg\[1\]}} u_temperature_i2c/scl_sync[1]}
     {i2c_sda_0 {{u_temperature_i2c/impl/sda_sync_reg\[0\]}} u_temperature_i2c/sda_sync[0]}
     {i2c_sda_1 {{u_temperature_i2c/impl/sda_sync_reg\[1\]}} u_temperature_i2c/sda_sync[1]}
+    {x_limit_0 {{x_limit_sync0_reg}} x_limit_sync0}
+    {x_limit_1 {{x_limit_sync1_reg}} x_limit_sync1}
+    {y_limit_0 {{y_limit_sync0_reg}} y_limit_sync0}
+    {y_limit_1 {{y_limit_sync1_reg}} y_limit_sync1}
 }
 set cdc_report [open {prod2u_p4_normal_v3_cdc.rpt} w]
 puts $cdc_report {schema=prod2u-p4-normal-v3-cdc-v2}
@@ -36,13 +40,15 @@ foreach group $cdc_specs {
         puts $cdc_report "retained_sync_register=$normalized"
     }
 }
-if {[llength $cdc_actual] != 6} {
+if {[llength $cdc_actual] != 10} {
     lappend cdc_failures "sync_total:[llength $cdc_actual]"
 }
 set false_path_pairs {
     {host_uart_rx {u_uart_rx/rx_sync_pipe_reg\[0\]} u_uart_rx/rx_sync_pipe[0]}
     {temp_scl {u_temperature_i2c/impl/scl_sync_reg\[0\]} u_temperature_i2c/scl_sync[0]}
     {temp_sda {u_temperature_i2c/impl/sda_sync_reg\[0\]} u_temperature_i2c/sda_sync[0]}
+    {x_limit_raw {x_limit_sync0_reg} x_limit_sync0}
+    {y_limit_raw {y_limit_sync0_reg} y_limit_sync0}
 }
 foreach pair $false_path_pairs {
     lassign $pair source endpoint_pattern normalized

+ 3 - 3
tools/prod2u_p4_harness.py

@@ -3733,10 +3733,10 @@ def _td_final_failures(
     structural = receipt.get("structural_gate")
     cdc = structural.get("cdc") if isinstance(structural, Mapping) else None
     expected_cdc = {
-        "async_reg": 6,
+        "async_reg": len(EXPECTED_CDC_SYNC_REGISTERS),
         "input_registers": EXPECTED_CDC_INPUT_REGISTERS,
-        "retained_sync_registers": 6,
-        "first_stage_endpoints": 3,
+        "retained_sync_registers": len(EXPECTED_CDC_SYNC_REGISTERS),
+        "first_stage_endpoints": len(EXPECTED_CDC_FALSE_PATH_ENDPOINTS),
     }
     cdc_ok = isinstance(cdc, Mapping) and cdc.get("status") == "pass"
     for name, expected in expected_cdc.items():