WO2009155874A1 - Parallel-serial converter and its implementation method - Google Patents

Parallel-serial converter and its implementation method Download PDF

Info

Publication number
WO2009155874A1
WO2009155874A1 PCT/CN2009/072463 CN2009072463W WO2009155874A1 WO 2009155874 A1 WO2009155874 A1 WO 2009155874A1 CN 2009072463 W CN2009072463 W CN 2009072463W WO 2009155874 A1 WO2009155874 A1 WO 2009155874A1
Authority
WO
WIPO (PCT)
Prior art keywords
speed
low
data
parallel
bit
Prior art date
Application number
PCT/CN2009/072463
Other languages
French (fr)
Chinese (zh)
Inventor
张学海
易律凡
丁学伟
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2009155874A1 publication Critical patent/WO2009155874A1/en

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M9/00Parallel/series conversion or vice versa

Definitions

  • the present invention relates to the field of integrated circuit design, and in particular, to a parallel-to-serial converter and a method for implementing the same.
  • BACKGROUND OF THE INVENTION For more than two decades, with the rapid development and popularization of electronic communication products for data transmission such as telephone, fax, television, etc., the pressure of the line carrying the transmission signal is increasing. The subsequent optical fiber communication has become more and more popular because of its small size, large capacity and good stability.
  • the development and integration of laser technology, fiber technology, microelectronic technology and computer technology has also promoted the development of optical fiber communication technology.
  • CMOS complementary metal-oxide semiconductor semiconductor
  • CMOS-based converters are beginning to appear, which convert multiple bits of parallel input data into one bit of serial output data.
  • CMOS-based converters in the communication field have the following functions: It is possible to parallel-convert 4-bit fast parallel input data into 1-bit high-speed serial output data, or convert 16-bit low-speed parallel input data into a string. 1-bit high-speed serial output data; In addition, some converters also have a reverse-sequence output function. However, these converters are not compatible with multiple operating modes, for example, they are not compatible with 4-bit parallel-to-serial conversion and 16-bit parallel-to-serial conversion, so they are not flexible; in addition, these converters have low-speed serialization modules and high-speed serialization modules. The circuit loss is large.
  • a parallel-to-serial converter includes a low-speed serialization module, a transmission module, and a high-speed serialization module, wherein: a transmission module is configured to determine a current operation according to a mode selection signal Mode, and determining an output mode according to the control signal.
  • the output mode is also provided to the low-speed serialization module and the high-speed serialization module; in the second working mode, the output mode is provided to the high-speed serialization module, and is turned off.
  • the low-speed serialization module inputs the low 2 2n -bit data of the 2 4n -bit low-speed parallel input data into the buffer module according to the set high-speed serialization ratio; the low-speed serialization module, in the first working mode, is used according to the output mode, and Low-speed serialization of 2 4n -bit low-speed parallel input data according to the set low-speed serialization ratio, to obtain 2 2n -bit high-speed parallel data; High-speed serialization module, in the first working mode, according to the output mode, and according to the setting the ratio of the speed of the string 2 2n-bit parallel data for serial high speed, thereby obtaining a high-speed serial output data; second working When the formula 2 2n bits for the low speed parallel output according to the ratio of the set and the high-speed serial input data string
  • the low-speed serialization module of the above parallel-to-serial converter comprises: a low-speed synchronous circuit, a low-speed serializer and a low-speed clock generating circuit, wherein: the low-speed synchronous circuit, in the first working mode, is used for 2 4n -bit low-speed parallel input data After synchronization, the 2 4n -bit low-speed synchronous parallel data is obtained; the low-speed serializer is used for the output mode, and the low-speed serialization of the 2 4n -bit low-speed synchronous parallel data is performed according to the set low-speed serialization ratio, and 2 2n is obtained.
  • the transmission module of the above parallel-to-serial converter includes a reverse sequence control circuit and mode selection Road, wherein: the reverse sequence control circuit, in the first working mode, is configured to receive 2 4n bits of low-speed parallel input data, and determine an output mode according to its own control signal; a mode selection circuit for determining an output mode according to its own control signal, Receiving 2 2n -bit low-speed parallel input data, and automatically turning off the low-speed serialization module when switching from the first working mode to the second working mode, or automatically turning on the low-speed serialization module when switching from the second working mode to the first working mode.
  • the high-speed serialization module of the above parallel-to-serial converter comprises: a high-speed synchronization circuit, a high-speed serializer and a high-speed clock generation circuit, wherein: a high-speed synchronization circuit is configured to synchronize the received 2 2n -bit high-speed parallel data, Obtaining 2 2n -bit high-speed synchronous parallel data; high-speed serializer for serializing 2 2n -bit high-speed synchronous parallel data to obtain 1-bit high-speed serial output data; high-speed clock generation circuit for respectively respectively to high-speed synchronous circuit and The high speed serializer provides a clock signal.
  • the above-serial converter, and the module further comprises a buffer module connected to the high-speed train, when the second operating mode for low-speed parallel data bits 2 2N buffers, and low back cushion 2 2n bits of data are input to the high speed serialization module.
  • the above low-speed serial converter module comprises a string of at least four basic units a low speed, when the first operating mode, for receiving each 2 4n-bit data from a set of four high to low speed parallel input data, respectively, After serialization, 2 2n -bit high-speed parallel data is outputted to the high-speed serialization module; wherein each low-speed basic unit shares a reset signal and a clock signal; the low-speed basic unit includes four synchronous D flip-flops and three alternative ones, wherein : a synchronous D flip-flop for synchronizing each set of low-speed parallel data received; a first two-selection selector and a second two-selection selector for receiving the synchronized two-two sets of data, After selecting, the two-bit parallel data is outputted to the third two-selector; the third-two-selector is used to select the received parallel data and output one bit of data.
  • the high-speed serialization module of the above parallel-to-serial converter comprises: four synchronous D flip-flops, one high-speed synchronous D flip-flop, two two-selection selectors, one two-select high-speed selector, two zero-order slow a buffer and two latch modules; wherein: a synchronous D flip-flop for synchronizing the received 2 2n -bit high-speed parallel data divided into groups of four bits of data; Receiving two or two sets of data after synchronization, and outputting two-bit parallel data after selection; a high-speed synchronous D flip-flop for synchronously outputting modules respectively through two zero-order buffers and two latch modules , get a high-speed serial data; where, each part shares the reset signal and the clock signal.
  • the first latch module and the second latch module are different by half a clock cycle, wherein: the first latch module includes at least three sequential An electrically coupled latch, the second latch module includes at least two latches that are electrically connected in sequence; each latch shares a clock signal.
  • the low-speed clock generating circuit of the above parallel-to-serial converter comprises: three synchronous D flip-flops, eight in-phase buffers, four inverting buffers, and one high-speed synchronous D flip-flop, wherein: each synchronous D trigger For generating clock signals of various stages; the same phase buffer is used for delay buffering each stage clock signal and converting into clock signals of the same phase; the inverting buffer is used for clock signals of various stages Delay buffering, converting to a clock signal with opposite phase; High-speed synchronous D flip-flop, used to divide the input clock signal and output it to the buffer and divider.
  • the present invention also provides a parallel-to-serial conversion method, including the steps of: a, determining a working mode and an output mode; b. in the first working mode, according to the determined output mode and the set low-speed serialization ratio, 2 4n -bit low-speed parallel input data for low-speed serialization, obtaining 2 2n -bit high-speed parallel data; and then according to the determined output mode and the set high-speed serialization ratio, high-speed serialization of 2 2n high-speed parallel data, to obtain a Bit high-speed serial output data;
  • the second mode of operation according to the determined output mode and the set high-speed serialization ratio, parallel and serial conversion of low 2 2n -bit data of 2 4n -bit low-speed parallel input data will result in low
  • serialization is performed according to the determined output mode and the set high-speed serialization ratio, and 1-bit high-speed serial output data is obtained.
  • the parallel-to-serial converter of the present invention comprises a low-speed serialization module, a transmission module and a high-speed serialization module, which is compatible with the first working mode and the second working mode, and has good flexibility; and automatically switches from the first working mode to the second working mode. Turning off the low-speed serialization module helps to reduce the circuit loss.
  • the low-speed serialization module and the high-speed serialization module sequentially perform conversion of low-speed parallel input data, and will be suitable for low-speed single-ended signals and suitable for high-speed.
  • the combination of double-ended signals also helps to reduce circuit losses.
  • the 2 4 n -bit low-speed parallel input data is sequentially converted into a 1-bit high-speed serial output data by a low-speed serialization module and a high-speed serialization module, and the low-speed serial data is turned off in the second working mode.
  • the module and the 2 2n -bit data are serially converted by the high-speed serialization module to obtain 1-bit high-speed serial output data; wherein, the low-speed serialization module input form can be a single-ended CMOS signal, and the high-speed serialization module input form can be Double-ended differential CMOS signal.
  • the transmission module controls the reverse output of the input data and the automatic opening and closing of the low-speed serialization module when the working mode is switched when the first working mode/second working mode is controlled.
  • the low-speed serialization module and the high-speed serialization module sequentially perform the conversion of the low-speed parallel input data, and the second operation mode automatically turns off the low-speed serialization module, and simultaneously sets the low-speed serialization module.
  • the combination of a single-ended signal structure and a high-speed serialization module's dual-ended signal structure is beneficial in reducing circuit losses. Since the differential signal is strong against noise and anti-interference, and is still unaffected in the low-voltage circuit, the high-speed circuit in the parallel-to-serial converter of the present invention can be implemented by using a differential circuit, and the high-speed signals are differential signals.
  • FIG. 1 is a block diagram showing the basic principle of a parallel-to-serial converter according to a preferred embodiment of the present invention
  • FIG. 2 is a block diagram showing the overall principle of a parallel-to-serial converter according to a preferred embodiment of the present invention
  • FIG. 3b is a schematic block diagram of a low-speed basic unit in a preferred embodiment of the present invention
  • FIG. 4 is a high-speed serialization module and a low-speed clock in a parallel-to-serial converter according to a preferred embodiment of the present invention
  • FIG. 5 is a schematic diagram of a parallel-to-serial conversion method in a preferred embodiment of the present invention.
  • a mode selection circuit located in the transmission module between the low-speed serialization module and the high-speed serialization module controls free switching of different operating modes, and automatically switches off the low-speed serialization module when switching from the first operating mode to the second operating mode.
  • the addition of the transmission module can realize the multi-bit compatible working mode and the reverse order output function of the data through the control signal to enhance the adaptability of the circuit; in addition, the transmission module can also control the low-speed serialization module in the second while completing the conversion function. Power down in the operating mode, which can reduce the power consumption of the overall circuit.
  • the first working mode is to convert the 2 4n -bit low-speed parallel input data into a 1-bit high-speed string.
  • the operation mode of the line output data is a parallel mode of converting the low 2 2n bit data of the 2 4n low-speed parallel input data into the 1-bit high-speed serial output data.
  • the 2 4n -bit low-speed parallel input data is converted into 1-bit high-speed serial output data block by block by the low-speed serialization module and the high-speed serialization module, and the output is controlled by the reverse-order control circuit in the transmission module.
  • Mode In the second working mode, 2 2n bits of data are converted into 1-bit high-speed serial output data by the high-speed serialization module, and the output mode is controlled by the mode selection circuit in the transmission module.
  • the parallel-to-serial converter of the present invention includes: a low-speed serialization module 101, a transmission module 102, a high-speed serialization module 103, and a buffer module 104;
  • the serialization module 101, the transmission module 102 and the high-speed serialization module 103 are sequentially electrically connected, and the buffer module 104 is electrically connected to the high-speed serialization module 103.
  • the low-speed serialization module 101 and the high-speed serialization module 103 perform parallel-to-serial conversion on a block-by-block basis.
  • the transmission module 102 determines that the current working mode is the first working mode according to the mode selection signal, and determines an output mode according to the control signal, and provides an output mode to the low-speed serialization module 101 and the high-speed serialization module 103 respectively; 2 4n -bit low-speed parallel input data passes The low-speed serialization module 101 and the low-speed serialization module 101 perform low-speed serialization according to the output mode provided by the transmission module 102 and according to the set low-speed serialization ratio to obtain 2 2n -bit high-speed parallel data; the above 2 2n -bit high-speed parallel
  • the data is input to the high-speed serialization module 103 through the transmission module 102, and the high-speed serialization module 103 performs high-speed serialization according to the output mode provided by the transmission module 102 and the set high-speed serialization ratio to obtain 1-bit high-speed serial output data.
  • the transmission module 102 determines that the current working mode is the second working mode according to the mode selection signal, and determines an output mode according to the control signal, provides an output mode to the high-speed serialization module 103, and automatically turns off the low-speed serialization module 101.
  • the low 2 2n -bit data of the 24 n -bit low-speed parallel input data can be buffered by the buffer module 104 according to the set high-speed serialization ratio, and then input to the high-speed serialization module 103; the high-speed serialization module 103 can only The output mode provided by the transmission module 102 and the set high-speed serialization ratio serialize the buffered low-speed 2 2n -bit high-speed parallel data to obtain 1-bit high-speed serial output data.
  • the transmission module 102 controls the output mode of the 24 n -bit low-speed parallel input data, and controls the free switching of the working mode between the first working mode and the second working mode; and, when the working mode is switched from the second working mode to In the first mode of operation, the low speed serialization module 101 is automatically turned on.
  • the low-speed serialization module 101 uses a single-ended signal structure
  • the high-speed serialization module 103 uses a double-ended signal structure.
  • the single-ended signal is a single-ended CMOS signal
  • the double-ended signal is a double-ended CMOS differential signal.
  • the parallel-to-serial converter includes: a reverse sequence control circuit 201, a low speed synchronization circuit 202, a low speed serializer 203, a mode selection circuit 204, a buffer 205, a high speed synchronization circuit 206, and a high speed string.
  • a reverse sequence control circuit 201 includes: a reverse sequence control circuit 201, a low speed synchronization circuit 202, a low speed serializer 203, a mode selection circuit 204, a buffer 205, a high speed synchronization circuit 206, and a high speed string.
  • the controller 207, the high-speed 4f generating circuit 208, and the fast-speed 4f generating circuit 209. In this embodiment, corresponding to FIG.
  • the low-speed serialization module 101 includes a low-speed synchronization circuit 202, a low-speed serializer 203, and a low-speed clock generation circuit 209;
  • the transmission module 102 includes a reverse-order control circuit 201 and a mode selection circuit 204;
  • the pass-through module 103 includes a high-speed sync circuit 206, a high-speed serializer 207, and a high-speed clock generation circuit 208;
  • the buffer module 104 is a buffer 205; and the high-speed clock generation circuit 208 and the low-speed clock generation circuit 209 constitute a clock generation circuit.
  • the reverse sequence control circuit 201, the low speed synchronization circuit 202, the low speed serializer 203, the mode selection circuit 204, the high speed synchronization circuit 206 and the high speed string converter 207 are sequentially electrically connected, and the buffer 205 is electrically connected to the mode selection circuit 204.
  • the high speed clock circuit 209 is electrically connected to the low speed clock circuit 208.
  • the low speed clock generating circuit 209 is electrically connected to the low speed synchronizing circuit 202 and the low speed serializer 203, respectively, and the high speed clock generating circuit 208 and the high speed synchronizing circuit 206 and the high speed serializing circuit, respectively.
  • the device 207 is electrically connected.
  • the idle parallel input data with a 16-bit rate not exceeding 155 Mbps is synchronized by the low-speed synchronization circuit 202, and then subjected to 16:4 serialization by the low-speed serializer 203 to obtain a 4-bit rate.
  • the parallel data of 622 Mbps; the parallel data of the 4-bit rate of 622 Mbps is input to the high-speed synchronization circuit 206 through the mode selection circuit 204, and after being synchronized by the high-speed synchronization circuit 206, the high-speed serializer 207 performs 4:1 serialization to obtain 1 bit. Serial output data at a rate of 2.5 Gbps.
  • Synchronization of low speed parallel input data by low speed synchronization circuit 202 means synchronizing each bit of low speed parallel input data.
  • the lower 4-bit data of the low-speed parallel input data whose 16-bit rate does not exceed 155 Mbps is buffered by the buffer 205, and the buffered lower 4-bit data is input to the high-speed synchronous circuit through the mode selection circuit 204.
  • 206 performs synchronization, and then performs 4:1 serialization via the high speed serializer 207 to obtain serial output data with a 1-bit rate of 2.5 Gbps.
  • High speed synchronization circuit 206 for the lower 4 bits Synchronization of data refers to synchronizing each bit of parallel 4-bit data.
  • the high speed serializer 207 can employ a differential structure to ensure output performance.
  • the selection signals of the high speed serializer 207 are the clock signals CLK1 and CLK2, both of which are differential signals.
  • the low-speed synchronization circuit 202 and the high-speed synchronization circuit 206 have the same structural principle, but the circuit parameters of the two are slightly different due to different environments. The differentiation between the two can ensure that the low speed synchronization circuit 202 achieves low power consumption while the high speed synchronization circuit 206 achieves high speed.
  • the low-speed serializer 203 and the high-speed serializer 207 basically adopt a tree structure, and the tree structure is composed of a plurality of alternately multiplexed two-choice structures, and a two-to-one structure is used as a basic unit to realize 2n:
  • the parallel conversion it can be seen that the low-speed serializer 203 can realize the 16:4 parallel-to-serial conversion by using four 4:1 basic structures.
  • the advantages of the tree structure are: low power consumption, easy clock acquisition, and highly symmetrical data channels.
  • the mode selection circuit 204 controls the free switching between the first working mode and the second working mode of the parallel-to-serial converter, and automatically turns off the low-speed serializing module when switching from the first working mode to the second working mode.
  • the mode selection circuit 204 controls the output mode of the input data, that is, the control of the output mode is completed by supplying the determined output mode to the high-speed serializer 207.
  • the reverse sequence control circuit 201 controls the output mode of the input data, that is, by providing the determined output mode to the low-speed serializer 203 and the high-speed serializer 207, the output mode is completed. control.
  • the output mode includes a sequential output and a reverse output.
  • the sequential output means that the input order of the input data is kept unchanged, and the reverse output means that the input data is output in reverse order of the input data byte, that is, the input data is taken in reverse order.
  • the buffer 205 is used to reduce the parasitic effect of the lower 4-bit data in the 16-bit low-speed parallel input data brought by the switching operation mode, thereby improving the conversion precision of the parallel-to-serial converter.
  • the shutdown signal PDC is the switching signal of the parallel-to-serial converter.
  • the clock generation circuit provides clock signals of the respective stages for the above circuits. Specifically, the clock input signal CLK0 is input to the high speed clock generating circuit 208; the high speed clock generating circuit 208 supplies the clock signals CLK1 and CLK2 to the high speed serializer 207, and supplies the clock signal CLK2 to the high speed synchronizing circuit 206, and simultaneously generates the clock CLK2 for the low speed clock.
  • the clock input signal CLK2 is provided; the low speed clock generating circuit 209 supplies the clock signals CLK3 and CLK4 to the low speed serializer 203 according to the clock signal CLK2 supplied from the high speed clock generating circuit 208, and supplies the clock signal CLK4 to the low speed synchronizing circuit 202 for each part.
  • the included trigger provides a clock signal.
  • the high speed clock generating circuit 208 and the low speed clock generating circuit 209 will input the high speed clock signal.
  • the CLK0 is divided step by step to generate the clock signals required by each module of the system. Due to the difference in the operating environment of the high-speed clock generating circuit 208 and the low-speed clock generating circuit 209, the specific structure of the two is different.
  • the high-speed clock generating circuit 208 can be a differential structure suitable for high speed; and the low-speed clock generating circuit 209 can be used. It can be an ordinary single-ended structure.
  • the mode selecting circuit 204 controls whether or not it generates an output signal, so that the low-speed circuit such as the low-speed synchronizing circuit 202 and the low-speed serializer 203 operates or stops working, thereby achieving effective system power reduction. The purpose of consumption.
  • the control signal of the reverse sequence control circuit 201 is MSB-SEL1, which can be active high, indicating sequential output in the first mode of operation;
  • the reset signal of the low speed synchronization circuit 202 is RB 1 , and the output is clear when the level is ⁇ Zero;
  • the control signal of the mode selection circuit 204 is MSB-SEL2, which can be active high, indicating that the current working mode is the first working mode;
  • the selection signal is MODE-SEL, which can be active high, indicating the second working mode
  • the lower order output is output;
  • the reset signal of the high speed synchronizing circuit 206 is RB2, and the output is cleared when the level is low;
  • the selection signal of the low speed clock generating circuit 209 is MODE-SEL, and the high level is valid.
  • the initialization of the parallel-to-serial converter is completed by resetting, so that the parts of the parallel-to-serial converter are in an initial state and do not contain interference information.
  • the parallel input data of the low-speed serializer 203 needs to be arranged, so that the output result is a high-to-low order of the parallel data.
  • the two-stage selection signals used by the low-speed serializer 203 are the clock signals CLK3 and CLK4, CLK4, respectively.
  • CLK3 and CLK4, CLK4 respectively.
  • both duty cycles are 1.
  • the data is converted from serial to serial in parallel from left to right, and the rate is from low to high; while 4f is stepped down from right to left.
  • the module 101 obtains the clock signal supplied from the low speed clock generating circuit 209, which also works normally and does not turn off.
  • the 16-bit parallel input data is passed through the reverse sequence control circuit 201, and is synchronized by the low-speed synchronization circuit 202 and the low-speed serializer 203 to perform 16:4 serialization to obtain parallel data of 4 bits at a rate of 622 Mbps; the above-mentioned 4-bit rate is 622 Mbps of parallel data passing.
  • the mode selection circuit 204 performs 4:1 serialization by the high-speed synchronization circuit 206 and the high-speed serializer 207 to obtain serial output data with a 1-bit rate of 2.5 Gbps, which are: T, "0", "1", ⁇ , "0", ⁇ , "0", ⁇ , ⁇ , "0", "0", "1", "1", “0", “, "0".
  • the clock signal is also provided for the high speed serialization module 103.
  • the low-speed serialization module 101 is not turned off.
  • the 16-bit parallel input data is passed through the reverse-sequence control circuit 201, and is synchronized by the low-speed synchronization circuit 202 and the low-speed serializer 203 to perform 16:4 serialization to obtain parallel data with a 4-bit rate of 622 Mbps; the above-mentioned 4-bit rate is 622 Mps of parallel data passing.
  • the mode selection circuit 204 performs 4:1 serialization by the high-speed synchronization circuit 206 and the high-speed serializer 207 to obtain serial output data with a 1-bit rate of 2.5 Gbps, which are: "0", "1", "0. ", "1", "1", “0”, “0”, “1”, “1”, “0”, “1", “0”, “1", “1”, “0”, “1".1", “0”, “1".
  • the high speed 4f generation circuit 208 also provides a clock signal to the high speed serialization module 103.
  • the signal MSB-SEL2 0, which is ⁇ level, and is output sequentially.
  • the lower 4 bits “1010" of the 16-bit parallel input data are 4:1 serialized by the high speed synchronizing circuit 206 and the high speed serializer 207 through the buffer 205 and the mode selecting circuit 204, resulting in a 1-bit rate of 2.5 Gbps.
  • Serial output data in order: "1", “0", "1", "0”.
  • the high speed clock generation circuit 208 provides clock signals for the high speed synchronization circuit 206 and the high speed serializer 207.
  • the lower 4 bits of the 16-bit parallel input data "1010" pass through the buffer 205 and the mode selection circuit
  • 3a and 3b are circuit schematic diagrams of the low speed synchronization circuit 202 and the low speed serializer 203 in the low speed serialization module 101 of the present embodiment. In FIG.
  • the low speed synchronizing circuit 202 and the low speed serializer 203 include: a first low speed basic unit 301, a second low speed basic unit 302, a third low speed basic unit 303, a fourth low speed basic unit 304, and a buffer 8, each of which The low speed base unit is electrically connected in parallel by the reset signal RB 1 and the clock signal CLK4 supplied from the low speed clock circuit 209.
  • the 16-bit Din ⁇ 15> ⁇ Din ⁇ 0> parallel input data with a rate not higher than 155 Mbps is arranged and combined according to the setting principle according to the setting principle, and four sets of low-speed parallel data are obtained, for example, the adjacent two-bit difference is 8:
  • the first group is Din ⁇ 15>, Din ⁇ 7>, Din ⁇ ll>, Din ⁇ 3>
  • the second group is Din ⁇ 14>, Din ⁇ 6>, Din ⁇ 10>, Din ⁇ 2>
  • the third group is Din ⁇ 13>, Din ⁇ 5>, Din ⁇ 9>, Din ⁇ l>
  • the fourth group is Din ⁇ 12>, Din ⁇ 4>, Din ⁇ 8>, Din ⁇ 0>
  • the group data is parallel-converted by the fourth low-speed base unit 304 to obtain 1-bit serial output data
  • the second group data is parallel-converted by the third low-speed base unit 303 to obtain 1-bit serial output data
  • the second low-speed base unit 302 performs parallel-serial conversion to obtain 1-bit serial output data
  • parallel data of a 4-bit rate of 622 Mbps is output from the fourth low-speed base unit 304 to the first low-speed base unit 301, for example, four low-speed basic units output from high to low after the first parallel-to-serial conversion.
  • Bit and Row data Din ⁇ 15>, Din ⁇ 13>, Din ⁇ 14>, Din ⁇ 12>; four sets of transformed parallel data are sequentially output through four parallel-to-serial conversions.
  • the first low speed basic unit 301 includes: an 11th synchronous D flip-flop 1, a 12th synchronous D flip-flop 2, a 13th synchronous D flip-flop 3, a 14th synchronous D flip-flop 4, and an 11th selector 5
  • the fourth group of data Din ⁇ 12>, Din ⁇ 4>, Din ⁇ 8>, and Din ⁇ 0> are input to the 11th to 14th synchronous D flip-flops respectively, Din ⁇ 12> and Din ⁇ 4>, Din ⁇ 8>, and Din.
  • ⁇ 0> is divided into 1 by the 11th selector 5 and the 12th selector 6 to perform the selection of 2, 1 and the first round selects 1 bit of data Din ⁇ 12> and Din ⁇ 8>, respectively, by the 11th selector
  • the two bits of data obtained by the 5th and 12th selectors 6 are further selected by the 13th selector 7 to obtain the data Din ⁇ 12> having a 1-bit rate of 622 Mbps.
  • the lower 4 bits of data are sequentially output after four rounds of selection. In sequential output, the selector selects the output from high to clamp; in the reverse output, the selector selects the output from low to high.
  • the clock signal of the 11th to 14th synchronous D flip-flops is CLK4, and the reset signal is RB1; the clock signals of the 11th selector 5 and the 12th selector 6 are the clock signal CLK4D buffered by the buffer 8 by the CLK4; The clock signal of the 13th selector is CLK3. It can be seen that the four low-speed basic units perform the same operation separately, and finally obtain 4-bit parallel output data.
  • the clock signal of each synchronous D flip-flop is the 16-divided clock signal CLK4 generated by the low-speed clock generating circuit 209, and the CLK4 is buffer-buffered by the buffer 8 to obtain the clock signal CLK4D as the 11th selector 5 and the 12th selection.
  • the selection signal of the device 6; the clock signal CLK3 divided by 8 is used as the selection signal of the thirteenth selector.
  • 16 parallel synchronous D flip-flops need to consider the driving ability of the clock signal, and a buffer 9 can be added to the clock input end of each synchronous D flip-flop to improve the clock signal CLK4. Drive capability.
  • the reset signal RB1 is set to a valid value, and each synchronous D flip-flop output is cleared. In normal operation, the reset signal RB 1 is set to an invalid value.
  • 4 is a circuit schematic diagram of the high speed serialization module 103 and the low speed clock generation circuit 209 of the present embodiment.
  • the high speed serialization module 103 includes a high speed synchronization circuit 206, a high speed serializer 207, and a high speed clock generation circuit 208.
  • the high speed synchronization circuit 206 includes a 51st synchronous D flip-flop 501 and a 52nd synchronous D flip-flop 507.
  • the high speed serializer 207 includes a 51st selector 502, a 52nd selector 511, a 51st zeroth stage buffer BUF0 503, a 52nd BUFO 512, a 1st latch 504, a 2nd latch 505, and a 3rd lock.
  • the low-speed clock generating circuit 209 includes a 55th synchronous D flip-flop 527, a 56th synchronous D flip-flop 526, a 57th synchronous D flip-flop 524, a 51st buffer BUF 522, a 52nd BUF 521, a 53rd BUF 518, and a 54th.
  • the high speed clock generation circuit 208 includes a first cache Fast BUF 530, a second high speed synchronous D flip-flop 529, a second Fast BUF 516, a third Fast BUF 519, and a first stage buffer BUF1 528.
  • the time word CLKDIV4 sequentially passes through the 52nd BUF 521 and the 54th BUF 520 to obtain the synchronization time word CLKDIV4SYN; meanwhile, the time word CLKDIV4 passes through the 52nd BUF 521 and the 53rd BUF.
  • control word CLKDIV4SEL gets control word CLKDIV4SEL, the 51st to 54th synchronous D flip-flops under the control of the synchronous clock signal CLKDIV4SYN, the 2 2n -bit high-speed parallel data is synchronized, divided into a group of four bits of data, each group of data is input separately Four synchronous D flip-flops are synchronized, and then the data processed by the synchronous D flip-flop is set in pairs, and each group is input into a 2-to-1 selector, for example, the highest-order data and the next-highest data are input to the 51st selector. 502, input the second lower data and the lowermost data into the 52nd selector 511.
  • the 51st selector and the 52nd selector respectively select the output data DS0 and DS1; DS0 and DS1 are respectively input.
  • 51st BUF0 503 and 52nd BUF0 512 convert single-ended CMOS signals into double-ended CMOS differential signal pairs, respectively output DD0P and DD0N, DD1P and DD1N two pairs of differential signals; pass differential signals to DD0P and DD0N
  • the latch enables the clock signal to arrive first and the data signal to arrive later to ensure an orderly output of the data.
  • the first to third latches are electrically connected in sequence
  • the fourth to fifth latches are electrically connected.
  • the second high speed synchronous D flip-flop 529 outputs the differential clock signal pair CLKDIV2P and CLKDIV2N
  • the first to fifth latches provide a selection signal, and the clocks of the adjacent two latches are opposite in phase, so that the two input channels of the high speed selector 509 can be separated by a half cycle, so that the selected clock of the high speed selector 509 can have
  • the large phase margin avoids glitch in the high speed environment due to the difference in glitch width and data width.
  • the fast synchronous D flip-flop 510 is a high speed synchronous output circuit that receives the differential signal output by the high speed selector 509, and then synchronously outputs the differential signal according to the clock signal output by the second Fast BUF 516, which is a high speed differential clock signal. Obtained after CLKDIP and CLKDIN are buffered by the 2nd Fast BUF.
  • the low-speed clock generating circuit 209 and the high-speed clock generating circuit 208 have the same principle, and each of the clock signals is divided by a flip-flop to obtain clock signals of the respective stages. In FIG.
  • a pair of high-speed differential time-to-speech pairs CLKIP and CLKIN correspond to the time word CLK0 in FIG. 2, and the first fast BUF 530 is input to obtain a differential-time word pair CLKDIP and CLKDIN, corresponding to the time number in FIG. CLK1.
  • the differential time word pair CLKDIP and CLKDIN are output through the second Fast BUF 516 to the first high speed synchronous D flip-flop 510 as the synchronous clock signal of the first high speed synchronous D flip-flop 510; and the CLKDIP and CLKDIN outputs to the second high speed synchronous D
  • the flip-flop 529, the inverting output terminal of the second high-speed synchronous D flip-flop 529 is short-circuited with the input terminal to form a T flip-flop, that is, when the clock edge of CLKDIP and CLKDIN comes, the differential clock output by the second high-speed synchronous D flip-flop 529
  • the signal pair will flip on CLKDIV2P and CLKDIV2N.
  • the differential clock signal outputted by the second high-speed synchronous D flip-flop 529 supplies clock signals to the first to fifth latches through the third Fast BUF 519 to the CLKDIV2P and CLKDIV2N; on the other hand, the high-speed differential clock signal is transmitted through the BUF1 528.
  • the 55th synchronous D flip-flop 527 After being converted into a single-ended clock signal, it is input to the 55th synchronous D flip-flop 527; and is input to the 56th synchronous D flip-flop 526 via the 51st BUF 522; the 56th synchronous D flip-flop 526 outputs the clock signal CLKDIV8 via the 55th
  • the BUF 520 is input to the 57th synchronous D flip-flop 524, and the 55th to 57th synchronous D flip-flops constitute a frequency divider, and the respective stages of the words CLKDIV4, CLKDIV8, and CLKDIV16 are generated, which correspond to CLK2, CLK3, and CLK4 in FIG. 2, respectively.
  • the 51st to 58th BUF is added to the clock signal generation path, and the 51st to 58th BUFs can be referred to as the in-phase buffer.
  • the 1st to 3th Fast BUF and the 1st BUF1 are called inverting buffers. Each buffer does not perform any operation on its input value. Its output value is the same as the input value. It simply delays the input value to push the current of the circuit to a higher level.
  • the same phase buffer is used for delay buffering each stage clock signal and converting into clock signals of the same phase; the inverting buffer is used for delay buffering each stage clock signal and converting into opposite phases. Clock signal.
  • RB2 is a reset signal of the 51st to 57th synchronous D flip-flops, and when RB2 is a valid signal, each synchronous D flip-flop output is cleared.
  • the high-speed serialization module 103 operates at a high rate, which imposes a high requirement on the anti-jamming capability of the internal signal. Because the double-ended differential structure has low linearity requirements on the input, small amplitude, and strong anti-interference ability, the differential structure is used in the high-speed circuit structure. As shown in Fig. 4, the circuit structure of the first to fifth latches is shown.
  • the 51-53 BUF circuit structure uses a differential structure.
  • the reset signal RB1 of the idle synchronizing circuit 202 and the reset signal RB2 of the high speed synchronizing circuit 206 may be the same set signal, or may be different set signals.
  • FIG. 5 is a schematic diagram of the parallel-to-serial conversion method of the embodiment. In FIG.
  • the parallel-to-serial conversion method includes the following steps: Step 601: Determine an operation mode and an output mode of the parallel-to-serial converter, and perform step 602 or step 605 according to the selected working mode and output mode; : The parallel-to-serial converter works in the first working mode, and according to the determined output mode and the set low-speed serialization ratio, low-speed serialization of the 2 4n -bit low-speed parallel input data is performed, and 2 2n -bit high-speed parallel data is obtained; And performing high-speed serialization on the 2 2n high-speed parallel data according to the determined output mode and the set high-speed serialization ratio to obtain one high-speed serial output data; Step 603: The parallel-serial converter operates in the second working mode According to the determined output mode and the set high-speed serialization ratio, the 2 2n -bit data of the 2 4n -bit low-speed parallel input data is parallel-serial converted, and the obtained low 2 2n -bit data is buffered, and then according to
  • the above output modes include sequential output and reverse output.
  • the sequential output means that the input order of the input data is kept unchanged
  • the reverse output means that the input data is output in reverse order of the input data byte, that is, the input data is taken in reverse order.
  • the parallel-to-serial converter uses a 0.13 um CMOS process with a supply voltage of 1.2V.
  • the power supply voltage of IV may be used in a 90 nm CMOS process, but attention should be paid to the low voltage design in the high speed differential structure.
  • a computer readable medium having stored thereon instructions for causing a processor to perform the above-described operation as shown in FIG.

