|
|
@@ -14,7 +14,6 @@ module pwm_scheduler_contract_formal (
|
|
|
wire dut_rst_n = rst_n;
|
|
|
reg [1:0] reset_cycles;
|
|
|
reg [1:0] model_channel;
|
|
|
- reg [1:0] model_data_channel;
|
|
|
reg [1:0] model_phase;
|
|
|
reg model_slot_counter;
|
|
|
reg [2:0] expected_pwm;
|
|
|
@@ -50,10 +49,13 @@ module pwm_scheduler_contract_formal (
|
|
|
.target_rd_data(duty_read_data), .logical_pwm_on(logical_pwm_on)
|
|
|
);
|
|
|
|
|
|
+ // Synchronization note: product fix 72600bc removed the DUT's stale
|
|
|
+ // data_channel pipeline. The former model_data_channel shadow delayed
|
|
|
+ // expected_pwm by one channel and caused the old assertion to fail at
|
|
|
+ // step 7; the synchronous RAM read-data contract itself remains one cycle.
|
|
|
initial begin
|
|
|
reset_cycles = 2'd0;
|
|
|
model_channel = 2'd0;
|
|
|
- model_data_channel = 2'd0;
|
|
|
model_phase = 2'd0;
|
|
|
model_slot_counter = 1'b0;
|
|
|
expected_pwm = 3'd0;
|
|
|
@@ -73,7 +75,6 @@ module pwm_scheduler_contract_formal (
|
|
|
if (!dut_rst_n) begin
|
|
|
assert (logical_pwm_on == 3'b0);
|
|
|
model_channel <= 2'd0;
|
|
|
- model_data_channel <= 2'd0;
|
|
|
model_phase <= 2'd0;
|
|
|
model_slot_counter <= 1'b0;
|
|
|
expected_pwm <= 3'd0;
|
|
|
@@ -91,10 +92,9 @@ module pwm_scheduler_contract_formal (
|
|
|
rd_valid <= 1'b1;
|
|
|
|
|
|
if (model_slot_counter == FORMAL_PWM_SLOT_CLKS - 1) begin
|
|
|
- expected_pwm[model_data_channel] <=
|
|
|
+ expected_pwm[model_channel] <=
|
|
|
(duty_read_data[6:0] > model_phase);
|
|
|
model_slot_counter <= 1'b0;
|
|
|
- model_data_channel <= model_channel;
|
|
|
if (model_channel == FORMAL_CHANNEL_COUNT - 1) begin
|
|
|
model_channel <= 2'd0;
|
|
|
if (model_phase == FORMAL_PWM_PHASE_COUNT - 1)
|