1. Field of the Invention
The present invention relates generally to an electronic circuit for serializing data from an incoming parallel data stream.
2. Description of the Related Art
The serializer is a key component in serial digital communication applications. In such systems, serializers are used to convert multi-bit low speed parallel data into high-speed serial data. For high-frequency applications, completely full-swing CMOS serializers are not considered due to their high power consumption. To reduce power, the high-speed blocks are designed using a differential logic family such as Current Mode Logic, but if the whole serializer is designed using a differential logic family, power consumption is still high. Hence, a hybrid combination of full-swing logic (at low frequency) and differential logic (at high frequency) is preferred. The usage of two entirely different logic families, however, poses a significant signal reliability problem at the interface between the two logic families. To alleviate this problem, careful designing is required, which requires more design resources and time. Also, differential circuits have additional overhead of current-source reference circuits to provide reference for the tail current in the differential logic.
This approach to serializing data has significant disadvantages. First, this design contains three levels of flip-flop logic, which operate at frequencies of f/4, f/2, and f as described above. Four operate at f/4 frequency, two operate at f/2 frequency, and one flip-flop operates at f frequency. The total switching power due to clocks is given by:
where C is the input capacitance of the clock line of a flip-flop, f is the frequency of the clock on the output flip-flop 152, and V is power supply voltage. Note that this equation is an approximate equation since the power consumed by the multiplexer is not incorporated. In general for a 2N:1 serializer, total clock switching power=(N+1)CV2f.
The primary concern in using a full-swing serializer for high-speed applications is power. Any improvement in the serializing technique that addresses power would greatly improve the design cycle time and total system power.
Broadly speaking, the present invention fills this need by providing a digital circuit for multiplexing multiple data streams. An exemplary circuit performs multiplexing at high speeds with very low power drawn. It should be appreciated that the present invention can be implemented in numerous ways, including as a process, an apparatus, a system, a device, or a method.
In one embodiment, a serializer circuit multiplexes 2N parallel data streams, each data stream having a frequency of f/(2N), N being a positive integer. The serializer comprises 2N-1 instances of a dual edge multiplexing flip-flop circuit, each of which functions in one of N frequency domains including a first frequency domain having a frequency f/2N and a last frequency domain having a frequency f/2; and an output providing serialized data at frequency f. The highest clock signal frequency input into the serializer has a frequency f/2. Each dual edge multiplexing flip-flop circuit captures data on both edges of the clock signal; hence, the output data rate is twice that of the input data rate but clocked at half of the frequency.
Other aspects and advantages of the invention will become apparent from the following detailed description, taken in conjunction with the accompanying drawings, illustrating by way of example the principles of the invention.
The present invention will be readily understood by the following detailed description in conjunction with the accompanying drawings, wherein like reference numerals designate like structural elements.
The term, “serializer” is intended to mean a device that receives parallel data from separate data streams and combines them together into a single serial data signal without any data loss. A “serializer” performs this function by converting incoming parallel bits of data into a single data stream with the bits in series.
Each circuit 300 is a dual-edge multiplexer flip-flop. Input signals 220, 222 are input into circuit 300A at a frequency f/4, which provides an output signal at frequency f/2. Likewise, input signals 224, 226 are input into circuit 300B. Output signals of circuits 300A, 300B are input into circuit 300C at a frequency f/2, providing output signal Q at a frequency of f, with data output at both the rising and falling edge of the clock signal, which is input into circuit 300C at a frequency of f/2. No additional flip-flop at frequency f at the output is necessary as was the case with the conventional circuit shown in
Advantageously, the power requirement for serializer 200 is much less than that for the prior art circuit shown in
where C1 is capacitance on the clock line of the dual-edge triggered flip-flop. Remembering that C is the capacitance on the clock line for the prior art circuit, it should be noted that C1<<2*C. C1 is not equal 2*C since the new design is compact and the clock lines are shorter. In general, for a 2N:1 serializer using circuits 300, total clock switching power is N*(C1V2f/2). Compared to a conventional serializer, the serializer of this invention consumes very low power especially for larger numbers of inputs N.
By capturing data on both edges of the clock signal, exemplary circuit 300 provides a dual-edge triggered integrated multiplexer flip-flop that generates serialized data flow at twice the clock frequency applied to the output stage. That is, the output data rate is twice that of the input data rate but clocked with half the frequency that is required in a single-edge triggered flip-flop. This reduction in frequency reduces power in comparison with a standard single-edge triggered flip-flop for an identical throughput.
Upper circuit block 305 and lower circuit block 307 each have a master latch 310, 320, and a slave latch 314, 322, respectively. The master latches are separate, and they hold respective data bits stable when the slave latches samples the data. The two slave latches 314, 322 act in a complementary fashion enabling them to be tied together to form a multiplexer. The circuits of blocks 305 and 307, as well as that of inverter block 309 are preferably CMOS type logic circuits.
Master latch 310 is formed from transistors M0-M5. When CLK is low, M1 is on. When M1 is on, M0 and M2 invert D0 such that the signal at n1 is high when D0 is low and low when D0 is high. Continuing with CLK being low, M3 is on and M5 is off. Therefore the signal at n3 is pinned to high. With the n3 signal being high, M10 is off. M11 is also off because CLK is still low. This isolates n5 from D0, Vdd and ground, allowing the n5 signal to float when CLK is low.
When CLK is high, M1 and M3 are off and M5 is on. When the n1 signal is low, M4 is off and the n3 signal does not discharge. When the n1 signal is high, M4 is on. With CLK and the n1 signal being high, the n3 signal is allowed to discharge through M4 and M5. Thus, at the instant of CLK going from low to high, M10 either turns on or remains off (based on whether the signal at n3 discharges or not) and M11 turns on thereby connecting n5 to either supply voltage Vdd via M10 or ground via M11 and M12, depending on the n3 signal.
Note that master latch 310 drives slave latch 314, and that circuit block 305 outputs the inverse of D0 at n5 when CLK is high, and causes the signal at n5 to float when CLK is low.
Referring now to circuit block 307, when CLK is high, M21 is on and therefore the inverse of D1 appears on n2, M20, M22 acting as an inverter. When the n2 signal is high, M24 is off and when the n2 signal is low M24 is on. When CLK is high, M25 is on, thereby pinning n4 to ground. The n4 signal controls transistors M30 and M32 such that, when n4 is grounded, M30 is on and M32 is off. While CLK is high, M31 is off. Since both M31 and M32 are off and n5 is connected between these two transistors, the signal at n5 is allowed to float while CLK is high.
When CLK is low, M21 and M25 are off. Thus, when the n2 signal is high, M24 is off; therefore n4 cannot be charged to Vdd since current cannot flow from Vdd though M24 to n2. When the signal at n2 is low, M24 is on and n4 communicates with Vdd via M23 and M24 thereby charging n4 to Vdd. Thus, at the instant of CLK going from high to low, if the n2 signal is low, n4 is allowed to charge thereby turning M32 on and connecting n5 to ground. If, at the instant CLK goes from high to low, the signal at n2 is high, n4 is not permitted to charge, M31 turns on, and n5 is connected to Vdd.
Note that master latch 320 latches DI and provides a stable input to the slave latch 322 when CLK is low.
Thus, n5 is connected to either Vdd or ground via circuit block 305 when CLK is high and either Vdd or ground via circuit block 307 when CLK is low. The signal at n5 is inverted D0 when CLK is high and inverted D1 when CLK is low. Note also that the n5 signal propagates through inverter circuit block 309 so that output Q follows inputs D0 and D1 but at twice the frequency.
The circuitry of
This is represented in
Referring back to
Referring to
Referring back to
Next, the procedure flows to operation 516 wherein the previous steps are repeated for each pair of output signals. In the example shown in
After no more pairs of signals are present, the procedure ends as indicated by finish block 518.
Although the foregoing invention has been described in some detail for purposes of clarity of understanding, it will be apparent that certain changes and modifications may be practiced within the scope of the appended claims. Accordingly, the present embodiments are to be considered as illustrative and not restrictive, and the invention is not to be limited to the details given herein, but may be modified within the scope and equivalents of the appended claims.
This application is related to commonly-assigned U.S. patent application Ser. No. ______ (attorney docket number NP026), filed concurrently herewith in the name of the inventor of this application, and entitled, “Dual-Edge Triggered Multiplexer Flip-Flop And Method.” This related application is incorporated by reference herein in its entirety.