Skip to main content

Questions tagged [cdc]

Clock Domain Crossing. Used where information is transferred from synchronous logic from one clock source to synchronous logic using a different clock source.

Filter by
Sorted by
Tagged with
2 votes
1 answer
34 views

2DFF synchronizer output was determined to be a clock by timing analyzer

I'm the newbie in FPGA. I want to design a frequency counter, so the design will involved some CDC problem. Therefore, I used FIFO (I use the Quartus FIFO IP) and 2DFF synchronizer in my design. Below ...
柳志鵬's user avatar
0 votes
0 answers
63 views

FPGA: Must clock crossing FIFO be made up of BRAM?

Clock crossing FIFOs are essential components of multiple clock designs. I wish to understand, must they be built from Block RAM (i.e hard memory blocks) or they can also be built using registers? The ...
gyuunyuu's user avatar
  • 2,311
0 votes
2 answers
94 views

Is it possible to use a 2 flip-flop synchronizer for reset?

I have seen designs for asynchronous resets synchronization like in this picture: I think I understand the asynchronous assertion and synchronous deassertion that this design delivers. I am not ...
GuentherMeyer's user avatar
1 vote
2 answers
270 views

STM32 USB Full Speed and card reading causes slow USB speed

I-m trying to accomplish best USB speed through STM32H743 MCU to PC. First of all I was testing just receiving data. I was sending sending 8192 bytes from MCU to the pc without any other tasks, and ...
KlimDuda's user avatar
1 vote
0 answers
110 views

Increase USB HS transfer rate above 100 megabits

There is a device. On board, STM32F446 + USB3315 as PHY + USB HUB assembled on USB2503. Frequency APB 180 MHz A device project with a CDC interface has been created in CUbeMX. On command from the host,...
Roman Andronov's user avatar
0 votes
0 answers
293 views

Need to read USB CDC data (UART over USB) from instrument using STM32F103C8T6 Blue Pill

I have our old instrument which are showing flow over USB port using (Communication Device Class ASF Example). I am able to get data over UART 115200 using Teraterm. I want to have this data parsed ...
Kalpesh's user avatar
  • 41
0 votes
2 answers
1k views

STM32 USB virtual port data sending problem

My project needs to extract sensor data from STM32, now my problem is this CDC_TRANSMIT_FS function can only send uint8_t data, I want to at least send uint16_t data or 32-bit float, how can I achieve ...
Trevor Zhang's user avatar
0 votes
1 answer
206 views

Clock domain crossing without synchronisers

I am (re)designing an SPI slave module in VHDL for an ASIC. The SPI domain is faster than the main clock domain (~10MHz and ~1MHz), so the SPI state machine operates in the SPI domain. The previous ...
Elzaidir's user avatar
  • 103
0 votes
0 answers
253 views

External ADC with SPI NUCLEO-H743ZI2

I have an external ADC with a serial interface that has one data_out pin and CLK pin (16 MHz) the data_out pin transmit 16 bits of valid data then. An all-zero pattern follows the data after all valid ...
AHMED's user avatar
  • 3
5 votes
1 answer
111 views

Do I need a clock crossing circuit for signals clocked by mirrored PLLs?

Assume that within an FPGA, I have two data streams that are being driven by two clocks. The two clocks are generated by 2 physically separated PLLs (still within the same FPGA), both of which have ...
Sittin Hawk's user avatar
2 votes
3 answers
1k views

Is it true that for asynchronous clock domain crossing, there is always a small chance that data will be lost or corrupted?

There are several techniques that can be used to transfer data between two asynchronous clock domains. For a few bits, and depending on direction of data between the two clock domains, one could use ...
quantum231's user avatar
  • 12.2k
0 votes
1 answer
107 views

RDC from FF with async reset to FF with sync reset (no reset pin) - what is the design practice to solve this?

Given the below scenario, which is a reset-domain-crossing violation : Can it be resolved using some reset synchronization strategy? Is such design considered bad to begin with, i.e. need to avoid ...
Lapid Tech's user avatar
5 votes
1 answer
977 views

How to properly implement an n-FF synchronizer in Lattice FPGAs?

Unlike Xilinx which provides their users with a set of convenient xpm_cdc_* modules, Lattice does not seem to have “the standard” way for clock domain crossing. So ...
firegurafiku's user avatar
2 votes
1 answer
2k views

How to calculate the number of required flip-flop stages needed for clock-domain crossing?

In a given scenario where I have two clock domains driven by a 200MHz and a 30 MHz external independent clocks, what would be the best way to calculate the number of flip-flop stages needed for proper ...
nanoeng's user avatar
  • 181
0 votes
1 answer
132 views

What's the criterion to move from only having CDC for the control lines to include the data buses?

I've noticed that in most designs synchronized signals crossing clock domains are implemented for control signals. I'm, however, wondering what the criteria is to add synchronization to the data bus ...
nanoeng's user avatar
  • 181
0 votes
1 answer
481 views

does a 2-flip-flop synchronizer for clock domain crossing need a clear (reset) input signal?

