B
Beregnyei Balazs
Guest
Hi,
I have two clock domains in my Verilog design (Spartan2), 33 MHz and 20 MHz.
My problem: data transport between domains create deadlock.
(When I use the same clock in all domains, this send/receive primitive
works fine, but I need different clocks...)
Can somebody help me? URL, FAQ, RTFM?
Thanks,
BB
// send @ 33 MHz
data_reg = 4;
data_ready <= data_ready ^ 1;
// receive @ 20 MHz
case (state)
0: if (data_ready != last_data_ready)
begin
last_data_ready = last_data_ready ^ 1;
state <= 1;
end
1: // READ data_reg
I have two clock domains in my Verilog design (Spartan2), 33 MHz and 20 MHz.
My problem: data transport between domains create deadlock.
(When I use the same clock in all domains, this send/receive primitive
works fine, but I need different clocks...)
Can somebody help me? URL, FAQ, RTFM?
Thanks,
BB
// send @ 33 MHz
data_reg = 4;
data_ready <= data_ready ^ 1;
// receive @ 20 MHz
case (state)
0: if (data_ready != last_data_ready)
begin
last_data_ready = last_data_ready ^ 1;
state <= 1;
end
1: // READ data_reg