Просмотр исходного кода

test: align 6400 quick gate with active top

codex 2 месяцев назад
Родитель
Сommit
3eddccb4ce

+ 13 - 0
ACTIVE_GOAL_LOCK.yaml

@@ -0,0 +1,13 @@
+goal: 6400-front-rear
+state: DISCOVERING
+authoritative_workspace: C:/temp/prod2u-thermal/workspace/thermal-system/cpld-temperature-control
+branch: codex/6400-front-rear-p0fix-local
+commit: a7759847c51a154252bafce5cc8e97bfe4f00833
+tree: 80e40952b4ae17c404f7183d752fd338570a4e8f
+lan_remote: ssh://root@edk2-uefi-lab/data/prod2u/git/cpld-temperature-control.git
+current_issue: Phase-A recovery and quick-gate revalidation
+next_command: tools/check_6400_closures.py; tools/run_6400_verify.py
+last_result: local and remote inventories found; WSL has no distributions
+hardware: NOT RUN
+jtag: NOT RUN
+com: NOT RUN

+ 9 - 0
LAN_SYNC.json

@@ -0,0 +1,9 @@
+{
+  "state": "SYNCING",
+  "remote_name": "lan",
+  "url": "ssh://root@edk2-uefi-lab/data/prod2u/git/cpld-temperature-control.git",
+  "branch": "codex/6400-front-rear-p0fix-local",
+  "commit": "a7759847c51a154252bafce5cc8e97bfe4f00833",
+  "tracking": "lan/codex/6400-front-rear-p0fix-local",
+  "last_probe": "2026-09-02T11:26:51Z"
+}

+ 13 - 0
OUTPUT_PATHS.md

@@ -0,0 +1,13 @@
+# 6400-front-rear output paths
+
+- Windows workspace: `C:/temp/prod2u-thermal/workspace/thermal-system/cpld-temperature-control`
+- Windows inbox: `C:/temp/prod2u-thermal/inbox`
+- Windows outbox: `C:/temp/prod2u-thermal/outbox`
+- Windows receipts: `C:/temp/prod2u-thermal/receipts`
+- Windows staging: `C:/temp/prod2u-thermal/staging`
+- Remote source snapshots: `/data/prod2u/source-snapshots`
+- Remote runs: `/data/prod2u/runs`
+- Remote deliveries: `/data/prod2u/deliveries`
+- Remote outbox: `/data/prod2u/share/outbox`
+
+Hardware/JTAG/COM/real Host-I2C outputs: `NOT RUN`.

+ 19 - 0
PROGRESS.md

@@ -0,0 +1,19 @@
+# 6400-front-rear progress
+
+## Current recovery
+
+- Windows authoritative workspace: `C:/temp/prod2u-thermal/workspace/thermal-system/cpld-temperature-control`
+- Branch: `codex/6400-front-rear-p0fix-local`
+- Commit: `a7759847c51a154252bafce5cc8e97bfe4f00833`
+- Tree: `80e40952b4ae17c404f7183d752fd338570a4e8f`
+- LAN remote: configured and aligned.
+- Remote host: `edk2-uefi-lab` (`192.168.2.122`), persistent `/data/prod2u`, TD symlink `/data/anlogic`.
+- WSL: no installed distributions; no source recovery dependency found.
+
+## Next
+
+1. Run closure/generator and focused quick checks.
+2. Reconcile any failures in the Windows authoritative checkout.
+3. Submit or resume remote quick job from the exact commit.
+
+Physical hardware, JTAG, COM, and real Host-I2C remain `NOT RUN`.

+ 12 - 0
SOURCE_RECOVERY.json

@@ -0,0 +1,12 @@
+{
+  "state": "RECOVERING_SOURCE",
+  "workspace": "C:/temp/prod2u-thermal/workspace/thermal-system/cpld-temperature-control",
+  "branch": "codex/6400-front-rear-p0fix-local",
+  "commit": "a7759847c51a154252bafce5cc8e97bfe4f00833",
+  "tree": "80e40952b4ae17c404f7183d752fd338570a4e8f",
+  "source_closure": "products/6400-front-rear/source-closure.json",
+  "closure_declared": 27,
+  "closure_present": "pending current-run check",
+  "recovery_sources": ["C:/temp/prod2u-thermal/outbox", "C:/temp/prod2u-thermal/workspace", "remote:/data/prod2u/workspaces", "remote:/data/prod2u/git"],
+  "wsl": "no distributions"
+}

