prod2u_p4_axis_cdc_structure_formal.v 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. `timescale 1ns/1ps
  2. module prod2u_p4_axis_cdc_structure_formal;
  3. (* gclk *) reg clk;
  4. reg rst_n = 1'b0;
  5. (* anyseq *) reg limit_raw;
  6. wire step_out;
  7. wire busy;
  8. wire drive_active;
  9. prod2u_p4_axis_executor #(
  10. .STANDARD_STEPS(4),
  11. .LIMIT_CONFIRM_US(4),
  12. .DIR_SETUP_US(2),
  13. .SPEED0_HALF_US(2),
  14. .SPEED1_HALF_US(2),
  15. .SPEED2_HALF_US(2),
  16. .SPEED3_HALF_US(2)
  17. ) dut (
  18. .clk(clk),
  19. .rst_n(rst_n),
  20. .tick_1us(1'b1),
  21. .force_stop(1'b0),
  22. .limit_raw(limit_raw),
  23. .jog_start(1'b0),
  24. .jog_dir(1'b0),
  25. .jog_speed_code(2'd0),
  26. .jog_steps(16'd1),
  27. .standard_start(1'b0),
  28. .standard_target_open(1'b0),
  29. .step_out(step_out),
  30. .dir_out(),
  31. .busy(busy),
  32. .drive_active(drive_active),
  33. .position_valid(),
  34. .current_aperture(),
  35. .target_aperture()
  36. );
  37. always @(posedge clk) begin
  38. rst_n <= 1'b1;
  39. if (rst_n) begin
  40. assert(!step_out);
  41. assert(!busy);
  42. assert(!drive_active);
  43. end
  44. cover(rst_n && limit_raw && !step_out && !busy);
  45. end
  46. endmodule