I do not have the input reset signal from the outside of the Altera FPGA,and want to generate reset internally;can I do like below ?
if the pll is used to generate 4 output clock, and the input clock is 20Mhz,the output is 400Mhz, 25Mhz, 50Mhz ,30Mhz ,I wil implement 4 counters drived by the 4 output clock, and can I use the 4 conters to generate the 4 resets according to the 4 differerent output clocks?
and do the 4 resets have the features of asynchronously asserting and synchronously deasserting in their clock domain?
if I can do like above, can the code below work ?out_clk1 is the first output of the pll.
always@(posedge out_clk1)
begin
if(counter1 < 10'd505)
counter1 <= counter1 + 10'd1;
end
assign cnt_reset_n1 =( counter1 == 10'd500 ) ? 1'b0:1'b1;
will cnt_reset_n1 become low just for one out_clk1 ?
will cnt_reset_n1 has the feature of asynchronously asserting and synchronously deasserting according to the out_clk1 ?