Explorar el Código

fix(mrdimm): invert fan outputs - V1.2 fans are active low at the ball

Evidence from pin_inventory.prod2u_door_temp_v1_2.json (fan rows B1/C4/
B5/A14 polarity active_low): connector-side high duty from the output
core must appear low at the ball, mask 4'hF.  Not inherited from V1.1
and not guessed.
codex hace 3 meses
padre
commit
0974b500e5
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/top/prod2u_mrdimm_top.v

+ 3 - 1
src/top/prod2u_mrdimm_top.v

@@ -47,7 +47,9 @@ module prod2u_mrdimm_top (
     wire [3:0] fan_on, ptc_on;
     assign ptc_pwm_out = {ptc_on[3], ptc_on[3], ptc_on[2], ptc_on[2],
                           ptc_on[1], ptc_on[1], ptc_on[0], ptc_on[0]};
-    assign fan_pwm_out = fan_on;
+    // V1.2 evidence: fans are active low at the ball (connector side is
+    // high duty) - invert all four, mask 4'hF.
+    assign fan_pwm_out = ~fan_on;
     assign motor_en_n = 1'b1;   // NPN invert at board: constant 1 = enabled
 
     // ---- time base ----