Explorar el Código

Drive startup test away from DUT sampling edges

codex hace 2 meses
padre
commit
e9bffd419c
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 1 0
      tests/sim/motor_control_hold_monitor.vh
  2. 2 2
      tests/sim/motor_engine_tb.v

+ 1 - 0
tests/sim/motor_control_hold_monitor.vh

@@ -1,3 +1,4 @@
+`timescale 1ns/1ps
 `ifndef MOTOR_CONTROL_HOLD_MONITOR_VH
 `define MOTOR_CONTROL_HOLD_MONITOR_VH
 module motor_control_hold_monitor(input wire clk,rst_n,valid,accept,

+ 2 - 2
tests/sim/motor_engine_tb.v

@@ -184,9 +184,9 @@ module motor_engine_tb;
     endtask
 
     initial begin
-        repeat (5) @(posedge clk);
+        repeat (5) @(negedge clk);
         rst_n = 1'b1;
-        repeat (5) @(posedge clk);
+        repeat (5) @(negedge clk);
 
         // ---- 1. power-on seek on all axes, then abort X only ----
         startup_seek = 1'b1;