Abstract

A parallel-serial converter is provided, and the parallel-serial converter comprises a low speed serializer module, a transmission module and a high speed serializer module. A parallel-serial conversion method is also provided, and the parallel-serial conversion method comprises determining a work mode and an output mode. In the first work mode, a low speed parallel input data of 24n bits is serialized in a low speed to obtain a high speed parallel data of 22n bits; and then the high speed parallel data of 22n bits is serialized in a high speed to obtain a high speed serial output data of one bit; in the second work mode, the data of the lower 22n bits in the low speed parallel input data of 24n bits is parallel-serial converted, and after the obtained data of the lower 22n bits are buffered, the data is serialized according to the determined output mode and the set high speed serializing proportion, to obtain a high speed serial output data of one bit.

Description

并串转换器及其实现方法  Parallel string converter and implementation method thereof
技术领域 本发明涉及集成电路设计领域, 尤其涉及一种并串转换器及其实现方 法。 背景技术 近二十多年以来, 随着电话、 传真、 电视等数据传输的电子通讯产品的 快速发展及普及, 承载传输信号的线路的压力越来越大。 而随后出现的光纤 通讯由于具有体积小、 容量大和稳定性好等优点, 日益获得人们的青睐。 同 时, 激光技术、 光纤技术、 微电子技术和计算机技术的发展和集成, 也推动 了光纤通信技术的发展。 现在, 光纤网已经成为信息社会的通讯支柱, 高速光纤通信系统已经在 世界范围内进入大规模建设阶段。 同时, 集成电路在通信系统中也扮演着越 来越重要的角色, 转换器就是一种集成电路。 在目前关于转换器电路的国内外文献中,较多的釆用非主流工艺,例如, 金属半导体肖特基结场效应晶体管 ( MESFET )、 双极接面电晶体( Si-BJT )、 双极晶体管 (HBT ) 等; 同时, 随着互补型金属氧 4匕物半导体 (CMOS , Complementary Metal-Oxide-Semiconductor Transistor ) 工艺的逐渐成熟, 单 端 CMOS信号在高速低压环境中极容易受串扰、耦合和噪声等因素的影响而 变得不稳定, 所以, 在大多数高速集成电路中, 重要的数据信号均釆用双端 CMOS差分结构。 目前, 一些基于 CMOS 工艺的转换器开始出现, 这类转换器能够将多 位并行输入数据转换为一位串行输出数据。 在通信领域中较常用的基于 CMOS工艺的转换器有如下功能: 可以将 4位氏速并行输入数据并串转换成 1位高速串行输出数据,或将 16位低速并行输入数据并串转换成 1位高速串 行输出数据; 另外, 某些转换器还具有逆序输出功能。 但是, 由于这些转换器不能兼容多种工作模式, 例如, 不能兼容 4位并 串转换和 16 位并串转换, 因此灵活性不好; 另外, 这些转换器的低速串化 模块和高速串化模块的电路损耗较大。 发明内容 有鉴于此, 本发明的主要目的在于提供一种能够兼容多种工作模式、 且 电路损耗小的并串转换器及其实现方法。 为达到上述目的, 本发明的技术方案是这样实现的: 一种并串转换器, 包括低速串化模块、传输模块和高速串化模块,其中: 传输模块, 用于根据模式选择信号确定当前工作模式, 并根据控制信号 确定输出方式, 第一工作模式时, 还用于向低速串化模块和高速串化模块提 供输出方式; 第二工作模式时, 向高速串化模块提供输出方式, 并关闭低速 串化模块, 根据设定的高速串化比例将 24n位低速并行输入数据的低 22n位数 据输入緩冲模块; 低速串化模块, 第一工作模式时, 用于根据输出方式、 并根据设定的低 速串化比例对 24n位低速并行输入数据进行低速串化, 得到 22n位高速并行数 据; 高速串化模块, 第一工作模式时, 用于根据输出方式、 并根据设定的高 速串化比例对 22n位高速并行数据进行串化, 得到 1位高速串行输出数据; 第二工作模式时, 用于根据输出方式及设定的高速串化比例对低 22n位低速 并行输入数据进行串化, 得到 1位高速串行输出数据; 其中, n为自然数。 优选地, 以上并串转换器的低速串化模块包括: 低速同步电路、 低速串 化器和低速时钟生成电路, 其中: 低速同步电路, 第一工作模式时, 用于 24n位低速并行输入数据同步后, 得到 24n位低速同步并行数据; 低速串化器, 用于才艮据输出方式、 并根据设定的低速串化比例对 24n位 低速同步并行数据进行低速串化, 得到 22n位高速并行数据; 低速时钟生成电路,用于分别向低速同步电路和低速串化器提供时钟信 号。 优选地, 以上并串转换器的传输模块包括逆序控制电路和模式选择电 路, 其中: 逆序控制电路, 第一工作模式下, 用于接收 24n位低速并行输入数据, 并根据自身的控制信号确定输出方式; 模式选择电路, 用于根据自身的控制信号确定输出方式, 接收 22n位低 速并行输入数据, 并且由第一工作模式切换到第二工作模式时自动关闭低速 串化模块、或由第二工作模式切换到第一工作模式时自动打开低速串化模块。 优选地, 以上并串转换器的高速串化模块包括: 高速同步电路、 高速串 化器和高速时钟生成电路, 其中: 高速同步电路, 用于对收到的 22n位高速并行数据进行同步, 得到 22n 位高速同步并行数据; 高速串化器, 用于对 22n位高速同步并行数据进行串化, 得到 1位高速 串行输出数据; 高速时钟生成电路,用于分别向高速同步电路和高速串化器提供时钟信 号。 优选地, 以上并串转换器, 还包括与高速串化模块相连的緩冲模块, 第 二工作模式时, 用于对低 22n位高速并行数据进行緩冲, 并将緩冲后的低 22n 位数据输入到高速串化模块。 优选地, 以上并串转换器的低速串化模块包括至少四个低速基本单元, 第一工作模式时, 用于分别接收 24n位低速并行输入数据从高位到低位每 4 位一组的数据, 进行串化后输出 22n位高速并行数据到高速串化模块; 其中, 各低速基本单元共用复位信号和时钟信号; 低速基本单元包括四个同步 D触发器和三个二选一选择器, 其中: 同步 D触发器, 用于对收到的每组低速并行数据进行同步; 第一二选一选择器和第二二选一选择器,用于接收同步后的两两一组的 数据, 经选择后输出两位并行数据至第三二选一选择器; 第三二选一选择器用于对收到的并行数据进行选择, 输出一位数据。 优选地, 以上并串转换器的高速串化模块包括: 四个同步 D触发器、 一个高速同步 D触发器, 两个二选一选择器、 一个二选一高速选择器, 两个 零级緩冲器和两个锁存器模块; 其中: 同步 D触发器, 用于对收到的以每四位数据划分为一组的 22n位高速并 行数据进行同步; 二选一选择器, 用于接收同步后的两两一组的数据, 经选择后输出两位 并行数据; 高速同步 D触发器, 用于对分别经两个零级緩冲器和两个锁存器模块 的模块进行同步输出, 得到一位高速串行数据; 其中, 各部分共用复位信号和时钟信号。 优选地,以上并串转换器的两个锁存器模块中,第一锁存器模块与第二 锁存器模块相差半个时钟周期, 其中: 第一锁存器模块包括至少三个顺次电连接的锁存器,第二锁存器模块包 括至少两个顺次电连接的锁存器; 各锁存器共用时钟信号。 优选地, 以上并串转换器的低速时钟生成电路包括: 三个同步 D触发 器、 八个同相緩冲器、 四个反相緩冲器和一个高速同步 D触发器, 其中: 各同步 D触发器, 用于生成各级时钟信号; 同相緩冲器, 用于将各级时钟信号进行延时緩冲, 转换成相位相同的各 级时钟信号; 反相緩冲器用于将各级时钟信号进行延时緩冲,转换成相位相反的时钟 信号; 高速同步 D触发器, 用于将输入的时钟信号分频后输出到緩冲器和分 频器。 同时, 本发明还提供了一种并串转换方法, 包括步骤: a、 确定工作模式和输出方式; b、 第一工作模式下, 根据确定的输出方式及设定的低速串化比例, 对 24n位低速并行输入数据进行低速串化, 得到 22n位高速并行数据; 再才艮据确 定的输出方式及设定的高速串化比例, 对 22n高速并行数据进行高速串化, 得到一位高速串行输出数据; 第二工作模式下, 根据确定的输出方式及设定的高速串化比例, 对 24n 位低速并行输入数据的低 22n位数据进行并串转换, 将得到的低 22n位数据緩 冲后, 并根据确定的输出方式及设定的高速串化比例进行串化, 得到 1位高 速串行输出数据。 本发明并串转换器包括低速串化模块、 传输模块和高速串化模块, 能够 兼容第一工作模式和第二工作模式, 灵活性好; 且由第一工作模式切换到第 二工作模式时自动关闭低速串化模块, 有利于减小电路损耗; 同时, 第一工 作模式时低速串化模块与高速串化模块依次完成对低速并行输入数据的转 换, 并将适合低速的单端信号和适合高速的双端信号相结合, 也有利于减小 电路损耗。 具体的, 第一工作模式时将 24n位低速并行输入数据依次通过低速串化 模块和高速串化模块逐块并串转换得到 1位高速串行输出数据; 或者第二工 作模式时关闭低速串化模块, 且将 22n位数据通过高速串化模块进行并串转 换得到 1 位高速串行输出数据; 其中, 低速串化模块输入形式可以为单端 CMOS信号, 高速串化模块输入形式可以为双端差分 CMOS信号。 同时, 传 输模块控制第一工作模式 /第二工作模式时输入数据的逆序输出和工作模式 切换时低速串化模块的自动开闭。 综上所述, 本发明的有益效果是: TECHNICAL FIELD The present invention relates to the field of integrated circuit design, and in particular, to a parallel-to-serial converter and a method for implementing the same. BACKGROUND OF THE INVENTION For more than two decades, with the rapid development and popularization of electronic communication products for data transmission such as telephone, fax, television, etc., the pressure of the line carrying the transmission signal is increasing. The subsequent optical fiber communication has become more and more popular because of its small size, large capacity and good stability. At the same time, the development and integration of laser technology, fiber technology, microelectronic technology and computer technology has also promoted the development of optical fiber communication technology. Nowadays, fiber optic networks have become the communication backbone of the information society, and high-speed fiber-optic communication systems have entered the stage of large-scale construction worldwide. At the same time, integrated circuits play an increasingly important role in communication systems, and converters are an integrated circuit. In the current domestic and foreign literature on converter circuits, more non-mainstream processes are used, such as metal semiconductor Schottky junction field effect transistors (MESFETs), bipolar junction transistors (Si-BJT), and bipolar Transistors (HBT), etc. At the same time, with the gradual maturity of complementary metal-oxide semiconductor semiconductor (CMOS, Complementary Metal-Oxide-Semiconductor Transistor) processes, single-ended CMOS signals are highly susceptible to crosstalk, coupling, and high-speed, low-voltage environments. Noise and other factors become unstable, so in most high-speed integrated circuits, important data signals use a double-ended CMOS differential structure. Currently, some CMOS-based converters are beginning to appear, which convert multiple bits of parallel input data into one bit of serial output data. The more commonly used CMOS-based converters in the communication field have the following functions: It is possible to parallel-convert 4-bit fast parallel input data into 1-bit high-speed serial output data, or convert 16-bit low-speed parallel input data into a string. 1-bit high-speed serial output data; In addition, some converters also have a reverse-sequence output function. However, these converters are not compatible with multiple operating modes, for example, they are not compatible with 4-bit parallel-to-serial conversion and 16-bit parallel-to-serial conversion, so they are not flexible; in addition, these converters have low-speed serialization modules and high-speed serialization modules. The circuit loss is large. SUMMARY OF THE INVENTION In view of the above, it is a primary object of the present invention to provide a parallel-to-serial converter capable of being compatible with a plurality of operating modes and having low circuit losses, and an implementation method thereof. To achieve the above objective, the technical solution of the present invention is implemented as follows: A parallel-to-serial converter includes a low-speed serialization module, a transmission module, and a high-speed serialization module, wherein: a transmission module is configured to determine a current operation according to a mode selection signal Mode, and determining an output mode according to the control signal. In the first working mode, the output mode is also provided to the low-speed serialization module and the high-speed serialization module; in the second working mode, the output mode is provided to the high-speed serialization module, and is turned off. The low-speed serialization module inputs the low 2 2n -bit data of the 2 4n -bit low-speed parallel input data into the buffer module according to the set high-speed serialization ratio; the low-speed serialization module, in the first working mode, is used according to the output mode, and Low-speed serialization of 2 4n -bit low-speed parallel input data according to the set low-speed serialization ratio, to obtain 2 2n -bit high-speed parallel data; High-speed serialization module, in the first working mode, according to the output mode, and according to the setting the ratio of the speed of the string 2 2n-bit parallel data for serial high speed, thereby obtaining a high-speed serial output data; second working When the formula 2 2n bits for the low speed parallel output according to the ratio of the set and the high-speed serial input data string, thereby obtaining a high-speed serial data output; wherein, n-is a natural number. Preferably, the low-speed serialization module of the above parallel-to-serial converter comprises: a low-speed synchronous circuit, a low-speed serializer and a low-speed clock generating circuit, wherein: the low-speed synchronous circuit, in the first working mode, is used for 2 4n -bit low-speed parallel input data After synchronization, the 2 4n -bit low-speed synchronous parallel data is obtained; the low-speed serializer is used for the output mode, and the low-speed serialization of the 2 4n -bit low-speed synchronous parallel data is performed according to the set low-speed serialization ratio, and 2 2n is obtained. Bit high speed parallel data; low speed clock generating circuit for supplying clock signals to the low speed synchronizing circuit and the low speed serializer, respectively. Preferably, the transmission module of the above parallel-to-serial converter includes a reverse sequence control circuit and mode selection Road, wherein: the reverse sequence control circuit, in the first working mode, is configured to receive 2 4n bits of low-speed parallel input data, and determine an output mode according to its own control signal; a mode selection circuit for determining an output mode according to its own control signal, Receiving 2 2n -bit low-speed parallel input data, and automatically turning off the low-speed serialization module when switching from the first working mode to the second working mode, or automatically turning on the low-speed serialization module when switching from the second working mode to the first working mode. Preferably, the high-speed serialization module of the above parallel-to-serial converter comprises: a high-speed synchronization circuit, a high-speed serializer and a high-speed clock generation circuit, wherein: a high-speed synchronization circuit is configured to synchronize the received 2 2n -bit high-speed parallel data, Obtaining 2 2n -bit high-speed synchronous parallel data; high-speed serializer for serializing 2 2n -bit high-speed synchronous parallel data to obtain 1-bit high-speed serial output data; high-speed clock generation circuit for respectively respectively to high-speed synchronous circuit and The high speed serializer provides a clock signal. Preferably, the above-serial converter, and the module further comprises a buffer module connected to the high-speed train, when the second operating mode for low-speed parallel data bits 2 2N buffers, and low back cushion 2 2n bits of data are input to the high speed serialization module. Preferably, the above low-speed serial converter module comprises a string of at least four basic units a low speed, when the first operating mode, for receiving each 2 4n-bit data from a set of four high to low speed parallel input data, respectively, After serialization, 2 2n -bit high-speed parallel data is outputted to the high-speed serialization module; wherein each low-speed basic unit shares a reset signal and a clock signal; the low-speed basic unit includes four synchronous D flip-flops and three alternative ones, wherein : a synchronous D flip-flop for synchronizing each set of low-speed parallel data received; a first two-selection selector and a second two-selection selector for receiving the synchronized two-two sets of data, After selecting, the two-bit parallel data is outputted to the third two-selector; the third-two-selector is used to select the received parallel data and output one bit of data. Preferably, the high-speed serialization module of the above parallel-to-serial converter comprises: four synchronous D flip-flops, one high-speed synchronous D flip-flop, two two-selection selectors, one two-select high-speed selector, two zero-order slow a buffer and two latch modules; wherein: a synchronous D flip-flop for synchronizing the received 2 2n -bit high-speed parallel data divided into groups of four bits of data; Receiving two or two sets of data after synchronization, and outputting two-bit parallel data after selection; a high-speed synchronous D flip-flop for synchronously outputting modules respectively through two zero-order buffers and two latch modules , get a high-speed serial data; where, each part shares the reset signal and the clock signal. Preferably, in the two latch modules of the parallel-to-serial converter, the first latch module and the second latch module are different by half a clock cycle, wherein: the first latch module includes at least three sequential An electrically coupled latch, the second latch module includes at least two latches that are electrically connected in sequence; each latch shares a clock signal. Preferably, the low-speed clock generating circuit of the above parallel-to-serial converter comprises: three synchronous D flip-flops, eight in-phase buffers, four inverting buffers, and one high-speed synchronous D flip-flop, wherein: each synchronous D trigger For generating clock signals of various stages; the same phase buffer is used for delay buffering each stage clock signal and converting into clock signals of the same phase; the inverting buffer is used for clock signals of various stages Delay buffering, converting to a clock signal with opposite phase; High-speed synchronous D flip-flop, used to divide the input clock signal and output it to the buffer and divider. Meanwhile, the present invention also provides a parallel-to-serial conversion method, including the steps of: a, determining a working mode and an output mode; b. in the first working mode, according to the determined output mode and the set low-speed serialization ratio, 2 4n -bit low-speed parallel input data for low-speed serialization, obtaining 2 2n -bit high-speed parallel data; and then according to the determined output mode and the set high-speed serialization ratio, high-speed serialization of 2 2n high-speed parallel data, to obtain a Bit high-speed serial output data; In the second mode of operation, according to the determined output mode and the set high-speed serialization ratio, parallel and serial conversion of low 2 2n -bit data of 2 4n -bit low-speed parallel input data will result in low After 2 2n bit data buffering, serialization is performed according to the determined output mode and the set high-speed serialization ratio, and 1-bit high-speed serial output data is obtained. The parallel-to-serial converter of the present invention comprises a low-speed serialization module, a transmission module and a high-speed serialization module, which is compatible with the first working mode and the second working mode, and has good flexibility; and automatically switches from the first working mode to the second working mode. Turning off the low-speed serialization module helps to reduce the circuit loss. At the same time, in the first working mode, the low-speed serialization module and the high-speed serialization module sequentially perform conversion of low-speed parallel input data, and will be suitable for low-speed single-ended signals and suitable for high-speed. The combination of double-ended signals also helps to reduce circuit losses. Specifically, in the first working mode, the 2 4 n -bit low-speed parallel input data is sequentially converted into a 1-bit high-speed serial output data by a low-speed serialization module and a high-speed serialization module, and the low-speed serial data is turned off in the second working mode. The module and the 2 2n -bit data are serially converted by the high-speed serialization module to obtain 1-bit high-speed serial output data; wherein, the low-speed serialization module input form can be a single-ended CMOS signal, and the high-speed serialization module input form can be Double-ended differential CMOS signal. At the same time, the transmission module controls the reverse output of the input data and the automatic opening and closing of the low-speed serialization module when the working mode is switched when the first working mode/second working mode is controlled. In summary, the beneficial effects of the present invention are:
( 1 ) 灵活性好, 能够兼容多种工作模式, 例如兼容第一工作模式和第 二工作模式; (1) Flexibility and compatibility with multiple working modes, such as compatibility with the first working mode and the second working mode;
( 2 ) 电路损耗小, 第一工作模式时低速串化模块与高速串化模块依次 完成对低速并行输入数据的转换、且第二工作模式时自动关闭低速串化模块, 同时将低速串化模块单端信号结构和高速串化模块双端信号结构相结合, 均 有利于减小电路损耗。 由于差分信号抗噪声、抗干扰能力强,而且在低压电路里依然不受影响, 因此本发明并串转换器中的高速电路可以均釆用差分电路来实现, 高速信号 均为差分信号。 由于电路是由低速逐级转化为高速电路, 为了达到高速低功 耗的目的, 对转换器釆取了差异化设计。 两者的差异化可以使得在功能保证 的同时, 低速同步电路获得低功耗, 而高速同步电路获得高速度。 附图说明 此处所说明的附图用来提供对本发明的进一步理解 ,构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中: 图 1为本发明中并串转换器的基本原理框图; 图 2为本发明优选实施例中并串转换器的总体原理框图; 图 3a为本发明优选实施例并串转换器中低速同步电路和低速串化器的 原理才匡图; 图 3b为本发明优选实施例中低速基本单元原理框图; 图 4 为本发明优选实施例并串转换器中高速串化模块和低速时钟生成 电路的原理 图; 图 5为本发明优选实施例中并串转换方法的原理图。 具体实施方式 需要说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特 征可以相互组合。 下面将参考附图并结合实施例来详细说明本发明。 本发明的基本思想是:釆用适合低速的单端信号的低速串化模块以及适 合高速的双端信号的高速串化模块, 对 24n位低速并行输入数据进行并串转 换, 得到 1位高速并行输出数据。 位于低速串化模块和高速串化模块之间的 传输模块中的模式选择电路控制不同工作模式的自由切换, 并且由第一工作 模式切换到第二工作模式时自动关闭低速串化模块。 传输模块的加入可以通 过控制信号来实现多位兼容的工作模式和数据的逆序输出功能, 以增强电路 的适应能力; 另外, 传输模块在完成转换功能的同时还可以控制低速串化模 块在第二工作模式下进行断电, 从而可以降低整体电路的功耗。 上述第一工作模式是将 24n位低速并行输入数据并串转换成 1位高速串 行输出数据的工作模式, 第二工作模式是将 24n位低速并行输入数据的低 22n 位数据并串转换成 1位高速串行输出数据的工作模式。 以下描述中, 第一工作模式时, 24n位低速并行输入数据通过低速串化 模块和高速串化模块逐块转换为 1位高速串行输出数据, 由传输模块中的逆 序控制电路控制其输出方式; 第二工作模式时, 22n位数据通过高速串化模块 转换为 1位高速串行输出数据, 由传输模块中的模式选择电路控制其输出方 式。 图 1为本发明并串转换器的基本原理框图, 如图 1所示, 本发明并串转 换器包括: 低速串化模块 101、 传输模块 102、 高速串化模块 103和緩冲模 块 104; 上述低速串化模块 101、 传输模块 102与高速串化模块 103顺次电 连接, 緩冲模块 104与高速串化模块 103电连接。 其中, 在第一工作模式时, 低速串化模块 101与高速串化模块 103逐块 进行并串转换。 传输模块 102根据模式选择信号确定当前工作模式为第一工 作模式, 并根据控制信号确定输出方式, 分别向低速串化模块 101和高速串 化模块 103提供输出方式; 24n位低速并行输入数据通过低速串化模块 101 , 低速串化模块 101才艮据传输模块 102提供的输出方式、 并根据设定的低速串 化比例进行低速串化, 得到 22n位高速并行数据; 上述 22n位高速并行数据通 过传输模块 102输入高速串化模块 103 ,高速串化模块 103根据传输模块 102 提供的输出方式以及设定的高速串化比例进行高速串化, 得到 1位高速串行 输出数据。 在第二工作模式时,传输模块 102根据模式选择信号确定当前工作模式 为第二工作模式, 并根据控制信号确定输出方式, 向高速串化模块 103提供 输出方式, 并自动关闭低速串化模块 101 , 进一步地可以根据设定的高速串 化比例将 24n位低速并行输入数据的低 22n位数据经緩冲模块 104緩冲后, 输 入高速串化模块 103; 高速串化模块 103才艮据传输模块 102提供的输出方式 及设定的高速串化比例对緩冲后的低 22n位高速并行数据进行串化, 得到 1 位高速串行输出数据。 根据以上描述,传输模块 102控制 24n位低速并行输入数据的输出方式, 且控制工作模式在第一工作模式与第二工作模式间的自由切换; 并且, 当工 作模式由第二工作模式切换到第一工作模式时, 自动开启低速串化模块 101。 另外, 在本发明中, 为了降低电路损耗, 低速串化模块 101釆用单端信 号结构, 高速串化模块 103釆用双端信号结构。 上述单端信号为单端 CMOS信号, 双端信号为双端 CMOS差分信号。 图 2为本发明并串转换器优选实施例的原理图,在本实施例中,取 n=l。 在图 2所示的优选实施例中, 并串转换器包括: 逆序控制电路 201、 低 速同步电路 202、 低速串化器 203、 模式选择电路 204、 緩冲器 205、 高速同 步电路 206、 高速串 ^^器 207、 高速时 4f生成电路 208和氏速时 4f生成电路 209。 在本实施例中, 与图 1相对应, 低速串化模块 101 包括低速同步电路 202、 低速串化器 203和低速时钟生成电路 209; 传输模块 102包括逆序控制 电路 201和模式选择电路 204; 高速传化模块 103 包括高速同步电路 206、 高速串化器 207和高速时钟生成电路 208; 緩冲模块 104为緩冲器 205; 且 高速时钟生成电路 208和低速时钟生成电路 209组成时钟生成电路。 其中, 逆序控制电路 201、 低速同步电路 202、 低速串化器 203、 模式 选择电路 204、 高速同步电路 206与高速串 4匕器 207顺次电连接,緩冲器 205 与模式选择电路 204电连接,高速时钟电路 209与低速时钟电路 208电连接; 同时, 低速时钟生成电路 209分别与低速同步电路 202和低速串化器 203电 连接, 高速时钟生成电路 208分别与高速同步电路 206和高速串化器 207电 连接。 在本实施例中, 在第一工作模式时, 16位速率不超过 155Mbps的氐速 并行输入数据经低速同步电路 202同步后,经低速串化器 203进行 16:4串化, 得到 4位速率为 622Mbps的并行数据; 上述 4位速率为 622Mbps的并行数 据通过模式选择电路 204输入高速同步电路 206 , 经高速同步电路 206同步 后, 经高速串化器 207进行 4: 1 串化, 得到 1位速率为 2.5Gbps的串行输出 数据。 低速同步电路 202对低速并行输入数据的同步是指对低速并行输入数 据的每一位都进行同步。 在第二工作模式时, 16位速率不超过 155Mbps的低速并行输入数据的 低 4位数据经緩冲器 205緩冲后, 将緩冲后的低 4位数据通过模式选择电路 204输入高速同步电路 206进行同步, 然后再经高速串化器 207进行 4: 1 串 化, 得到 1位速率为 2.5Gbps的串行输出数据。 高速同步电路 206对低 4位 数据的同步是指对并行 4位数据的每一位进行同步。 由于差分信号有抑制共模干扰、 减少噪声等优点, 高速串化器 207可以 釆用差分结构, 以保证输出性能。 高速串化器 207 的选择信号为时钟信号 CLK1和 CLK2 , 两者均为差分信号。 低速同步电路 202和高速同步电路 206的结构原理相同,但由于所处环 境不同, 二者的电路参数略有差别。 两者的差异化可以在保证功能的同时, 使得低速同步电路 202获得低功耗, 而高速同步电路 206获得高速度。 低速串化器 203和高速串化器 207基本釆用树型结构,树型结构由多个 交差复用的二选一结构构成, 以一个二选一结构为基本单元就可以实现 2n: l 的并串转化, 由此可知, 低速串化器 203中釆用 4个 4: 1的基本结构即可实 现 16:4的并串转化。 树型结构的优点是: 功耗低, 所需时钟容易获得, 数据 通道高度对称。 在本实施例中,模式选择电路 204控制并串转换器在第一工作模式和第 二工作模式之间的自由切换, 且由第一工作模式切换到第二工作模式时自动 关闭低速串化模块 101 , 即关闭低速同步电路 202、 低速串化器 203与低速 时钟生成电路 209; 而由第二工作模式切换到第一工作模式时, 自动开启低 速串化模块 101。 另夕卜, 在第二工作模式时, 模式选择电路 204控制输入数 据的输出方式, 即通过将确定的输出方式提供给高速串化器 207 , 来完成对 输出方式的控制。 在本实施例中, 在第一工作模式时, 逆序控制电路 201控制输入数据的 输出方式, 即通过将确定的输出方式提供给低速串化器 203 和高速串化器 207 , 来完成对输出方式的控制。 在本实施例中, 所述输出方式包括顺序输出和逆序输出。 顺序输出是指 保持输入数据的输入顺序不变, 逆序输出是指按输入数据字节的输入顺序反 序输出, 即对输入数据釆取逆序操作。 在本实施例中, 所述緩冲器 205用于减小由切换工作模式带来的 16位 低速并行输入数据中低 4位数据的寄生效应, 从而提高并串转换器的转换精 度。 关断信号 PDC为并串转换器的开关信号, 当并串转换器需要进行数据 的并串转换时, 将关断信号 PDC置位为有效值; 当并串转换器不需要进行数 据的并串转换时, 将关断信号置位为无效值, 以节省电能。 在本实施例中,时钟生成电路为以上各电路提供各级时钟信号。具体的, 时钟输入信号 CLK0输入高速时钟生成电路 208; 高速时钟生成电路 208为 高速串化器 207提供时钟信号 CLK1和 CLK2 , 且为高速同步电路 206提供 时钟信号 CLK2, 同时为低速时钟生成电路 209提供时钟输入信号 CLK2; 低速时钟生成电路 209根据高速时钟生成电路 208提供的时钟信号 CLK2, 为低速串化器 203提供时钟信号 CLK3和 CLK4, 且为低速同步电路 202提 供时钟信号 CLK4, 以为各部分包含的触发器提供时钟信号。 高速时钟生成电路 208和低速时钟生成电路 209将输入的高速时钟信号(2) The circuit loss is small. In the first working mode, the low-speed serialization module and the high-speed serialization module sequentially perform the conversion of the low-speed parallel input data, and the second operation mode automatically turns off the low-speed serialization module, and simultaneously sets the low-speed serialization module. The combination of a single-ended signal structure and a high-speed serialization module's dual-ended signal structure is beneficial in reducing circuit losses. Since the differential signal is strong against noise and anti-interference, and is still unaffected in the low-voltage circuit, the high-speed circuit in the parallel-to-serial converter of the present invention can be implemented by using a differential circuit, and the high-speed signals are differential signals. Since the circuit is converted from a low speed step by step to a high speed circuit, in order to achieve high speed and low power For the purpose of consumption, the converter has adopted a differentiated design. The difference between the two can make the low-speed synchronization circuit achieve low power consumption while the high-speed synchronization circuit achieves high speed. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing the basic principle of a parallel-to-serial converter according to a preferred embodiment of the present invention; FIG. 2 is a block diagram showing the overall principle of a parallel-to-serial converter according to a preferred embodiment of the present invention; FIG. 3b is a schematic block diagram of a low-speed basic unit in a preferred embodiment of the present invention; FIG. 4 is a high-speed serialization module and a low-speed clock in a parallel-to-serial converter according to a preferred embodiment of the present invention; Schematic diagram of generating a circuit; FIG. 5 is a schematic diagram of a parallel-to-serial conversion method in a preferred embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. The basic idea of the present invention is to use a low-speed serialization module suitable for a low-speed single-ended signal and a high-speed serialization module suitable for a high-speed double-ended signal to perform parallel-to-serial conversion on 24 n -bit low-speed parallel input data to obtain a 1-bit high-speed. Output data in parallel. A mode selection circuit located in the transmission module between the low-speed serialization module and the high-speed serialization module controls free switching of different operating modes, and automatically switches off the low-speed serialization module when switching from the first operating mode to the second operating mode. The addition of the transmission module can realize the multi-bit compatible working mode and the reverse order output function of the data through the control signal to enhance the adaptability of the circuit; in addition, the transmission module can also control the low-speed serialization module in the second while completing the conversion function. Power down in the operating mode, which can reduce the power consumption of the overall circuit. The first working mode is to convert the 2 4n -bit low-speed parallel input data into a 1-bit high-speed string. The operation mode of the line output data, the second mode of operation is a parallel mode of converting the low 2 2n bit data of the 2 4n low-speed parallel input data into the 1-bit high-speed serial output data. In the following description, in the first mode of operation, the 2 4n -bit low-speed parallel input data is converted into 1-bit high-speed serial output data block by block by the low-speed serialization module and the high-speed serialization module, and the output is controlled by the reverse-order control circuit in the transmission module. Mode; In the second working mode, 2 2n bits of data are converted into 1-bit high-speed serial output data by the high-speed serialization module, and the output mode is controlled by the mode selection circuit in the transmission module. 1 is a basic principle block diagram of a parallel-to-serial converter of the present invention. As shown in FIG. 1, the parallel-to-serial converter of the present invention includes: a low-speed serialization module 101, a transmission module 102, a high-speed serialization module 103, and a buffer module 104; The serialization module 101, the transmission module 102 and the high-speed serialization module 103 are sequentially electrically connected, and the buffer module 104 is electrically connected to the high-speed serialization module 103. In the first working mode, the low-speed serialization module 101 and the high-speed serialization module 103 perform parallel-to-serial conversion on a block-by-block basis. The transmission module 102 determines that the current working mode is the first working mode according to the mode selection signal, and determines an output mode according to the control signal, and provides an output mode to the low-speed serialization module 101 and the high-speed serialization module 103 respectively; 2 4n -bit low-speed parallel input data passes The low-speed serialization module 101 and the low-speed serialization module 101 perform low-speed serialization according to the output mode provided by the transmission module 102 and according to the set low-speed serialization ratio to obtain 2 2n -bit high-speed parallel data; the above 2 2n -bit high-speed parallel The data is input to the high-speed serialization module 103 through the transmission module 102, and the high-speed serialization module 103 performs high-speed serialization according to the output mode provided by the transmission module 102 and the set high-speed serialization ratio to obtain 1-bit high-speed serial output data. In the second working mode, the transmission module 102 determines that the current working mode is the second working mode according to the mode selection signal, and determines an output mode according to the control signal, provides an output mode to the high-speed serialization module 103, and automatically turns off the low-speed serialization module 101. Further, the low 2 2n -bit data of the 24 n -bit low-speed parallel input data can be buffered by the buffer module 104 according to the set high-speed serialization ratio, and then input to the high-speed serialization module 103; the high-speed serialization module 103 can only The output mode provided by the transmission module 102 and the set high-speed serialization ratio serialize the buffered low-speed 2 2n -bit high-speed parallel data to obtain 1-bit high-speed serial output data. According to the above description, the transmission module 102 controls the output mode of the 24 n -bit low-speed parallel input data, and controls the free switching of the working mode between the first working mode and the second working mode; and, when the working mode is switched from the second working mode to In the first mode of operation, the low speed serialization module 101 is automatically turned on. In addition, in the present invention, in order to reduce circuit loss, the low-speed serialization module 101 uses a single-ended signal structure, and the high-speed serialization module 103 uses a double-ended signal structure. The single-ended signal is a single-ended CMOS signal, and the double-ended signal is a double-ended CMOS differential signal. 2 is a schematic diagram of a preferred embodiment of a parallel-to-serial converter of the present invention. In the present embodiment, n=l is taken. In the preferred embodiment shown in FIG. 2, the parallel-to-serial converter includes: a reverse sequence control circuit 201, a low speed synchronization circuit 202, a low speed serializer 203, a mode selection circuit 204, a buffer 205, a high speed synchronization circuit 206, and a high speed string. The controller 207, the high-speed 4f generating circuit 208, and the fast-speed 4f generating circuit 209. In this embodiment, corresponding to FIG. 1, the low-speed serialization module 101 includes a low-speed synchronization circuit 202, a low-speed serializer 203, and a low-speed clock generation circuit 209; the transmission module 102 includes a reverse-order control circuit 201 and a mode selection circuit 204; The pass-through module 103 includes a high-speed sync circuit 206, a high-speed serializer 207, and a high-speed clock generation circuit 208; the buffer module 104 is a buffer 205; and the high-speed clock generation circuit 208 and the low-speed clock generation circuit 209 constitute a clock generation circuit. The reverse sequence control circuit 201, the low speed synchronization circuit 202, the low speed serializer 203, the mode selection circuit 204, the high speed synchronization circuit 206 and the high speed string converter 207 are sequentially electrically connected, and the buffer 205 is electrically connected to the mode selection circuit 204. The high speed clock circuit 209 is electrically connected to the low speed clock circuit 208. Meanwhile, the low speed clock generating circuit 209 is electrically connected to the low speed synchronizing circuit 202 and the low speed serializer 203, respectively, and the high speed clock generating circuit 208 and the high speed synchronizing circuit 206 and the high speed serializing circuit, respectively. The device 207 is electrically connected. In this embodiment, in the first mode of operation, the idle parallel input data with a 16-bit rate not exceeding 155 Mbps is synchronized by the low-speed synchronization circuit 202, and then subjected to 16:4 serialization by the low-speed serializer 203 to obtain a 4-bit rate. The parallel data of 622 Mbps; the parallel data of the 4-bit rate of 622 Mbps is input to the high-speed synchronization circuit 206 through the mode selection circuit 204, and after being synchronized by the high-speed synchronization circuit 206, the high-speed serializer 207 performs 4:1 serialization to obtain 1 bit. Serial output data at a rate of 2.5 Gbps. Synchronization of low speed parallel input data by low speed synchronization circuit 202 means synchronizing each bit of low speed parallel input data. In the second mode of operation, the lower 4-bit data of the low-speed parallel input data whose 16-bit rate does not exceed 155 Mbps is buffered by the buffer 205, and the buffered lower 4-bit data is input to the high-speed synchronous circuit through the mode selection circuit 204. 206 performs synchronization, and then performs 4:1 serialization via the high speed serializer 207 to obtain serial output data with a 1-bit rate of 2.5 Gbps. High speed synchronization circuit 206 for the lower 4 bits Synchronization of data refers to synchronizing each bit of parallel 4-bit data. Since the differential signal has the advantages of suppressing common mode interference, reducing noise, etc., the high speed serializer 207 can employ a differential structure to ensure output performance. The selection signals of the high speed serializer 207 are the clock signals CLK1 and CLK2, both of which are differential signals. The low-speed synchronization circuit 202 and the high-speed synchronization circuit 206 have the same structural principle, but the circuit parameters of the two are slightly different due to different environments. The differentiation between the two can ensure that the low speed synchronization circuit 202 achieves low power consumption while the high speed synchronization circuit 206 achieves high speed. The low-speed serializer 203 and the high-speed serializer 207 basically adopt a tree structure, and the tree structure is composed of a plurality of alternately multiplexed two-choice structures, and a two-to-one structure is used as a basic unit to realize 2n: The parallel conversion, it can be seen that the low-speed serializer 203 can realize the 16:4 parallel-to-serial conversion by using four 4:1 basic structures. The advantages of the tree structure are: low power consumption, easy clock acquisition, and highly symmetrical data channels. In this embodiment, the mode selection circuit 204 controls the free switching between the first working mode and the second working mode of the parallel-to-serial converter, and automatically turns off the low-speed serializing module when switching from the first working mode to the second working mode. 101, the low speed synchronization circuit 202, the low speed serializer 203 and the low speed clock generation circuit 209 are turned off; and when the second operation mode is switched to the first operation mode, the low speed serialization module 101 is automatically turned on. In addition, in the second operation mode, the mode selection circuit 204 controls the output mode of the input data, that is, the control of the output mode is completed by supplying the determined output mode to the high-speed serializer 207. In the present embodiment, in the first operation mode, the reverse sequence control circuit 201 controls the output mode of the input data, that is, by providing the determined output mode to the low-speed serializer 203 and the high-speed serializer 207, the output mode is completed. control. In this embodiment, the output mode includes a sequential output and a reverse output. The sequential output means that the input order of the input data is kept unchanged, and the reverse output means that the input data is output in reverse order of the input data byte, that is, the input data is taken in reverse order. In this embodiment, the buffer 205 is used to reduce the parasitic effect of the lower 4-bit data in the 16-bit low-speed parallel input data brought by the switching operation mode, thereby improving the conversion precision of the parallel-to-serial converter. The shutdown signal PDC is the switching signal of the parallel-to-serial converter. When the parallel-to-serial converter needs to perform data When the parallel-serial conversion is performed, the shutdown signal PDC is set to a valid value; when the parallel-to-serial converter does not need to perform parallel-to-serial conversion of data, the shutdown signal is set to an invalid value to save power. In this embodiment, the clock generation circuit provides clock signals of the respective stages for the above circuits. Specifically, the clock input signal CLK0 is input to the high speed clock generating circuit 208; the high speed clock generating circuit 208 supplies the clock signals CLK1 and CLK2 to the high speed serializer 207, and supplies the clock signal CLK2 to the high speed synchronizing circuit 206, and simultaneously generates the clock CLK2 for the low speed clock. The clock input signal CLK2 is provided; the low speed clock generating circuit 209 supplies the clock signals CLK3 and CLK4 to the low speed serializer 203 according to the clock signal CLK2 supplied from the high speed clock generating circuit 208, and supplies the clock signal CLK4 to the low speed synchronizing circuit 202 for each part. The included trigger provides a clock signal. The high speed clock generating circuit 208 and the low speed clock generating circuit 209 will input the high speed clock signal.
CLK0 进行逐级分频, 产生系统各模块所需的时钟信号。 由于高速时钟生成 电路 208和低速时钟生成电路 209工作环境的差异, 因此两者的具体结构不 同, 高速时钟生成电路 208釆用的可以是差分结构, 适用于高速; 而低速时 钟生成电路 209釆用的可以为普通的单端结构。 对于相对低速的低速时钟生 成电路 209, 由模式选择电路 204来控制其是否产生输出信号, 以使低速同 步电路 202和低速串化器 203等低速电路工作或停止工作, 从而达到有效降 氐系统功耗的目的。 在本实施例中, 逆序控制电路 201的控制信号为 MSB-SEL1 , 可以为高 电平有效, 表明第一工作模式下顺序输出; 低速同步电路 202的复位信号为 RB 1 , 氐电平时输出清零; 模式选择电路 204的控制信号为 MSB-SEL2, 可 以为高电平有效, 表明当前工作模式为第一工作模式; 选择信号为 MODE-SEL, 可以为高电平有效, 表明第二工作模式下顺序输出; 高速同步 电路 206的复位信号为 RB2, 低电平时输出清零; 低速时钟生成电路 209的 选择信号为 MODE-SEL,高电平有效。通过复位完成对并串转换器的初始化, 使得并串转换器各部分为初时状态, 不包含干扰信息。 低速串化器 203的并行输入数据需要进行排列,这样才能实现输出结果 为并行数据的从高到低的顺序, 低速串化器 203釆用的两级选择信号分别为 时钟信号 CLK3和 CLK4 , CLK4为 CLK3的分频信号, 两者占空比均为 1。 根据以上描述可见, 数据从左向右由并行逐级转化成串行, 速率由低到 高; 而时 4f则从右向左速率逐级降氐。 下面以 16位速率为 155Mbps的氐速并行数据 "1011 0101 1001 1010" 为例来具体说明第一工作模式和第二工作模式下并串转换器的工作原理: 第一种情况: 在第一工作模式时, 顺序输出。 逆序控制电路 201的控制信号 MSB-SEL1=0, 为氐电平, 顺序输出; 模 式选择电路 204 的选择信号 MODE-SEL=l , 为高电平, 低速时钟生成电路 209正常工作, 低速串化模块 101得到低速时钟生成电路 209提供的时钟信 号, 同样正常工作, 不关闭。 CLK0 is divided step by step to generate the clock signals required by each module of the system. Due to the difference in the operating environment of the high-speed clock generating circuit 208 and the low-speed clock generating circuit 209, the specific structure of the two is different. The high-speed clock generating circuit 208 can be a differential structure suitable for high speed; and the low-speed clock generating circuit 209 can be used. It can be an ordinary single-ended structure. For the relatively low-speed low-speed clock generating circuit 209, the mode selecting circuit 204 controls whether or not it generates an output signal, so that the low-speed circuit such as the low-speed synchronizing circuit 202 and the low-speed serializer 203 operates or stops working, thereby achieving effective system power reduction. The purpose of consumption. In this embodiment, the control signal of the reverse sequence control circuit 201 is MSB-SEL1, which can be active high, indicating sequential output in the first mode of operation; the reset signal of the low speed synchronization circuit 202 is RB 1 , and the output is clear when the level is 氐Zero; the control signal of the mode selection circuit 204 is MSB-SEL2, which can be active high, indicating that the current working mode is the first working mode; the selection signal is MODE-SEL, which can be active high, indicating the second working mode The lower order output is output; the reset signal of the high speed synchronizing circuit 206 is RB2, and the output is cleared when the level is low; the selection signal of the low speed clock generating circuit 209 is MODE-SEL, and the high level is valid. The initialization of the parallel-to-serial converter is completed by resetting, so that the parts of the parallel-to-serial converter are in an initial state and do not contain interference information. The parallel input data of the low-speed serializer 203 needs to be arranged, so that the output result is a high-to-low order of the parallel data. The two-stage selection signals used by the low-speed serializer 203 are the clock signals CLK3 and CLK4, CLK4, respectively. For the divided signal of CLK3, both duty cycles are 1. As can be seen from the above description, the data is converted from serial to serial in parallel from left to right, and the rate is from low to high; while 4f is stepped down from right to left. The following is an example of the idle parallel data "1011 0101 1001 1010" with a 16-bit rate of 155 Mbps as an example to illustrate the working principle of the parallel-to-serial converter in the first working mode and the second working mode: The first case: In the first work In mode, the output is sequential. The control signal MSB-SEL1=0 of the reverse sequence control circuit 201 is 氐 level, and is sequentially output; the selection signal MODE-SEL=1 of the mode selection circuit 204 is high level, and the low-speed clock generation circuit 209 operates normally, low-speed serialization The module 101 obtains the clock signal supplied from the low speed clock generating circuit 209, which also works normally and does not turn off.
16位并行输入数据通过逆序控制电路 201 ,经低速同步电路 202同步和 低速串化器 203进行 16:4串化, 得到 4位速率为 622Mbps的并行数据; 上 述 4位速率为 622Mbps的并行数据通过模式选择电路 204, 经高速同步电路 206同步和高速串化器 207进行 4: 1 串化,得到 1位速率为 2.5Gbps的串行输 出数据, 依次为: T、 "0"、 "1"、 Τ、 "0"、 Τ、 "0"、 Τ、 Τ、 "0"、 "0"、 "1"、 "1"、 "0"、 " 、 "0"。 同时, 高速时 4f生成电路 208 也为高速 串化模块 103提供时钟信号。 第二种情况: 在第一工作模式时, 逆序输出。 逆序控制电路 201的控制信号 MSB-SEL1=1 , 为高电平, 逆序输出; 模 式选择电路 204的选择信号 MODE-SEL=l , 为高电平, 同理, 低速串化模块 101不关闭。 The 16-bit parallel input data is passed through the reverse sequence control circuit 201, and is synchronized by the low-speed synchronization circuit 202 and the low-speed serializer 203 to perform 16:4 serialization to obtain parallel data of 4 bits at a rate of 622 Mbps; the above-mentioned 4-bit rate is 622 Mbps of parallel data passing. The mode selection circuit 204 performs 4:1 serialization by the high-speed synchronization circuit 206 and the high-speed serializer 207 to obtain serial output data with a 1-bit rate of 2.5 Gbps, which are: T, "0", "1", Τ, "0", Τ, "0", Τ, Τ, "0", "0", "1", "1", "0", ", "0". Meanwhile, the high-speed 4f generation circuit 208 The clock signal is also provided for the high speed serialization module 103. The second case: in the first operation mode, the reverse output is output. The control signal MSB-SEL1=1 of the reverse sequence control circuit 201 is high level, reverse order output; mode selection circuit The selection signal MODE-SEL=l of 204 is high level. Similarly, the low-speed serialization module 101 is not turned off.
16位并行输入数据通过逆序控制电路 201 ,经低速同步电路 202同步和 低速串化器 203进行 16:4串化, 得到 4位速率为 622Mbps的并行数据; 上 述 4位速率为 622Mps的并行数据通过模式选择电路 204 , 经高速同步电路 206同步和高速串化器 207进行 4: 1 串化,得到 1位速率为 2.5Gbps的串行输 出数据, 依次为: "0"、 "1"、 "0"、 "1"、 "1"、 "0"、 "0"、 "1"、 "1"、 "0"、 "1"、 "0"、 "1"、 "1"、 "0"、 "1"。 同时, 高速时 4f生成电路 208 也为高速 串化模块 103提供时钟信号。 第三种情况: 在第二工作模式时, 顺序输出。 模式选择电路 204的选择信号 MODE-SEL=0, 为低电平, 低速时钟生 成电路 209受模式选择电路 204的控制使得选择信号无效不工作, 这样, 低 速串化模块 101由于无法得到工作时钟信号而关闭; 模式选择电路 204的控 制信号 MSB-SEL2=0, 为氐电平, 顺序输出。 The 16-bit parallel input data is passed through the reverse-sequence control circuit 201, and is synchronized by the low-speed synchronization circuit 202 and the low-speed serializer 203 to perform 16:4 serialization to obtain parallel data with a 4-bit rate of 622 Mbps; the above-mentioned 4-bit rate is 622 Mps of parallel data passing. The mode selection circuit 204 performs 4:1 serialization by the high-speed synchronization circuit 206 and the high-speed serializer 207 to obtain serial output data with a 1-bit rate of 2.5 Gbps, which are: "0", "1", "0. ", "1", "1", "0", "0", "1", "1", "0", "1", "0", "1", "1", "0", "1". At the same time, the high speed 4f generation circuit 208 also provides a clock signal to the high speed serialization module 103. The third case: In the second working mode, the output is sequential. The selection signal MODE-SEL=0 of the mode selection circuit 204 is low level, and the low-speed clock generation circuit 209 is controlled by the mode selection circuit 204 so that the selection signal is inactive, so that the low-speed serialization module 101 cannot obtain the operation clock signal. And off; control of the mode selection circuit 204 The signal MSB-SEL2=0, which is 氐 level, and is output sequentially.
16位并行输入数据的低 4位 " 1010" 通过緩冲器 205和模式选择电路 204, 经高速同步电路 206同步和高速串化器 207进行 4: 1 串化, 得到 1位速 率为 2.5Gbps的串行输出数据, 依次为: "1"、 "0"、 "1"、 "0"。 同时, 高速 时钟生成电路 208为高速同步电路 206和高速串化器 207提供时钟信号。 第四种情况: 在第二工作模式时, 逆序输出。 模式选择电路 204的选择信号 MODE-SEL=0, 为低电平, 同理, 低速 串化模块 101关闭;模式选择电路 204的控制信号 MSB-SEL2=1 ,为高电平, 逆序输出。 16位并行输入数据的低 4位 " 1010" 通过緩冲器 205和模式选择电路The lower 4 bits "1010" of the 16-bit parallel input data are 4:1 serialized by the high speed synchronizing circuit 206 and the high speed serializer 207 through the buffer 205 and the mode selecting circuit 204, resulting in a 1-bit rate of 2.5 Gbps. Serial output data, in order: "1", "0", "1", "0". At the same time, the high speed clock generation circuit 208 provides clock signals for the high speed synchronization circuit 206 and the high speed serializer 207. The fourth case: In the second working mode, the output is reversed. The selection signal of the mode selection circuit 204 is MODE-SEL=0, which is low level. Similarly, the low-speed serialization module 101 is turned off; the control signal MSB-SEL2=1 of the mode selection circuit 204 is high level, and is output in reverse order. The lower 4 bits of the 16-bit parallel input data "1010" pass through the buffer 205 and the mode selection circuit
204, 经高速同步电路 206同步和高速串化器 207进行 4: 1 串化, 得到 1位速 率为 2.5Gbps的串行输出数据, 依次为: "0"、 "1"、 "0"、 "1"。 同时, 高速 时钟生成电路 208为高速同步电路 206和高速串化器 207提供时钟信号。 图 3a和图 3b为本实施例低速串化模块 101中低速同步电路 202和低速 串化器 203的电路原理图。 在图 3a中, 低速同步电路 202和低速串化器 203包括: 第 1低速基本 单元 301、 第 2低速基本单元 302、 第 3低速基本单元 303、 第四低速基本单 元 304和緩冲器 8 ,各低速基本单元通过复位信号 RB 1和由低速时钟电路 209 提供的时钟信号 CLK4以并列方式电连接。 其中, 16位 Din<15〉~Din<0〉速率不高于 155Mbps的并行输入数据, 根据设定原则按数据位数进行排列组合, 得到四组低速并行数据, 如相邻两 位位差为 8:第 1组为 Din<15〉、Din<7〉、Din<ll〉、Din<3〉,第 2组为 Din<14〉、 Din<6〉、 Din<10〉、 Din<2> , 第 3组为 Din<13〉、 Din<5〉、 Din<9〉、 Din<l>, 第 4组为 Din<12〉、 Din<4〉、 Din<8〉、 Din<0>; 第 1组数据经第 4低速基本 单元 304进行并串转换, 得到 1位串行输出数据; 第 2组数据经第 3低速基 本单元 303进行并串转换, 得到 1位串行输出数据; 第 3组数据经第 2低速 基本单元 302进行并串转换, 得到 1位串行输出数据; 第 4组数据经第 1低 速基本单元 301进行并串转换, 得到 1位串行输出数据。 并串转换后, 从第 4低速基本单元 304到第 1低速基本单元 301输出 4位速率为 622Mbps 的并 行数据, 例如, 第一次并串转换后, 四个低速基本单元从高到低输出四位并 行数据 Din<15〉、 Din<13〉、 Din<14〉、 Din<12>; 经 4次并串转换依次输出 四组经变换后的并行数据。 在图 3b中, 第 1低速基本单元 301 包括: 第 11 同步 D触发器 1、 第 12同步 D触发器 2、 第 13同步 D触发器 3、 第 14同步 D触发器 4、 第 11 选择器 5、 第 12选择器 6、 第 13选择器 7。 第 4组数据 Din<12〉、 Din<4〉、 Din<8〉、 Din<0〉分别输入第 11至 14同步 D触发器, Din<12〉和 Din<4〉、 Din<8〉和 Din<0〉分另1 J经第 11选择器 5和第 12选择器 6进行 2选 1的选择, 第一轮选择分别得到 1位数据 Din<12〉和 Din<8>, 由第 11选择器 5和第 12 选择器 6得到的两位数据再经第 13选择器 7选择得到 1位速率为 622Mbps 的数据 Din<12〉。 经过四轮选择依次输出低 4位数据。 顺序输出时, 选择器 由高位到氐位选择输出; 逆向输出时, 选择器由低位到高位选择输出。 其中,第 11至 14同步 D触发器的时钟信号为 CLK4,复位信号为 RB1 ; 第 11选择器 5和第 12选择器 6的时钟信号为 CLK4经緩冲器 8緩冲得到的 时钟信号 CLK4D; 第 13选择器的时钟信号为 CLK3。 可见, 四个低速基本单元分别进行同样的操作, 最终得到 4位并行输出 数据。 各同步 D触发器的时钟信号为低速时钟生成电路 209产生的 16分频的 时钟信号 CLK4, CLK4经緩冲器 8进行延时緩冲得到时钟信号 CLK4D, 作 为第 11选择器 5和第 12选择器 6的选择信号; 8分频的时钟信号 CLK3作 为第 13选择器的选择信号。 另夕卜, 在四个低速基本单元中, 16个并行同步 D触发器需要考虑时钟 信号的驱动能力, 可以在各同步 D触发器的时钟输入端加入緩冲器 9 , 以提 高时钟信号 CLK4的驱动能力。 在初始化时, 将复位信号 RB1置位为有效值, 各同步 D触发器输出清 零; 正常工作时, 将复位信号 RB 1置位为无效值。 图 4为本实施例高速串化模块 103及低速时钟生成电路 209的电路原理 图, 在本实施例中, 高速串化模块 103 包括高速同步电路 206、 高速串化器 207和高速时钟生成电路 208。 高速同步电路 206包括第 51 同步 D触发器 501、 第 52同步 D触发器 507、 第 53同步 D触发器 508和第 54同步 D触发器 515。 高速串化器 207 包括第 51选择器 502、 第 52选择器 511、 第 51零级緩冲器 BUF0 503、 第 52 BUFO 512、 第 1锁存器 504、 第 2锁存器 505、 第 3锁存器 506、 第 4锁 存器 513、 第 5锁存器 514、 高速选择器 509和第 1高速同步 D触发器 510。 低速时钟生成电路 209包括第 55同步 D触发器 527、第 56同步 D触发器 526、 第 57同步 D触发器 524、 第 51緩冲器 BUF 522、 第 52 BUF 521、 第 53 BUF 518、 第 54 BUF 520、 第 55 BUF 525、 第 56 BUF 523、 第 57 BUF 517和第 58 BUF 531。 高速时钟生成电路 208包括第 1高速緩冲器 Fast BUF 530、 第 2高速同步 D触发器 529、 第 2 Fast BUF 516、 第 3 Fast BUF 519和一级緩冲 器 BUF1 528。 其中, 在氐速同步时 4f电路 209中, 时 言号 CLKDIV4依次经过第 52 BUF 521和第 54 BUF 520得到同步时 言号 CLKDIV4SYN; 同时, 时 言 号 CLKDIV4依次经过第 52 BUF 521和第 53 BUF 518得到控制时 言号 CLKDIV4SEL, 第 51至 54同步 D触发器在同步时钟信号 CLKDIV4SYN的 控制下, 将 22n位高速并行数据同步后, 以每四位数据划分为一组, 每组数 据分别输入四个同步 D触发器进行同步,然后将经过同步 D触发器处理后的 数据两两一组, 将每组输入一个 2选 1选择器, 如将最高位数据和次高位数 据输入第 51选择器 502, 将次低位数据和最低位数据输入第 52选择器 511 , 在控制时钟信号 CLKDIV4SEL的控制下, 第 51选择器和第 52选择器分别 选择输出数据 DS0和 DS 1; DS0和 DS 1分别输入第 51 BUF0 503和第 52 BUF0 512, 将单端 CMOS信号转化为双端 CMOS差分信号对, 分别输出 DD0P和 DD0N、 DD1P和 DD1N两对差分信号; 将差分信号对 DD0P和 DD0N通过 第 1至 3锁存器, 将差分信号对 DD1P和 DD1N通过第 4至 5锁存器, 然后 均输入到高速选择器 509。 锁存器能够使得时钟信号先到,数据信号后到,以保证数据的有序输出。 其中, 第 1至 3锁存器顺次电连接, 第 4至 5锁存器电连接, 在高速时 钟生成电路 208 中, 第 2 高速同步 D 触发器 529 输出差分时钟信号对 CLKDIV2P和 CLKDIV2N, 为第 1至 5锁存器提供选择信号, 且相邻两个锁 存器的时钟相位相反, 可以使得高速选择器 509的两个输入通道相差半个周 期, 使得高速选择器 509的选择时钟可以有较大的相位裕度, 避免了高速环 境中由于毛刺宽度和数据宽度差异而带来的毛刺。 尽管第 1至 5锁存器使得 电路规模和功耗有所增加, 但能保证系统工作在较高的频率。 另夕卜, 第 1高 速同步 D触发器 510为一个高速同步输出电路, 其接收高速选择器 509输出 的差分信号, 然后根据第 2Fast BUF 516输出的时钟信号对差分信号进行同 步输出, 上述时钟信号是由高速差分时钟信号对 CLKDIP和 CLKDIN经第 2 Fast BUF 緩冲后得到的。 低速时钟生成电路 209和高速时钟生成电路 208原理相同,均釆用触发 器对输入的时钟信号进行分频从而得到各级时钟信号。 在图 4中, 一对高速 差分时 言号对 CLKIP和 CLKIN对应图 2中的时 言号 CLK0,输入第 1 Fast BUF 530得到差分时 言号对 CLKDIP和 CLKDIN, 对应图 2中的时 言号 CLK1。 差分时 言号对 CLKDIP和 CLKDIN通过第 2 Fast BUF 516输出到 第 1高速同步 D触发器 510,作为第 1高速同步 D触发器 510的同步时钟信 号; 同时 CLKDIP和 CLKDIN输出到第 2高速同步 D触发器 529, 第 2高速 同步 D触发器 529的反相输出端与输入端短接构成 T触发器, 即当 CLKDIP 和 CLKDIN的时钟沿到来时, 第 2高速同步 D触发器 529输出的差分时钟 信号对 CLKDIV2P和 CLKDIV2N会发生翻转。 同样, 第 2高速同步 D触发 器 529输出的差分时钟信号对 CLKDIV2P和 CLKDIV2N—方面通过第 3 Fast BUF 519 向第 1至 5锁存器提供时钟信号; 另一方面经 BUF1 528将高速差 分时钟信号对转化为单端时钟信号后,输入到第 55同步 D触发器 527; 并经 第 51 BUF 522输入到第 56同步 D触发器 526; 第 56同步 D触发器 526输 出的时钟信号 CLKDIV8经第 55 BUF 520输入到第 57同步 D触发器 524, 第 55 至 57 同步 D 触发器构成分频器, 产生各级时 言号 CLKDIV4、 CLKDIV8和 CLKDIV16, 分别对应于图 2中的 CLK2、 CLK3和 CLK4。 其中, 为了增强时钟信号的驱动能力和提高时钟釆样的准确率, 时钟信 号产生路径上增加了第 51至 58 BUF,可将第 51至 58 BUF称为同相緩冲器。 将第 1至 3 Fast BUF、 一级 BUF1称为反相緩冲器。 各緩冲器对其输入值不执行任何运算, 其输出值和输入值一样, 它只是 对输入值进行延时緩冲, 从而将所在电路的电流推进到高一级的电路系统。 同相緩冲器, 用于将各级时钟信号进行延时緩冲, 转换成相位相同的各级时 钟信号; 反相緩冲器用于将各级时钟信号进行延时緩冲, 转换成相位相反的 时钟信号。 在本实施例中, RB2为第 51至 57同步 D触发器的复位信号, 当 RB2 为有效信号时, 各同步 D触发器输出清零。 高速串化模块 103工作的速率很高,这对内部信号的抗干扰能力提出了 4艮高的要求。 因为双端差分结构对输入的线性要求低, 幅度小, 抗干扰能力 强, 所以在高速的电路结构中均釆用了差分结构, 如图 4所示, 第 1至 5锁 存器的电路结构、 高速选择器 509的电路结构、 第 1高速同步 D触发器 510 和第 2高速同步 D触发器 529的电路结构、 第 1至 3 Fast BUF的电路结构, 以及用于单双端互相转换的第 51至 53 BUF的电路结构,均釆用了差分结构。 在本实施例中 氐速同步电路 202的复位信号 RB1和高速同步电路 206 的复位信号 RB2可以是相同的置位信号, 也可以是不同的置位信号。 图 5为本实施例的并串转换方法的原理图。 在图 5中, 所述并串转换方法包括以下步骤: 步骤 601 : 确定并串转换器的工作模式和输出方式, 才艮据选定的工作模 式和输出方式执行步骤 602或步骤 605; 步骤 602: 并串转换器在第一工作模式下工作, 才艮据确定的输出方式及 设定的低速串化比例, 对 24n位低速并行输入数据进行低速串化, 得到 22n位 高速并行数据; 再根据确定的输出方式及设定的高速串化比例, 对上述 22n 高速并行数据进行高速串化, 得到一位高速串行输出数据; 步骤 603: 并串转换器在第二工作模式下工作, 才艮据确定的输出方式及 设定的高速串化比例, 对 24n位低速并行输入数据的低 22n位数据进行并串转 换, 将得到的低 22n位数据緩冲后, 再根据确定的输出方式及设定的高速串 化比例进行串化, 得到一位高速串行输出数据。 上述输出方式包括顺序输出和逆序输出。顺序输出是指保持输入数据的 输入顺序不变, 逆序输出是指按输入数据字节的输入顺序反序输出, 即对输 入数据釆取逆序操作。 在本实施例中, 并串转换器釆用 0.13um的 CMOS 工艺, 供电电压为 1.2V。 另外, 在 90nm的 CMOS工艺中也可能釆用 IV的电源电压, 但在高 速差分结构部分要注意低压设计。 才艮据本发明实施例, 还提供了一种计算机可读介质, 在该计算机可读介 质上存储有指令, 当该指令被处理器执行时, 可以使得处理器进行如图 5所 示的上述处理, 关于该处理器及其指令的细节, 可以参照上述对图 5的描述 来理解和实施。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 或 者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制 作成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软 件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变^^ 凡在本发明的^^申和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。 204, through the high-speed synchronization circuit 206 synchronization and high-speed serializer 207 for 4: 1 serialization, to obtain a 1-bit rate of 2.5Gbps serial output data, in order: "0", "1", "0", "1". At the same time, the high speed clock generation circuit 208 provides a clock signal to the high speed synchronization circuit 206 and the high speed serializer 207. 3a and 3b are circuit schematic diagrams of the low speed synchronization circuit 202 and the low speed serializer 203 in the low speed serialization module 101 of the present embodiment. In FIG. 3a, the low speed synchronizing circuit 202 and the low speed serializer 203 include: a first low speed basic unit 301, a second low speed basic unit 302, a third low speed basic unit 303, a fourth low speed basic unit 304, and a buffer 8, each of which The low speed base unit is electrically connected in parallel by the reset signal RB 1 and the clock signal CLK4 supplied from the low speed clock circuit 209. Among them, the 16-bit Din<15>~Din<0> parallel input data with a rate not higher than 155 Mbps is arranged and combined according to the setting principle according to the setting principle, and four sets of low-speed parallel data are obtained, for example, the adjacent two-bit difference is 8: The first group is Din<15>, Din<7>, Din<ll>, Din<3>, and the second group is Din<14>, Din<6>, Din<10>, Din<2>, The third group is Din<13>, Din<5>, Din<9>, Din<l>, and the fourth group is Din<12>, Din<4>, Din<8>, Din<0>; The group data is parallel-converted by the fourth low-speed base unit 304 to obtain 1-bit serial output data; the second group data is parallel-converted by the third low-speed base unit 303 to obtain 1-bit serial output data; The second low-speed base unit 302 performs parallel-serial conversion to obtain 1-bit serial output data, and the fourth group data is parallel-converted by the first low-speed base unit 301 to obtain 1-bit serial output data. After the parallel-serial conversion, parallel data of a 4-bit rate of 622 Mbps is output from the fourth low-speed base unit 304 to the first low-speed base unit 301, for example, four low-speed basic units output from high to low after the first parallel-to-serial conversion. Bit and Row data Din<15>, Din<13>, Din<14>, Din<12>; four sets of transformed parallel data are sequentially output through four parallel-to-serial conversions. In FIG. 3b, the first low speed basic unit 301 includes: an 11th synchronous D flip-flop 1, a 12th synchronous D flip-flop 2, a 13th synchronous D flip-flop 3, a 14th synchronous D flip-flop 4, and an 11th selector 5 The twelfth selector 6 and the thirteenth selector 7. The fourth group of data Din<12>, Din<4>, Din<8>, and Din<0> are input to the 11th to 14th synchronous D flip-flops respectively, Din<12> and Din<4>, Din<8>, and Din. <0> is divided into 1 by the 11th selector 5 and the 12th selector 6 to perform the selection of 2, 1 and the first round selects 1 bit of data Din<12> and Din<8>, respectively, by the 11th selector The two bits of data obtained by the 5th and 12th selectors 6 are further selected by the 13th selector 7 to obtain the data Din<12> having a 1-bit rate of 622 Mbps. The lower 4 bits of data are sequentially output after four rounds of selection. In sequential output, the selector selects the output from high to clamp; in the reverse output, the selector selects the output from low to high. The clock signal of the 11th to 14th synchronous D flip-flops is CLK4, and the reset signal is RB1; the clock signals of the 11th selector 5 and the 12th selector 6 are the clock signal CLK4D buffered by the buffer 8 by the CLK4; The clock signal of the 13th selector is CLK3. It can be seen that the four low-speed basic units perform the same operation separately, and finally obtain 4-bit parallel output data. The clock signal of each synchronous D flip-flop is the 16-divided clock signal CLK4 generated by the low-speed clock generating circuit 209, and the CLK4 is buffer-buffered by the buffer 8 to obtain the clock signal CLK4D as the 11th selector 5 and the 12th selection. The selection signal of the device 6; the clock signal CLK3 divided by 8 is used as the selection signal of the thirteenth selector. In addition, among the four low-speed basic units, 16 parallel synchronous D flip-flops need to consider the driving ability of the clock signal, and a buffer 9 can be added to the clock input end of each synchronous D flip-flop to improve the clock signal CLK4. Drive capability. During initialization, the reset signal RB1 is set to a valid value, and each synchronous D flip-flop output is cleared. In normal operation, the reset signal RB 1 is set to an invalid value. 4 is a circuit schematic diagram of the high speed serialization module 103 and the low speed clock generation circuit 209 of the present embodiment. In this embodiment, the high speed serialization module 103 includes a high speed synchronization circuit 206, a high speed serializer 207, and a high speed clock generation circuit 208. . The high speed synchronization circuit 206 includes a 51st synchronous D flip-flop 501 and a 52nd synchronous D flip-flop 507. The 53rd synchronous D flip-flop 508 and the 54th synchronous D flip-flop 515. The high speed serializer 207 includes a 51st selector 502, a 52nd selector 511, a 51st zeroth stage buffer BUF0 503, a 52nd BUFO 512, a 1st latch 504, a 2nd latch 505, and a 3rd lock. The memory 506, the fourth latch 513, the fifth latch 514, the high speed selector 509, and the first high speed synchronous D flip-flop 510. The low-speed clock generating circuit 209 includes a 55th synchronous D flip-flop 527, a 56th synchronous D flip-flop 526, a 57th synchronous D flip-flop 524, a 51st buffer BUF 522, a 52nd BUF 521, a 53rd BUF 518, and a 54th. BUF 520, 55th BUF 525, 56th BUF 523, 57th BUF 517 and 58th BUF 531. The high speed clock generation circuit 208 includes a first cache Fast BUF 530, a second high speed synchronous D flip-flop 529, a second Fast BUF 516, a third Fast BUF 519, and a first stage buffer BUF1 528. Wherein, in the 4f circuit 209 during the idle synchronization, the time word CLKDIV4 sequentially passes through the 52nd BUF 521 and the 54th BUF 520 to obtain the synchronization time word CLKDIV4SYN; meanwhile, the time word CLKDIV4 passes through the 52nd BUF 521 and the 53rd BUF. 518 gets control word CLKDIV4SEL, the 51st to 54th synchronous D flip-flops under the control of the synchronous clock signal CLKDIV4SYN, the 2 2n -bit high-speed parallel data is synchronized, divided into a group of four bits of data, each group of data is input separately Four synchronous D flip-flops are synchronized, and then the data processed by the synchronous D flip-flop is set in pairs, and each group is input into a 2-to-1 selector, for example, the highest-order data and the next-highest data are input to the 51st selector. 502, input the second lower data and the lowermost data into the 52nd selector 511. Under the control of the control clock signal CLKDIV4SEL, the 51st selector and the 52nd selector respectively select the output data DS0 and DS1; DS0 and DS1 are respectively input. 51st BUF0 503 and 52nd BUF0 512, convert single-ended CMOS signals into double-ended CMOS differential signal pairs, respectively output DD0P and DD0N, DD1P and DD1N two pairs of differential signals; pass differential signals to DD0P and DD0N The first to third latch, and the differential signal pairs DD1P DD1N 4-5 by the second latch, and are input to the selector 509 a high speed. The latch enables the clock signal to arrive first and the data signal to arrive later to ensure an orderly output of the data. Wherein, the first to third latches are electrically connected in sequence, and the fourth to fifth latches are electrically connected. In the high speed clock generating circuit 208, the second high speed synchronous D flip-flop 529 outputs the differential clock signal pair CLKDIV2P and CLKDIV2N, The first to fifth latches provide a selection signal, and the clocks of the adjacent two latches are opposite in phase, so that the two input channels of the high speed selector 509 can be separated by a half cycle, so that the selected clock of the high speed selector 509 can have The large phase margin avoids glitch in the high speed environment due to the difference in glitch width and data width. Although the 1st to 5th latches increase the circuit scale and power consumption, they ensure that the system operates at a higher frequency. In addition, the first high The fast synchronous D flip-flop 510 is a high speed synchronous output circuit that receives the differential signal output by the high speed selector 509, and then synchronously outputs the differential signal according to the clock signal output by the second Fast BUF 516, which is a high speed differential clock signal. Obtained after CLKDIP and CLKDIN are buffered by the 2nd Fast BUF. The low-speed clock generating circuit 209 and the high-speed clock generating circuit 208 have the same principle, and each of the clock signals is divided by a flip-flop to obtain clock signals of the respective stages. In FIG. 4, a pair of high-speed differential time-to-speech pairs CLKIP and CLKIN correspond to the time word CLK0 in FIG. 2, and the first fast BUF 530 is input to obtain a differential-time word pair CLKDIP and CLKDIN, corresponding to the time number in FIG. CLK1. The differential time word pair CLKDIP and CLKDIN are output through the second Fast BUF 516 to the first high speed synchronous D flip-flop 510 as the synchronous clock signal of the first high speed synchronous D flip-flop 510; and the CLKDIP and CLKDIN outputs to the second high speed synchronous D The flip-flop 529, the inverting output terminal of the second high-speed synchronous D flip-flop 529 is short-circuited with the input terminal to form a T flip-flop, that is, when the clock edge of CLKDIP and CLKDIN comes, the differential clock output by the second high-speed synchronous D flip-flop 529 The signal pair will flip on CLKDIV2P and CLKDIV2N. Similarly, the differential clock signal outputted by the second high-speed synchronous D flip-flop 529 supplies clock signals to the first to fifth latches through the third Fast BUF 519 to the CLKDIV2P and CLKDIV2N; on the other hand, the high-speed differential clock signal is transmitted through the BUF1 528. After being converted into a single-ended clock signal, it is input to the 55th synchronous D flip-flop 527; and is input to the 56th synchronous D flip-flop 526 via the 51st BUF 522; the 56th synchronous D flip-flop 526 outputs the clock signal CLKDIV8 via the 55th The BUF 520 is input to the 57th synchronous D flip-flop 524, and the 55th to 57th synchronous D flip-flops constitute a frequency divider, and the respective stages of the words CLKDIV4, CLKDIV8, and CLKDIV16 are generated, which correspond to CLK2, CLK3, and CLK4 in FIG. 2, respectively. Among them, in order to enhance the driving ability of the clock signal and improve the accuracy of the clock sample, the 51st to 58th BUF is added to the clock signal generation path, and the 51st to 58th BUFs can be referred to as the in-phase buffer. The 1st to 3th Fast BUF and the 1st BUF1 are called inverting buffers. Each buffer does not perform any operation on its input value. Its output value is the same as the input value. It simply delays the input value to push the current of the circuit to a higher level. The same phase buffer is used for delay buffering each stage clock signal and converting into clock signals of the same phase; the inverting buffer is used for delay buffering each stage clock signal and converting into opposite phases. Clock signal. In this embodiment, RB2 is a reset signal of the 51st to 57th synchronous D flip-flops, and when RB2 is a valid signal, each synchronous D flip-flop output is cleared. The high-speed serialization module 103 operates at a high rate, which imposes a high requirement on the anti-jamming capability of the internal signal. Because the double-ended differential structure has low linearity requirements on the input, small amplitude, and strong anti-interference ability, the differential structure is used in the high-speed circuit structure. As shown in Fig. 4, the circuit structure of the first to fifth latches is shown. The circuit configuration of the high speed selector 509, the circuit configuration of the first high speed synchronous D flip-flop 510 and the second high speed synchronous D flip-flop 529, the circuit configuration of the first to third Fast BUF, and the first and second ends for mutual conversion The 51-53 BUF circuit structure uses a differential structure. In the present embodiment, the reset signal RB1 of the idle synchronizing circuit 202 and the reset signal RB2 of the high speed synchronizing circuit 206 may be the same set signal, or may be different set signals. FIG. 5 is a schematic diagram of the parallel-to-serial conversion method of the embodiment. In FIG. 5, the parallel-to-serial conversion method includes the following steps: Step 601: Determine an operation mode and an output mode of the parallel-to-serial converter, and perform step 602 or step 605 according to the selected working mode and output mode; : The parallel-to-serial converter works in the first working mode, and according to the determined output mode and the set low-speed serialization ratio, low-speed serialization of the 2 4n -bit low-speed parallel input data is performed, and 2 2n -bit high-speed parallel data is obtained; And performing high-speed serialization on the 2 2n high-speed parallel data according to the determined output mode and the set high-speed serialization ratio to obtain one high-speed serial output data; Step 603: The parallel-serial converter operates in the second working mode According to the determined output mode and the set high-speed serialization ratio, the 2 2n -bit data of the 2 4n -bit low-speed parallel input data is parallel-serial converted, and the obtained low 2 2n -bit data is buffered, and then according to The determined output mode and the set high-speed serialization ratio are serialized to obtain one high-speed serial output data. The above output modes include sequential output and reverse output. The sequential output means that the input order of the input data is kept unchanged, and the reverse output means that the input data is output in reverse order of the input data byte, that is, the input data is taken in reverse order. In this embodiment, the parallel-to-serial converter uses a 0.13 um CMOS process with a supply voltage of 1.2V. In addition, the power supply voltage of IV may be used in a 90 nm CMOS process, but attention should be paid to the low voltage design in the high speed differential structure. According to an embodiment of the present invention, there is also provided a computer readable medium having stored thereon instructions for causing a processor to perform the above-described operation as shown in FIG. 5 when the instructions are executed by a processor Processing, regarding the details of the processor and its instructions, can refer to the above description of Figure 5 To understand and implement. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or they may be Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. For those skilled in the art, the present invention can be variously modified and modified. Any modifications, equivalent substitutions, improvements, etc. made therein are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种并串转换器, 其特征在于, 包括低速串化模块、 传输模块和高速 串化模块, 其中: A parallel-to-serial converter, comprising: a low-speed serialization module, a transmission module, and a high-speed serialization module, wherein:
所述传输模块, 用于根据模式选择信号确定当前工作模式, 并根 据控制信号确定输出方式, 第一工作模式时, 还用于向低速串化模块 和高速串化模块提供所述输出方式; 第二工作模式时, 向高速串化模 块提供所述输出方式, 并关闭低速串化模块, 根据设定的高速串化比 例将 24n位低速并行输入数据的低 22n位数据输入緩冲模块; The transmission module is configured to determine a current working mode according to the mode selection signal, and determine an output mode according to the control signal, where the first working mode is further configured to provide the output mode to the low-speed serialization module and the high-speed serialization module; In the second working mode, the output mode is provided to the high-speed serialization module, and the low-speed serialization module is turned off, and the low 2 2n -bit data of the 2 4n -bit low-speed parallel input data is input into the buffer module according to the set high-speed serialization ratio;
所述低速串化模块, 第一工作模式时, 用于根据所述输出方式、 并根据设定的低速串化比例对 24n位低速并行输入数据进行低速串化, 得到 22n位高速并行数据; The low-speed serializer module, the first mode of operation, according to the output, and the proportion of the low-speed serial set of 2 4n-bit low-speed parallel data string of input, to provide the high-speed parallel data bits 2 2n ;
所述高速串化模块, 第一工作模式时, 用于根据所述输出方式、 并才艮据设定的高速串化比例对所述 22n位高速并行数据进行串化,得到 1 位高速串行输出数据; 第二工作模式时, 用于根据所述输出方式及 设定的高速串化比例对低 22n位低速并行输入数据进行串化, 得到 1 位高速串行输出数据; The high-speed serialization module, in the first working mode, is configured to serialize the 2 2n -bit high-speed parallel data according to the output mode and according to the set high-speed serialization ratio, to obtain a 1-bit high-speed string. Line output data; in the second working mode, for serializing the low 2 2n bit low speed parallel input data according to the output mode and the set high speed serialization ratio, to obtain 1 bit high speed serial output data;
其中, n为自然数。  Where n is a natural number.
2. 根据权利要求 1所述的并串转换器, 其特征在于, 所述低速串化模块 包括: 低速同步电路、 低速串化器和低速时钟生成电路, 其中: 2. The parallel-to-serial converter according to claim 1, wherein the low-speed serialization module comprises: a low-speed synchronization circuit, a low-speed serializer, and a low-speed clock generation circuit, wherein:
所述低速同步电路, 第一工作模式时, 用于 24n位低速并行输入 数据同步后, 得到 24n位低速同步并行数据; The low-speed synchronous circuit, the first operation mode, a low speed for 2 4n-bit parallel input data is synchronized, synchronizing low to give 2 4n-bit parallel data;
所述低速串化器, 用于根据所述输出方式、 并根据设定的低速串 化比例对所述 24n位低速同步并行数据进行低速串化, 得到 22n位高速 并行数据; The low-speed serializer, according to the output, and high speed in accordance with 2 2n-bit parallel data string of the low-speed ratio is set to the synchronous parallel data 2 4n-bit string of the low-speed low speed, to give;
所述低速时钟生成电路, 用于分别向低速同步电路和低速串化器 提供时钟信号。 The low speed clock generating circuit is configured to provide a clock signal to the low speed synchronizing circuit and the low speed serializer, respectively.
3. 根据权利要求 1所述的并串转换器, 其特征在于, 所述传输模块包括 逆序控制电路和模式选择电路, 其中: 3. The parallel-to-serial converter according to claim 1, wherein the transmission module comprises a reverse sequence control circuit and a mode selection circuit, wherein:
所述逆序控制电路, 第一工作模式下, 用于接收 24n位低速并行 输入数据, 并根据自身的控制信号确定输出方式; 所述模式选择电路, 用于根据自身的控制信号确定输出方式, 接 收 22n位低速并行输入数据,并且由第一工作模式切换到第二工作模式 时自动关闭低速串化模块、 或由第二工作模式切换到第一工作模式时 自动打开低速串化模块。 The reverse sequence control circuit is configured to receive 2 4n bits of low-speed parallel input data in a first working mode, and determine an output mode according to a control signal thereof; the mode selection circuit is configured to determine an output mode according to a control signal of the same, Receiving 2 2n -bit low-speed parallel input data, and automatically turning off the low-speed serialization module when switching from the first working mode to the second working mode, or automatically turning on the low-speed serialization module when switching from the second working mode to the first working mode.
4. 根据权利要求 1所述的并串转换器, 其特征在于, 所述高速串化模块 包括: 高速同步电路、 高速串化器和高速时 4f生成电路, 其中: 4. The parallel-to-serial converter according to claim 1, wherein the high speed serialization module comprises: a high speed synchronization circuit, a high speed serializer, and a high speed time 4f generation circuit, wherein:
所述高速同步电路,用于对收到的 22n位高速并行数据进行同步, 得到 22n位高速同步并行数据; The high-speed synchronization circuit is configured to synchronize the received 2 2n -bit high-speed parallel data to obtain 2 2n -bit high-speed synchronous parallel data;
所述高速串化器,用于对所述 22n位高速同步并行数据进行串化, 得到 1位高速串行输出数据; The high-speed serializer is configured to serialize the 2 2n -bit high-speed synchronous parallel data to obtain 1-bit high-speed serial output data;
所述高速时钟生成电路, 用于分别向高速同步电路和高速串化器 提供时钟信号。  The high speed clock generating circuit is configured to provide a clock signal to the high speed synchronous circuit and the high speed serializer, respectively.
5. 才艮据权利要求 1所述的并串转换器, 其特征在于, 还包括与所述高速 串化模块相连的緩冲模块, 第二工作模式时, 用于对所述低 22n位高速 并行数据进行緩冲, 并将緩冲后的低 22n位数据输入到高速串化模块。 5. The parallel-to-serial converter according to claim 1, further comprising a buffer module connected to the high-speed serialization module, in the second operation mode, for the low 2 2n bits High-speed parallel data is buffered, and the buffered low 2 2n bits of data are input to the high-speed serialization module.
6. 根据权利要求 1所述的并串转换器, 其特征在于, 所述低速串化模块 包括至少四个低速基本单元, 第一工作模式时, 用于分别接收 24n位低 速并行输入数据从高位到低位每 4位一组的数据, 进行串化后输出 22n 位高速并行数据到高速串化模块; 其中, 各低速基本单元共用复位信 号和时钟信号; The parallel-to-serial converter according to claim 1, wherein the low-speed serialization module includes at least four low-speed basic units, and in the first working mode, respectively, for receiving 2 4n -bit low-speed parallel input data respectively The high-to-low-bit data of each group of 4 bits is serialized to output 2 2n -bit high-speed parallel data to the high-speed serialization module; wherein each low-speed basic unit shares a reset signal and a clock signal;
所述低速基本单元包括四个同步 D触发器和三个二选一选择器, 其巾,  The low-speed basic unit includes four synchronous D flip-flops and three two-selective selectors,
所述同步 D触发器, 用于对收到的每组低速并行数据进行同步; 第一二选一选择器和第二二选一选择器, 用于接收同步后的两两 一组的数据, 经选择后输出两位并行数据至第三二选一选择器;  The synchronous D flip-flop is configured to synchronize each received low-speed parallel data; the first two-selection selector and the second two-selection selector are configured to receive the synchronized two-two sets of data, After selecting, output two-digit parallel data to the third two-selector;
所述第三二选一选择器用于对收到的并行数据进行选择, 输出一 位数据。 The third two-selection selector is configured to select the received parallel data, and output one Bit data.
7. 根据权利要求 1所述的并串转换器, 其特征在于, 所述高速串化模块 包括: 四个同步 D触发器、 一个高速同步 D触发器, 两个二选一选择 器、 一个二选一高速选择器, 两个零级緩冲器和两个锁存器模块; 其 中, The parallel-to-serial converter according to claim 1, wherein the high-speed serialization module comprises: four synchronous D flip-flops, one high-speed synchronous D flip-flop, two two-selection selectors, and one second Select a high speed selector, two zero level buffers and two latch modules;
所述同步 D 触发器, 用于对收到的以每四位数据划分为一组的 22n位高速并行数据进行同步; The synchronous D flip-flop is configured to synchronize the received 2 2n -bit high-speed parallel data divided into a group of four bits of data;
所述二选一选择器, 用于接收同步后的两两一组的数据, 经选择 后输出两位并行数据;  The two-selection selector is configured to receive two or two sets of data after synchronization, and output two-bit parallel data after being selected;
高速同步 D触发器,用于对分别经两个零级緩冲器和两个锁存器 模块的模块进行同步输出, 得到一位高速串行数据;  A high-speed synchronous D flip-flop for synchronously outputting modules respectively through two zero-order buffers and two latch modules to obtain one high-speed serial data;
其中, 所述各部分共用复位信号和时钟信号。  Wherein, each part shares a reset signal and a clock signal.
8. 根据权利要求 7所述的并串转换器, 其特征在于, 所述两个锁存器模 块中, 第一锁存器模块与第二锁存器模块相差半个时钟周期, 其中, 所述第一锁存器模块包括至少三个顺次电连接的锁存器, 所述第 二锁存器模块包括至少两个顺次电连接的锁存器; 各锁存器共用时钟 信号。 The parallel-to-serial converter according to claim 7, wherein, in the two latch modules, the first latch module and the second latch module are different by half a clock cycle, wherein The first latch module includes at least three latches that are electrically connected in sequence, and the second latch module includes at least two latches that are electrically connected in sequence; each latch shares a clock signal.
9. 才艮据权利要求 2所述的并串转换器, 其特征在于, 所述低速时钟生成 电路包括: 三个同步 D触发器、 八个同相緩冲器、 四个反相緩冲器和 一个高速同步 D触发器, 其中, 9. The parallel-to-serial converter according to claim 2, wherein the low-speed clock generating circuit comprises: three synchronous D flip-flops, eight in-phase buffers, four inverting buffers, and a high speed synchronous D flip-flop, where
所述各同步 D触发器, 用于生成各级时钟信号;  Each of the synchronous D flip-flops is configured to generate clock signals of each stage;
所述同相緩冲器, 用于将各级时钟信号进行延时緩冲, 转换成相 位相同的各级时钟信号;  The non-inverting buffer is configured to delay buffering each stage clock signal into a clock signal of the same level and phase;
所述反相緩冲器用于将各级时钟信号进行延时緩冲, 转换成相位 相反的时钟信号;  The inverting buffer is configured to delay buffering each stage clock signal into a clock signal with opposite phases;
所述高速同步 D触发器,用于将输入的时钟信号分频后输出到緩 冲器和分频器。  The high speed synchronous D flip-flop is used for dividing the input clock signal and outputting it to the buffer and the frequency divider.
10. 一种并串转换方法, 其特征在于, 包括: 10. A parallel-to-serial conversion method, comprising:
确定工作模式和输出方式; 第一工作模式下, 根据确定的输出方式及设定的低速串化比例, 对 24n位低速并行输人数据进行低速串化, 得到 22n位高速并行数据; 再根据确定的输出方式及设定的高速串化比例,对所述 22n高速并行数 据进行高速串化, 得到一位高速串行输出数据; Determine the working mode and output mode; In the first working mode, according to the determined output mode and the set low-speed serialization ratio, low-speed serialization of the 2 4n -bit low-speed parallel input data is performed, and 2 2n -bit high-speed parallel data is obtained; and then according to the determined output mode and setting a high-speed serialization ratio, high-speed serialization of the 2 2n high-speed parallel data, to obtain a high-speed serial output data;
第二工作模式下, 根据确定的输出方式及设定的高速串化比例, 对 24n位低速并行输人数据的低 22n位数据进行并串转换, 将得到的低 22n位数据緩冲后, 并根据确定的输出方式及设定的高速串化比例进行 串化, 得到 1位高速串行输出数据。 In the second working mode, according to the determined output mode and the set high-speed serialization ratio, the low 2 2n -bit data of the 2 4n -bit low-speed parallel input data is parallel-serial converted, and the obtained low 2 2n -bit data buffer is obtained. After that, serialization is performed according to the determined output mode and the set high-speed serialization ratio, and 1-bit high-speed serial output data is obtained.
PCT/CN2009/072463 2008-06-26 2009-06-26 Parallel-serial converter and its implementation method WO2009155874A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2008101261145A CN101615912B (en) 2008-06-26 2008-06-26 Parallel-to-serial converter and realizing method thereof
CN200810126114.5 2008-06-26

