Browse Source

test(motor): reject stale history after reset

codex 3 months ago
parent
commit
a65fc8055a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/sim/motor_axis_contract_tb.v

+ 1 - 0
tests/sim/motor_axis_contract_tb.v

@@ -55,6 +55,7 @@ module motor_axis_contract_tb;
         begin
             @(negedge clk);rst_n=0;load=0;start=0;abort_req=0;preempt=0;ll=0;ul=0;check_full=0;position_load=0;
             repeat(4) @(negedge clk);rst_n=1;repeat(3) @(negedge clk);
+            if(telemetry[36*8+:160]!==160'd0)$fatal(1,"reset exposed stale limit history storage");
         end
     endtask
     task segment(input [2:0] m,input u,input a,input [31:0] n,input [31:0] h);