| 123456789101112131415161718192021222324252627282930313233343536 |
- `timescale 1ns/1ps
- `default_nettype none
- module prod2u_p4_axis_cdc_structure_formal;
- (* gclk *) reg clk;
- reg rst_n = 1'b0;
- (* anyseq *) reg command_start;
- (* anyseq *) reg command_dir;
- (* anyseq *) reg [15:0] command_steps;
- (* anyseq *) reg legacy_limit;
- wire step_a, dir_a, started_a;
- wire step_b, dir_b, started_b;
- prod2u_p4_axis_executor #(.DIR_SETUP_CYCLES(2), .STEP_HALF_CYCLES(2)) a (
- .clk(clk), .rst_n(rst_n), .command_start(command_start),
- .command_dir(command_dir), .command_steps(command_steps),
- .step_out(step_a), .dir_out(dir_a), .started_pulse(started_a)
- );
- prod2u_p4_axis_executor #(.DIR_SETUP_CYCLES(2), .STEP_HALF_CYCLES(2)) b (
- .clk(clk), .rst_n(rst_n), .command_start(command_start),
- .command_dir(command_dir), .command_steps(command_steps),
- .step_out(step_b), .dir_out(dir_b), .started_pulse(started_b)
- );
- always @(posedge clk) begin
- rst_n <= 1'b1;
- if (rst_n) begin
- assert(step_a == step_b);
- assert(dir_a == dir_b);
- assert(started_a == started_b);
- end
- cover(rst_n && legacy_limit && started_a);
- end
- endmodule
- `default_nettype wire
|