|
@@ -624,6 +624,8 @@ module thermal_control_core #(
|
|
|
formal_app1[formal_duty_index] : formal_app0[formal_duty_index];
|
|
formal_app1[formal_duty_index] : formal_app0[formal_duty_index];
|
|
|
wire [7:0] formal_inactive_applied = active_output_bank ?
|
|
wire [7:0] formal_inactive_applied = active_output_bank ?
|
|
|
formal_app0[formal_duty_index] : formal_app1[formal_duty_index];
|
|
formal_app0[formal_duty_index] : formal_app1[formal_duty_index];
|
|
|
|
|
+ wire [7:0] formal_boot_output = (formal_duty_index < 24) ?
|
|
|
|
|
+ 8'd0 : FAN_STANDBY_DUTY;
|
|
|
wire [7:0] formal_safe_fill_value = (formal_duty_index < 24) ? 8'd0 :
|
|
wire [7:0] formal_safe_fill_value = (formal_duty_index < 24) ? 8'd0 :
|
|
|
((global_fault || lane_fault_for_output(formal_duty_index) ||
|
|
((global_fault || lane_fault_for_output(formal_duty_index) ||
|
|
|
lane_invalid(lane_for_output(formal_duty_index))) ?
|
|
lane_invalid(lane_for_output(formal_duty_index))) ?
|
|
@@ -712,7 +714,9 @@ module thermal_control_core #(
|
|
|
// the deterministic RAM scrub inductive even when the solver
|
|
// the deterministic RAM scrub inductive even when the solver
|
|
|
// starts an induction window in the middle of that sweep.
|
|
// starts an induction window in the middle of that sweep.
|
|
|
if (work_state == W_INIT) begin
|
|
if (work_state == W_INIT) begin
|
|
|
|
|
+ assert(active_output_bank == 0);
|
|
|
assert(control_state == RESET_SAFE);
|
|
assert(control_state == RESET_SAFE);
|
|
|
|
|
+ assert(!boot_init_complete);
|
|
|
assert(safety_override_mask == 0);
|
|
assert(safety_override_mask == 0);
|
|
|
assert(ptc_shutdown_mask == 0);
|
|
assert(ptc_shutdown_mask == 0);
|
|
|
assert(thermal_protection_mask == 0);
|
|
assert(thermal_protection_mask == 0);
|
|
@@ -738,6 +742,33 @@ module thermal_control_core #(
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|
|
|
|
|
+ // W_BOOT_WAIT is reachable only after W_INIT has scrubbed every
|
|
|
|
|
+ // address in both output banks and every PI-state address. State
|
|
|
|
|
+ // induction may otherwise invent a half-initialized boot state,
|
|
|
|
|
+ // so record the complete state established by that sweep.
|
|
|
|
|
+ if (work_state == W_BOOT_WAIT) begin
|
|
|
|
|
+ assert(work_index == 0);
|
|
|
|
|
+ assert(active_output_bank == 0);
|
|
|
|
|
+ assert(control_state == RESET_SAFE);
|
|
|
|
|
+ assert(!boot_init_complete);
|
|
|
|
|
+ assert(safety_override_mask == 0);
|
|
|
|
|
+ assert(ptc_shutdown_mask == 0);
|
|
|
|
|
+ assert(thermal_protection_mask == 0);
|
|
|
|
|
+ assert(lane_fault_mask == 0);
|
|
|
|
|
+ assert(!global_fault);
|
|
|
|
|
+ assert(invalid_count0 == 0);
|
|
|
|
|
+ assert(invalid_count1 == 0);
|
|
|
|
|
+ assert(invalid_count2 == 0);
|
|
|
|
|
+ assert(invalid_count3 == 0);
|
|
|
|
|
+ assert(formal_req0[formal_duty_index] == formal_boot_output);
|
|
|
|
|
+ assert(formal_req1[formal_duty_index] == formal_boot_output);
|
|
|
|
|
+ assert(formal_app0[formal_duty_index] == formal_boot_output);
|
|
|
|
|
+ assert(formal_app1[formal_duty_index] == formal_boot_output);
|
|
|
|
|
+ if (formal_duty_index < 24) begin
|
|
|
|
|
+ assert(formal_previous_error[formal_duty_index] == 0);
|
|
|
|
|
+ assert(formal_previous_output[formal_duty_index] == 0);
|
|
|
|
|
+ end
|
|
|
|
|
+ end
|
|
|
// Reset-age stale must not bypass CT/preheat startup sequencing.
|
|
// Reset-age stale must not bypass CT/preheat startup sequencing.
|
|
|
if (bmc_stale && (control_state == RESET_SAFE ||
|
|
if (bmc_stale && (control_state == RESET_SAFE ||
|
|
|
control_state == WAIT_CT_VALID ||
|
|
control_state == WAIT_CT_VALID ||
|
|
@@ -779,6 +810,29 @@ module thermal_control_core #(
|
|
|
assert(formal_inactive_applied == 80);
|
|
assert(formal_inactive_applied == 80);
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
|
|
+ // The complete inactive bank remains safe while waiting for the
|
|
|
|
|
+ // PWM scanner to become idle. This is the inductive bridge from
|
|
|
|
|
+ // the fill/apply sweep to the atomic active-bank pointer flip.
|
|
|
|
|
+ if (work_state == W_COMMIT_WAIT) begin
|
|
|
|
|
+ if (formal_duty_index < 24 &&
|
|
|
|
|
+ (global_fault || control_state == STOPPED ||
|
|
|
|
|
+ ptc_shutdown_mask[formal_duty_index] ||
|
|
|
|
|
+ lane_fault_mask[lane_for_channel(formal_duty_index)] ||
|
|
|
|
|
+ lane_invalid(lane_for_channel(formal_duty_index))))
|
|
|
|
|
+ assert(formal_inactive_applied == 0);
|
|
|
|
|
+ if (formal_duty_index >= 24 &&
|
|
|
|
|
+ (global_fault ||
|
|
|
|
|
+ lane_fault_for_output(formal_duty_index) ||
|
|
|
|
|
+ lane_invalid(lane_for_output(formal_duty_index))))
|
|
|
|
|
+ assert(formal_inactive_applied == 100);
|
|
|
|
|
+ if (formal_duty_index >= 24 &&
|
|
|
|
|
+ !global_fault &&
|
|
|
|
|
+ !lane_fault_for_output(formal_duty_index) &&
|
|
|
|
|
+ !lane_invalid(lane_for_output(formal_duty_index)) &&
|
|
|
|
|
+ lane_thermal_protection(lane_for_output(formal_duty_index)))
|
|
|
|
|
+ assert(formal_inactive_applied == 80);
|
|
|
|
|
+ end
|
|
|
|
|
+
|
|
|
// Once a safety pass has committed, the active bank itself (not
|
|
// Once a safety pass has committed, the active bank itself (not
|
|
|
// merely the combinational apply value) is safe. W_IDLE is the
|
|
// merely the combinational apply value) is safe. W_IDLE is the
|
|
|
// post-commit quiescent point, so these assertions compose the
|
|
// post-commit quiescent point, so these assertions compose the
|
|
@@ -804,9 +858,44 @@ module thermal_control_core #(
|
|
|
end
|
|
end
|
|
|
if (formal_past_valid && $past(rst_n)) begin
|
|
if (formal_past_valid && $past(rst_n)) begin
|
|
|
if ($past(formal_scheduler_rank) != 0 &&
|
|
if ($past(formal_scheduler_rank) != 0 &&
|
|
|
- !$past(target_commit) && !$past(formal_stale_preempt))
|
|
|
|
|
|
|
+ !$past(target_commit) && !$past(formal_stale_preempt) &&
|
|
|
|
|
+ !($past(work_state) == W_COMMIT_WAIT &&
|
|
|
|
|
+ !$past(pwm_scan_idle)) &&
|
|
|
|
|
+ !($past(work_state) == W_BOOT_WAIT &&
|
|
|
|
|
+ !$past(pwm_phase_boundary)))
|
|
|
assert(formal_scheduler_rank < $past(formal_scheduler_rank));
|
|
assert(formal_scheduler_rank < $past(formal_scheduler_rank));
|
|
|
|
|
|
|
|
|
|
+ // The applied-output bank is a single atomic pointer commit.
|
|
|
|
|
+ // It cannot move while the PWM scan owns the active bank.
|
|
|
|
|
+ if (active_output_bank != $past(active_output_bank)) begin
|
|
|
|
|
+ assert(output_commit);
|
|
|
|
|
+ assert($past(work_state) == W_COMMIT_WAIT);
|
|
|
|
|
+ assert($past(pwm_scan_idle));
|
|
|
|
|
+ end
|
|
|
|
|
+ if (output_commit) begin
|
|
|
|
|
+ assert(active_output_bank != $past(active_output_bank));
|
|
|
|
|
+ assert($past(work_state) == W_COMMIT_WAIT);
|
|
|
|
|
+ assert($past(pwm_scan_idle));
|
|
|
|
|
+ end else begin
|
|
|
|
|
+ assert(active_output_bank == $past(active_output_bank));
|
|
|
|
|
+ end
|
|
|
|
|
+ if ($past(work_state) == W_COMMIT_WAIT &&
|
|
|
|
|
+ !$past(pwm_scan_idle) && !$past(target_commit) &&
|
|
|
|
|
+ !$past(formal_stale_preempt)) begin
|
|
|
|
|
+ assert(work_state == W_COMMIT_WAIT);
|
|
|
|
|
+ assert(!output_commit);
|
|
|
|
|
+ assert(active_output_bank == $past(active_output_bank));
|
|
|
|
|
+ end
|
|
|
|
|
+
|
|
|
|
|
+ // Boot visibility follows the completed RAM fill and a full
|
|
|
|
|
+ // PWM boundary. Once visible it is sticky until reset.
|
|
|
|
|
+ if (boot_init_complete && !$past(boot_init_complete)) begin
|
|
|
|
|
+ assert($past(work_state) == W_BOOT_WAIT);
|
|
|
|
|
+ assert($past(pwm_phase_boundary));
|
|
|
|
|
+ end
|
|
|
|
|
+ if ($past(boot_init_complete))
|
|
|
|
|
+ assert(boot_init_complete);
|
|
|
|
|
+
|
|
|
// P03: a newly observed stale source starts the bounded safe
|
|
// P03: a newly observed stale source starts the bounded safe
|
|
|
// fill at address zero and latches the global fault. The rank
|
|
// fill at address zero and latches the global fault. The rank
|
|
|
// invariant above forces that fill to reach the safe commit.
|
|
// invariant above forces that fill to reach the safe commit.
|