Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

Using PLL "lock" signal as the async reset in Verilog

If I want to use the PLL "lock' signal to work as an async reset, the "lock" signal will keep low after the FPGA is powered and goes high after a duration. If I won't reset my PLL, then it means "lock" siganl will never have a falling edge. If I power off the FPGA and power it again, it will have another rising edge.

In this case, can I still write the Verilog as following:

always @(posedge clk or negedge lock)

begin

if (lock == 1'b0)

……

else

……

end

As I mentioned previously, since there is no falling edge for "lock", will the Verilog code work? I guess it will but I am not sure.

Thanks in advance.

13 Replies