Sizing an asynchronous FIFO's depth is a clock-ratio-and-latency problem, not a guess-a-reasonable-number problem — every entry of depth beyond what synchronizer latency and the actual data burst pattern require is wasted area, while every entry short of that requirement risks an overflow or underflow the pointer logic can't prevent no matter how correctly it's designed; verifying that the chosen depth and the CDC logic itself actually hold up is a separate, equally rigorous problem that simulation alone cannot fully solve.
Synchronizer latency has to be budgeted into FIFO depth directly, because the flag logic genuinely cannot see the true, current fill level — only a stale copy that crossed the clock domain a few cycles ago. As covered in this site's article on asynchronous FIFO design, full and empty flags are generated from Gray-coded pointers that have passed through two-flop synchronizers, which means each side's view of the other side's pointer is always at least two to three cycles out of date; a design that only budgets depth for the expected burst size and ignores this synchronization delay can genuinely overflow or underflow even though every individual piece of CDC logic is implemented correctly, because the depth itself was undersized for the real latency the safe-crossing mechanism adds on top of the data pattern.
Clock ratio between the write and read domains changes which failure mode is actually the binding risk, which is why depth sizing can't be done with a single rule of thumb across every design. When the write clock runs much faster than the read clock, a burst of writes can fill the FIFO far faster than the read side can drain it or even report back that it's getting full, which makes overflow margin the dominant sizing concern; when the read clock runs much faster than the write clock, the FIFO is more likely to briefly appear empty to the read side even when a write is imminent, making spurious stalls rather than data loss the more common symptom — the same synchronizer latency produces different practical consequences depending on which side of the clock-ratio asymmetry a given design sits on.
Formal CDC verification exists specifically because directed or even randomized simulation struggles to exercise every meaningful phase relationship between two unrelated clocks. Two asynchronous clocks can drift into infinitely many relative phase alignments over time, and a metastability or pointer-corruption bug might only manifest at a narrow, specific phase relationship that a finite simulation run has no guarantee of ever hitting — formal CDC tools instead analyze the synchronizer and pointer logic structurally, proving properties like "no combinational logic sits directly on a CDC path" or "every multi-bit crossing uses Gray coding" across all possible timing relationships rather than sampling a finite set of them, which is why formal CDC signoff is treated as a mandatory, separate verification step rather than something adequate simulation coverage can substitute for.
Read FIFO crossing through a *sizing-and-proving-it-are-separate-jobs* lens rather than a *the-CDC-logic-is-the-whole-design* lens: correctly implemented Gray-coded pointers and two-flop synchronizers are necessary but not sufficient — a FIFO still needs its depth deliberately budgeted against the specific combination of burst pattern and synchronization latency it will actually see, and its correctness still needs to be proven across every clock-ratio phase relationship formal verification can check but simulation alone cannot guarantee it ever exercises.