CDC Course / Module 5: Interactive Async FIFO Lab Session
Lesson 5.1

Interactive Async FIFO Step-by-Step Debugger

Goal: Manually clock the Write and Read domains to understand exactly how Gray pointers traverse the synchronizers and safely generate the FULL and EMPTY flags. Notice how data never crosses domainsβ€”only the pointers do.
Write Domain (clk_a)
+ Write Data
Clock Edge
wptr_bin (N+1 bit)
0000 0
wptr_gray (N+1 bit) β€” Sent to Domain B
0000 0
rptr_gray_sync1
0000
rptr_gray_sync2
0000
FULL
wptr_gray == {~rptr_sync2[3:2], rptr_sync2[1:0]}
0000 == 1100 β†’ FALSE
Read Domain (clk_b)
- Read Data
Clock Edge
rptr_bin (N+1 bit)
0000 0
rptr_gray (N+1 bit) β€” Sent to Domain A
0000 0
wptr_gray_sync1
0000
wptr_gray_sync2
0000
EMPTY
rptr_gray == wptr_gray_sync2
0000 == 0000 β†’ TRUE
Advertisement