[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ecc] clock domain synchronization
Hi,
I am having trouble implementing a symbol synchronizer (correlator) for
bluetooth.
I need to regenerate 1m clock from rxd data, output resampled data to
the packet
decomposer @ clk1m.
It is recommended to use a 2-stage synchronizer, to avoid cross clock
domain timing problem
This to say the data should be synchronized with at least 2 f/fs before
sampling.
I am just wodering if the code below can work as expected.
always @ (posedge clk24m) begin
if (cnt_24 == phase_pos) // 1M timing regeration from clk24m
m0 <= a&b;
m1<= m0;
end
always @ (posedge clk1m) begin // resample and output @ clk1m
z <= m1;
end
--
To unsubscribe from ecc mailing list please visit http://www.opencores.org/mailinglists.shtml