Publications (1)

Publication Number Publication Date
WO2009155874A1 true WO2009155874A1 (en) 2009-12-30

Family

ID=41444047

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/072463 WO2009155874A1 (en) 2008-06-26 2009-06-26 Parallel-serial converter and its implementation method

Country Status (2)

Country Link
CN (1) CN101615912B (en)
WO (1) WO2009155874A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI449342B (en) * 2012-01-20 2014-08-11 Silicon Motion Inc Serializer and data serializing method
JP6077097B2 (en) 2012-03-23 2017-02-08 クゥアルコム・インコーポレイテッドQualcomm Incorporated Multiple serial media independent interface
CN104221290B (en) 2012-03-23 2017-11-07 高通股份有限公司 Configurable multi-modal dielectric stand-alone interface
CN104283561B (en) * 2014-09-22 2018-04-27 电子科技大学 A kind of asynchronous clock parallel-serial conversion half period output circuit
US9965435B2 (en) * 2015-11-12 2018-05-08 Qualcomm Incorporated Communication low-speed and high-speed parallel bit streams over a high-speed serial bus
CN111865330B (en) * 2020-08-05 2023-08-08 中国电子科技集团公司第二十四研究所 High-speed parallel-serial conversion circuit suitable for JESD204B protocol standard
CN112865806A (en) * 2020-12-31 2021-05-28 安徽芯纪元科技有限公司 High-speed ADC parallel-serial conversion circuit
CN116455401A (en) * 2022-01-10 2023-07-18 长鑫存储技术有限公司 Parallel-to-serial conversion circuit, parallel-to-serial conversion circuit layout and memory

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1832552A (en) * 2005-11-25 2006-09-13 深圳市力合微电子有限公司 High speed parallel-serial data switching system
CN101099293A (en) * 2005-09-29 2008-01-02 罗姆股份有限公司 Parallel-serial conversion circuit, and electronic device using the circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101099293A (en) * 2005-09-29 2008-01-02 罗姆股份有限公司 Parallel-serial conversion circuit, and electronic device using the circuit
CN1832552A (en) * 2005-11-25 2006-09-13 深圳市力合微电子有限公司 High speed parallel-serial data switching system