+ 9 - 0
TOOLCHAIN_RECOVERY.json

@@ -0,0 +1,9 @@
+{
+  "state": "RECOVERING_TOOLCHAIN",
+  "remote_host": "edk2-uefi-lab",
+  "remote_container": "systemd-prod2u-6400",
+  "remote_image": "localhost/prod2u-6400-dev:locked",
+  "persistent_td": "/data/anlogic",
+  "tool_probe": "pending current-run check",
+  "windows_gui_venv": "C:/temp/prod2u-thermal/tools/gui-venv"
+}

+ 21 - 10
tests/sim/prod2u_6400_front_back_top_tb.v

@@ -2,31 +2,42 @@
 
 module prod2u_6400_front_back_top_tb;
     reg sys_clk = 1'b0;
-    reg host_uart_rx = 1'b1;
-    wire host_uart_tx;
+    reg host_rs232_rx = 1'b1;
+    reg bmc_rs232_rx = 1'b1;
+    reg host_i2c_scl = 1'b1;
+    wire host_rs232_tx;
+    wire bmc_rs232_tx;
     wire [23:0] ptc_pwm_out;
-    wire [7:0] fan_pwm_out;
+    wire [3:0] front_fan_pwm_out;
+    wire [3:0] rear_fan_pwm_out;
     tri temp_scl;
     tri temp_sda;
+    tri host_i2c_sda;
 
     always #1 sys_clk = ~sys_clk;
 
-    prod2u_6400_front_back_top dut (
+    prod2u_6400_rs232_only_top dut (
         .sys_clk(sys_clk),
-        .host_uart_rx(host_uart_rx),
-        .host_uart_tx(host_uart_tx),
+        .host_rs232_rx(host_rs232_rx),
+        .host_rs232_tx(host_rs232_tx),
+        .bmc_rs232_rx(bmc_rs232_rx),
+        .bmc_rs232_tx(bmc_rs232_tx),
+        .host_i2c_scl(host_i2c_scl),
+        .host_i2c_sda(host_i2c_sda),
         .ptc_pwm_out(ptc_pwm_out),
-        .fan_pwm_out(fan_pwm_out),
+        .front_fan_pwm_out(front_fan_pwm_out),
+        .rear_fan_pwm_out(rear_fan_pwm_out),
         .temp_scl(temp_scl),
         .temp_sda(temp_sda)
     );
 
     initial begin
         repeat (1100) @(posedge sys_clk);
-        if (host_uart_tx !== 1'b1) $fatal(1, "UART TX is not idle");
+        if (host_rs232_tx !== 1'b1) $fatal(1, "Host RS-232 TX is not idle");
+        if (bmc_rs232_tx !== 1'b1) $fatal(1, "BMC RS-232 TX is not idle");
         if (ptc_pwm_out !== 24'd0) $fatal(1, "PTC outputs are not off after POR");
-        if (fan_pwm_out !== 8'h00)
-            $fatal(1, "FAN FPGA pins should be low (logical 10%% on, inverted) got %h", fan_pwm_out);
+        if (front_fan_pwm_out !== 4'h0 || rear_fan_pwm_out !== 4'hF)
+            $fatal(1, "FAN FPGA pins do not show safe 20%% connector duty: front=%h rear=%h", front_fan_pwm_out, rear_fan_pwm_out);
         $display("prod2u_6400_front_back_top_tb PASS");
         $finish;
     end

+ 1 - 1
tests/unit/test_6400_profile_package.py

@@ -128,7 +128,7 @@ def test_source_package_contains_only_active_closure(tmp_path: Path) -> None:
     assert manifest["profile"] == PROFILE
     assert manifest["top"] == "prod2u_6400_rs232_only_top"
     assert "src/actuator/fan_board_output_adapter.v" in closure["sources"]
-    assert host_contract["wire"]["host_uart"]["baud"] == 921600
+    assert host_contract["wire"]["uart"]["baud"] == 921600
     assert host_contract["wire"]["responses"]["ACK_NACK"]["type"] == 0x06
     assert set(host_contract["canonical_profiles"]) == {PROFILE}
     assert not any("identification" in name or "sim-debug" in name for name in names)