In my current FPGA design, I have a fast clock that has to travel to multiple locations inside the device. Among those locations, I have a set of 2-flip-flop synchronizers for clock-domain crossing ...
nanoeng's user avatar
  • 181
2 votes
3 answers
2k views

Why 1.5x ratio limitation for synchronizing slow signals into fast clock domain?

Why 1.5x ratio limitation for Synchronizing Slow Signals Into Fast Clock Domain ?
kevin998x's user avatar
  • 423
0 votes
3 answers
437 views

What is the difference between "2 synchronize" and "metastability"?

As far as I know, 2 synchronize used to be used in in asynchronous FIFO for preventing metastability in multi clock domain. as the below, cross clock domain databus But I came across about ...
Carter's user avatar
  • 619
0 votes
2 answers
2k views

Metastability in 3 or 2 flop synchronizer if input is valid for at least 2 clocks

In this image: Figure 1: metastability in 2 or 3 flop synchronizer If the metastability of first flop doesn't get resolved in 4th clock, is it possible that it may get resolved to '0' in 5th clock? ...
Anurag's user avatar
  • 1
0 votes
4 answers
271 views

Is metastability not a concern in CDC if the signal in source clock is at least 3x wide as that of destination clock's period?

There are so much hype and concern over metastability in cross clock domain. If the goal as an ASIC/FPGA designer is to ensure that the signal in source clock get propagated to destination clock even ...
Dan Man's user avatar
-1 votes
1 answer
184 views

How do I know when I have to use clock domain crossing? [closed]

What is the reason behind clock domain crossing? When do I use it? Do I use it only when I am transferring data from one CLK to another?
GOTLN TFT's user avatar
1 vote
1 answer
658 views

How to track down all the registers connected to a specific downstream register? (for set_max_delay's --from)

The Xilinx Vivado's set_max_delay requires -from to be set. Basically I'd like to set max delay TO a register. Because there can ...
None's user avatar
  • 372
2 votes
1 answer
827 views

Asynchronous FIFO design with PULSE synchronizer

I'm trying to understand various implementations of asynchronous FIFO from the following link https://inst.eecs.berkeley.edu/~cs150/sp10/Collections/Discussion/Honors/Honors14_1PP.pdf In the slide 7 ...
Naveen's user avatar
  • 509
0 votes
1 answer
1k views

Why do we use a gray encoded signal by 2 stage flip-flop in asynchronous FIFO to avoid race-condition issue? [duplicate]

In the FIFO design, to compare the rptr and wptr, we are feeding one signal into another clock domain. The rptr which is coming from the slow clock domain to faster one can be synchronized with sync ...
Carter's user avatar
  • 619
1 vote
3 answers
1k views

What is the specific reason for using FIFO in the asynchronous domain in VLSI?

I was wondering that the reason is of using FIFO in the asynchronous domain in VLSI. Basically, to prevent x propagation in the asynchronous domain (aka CDC domain), it was taken care of by the two-...
Carter's user avatar
  • 619
3 votes
1 answer
629 views

questions about up-sampling and moving from slow to fast clock domain in FPGA

I encountered some questions and problems I asked myself lately and hoped I can get a nice lead here before I start reading long articles without even be sure if it's the right way. Let's assume I ...
Michael Rahav's user avatar
2 votes
1 answer
568 views

Clock domain crossing between OV7670 interface and AXI4-Stream

Update 1: My first approach is to use the xpm_cdc_handshake macro in the following way: ...
Kampi's user avatar
  • 432
0 votes
2 answers
149 views

Maximum data rate that can be achieved between PIC and FPGA

We are looking at PIC24FJ256GA705 here. It is connected to an FPGA and the FPGA must transfer a few kB of data as fast as possible. I assume that parallel transfer is the best option here, parallel ...
gyuunyuu's user avatar
  • 2,311
0 votes
1 answer
363 views

SDC Constraints for digitally noise filtered CLOCK and DATA inputs

I need help if my SDC constraints are correct for a digitally noise filtered CLOCK and DATA inputs. I'm not sure if CLK3 grouping and create_clk CLK2 are correct. I would like to know on how to make a ...
zeahr's user avatar
  • 1
0 votes
0 answers
516 views

Handling of reset with multi bit clock domain crossing

I have an SoC design with two clock domains, each with it's own asynchronous reset (which roughly means asynchronous assertion of reset and synchronous de-assertion). I am trying to pass a 64 bit ...
Shashank Gangrade's user avatar
0 votes
2 answers
1k views

Syntax and/or best practice for buffering a vector in Verilog or VHDL

I have a Verilog block (Block A) that samples a serial signal with a relatively slow clock and then puts data in several registers based on the contents of the serial data. Ultimately, these data ...
Bort's user avatar
  • 1,114
5 votes
4 answers
2k views

Clock Dividers with Clock Domain Crossing

I am doing a design in FPGA that looks like this: 100 MHz is the clock available in my FPGA board. It feeds Module 2. Module 1 is needs a slow clock of 10 MHz clock. So I used a clock divider with ...
Meenie Leis's user avatar
  • 2,782
1 vote
1 answer
2k views

Why double synchronizer alone is not enough for multi byte transfer between two clock domains?

When one bit information is transferred between two different clock domains, we use 2 Flip-flops or double synchronizers. But when we transfer multi bit signals across two different clock domains, why ...
john456's user avatar
  • 13
9 votes
1 answer
5k views

gray code clock domain crossing FIFO fast to slow

I'm trying to understand how clock crossing FIFOs are implemented, and the usual answer I see to convert the read/write address pointers to gray code and then pass through synchronizer circuits into ...
user2913869's user avatar
  • 1,121
2 votes
3 answers
2k views

Multiple Reset Synchronization

I have two active low async resets (rst_na and rst_nb) and associated two clocks (clk_a and clk_b). Assume Block B required ...
Prakash Darji's user avatar
1 vote
2 answers
217 views

Clock Domain Crossing

While reading the concept of CLOCK DOMAIN CROSSING I came across the 2 flip-flop synchronizer. If my first flop goes into metastable state, then how will it detect the correct value of data when it ...
Payal's user avatar
  • 11
2 votes
2 answers
2k views

SDC constraints for source clock and derived clock

There are two clocks in the system, clk2 is derived from clk1 with a 180-degree phase shift. There is 1-bit data from clk1 to clk2. I know this is a kind of asynchronous scenario and the traditional ...
Ross's user avatar
  • 570
2 votes
3 answers
253 views

Clock domain cross and metastablilty problem

I understand the problem of metastability and understand that we can't get a stable value in a bounded time so we need unbonded time but it is not practical, so we put another flip flop with no ...
Aren dg's user avatar
  • 99
0 votes
2 answers
635 views

Temperature and Voltage variation affects on Metastability

Are there any effects of temperature and voltage variations on Metastability of the flip-flop? If Yes, What are the effects?
pavan sp's user avatar
2 votes
2 answers
619 views

Crossing independent domain clocks (slow to fast)

I have 2 time domain clocks (completely independent) and a bit stream (single bit) The first clocks is at 12.29 MHz . I want to asynchronously reclock it to a second time domain. Meta stability is ...
Johan B.'s user avatar
  • 369
1 vote
1 answer
153 views

possible clock domain crossing?

Please see the following code. (For the sake of clarity, it is a YCbCr 4:2:2 to 4:4:4 SerDes.) ...
David's user avatar
  • 117
2 votes
2 answers
4k views

Asynchronous FIFO cdc question

1) Why there is no multi-bit synchronization problem for slow clock domain ? it is obvious that the pointers could increment by more than one. Screenshot from sunburst asynchronous FIFO paper page 12 ...
kevin's user avatar
  • 565
