reg [2:0] cnt_8; always @(posedge clk or negedge rst_n) begin if(!rst_n) cnt_8 <= 3'd0; else cnt_8 <=cnt_8 +3'd1; end
always @(posedge clk or negedge rst_n) begin if(!rst_n) data_en<=1'b0; else if(cnt_8 == 3'd7) data_en<=1'b1; else data_en<=1'b0; end
always @(posedge clk or negedge rst_n) begin if(!rst_n) begin d_real<=16'd0; d_imag<=16'd0; end else if(cnt_8 ==3'd7) begin d_real<=$random%32768; d_imag<=$random%32768; end else begin d_real<=d_real; d_imag<=d_imag; end end