Forum Discussion
Altera_Forum
Honored Contributor
11 years agoIn verilog, you are right, the always block will always be entered when you get an event on clk or clk2:
always @(posedge clk or posedge clk2) So it's perfectly legal Verilog. The problem is it will not map to anything on an FPGA, as they can only accept a single clock per register. Your code has to be translated to real hardware, so you need to bare this in mind. I suggest you output a 40MHz clock from your PLL