2 votes
3 answers
685 views

Can I use 2 Flop synchronizer to migrate a pulse from one clock domain to another provided that clocks phase shifted but of same frequency?

I want to migrate this signal from CLKA to CLKB. Frequencies of both the clocks are same but they are out of phase. Can 2-Flop synchronizer be used for this? Please note that the signal can be low/...
ashishdevre's user avatar
0 votes
1 answer
2k views

Asynchronous FIFO for fast-write-slow-read

I'm not quite sure how to generate full signal in a FIFO with fast-write and slow-read. Eg., if f_wr=10*f_rd, when the updated writing pointer is synchronized to reading side using simple ...
fiedel's user avatar
  • 193
2 votes
1 answer
301 views

Distinguishing clock domains in designs

I am finding it confusing in defining various clock domains in the design. I did search over the Internet but I didn’t get a complete clarity on this. In a certain FPGA (Actel ProASIC series) based ...
matryx's user avatar
  • 166
3 votes
2 answers
4k views

Clock Domain Crossing for Pulse and Level Signal

For pulse we use Pulse-Synchronizer and for Level Signal we use 2-flop synchronizer but what if the signal can be of Pulse or Level behaviour. Is there any way to synchronize that? EDIT: After @...
Prakash Darji's user avatar
12 votes
2 answers
22k views

How does 2-ff synchronizer ensure proper synchonization?

Using 2-ff synchronizers has been a standard for a signal to cross clock boundaries. And there are lots of paper/figures illustrating the mechanism, such as this one: It seems bclk can only sample ...
fiedel's user avatar
  • 193
6 votes
2 answers
1k views

Metastability error propagation with flip flop

I do have a confusion regarding the metastability resolution using flip flops , I know that I should add synchronizer of two or three d-flip flop to guarantee a safe transmission at clock domain ...
Hachani Ahmed's user avatar
0 votes
1 answer
836 views

What will the output of filp-flop if its input is metastable?

I was reading sunburst paper on Clock Domain Crossing and got stuck with this doubt. Here in the 3rd flip flop, input is metastable state but at the rising edge of the clock output was set to high. ...
tollin jose's user avatar
  • 3,232
2 votes
2 answers
3k views

SDC constraints for two flop sychronizer

I have doubt, What should be proper SDC constraint for CDC module, i.e., two flop synchronizer. between "dat driving by aclk to <...
Prakash Darji's user avatar