Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- Let's assume the lock from PLL is a clean signal. Can I write the verilog code as my previous post? --- Quote End --- Yes. For example, lets say you have an external reset (from a reset supervisor) and your PLL lock signal. A simple register would be ...
assign rstN = lock & ext_rstN;
always @ (posedge clk or negedge rstN)
if (~rstN)
q <= 1'b0;
else
q <= d;
However, keep in mind that you would normally want to synchronize the reset source to each clock domain, i.e., rstN should be synchronized to clk, otherwise you will run into reset timing issues. Cheers, Dave