Pong Example and @always

FPGA projects on this site, or abroad

Pong Example and @always

Postby Oneironaut » Sun May 10, 2009 10:46 pm

Hello,

I am just curious as to why the PONG example code has so many always @(posedge clk) statements.

Would the code not be exactly the same if there were only a single always @(posedge clk) with everything after it?

Does having more clock events create less of a delay in the final design?

Thanks.
Oneironaut
 
Posts: 67
Joined: Tue Oct 21, 2008 6:56 pm

Re: Pong Example and @always

Postby Oneironaut » Wed May 20, 2009 5:38 pm

To answer my own question....

The entire Pong example only needs a single @(posedge clk) statement. It works exactly the same.

Brad


Oneironaut wrote:Hello,

I am just curious as to why the PONG example code has so many always @(posedge clk) statements.

Would the code not be exactly the same if there were only a single always @(posedge clk) with everything after it?

Does having more clock events create less of a delay in the final design?

Thanks.
Oneironaut
 
Posts: 67
Joined: Tue Oct 21, 2008 6:56 pm


Return to General projects