win3y
Member level 1
Hi everybody;
I wanna make some control signals delayed 10 or more than 10 clock cycle. I just know the way like this:
And the result is that the "control_10_delay" signal is delayed by 10 clock.
But this way makes hardwire cost increased signigficantly.
Is there any other ways can solve this problem?
Many thanks.
W3Y
I wanna make some control signals delayed 10 or more than 10 clock cycle. I just know the way like this:
Code:
reg [Nbit - 1:0] control_1_delay,control_2_delay,control_3_delay...control_10_delay;
always@(posedge CLK ore negedge nRESET)
if (!nRESET)
begin
control_1_delay <= 0;
control_2_delay <= 0;
control_2_delay <= 0;
control_4_delay <= 0;
..
control_10_delay <= 0;
end
esle
begin
control_1_delay <= control_signal;
control_2_delay <= control_1_delay;
control_3_delay <= control_2_delay;
control_4_delay <= control_3_delay;
..
control_10_delay <= control_9_delay;
end
And the result is that the "control_10_delay" signal is delayed by 10 clock.
But this way makes hardwire cost increased signigficantly.
Is there any other ways can solve this problem?
Many thanks.
W3Y