The present invention provides a method and apparatus for synchronizing
signal transfers between two clock domains, where the clock domains have
a gear ratio relationship. A gear ratio means that the clocks are related
by a ratio, such that each clock has a different integer number of clock
cycles in a common period. Also, in addition to a gear ratio
relationship, the clocks may have a synchronized edge at the end of the
common period. For each clock, the cycles in the common period are
"colored", i.e., identified by a number (1st, 2nd, etc.). By using the
coloring technique, the appropriate clock edge to perform a data or
control signal transfer can be identified. The edges are preferably
chosen to minimize the latency of the transfer.