Also Published As

Publication number Publication date
CN101615912A (en) 2009-12-30
CN101615912B (en) 2011-10-26

Similar Documents

Publication Publication Date Title
WO2009155874A1 (en) Parallel-serial converter and its implementation method
US7006021B1 (en) Low power serializer circuit and method
JP4322548B2 (en) Data format conversion circuit
US6188339B1 (en) Differential multiplexer and differential logic circuit
KR100602585B1 (en) Semiconductor device
EP1278320B1 (en) Synchronous data serialization circuit
US6768431B2 (en) Serial-to-parallel data converter and method of conversion
US7675439B2 (en) Serial/parallel data conversion apparatus and method thereof
JP2000278141A (en) Multiplexer
CN108736897B (en) Parallel-serial conversion circuit and device applied to high-speed interface physical layer chip
TW527785B (en) Parallel in serial out circuit for use in data communication system
CN108964668B (en) Serial-parallel conversion multiplexing circuit
US6177891B1 (en) Serial-parallel conversion apparatus
CN112600567A (en) High-speed multichannel parallel-serial conversion circuit
US8044833B2 (en) High speed serializer
CN111049523A (en) Parallel-serial conversion unit, parallel-serial converter and time-interleaved ADC integrated circuit
JP3508625B2 (en) Low power digital logic circuit
US8912933B1 (en) Serializer with multiple stages
WO2022134440A1 (en) Sampler, display driver chip, and display device
Teifel et al. A high-speed clockless serial link transceiver
JPH10224231A (en) Serial-parallel conversion circuit
JP2009265024A (en) Semiconductor device
JP3354597B2 (en) Counter circuit and its application circuit
WO2021135662A1 (en) Flash memory
Tsai et al. A novel MUX-FF circuit for low power and high speed serial link interfaces

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09768799

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09768799

Country of ref document: EP

Kind code of ref document: A1