Altera_Forum
Honored Contributor
12 years agoHow should I write Verilog to describe DDR?
I have a design, which I need make the data is launched by double data rate (DDR). In this case, should I write the Verilog like this ? :
always @(posedge clk or negedge clk) begin output <= a; end Another approach I can think is I use PLL to create two clocks: clk1 and clk2. The period of clk2 is twice as clk1 while they have exactly same phase. Then, I use clk1 to launch data in SDR but output clk2 and data. Then the data with clk2 is DDR. But I don't think this is the right approach since this is actually still SDR. Hope anyone has experience in this can give some advices. Thanks very much.