WO2016078506A1 - Method and apparatus for asynchronously receiving serial data - Google Patents

Method and apparatus for asynchronously receiving serial data Download PDF

Info

Publication number
WO2016078506A1
WO2016078506A1 PCT/CN2015/093138 CN2015093138W WO2016078506A1 WO 2016078506 A1 WO2016078506 A1 WO 2016078506A1 CN 2015093138 W CN2015093138 W CN 2015093138W WO 2016078506 A1 WO2016078506 A1 WO 2016078506A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
delay
clock
architecture
serial
Prior art date
Application number
PCT/CN2015/093138
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 WO2016078506A1 publication Critical patent/WO2016078506A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus

Definitions

  • the present invention generally relates to an asynchronous receive (0001) method and apparatus for serial data (0000), such as a method and apparatus for receiving asynchronous serial data (0002), a method and apparatus for receiving synchronous serial data (0003), and the like, including a computer A method and apparatus for receiving serial data of a system memory interface, an external bus interface, an external device interface, a wired network interface, a fiber optic network interface, and the like.
  • the present invention relates to a method and apparatus for asynchronously receiving (0001) high speed serial data (0000), based on which a low cost, high performance, single or multi-channel, single-ended drive or A communication interface device for synchronous serial data or asynchronous serial data such as differential driving generally meets the demand for high-speed data transmission.
  • Serial data communication is one of the basic means to reduce the cost of data transmission.
  • Early serial data communication is mainly based on low-speed asynchronous communication (0004), and the influence of the frequency difference between the transmission clock and the receiving clock is small, in order to increase the data transmission rate.
  • Simultaneous transmission of clock and data synchronization (0005) is adopted, which increases the data transmission rate but increases the cost, and is difficult to meet the higher-speed data transmission requirements.
  • Clock Data Recovery technology enables synchronous communication (0005) The synchronous transfer clock is no longer needed. This method embeds the clock into the synchronous serial data (0003) at the data transfer end, recovers the clock from the synchronous serial data (0003) at the receiving end and demodulates the serial with it.
  • the data (0000) makes the data transmission rate higher and can be transmitted further, but it needs to continuously transmit data to keep the clock data recovery circuit in operation.
  • the multi-bit analog-to-digital converter sampling at the double data transmission rate is also the receiving string.
  • the present invention provides a method and apparatus for asynchronously receiving (0001) high speed serial data (0000), which can receive either asynchronous serial data (0002) or synchronous serial data (0003).
  • FIG. 1 is a timing diagram of serial data (0000) transmission and reception and a multi-stage delay generation intermediate clock (0340) and intermediate data of a preferred example receive clock (0310) and receive data (0314) implemented in accordance with the method of the present invention. Schematic diagram of the method and apparatus of (0344).
  • FIG. 2 is a diagram showing a preferred embodiment of the method according to the present invention based on a method of falling stretch (0440), rising stretch (0442), intermediate data (0344) generating a falling delay (0450), rising delay (0452), and data delay (0454). And device schematic.
  • FIG. 3 is a block diagram of a method for sampling a falling delay (0450), a rising delay (0452), and a data delay (0454) using a sample shift register (0500) positive and negative phase intermediate clock (0340) in accordance with a preferred embodiment of the method of the present invention. And device schematic.
  • FIG. 4 is a preferred embodiment of a method implemented in accordance with the present invention to generate a falling spread based on received data (0314) (0440), method and apparatus for ascending the broadening (0442) and matching data (0444).
  • FIG. 5 is a schematic diagram of a method and apparatus for determining the flip timing (0602) of a preferred example positive and negative phase intermediate clock (0340) sampled signal flip (0120) output implemented in accordance with the method of the present invention.
  • FIG. 6 is a timing diagram of signal timing for a preferred example positive and negative phase intermediate clock (0340) sampled signal flip (0120) output flip timing (0602) discrimination implemented in accordance with the method of the present invention.
  • FIG. 7 is a timing window (0700) determination method and signal timing diagram of a preferred example intermediate clock (0340) positive sequence sampling (0530) implemented in accordance with the method of the present invention.
  • FIG. 8 is a timing window (0700) determination method and signal timing diagram of a preferred example intermediate clock (0340) inverse sequential sampling (0532) implemented in accordance with the method of the present invention.
  • FIG. 9 is a schematic diagram of a general purpose computer central processing unit in accordance with a preferred embodiment of the method of the present invention.
  • Figure 10 is a schematic illustration of a field programmable gate array chip in accordance with a preferred embodiment of the method of the present invention.
  • FIG. 11 is a schematic diagram of a serial data interface memory chip in accordance with a preferred embodiment of the method of the present invention.
  • FIG. 12 is a schematic diagram of a preferred embodiment of a DRAM/SDRAM or SRAM or FLASH memory and module controller implemented in accordance with the method of the present invention.
  • FIG. 13 is a schematic diagram of an interface controller of a computer external device based on a USRT or USRT physical layer, in accordance with a preferred embodiment of the method of the present invention.
  • Figure 14 is a schematic illustration of a preferred embodiment of a data transfer relay device employing a USRT or UART physical layer implemented in accordance with the method of the present invention.
  • 15 is a schematic diagram of a preferred embodiment of a system domain network switch based on a USRT or UART physical layer protocol implemented in accordance with the method of the present invention.
  • 16 is a schematic diagram of a computer network switch and/or router based on a USRT or UART physical layer protocol, in accordance with a preferred embodiment of the method of the present invention.
  • 17 is a schematic diagram of a preferred example of a communication network switch and/or router based on a USRT or UART physical layer protocol implemented in accordance with the method of the present invention.
  • Name to represent a digital signal with the name Name, Name (N/P) for the inverted signal of Name (P/N), and NameP and NameN for the positive and negative phase signals, respectively.
  • the signal is only represented by Name, and the signal can be either a single-ended signal (0100) or a double-ended differential signal (0110), which is not distinguished in the description;
  • Signal flipping refers to a rapid change of a digital signal from a low level L to a high level H or from a high level H to a low level L, from a high level H to a low level L
  • the signal flip is a fall flip (0130, fall transition)
  • the signal flip from a low level L to a high level H is a rise flip (0140, rise transition);
  • the signal width (0150) refers to the duration of a digital signal at a low level L or at a high level H;
  • the signal period (0160) refers to the time interval between two adjacent rising flips (0130) of a digital signal or two adjacent falling flips (0140);
  • a transmission channel (0200) transmits data in units of transmission frames (0210) starting with 1 start bit (0220) followed by a variable number of B content bits (0222), consisting of 1 stop bit ( 0224) End, any number of idle bits (0226), which may be zero, may be inserted between adjacent transmission frames, the effective signal levels of the start bit and the stop bit are different, and the effective signal levels of the idle bit and the stop bit are Similarly, if the start bit is active high, the stop bit and the idle bit are active low. If the start bit is active low, the stop bit and the idle bit are active high, and the signal of the transmission channel is valid. It can be a single-ended signal (0100) or a differential signal (0110).
  • the content of the B content bits (0222) in the transmission frame (2010) is arbitrary, and may be a flag bit (0230), a data bit (0232), a command bit (0234), a parity bit (0236), an alignment bit (0238), Switching bits (0240) and the like, for example, defining a 1-bit flag bit, the transmission frame (0210) is divided into a data frame without a command bit (0212) and a command frame without a data bit (0214), and others.
  • the number of bits of the type content bit may be 0 or 1 or more, the content bit may be original data or a command, or may be a result of scrambling, encrypting, encoding, etc.
  • the data receiving end can discover the transmission error in real time, the alignment bit is a cyclical cycle plus a change alignment number (0250), and the data receiving end is used to align the assembled combined frame (0216), and the exchange bit is a target address within a specific range. (0252), enabling the switch to implement switched transport (0260) in a simple manner, and the destination address can be subdivided into multiple hierarchical addresses (0262) for multi-level switching (0264) transmission.
  • Multiple transmission channels (0200) can form a combined channel (0202), and the transmission frame (0210) transmitted simultaneously by multiple transmission channels of the combined channel has a delay difference (0254), so alignment measures (0256) are required.
  • the entire transmission frames of the combined channel can be correctly combined into one combined frame (0216).
  • the data transmitting end transmits an alignment command frame (0214) containing alignment bits (0238), and the data receiving end realigns the transmission in the data buffer according to the alignment bits after receiving the alignment command frame. Frame (2010).
  • the method of item 1 is applicable to the case where the transmission channel (0200) of the combined channel (0202) is concentrated on a single chip, and the method of item 2 is applicable to the case where the transmission channel of the combined channel is distributed over a plurality of chips.
  • a certain number of idle bits are inserted between the transmission frames (0210), and devices that perform relay transmission, such as repeaters (0270, repeater), switches (0272, switch)
  • the data buffer of the receiving device with a lower clock frequency can be prevented from overflowing by increasing or decreasing the number of idle bits to accommodate the difference between the transmit clock of the data source (0280) and the receive clock of the data target (0282). .
  • Fig. 1 The upper part of Fig. 1 is a timing diagram of the serial data (0000) signal.
  • the serial data in the figure is flipped once every transmission period (0302) Ttx, that is, the low level L and the high level H are alternately transmitted.
  • the transmission data (0304) TD (P/N) is not indicated with respect to the delay of the transmission clock (0300) TK (P/N), and the reception data (0314) RD (P/N) is relative to the TK (P/N).
  • the delay is also not indicated. Due to distortion during transmission and reception, the time between two inversions of the received data is no longer an integer multiple of Ttx.
  • Ttx As a reference, there is a maximum distortion time (0320) td, Ttx-td*2
  • the receiving clock (0310) is RK (P/N)
  • the setup time (0332, set time) of the sampling flip-flop (0330, Flip-Flop) is ts
  • the hold time (0334, hold time) is th, then the received data is received.
  • the correct reception condition is that the reception period (0312) of the reception clock (0310) Trx is the same as Ttx and is always sampled within the sample window interval located in FIG.
  • the middle part of Figure 1 is a timing diagram of sampling serial data (0000) with a sampling flip-flop (0330) at the receiving end.
  • the received data (0314) SI (P/N) in the figure is transmitted every 2 transmission cycles ( 0302) Flip once, that is, alternately transmit two low-level L and two high-level H. Only the case of unstable sampling is given in the figure, that is, the flipping of the received data SI (P/N) is relative to the receiving clock.
  • the CK (P/N) sampling flip is within the interval of the advance setup time (0332) ts and the hysteresis hold time (0334)th.
  • the receiving period (0112) of the receiving clock CK (P/N) is approximately equal to Trx and Ttx. Due to the unstable sampling, the output RUD (P/N) of the sampling flip-flop (0330) is not the result of correct sampling, and lasts for about 2
  • the continuous level of Ttx of the transmission period (0302) is unstablely sampled into a continuous level of one or two or three reception periods Trx, which means that the continuous level of about one transmission period Ttx may have no sampling output, RDD(P/N) is the sampling trigger output that is sampled simultaneously with CK(N/P). Since the sampling flip of CK(N/P) is in the stable region of SI(P/N), RDD(P/N) It is the correct sampling result for SI (P/N).
  • the lower part of FIG. 1 is based on the reception clock (0310) CK (P/N) and the number of receptions in the method and apparatus of the present invention.
  • the intermediate clock (0340) DK ⁇ 0:N-1> and the intermediate data (0344)DI ⁇ 0:N-1> are respectively generated, and the delay series (0342)N Is the number of stages of the delay component that produces the intermediate clock and intermediate data.
  • the receiving clock (0310) CK(P/N) is obtained by the N-stage delay unit dK ⁇ 0:N-1>, and the N-phase intermediate clock (0340) DK(P/N) ⁇ 0:N-1>, dK ⁇ N is obtained.
  • dK ⁇ N-1> Make the load of dK ⁇ N-1> the same as the load of the previous stage delay component, dK ⁇ 0:N-1> also indicates the delay time of the corresponding delay component, and the clock average of dK ⁇ 0:N-1> is represented by dKa
  • the delay (0346) value, dK ⁇ 0:N-1> are approximately equal to dKa, and the time difference of DK ⁇ N> and CK is represented by the intermediate clock time difference (0347) sKa, then sKa ⁇ (N+1)*dKa, using the mode
  • the digital converter measures the sKa to obtain an approximation of dKa.
  • the received data (0314) SI(P/N) is obtained by the N-stage delay unit dM ⁇ 0:N-1>, and the N-phase intermediate data (0344)DI(P/N) ⁇ 0:N-1>, dM ⁇ N is obtained.
  • dM ⁇ N-1> Make the load of dM ⁇ N-1> the same as the load of the previous stage delay component, dM ⁇ 0:N-1> also indicates the delay time of the corresponding delay component, and dMa represents the average data of dM ⁇ 0:N-1>
  • the delay (0348) value, dM ⁇ 0:N-1> are approximately equal to dMa, and the time difference of DI ⁇ N> and SI is represented by the intermediate data time difference (0349) sMa, then sMa ⁇ (N+1)*dMa, using the mode
  • the digital converter measures sMa to get an approximation of dMa.
  • the delay values of dK ⁇ 0:N-1> and dM ⁇ 0:N-1> are both greater than or equal to 0, and the clock average delay (0346)dKa and the data average delay (0348)dMa can both be 0 but not both.
  • the delay value can be a fixed value or a variable value.
  • the delay of dK ⁇ 0:N> and dM ⁇ 0:N> may be generated by a preferred method such as wiring delay, delay line delay, cascade circuit delay, etc.
  • Delay dK ⁇ 0:N> may also be delayed lock loop (Delay Lock)
  • a preferred method such as Loop), cascade latch (Latch), cascade flip-flop (Flip Flop) or the like is generated.
  • the frequency of the local clock is the same as the frequency of the receiving clock (0310). If the delay of the receiving clock is generated by a cascade latch (Latch) or a cascade flip (Flip Flop), the frequency of the local clock must be Times the frequency of the receiving clock.
  • FIGS. 4 and 2 illustrate a preferred example method and apparatus of the present invention that produces a stretched pulse (0490) of at least about two transmission cycles (0302) based on the received data, ensuring that A rollover of each received data is collected.
  • the sampling latch (0400, latch) 0410/0:1 constitutes a ring-shaped two-divider, and the received data (0314) SI (P/N) is divided by a spread-width pulse (0490).
  • the output of the sampling latch 0410/0 is the falling spread (0440) SD (P/N), its flip corresponds to the falling flip of SI (P/N) (0130), and the output of the sampling latch 0310/1 is the rising spread. (0442) SU(P/N) whose flip corresponds to the rising flip of SI(P/N) (0140), and the SD (P/N) and SU(P/N) flips are inverted relative to SI(P/N)
  • the delay time is the enable delay (0402) tpd time of the sampling latch.
  • the output of the sample matcher (0420, match) 0430 is the matching data (0444) SM(P/N), which is flipped with SI (P/N).
  • the flipping is the same but delays the sampling latch's enable delay (0402) tpd time, which is used to delay match when the data average delay (0348)dMa is 0, so that SM(P/N) can be used for subsequent
  • the component samples the received data.
  • the stretched pulse (0490) becomes the stretch delay (0492) via the sample latches (0400) 0460/0:N and 0470/0:N, and the output of the sample latch (0400) 0460/0:N is Falling delay (0450) DD(P/N) ⁇ 0:N>, which flips respectively to the falling flip (0130) of DI(P/N) ⁇ 0:N> but the delay enable delay (0302) tpd time,
  • the output of the sampling latch (0400) 0470/0:N is the rising delay (0452) DU(P/N) ⁇ 0:N>, and its flipping corresponds to the rising flip of DI(P/N) ⁇ 0:N> respectively.
  • the output of the sample matcher (0420) 0480/0:N-1 is the data delay (0454) DM(P/N) ⁇ 0:N-1>
  • the flip is the same as the flip of DI(P/N) ⁇ 0:N-1> but the delay enable delay (0302) tpd time, the effect is to perform delay matching when the data average delay (0348)dMa is not 0.
  • DM(P/N) ⁇ 0:N-1> is used for subsequent component sampling to receive data (0314).
  • Figure 3 is a sample shift register (0500) composed of a sampling flip-flop (0330), which samples the falling delay (0450) DD (P/N), rising delay (0452) DU (P/N), and data delay (0454).
  • DM (P / N) method and device schematic sampling flip-flop 0510 / 0: M-1 sample shift register, with the intermediate clock (0340) down flip (0130) sampling, sampling trigger 0520 / 0
  • the sampling shift register consisting of M-1 is sampled by the rising flip (0140) of the intermediate clock (0340), M is the sampling level (0502), that is, the number of stages of the sampling shift register, and the sampling shift register is serialized. And shift the register.
  • the lowercase character x in the signal identification name in Fig. 3 is D or U or M, respectively indicating that the sampled signal is a falling delay (0450) DD(P/N) ⁇ n>, a rising delay (0452) DU (P/N ) ⁇ n>, data delay (0454) DM (P/N) ⁇ n>, and the like.
  • the ⁇ n> in the signal identification name in Fig. 3 indicates the serial number of the sampled signal, and its range and order of change are 0 to N-1.
  • the data average delay (0348)dMa is 0, the falling delay (0450) DD (P) /N) ⁇ 0:N-1> are both the falling spread (0440) SD (P/N), the rising delay (0452) DU(P/N) ⁇ 0:N-1> are the rising stretch (0442) SU (P/N), data delay (0454) DM(P/N) ⁇ 0:N-1> are all matching data (0444)SM(P/N), etc., where N is the delay series (0342) .
  • the ⁇ k> in the signal identification name in Fig. 3 indicates the serial number of the intermediate clock (0340), and its variation range is 0 to N-1, and the order of change may be 0 to N-1 or N-1 to 0, when the clock averages
  • the intermediate clock DK(P/N) ⁇ 0:N-1> is CK(P/N), where N is the delay series (0342).
  • the order of change of k is 0 to N-1, it is the Foreward Sequence sample (0530).
  • the order of change of k is N-1 to 0, it is the Backward Sequence sample (0532).
  • Sequential sampling means that the intermediate clock number and the sequence of the sampled signals are changed in the same order.
  • the reverse order sampling means that the intermediate clock number and the sequence of the sampled signals are reversed.
  • the output of the sample shift register (0500) 0510/0:M-1 and 0520/0:M-1 is the negative edge output (0530) dQx ⁇ 0:N-1,0:M-1> and the positive edge output ( 0532) uQx ⁇ 0:N-1,0:M-1>
  • N is the delay series (0342)
  • M is the sampling series (0502)
  • lowercase character x is D or U or M, respectively representing the falling Delay (0450) DD(P/N) ⁇ 0:N-1> sample output negative edge falling (0540) dQD ⁇ 0:N-1,0:M-1> and positive edge falling (0542)uQD ⁇ 0: N-1,0:M-1>
  • the rising edge of the sampling output of the rising delay (0452) DU(P/N) ⁇ 0:N-1> (0550) dQU ⁇ 0:N-1,0:M -1> and positive edge rising (0552) uQU ⁇ 0:N-1,0:M-1>
  • data delay (0454)
  • negative edge falling (0540), positive edge falling (0542), negative edge rising (0550), positive edge rising (0552) is the broadened output (0570), collectively referred to as negative edge falling (0540) and negative.
  • the rising edge (0550) is the negative edge broadening (0572)
  • the collective positive edge falling (0542) and the positive edge rising (0552) are the positive edge broadening (0574), collectively referred to as negative edge data (0560) and positive edge data (0562) for data output. (0580).
  • a signal flip (0120) is asynchronously sampled by the falling flip (0130) and the rising flip (0140) of the intermediate clock (0340), and the flip time (0600) of the negative edge output (0530) and the positive edge output (0532) is halfway.
  • the cycle of the clock but the flip timing (0602) varies randomly.
  • FIG. 5 is a schematic diagram of a preferred method and apparatus for determining the timing of each flip of the present invention.
  • the negative edge output (0530) and the positive edge output (0532) use a sampling trigger (0330) 0610.
  • 0610 is the device that outputs dQx ⁇ n,t> on the falling edge of the positive edge of the output uQx ⁇ n,t>, and its output is dFx ⁇ n,t>
  • 0611 is the positive edge output uQx ⁇ n
  • 0612 is the negative edge output dQx ⁇ n, t> falling edge sampling positive edge output uQx ⁇ n
  • the device of t>, whose output is uFx ⁇ n,t>, is the device with negative edge output dQx ⁇ n, t> rising edge sampling positive edge output uQx ⁇ n,t>, the output of which is uRx ⁇ n,t >.
  • the light gray area determines the sampling output flip timing of the positive and negative phase intermediate clocks (0340) when determining Mx ⁇ n> falling and flipping (0130).
  • the time zone of 0602) the dark gray zone is a time zone for determining the sampling output inversion timing (0602) of the positive phase and the negative phase intermediate clock (0340) when Mx ⁇ n> is raised and inverted (0140), and
  • Table 1 is a discriminating state list. Where L represents a low level, H represents a high level, and x represents an arbitrary level.
  • the sampled signal can be inverted (0120) time to determine the time window (0700) of the intermediate clock (0340) half cycle.
  • the falling delay (0450) and the rising delay can be further determined by the multiphase delay intermediate clock (0340) positive and negative phase sampling multiphase delay falling delay (0450) and rising delay (0452). (0452) Signal Flip (0120)
  • the settling time (0332) and hold time (0334) of the sampling flip-flop (0330) limits the minimum value of the time window over a smaller time window.
  • FIG. 7 and FIG. 8 are schematic diagrams showing the method and signal timing of determining the time window (0700) of the present invention, where t is 1, lowercase x is D or U, lowercase e is d or u, and the intermediate clock (0340) DK ⁇ n>Sampling falling delay (0450) MD ⁇ n-3:n+3> or rising delay (0452) MU ⁇ n-3:n+3> output flip timing (0602) are both dQx ⁇ n,t>/ uQx ⁇ n,t> or uQx ⁇ n,t>/dQx ⁇ n,t>, regardless of the effect of device delay, only consider the actual result of signal flipping and sampling, the XXX area in the figure is the sampled signal Mx ⁇ n-3:n+3> Possible flip area (0710).
  • FIG. 7 is a timing window (0700) determination method and signal timing diagram of the intermediate clock (0340) positive sequential sampling (0530), and the following is a description of the timing of FIG. 7:
  • the average data delay (0348) dMa is Trx/6;
  • the possible flip region of Mx ⁇ n> (0710) is a Trx/2 time interval in which DK ⁇ n> is high level H or low level L, and the flipping region (0602) inferred flip region and Mx ⁇ n > possible flip areas overlap;
  • the possible flip region (0710) of Mx ⁇ n-1> is a Trx/2 time interval in which a certain DK ⁇ n-1> is a high level H or a low level L, and a flipping region (0602) inferred flip region Leading dKa*1, Mx ⁇ n-1> possible flipping area leads dMa*1, flipping time (0602) inferred flipping area overlaps with Mx ⁇ n-1> possible flipping area about Trx*2/3;
  • Mx ⁇ n-2> The possible inversion region (0710) is a Trx/2 time interval in which a certain DK ⁇ n-2> is a high level H or a low level L, and the inversion region of the inversion timing (0602) is inferred.
  • Mx ⁇ n-3> The possible flip region (0710) is a Trx/2 time interval in which a certain DK ⁇ n-3> is a high level H or a low level L, and a flipping region (0602) inferred flip region Leading dKa*3, Mx ⁇ n-3> possible flipping area leads dMa*3, flipping time (0602) inferred flipping area overlaps with Mx ⁇ n-3> possible flipping area about Trx*0/3;
  • Mx ⁇ n+1> The possible inversion region (0710) is a Trx/2 time interval in which a certain DK ⁇ n+1> is a high level H or a low level L, and a flipping region (0602) inferred flip region
  • the lag is about dKa*1, Mx ⁇ n+1> the possible flip region lags about dMa*1, and the flip region (0602) infers that the flip region overlaps with the possible flip region of Mx ⁇ n+1> about Trx*2/3;
  • the possible inversion region (0710) is a Trx/2 time interval in which a certain DK ⁇ n+2> is a high level H or a low level L, and the inversion region of the inversion timing (0602) is inferred.
  • the hysteresis is about dKa*2
  • Mx ⁇ n+2> the possible inversion region is delayed by about dMa*2
  • the inversion region of the inversion timing (0602) is overlapped with the possible inversion region of Mx ⁇ n+2> by about Trx*1/3;
  • Mx ⁇ n+3> The possible inversion region (0710) is a Trx/2 time interval in which a certain DK ⁇ n+3> is a high level H or a low level L, and the inversion region of the inversion timing (0602) is inferred.
  • Lag about dKa*3, Mx ⁇ n+3> The possible flip region lags about dMa*3, and the toggle region (0602) inferred flip region overlaps with Mx ⁇ n+3> possible flip region by about Trx*0/3.
  • FIG. 8 is a timing window (0700) determination method and signal timing diagram of the intermediate clock (0340) reverse sequential sampling (0532), and the following is a description of the timing of FIG. 8:
  • the average clock delay (0346) dKa is Trx/18;
  • the average data delay (0348) dMa is Trx/9;
  • the possible flip region of Mx ⁇ n> (0710) is a Trx/2 time interval in which DK ⁇ n> is high level H or low level L, and the flipping region (0602) inferred flip region and Mx ⁇ n > possible flip areas overlap;
  • the possible flip region (0710) of Mx ⁇ n-1> is a Trx/2 time interval in which a certain DK ⁇ n-1> is a high level H or a low level L, and a flipping region (0602) inferred flip region
  • the lag is about dKa*1, Mx ⁇ n-1> the possible flip region leads dMa*1, and the flipping time (0602) inferred flip region overlaps with Mx ⁇ n-1> possible flip region about Trx*2/3;
  • Mx ⁇ n-2> The possible inversion region (0710) is a Trx/2 time interval in which a certain DK ⁇ n-2> is a high level H or a low level L, and the inversion region of the inversion timing (0602) is inferred.
  • the hysteresis is about dKa*2
  • Mx ⁇ n-2> the possible inversion region leads dMa*2
  • the inversion time (0602) inferred flip region overlaps with the possible flip region of Mx ⁇ n-2> about Trx*1/3;
  • Mx ⁇ n-3> The possible flip region (0710) is a Trx/2 time interval in which a certain DK ⁇ n-3> is a high level H or a low level L, and a flipping region (0602) inferred flip region
  • the hysteresis is about dKa*3, Mx ⁇ n-3> the possible inversion region leads dMa*3, the inversion time (0602) inferred flip region overlaps with Mx ⁇ n-3> possible flip region about Trx*0/3;
  • Mx ⁇ n+1> The possible inversion region (0710) is a Trx/2 time interval in which a certain DK ⁇ n+1> is a high level H or a low level L, and a flipping region (0602) inferred flip region Leading dKa*1, Mx ⁇ n+1> possible flip region lags about dMa*1, flipping time (0602) inferred flip region overlaps with Mx ⁇ n+1> possible flip region about Trx*2/3;
  • the possible inversion region (0710) is a Trx/2 time interval in which a certain DK ⁇ n+2> is a high level H or a low level L, and the inversion region of the inversion timing (0602) is inferred.
  • Leading dKa*2, Mx ⁇ n+2> possible flipping region lags about dMa*2, flipping time (0602) inferred flip region overlaps with Mx ⁇ n+2> possible flip region about Trx*1/3;
  • Mx ⁇ n+3> The possible inversion region (0710) is a Trx/2 time interval in which a certain DK ⁇ n+3> is a high level H or a low level L, and the inversion region of the inversion timing (0602) is inferred.
  • Leading dKa*3, Mx ⁇ n+3> possible flipping region lags about dMa*3, and the flipping region (0602) inferred flip region overlaps with Mx ⁇ n+3> possible flip region by about Trx*0/3.
  • the flipping timing (0602) of one phase clock sampling can infer that the time window (0700) is Trx/2, increasing the sampling output of the same flip timing of one phase, time window (0700)
  • the setup time (0332) and hold time (0334) of the sample trigger (0330) limits the minimum value of dSa.
  • the maximum number of phases with the same flip timing (0602) sample output is the maximum number of phases (0730)
  • dNa floor (0.5 * Trx / dSa).
  • the stretched output (0570) is divided into a negative edge output (0530) lead group and a positive edge output (0532) lead group, and the number of adjacent numbers is selected from the two, that is, the number of the same order (0760) is the largest.
  • the minimum starting number is used as the negative edge criterion (0740) and the positive edge criterion (0742), and the starting sequence number is the same sequence number (0762) as the negative edge number (0750) and the positive edge number (0752), respectively.
  • the negative edge criterion (0740), the positive edge criterion (0742), the negative edge number (0750), and the positive edge number (0752) are the basis for determining the time window (0700), the negative edge number (0750) and the positive edge number (
  • the average value of 0752) is the mean value of the serial number (0754), the difference between the mean value of the serial number is the difference of the serial number (0756), the average value of the squared difference (0756) squared or the absolute value is the variance of the serial number (0758), the mean of the serial number (0754) ), the difference of the serial number (0756), the variance of the serial number (0758), etc.
  • the distortion criteria (0790) for determining the degree of signal distortion are the distortion criteria (0790) for determining the degree of signal distortion, and it is necessary to perform the discrimination result of the determined time window (0700) according to one or some of them.
  • the serial number mean (0754) and the serial number variance (0758) can be selected by one or more data window widths to reflect the short-, medium-, and long-term distortion of the signal.
  • the sampled signal corresponding to the smallest negative edge criterion (0740) and the positive edge criterion (0742) The sampling flip of the flip intermediate clock (0340) is close to Trx/2 time, so the corresponding data output (0580) is more likely to be the correct data (0770), the largest negative edge criterion (0740) and positive edge judgment According to (0742), the inverted sampling of the corresponding sampled signal inverted hysteresis intermediate clock (0340) is close to Trx/2 time, so the corresponding data output (0580) is also more likely to be correct data (0770).
  • a preferred discriminating method is: if the negative edge criterion (0740) and the positive edge criterion (0742) are different in the same order number (0760), then the same order number (0760) is selected as the criterion output (0780), if negative According to the same number of orders (0760) along the criterion (0740) and the positive edge criterion (0742), the same sequence number (0762) is selected as the criterion output (0780), and a serial number selection (0782) and Phase selection (0784), phase selection determines the sampling result of the falling flip (0130) or rising flip (0140) of the intermediate clock. Also accordingly adding or subtracting a correction signal is determined according to the degree of distortion.
  • the phase selection (0784) selects the in-phase intermediate clock (0340), that is, the flip timing (0602) is the falling flip (0130) or rising of the intermediate clock (0340). If the sampling of the flip (0140) is advanced, select the falling flip (0130) or the rising flip (0140) of the intermediate clock (0340); if the maximum number in the selection criterion is selected as the serial number selection (0782), the phase selection (0784) Select the inverting intermediate clock (0340), that is, the flip timing (0602) is the falling flip (0130) or the rising flip (0140) lead of the intermediate clock (0340), then select the rising flip (0140) or falling of the intermediate clock (0340). Flip (0130).
  • the data output corresponding to the serial number selection (0782) and the phase selection (0784) is output as a data packet as the reception result of the serial data (0000), and the corresponding stretched output (0570) can be used as a trigger signal for the start and end of the data packet. It is also necessary to set a bit counter to give the number of bits of the data packet.
  • the transmission frame (0210) of the asynchronous serial data (0002) receives the stretched output corresponding to the active level inversion of the received bit from the active bit of the stop bit (0224) or the idle bit (0226) to the active bit (0220).
  • Flip start The number of bits of a transmission frame is the number of content bits (0222) plus one start bit and one stop bit, so the generation of the end trigger signal requires the participation of the bit counter.
  • the local clock (0800) and the received data (0314) are input from the outside;
  • the local clock (0800) is directly used as the receiving clock (0310) or divided to generate the receiving clock.
  • the receiving frequency (0312) is the same as the transmitting frequency (0302). If the receiving clock needs to be delayed, the delay level (0342) is N.
  • the multi-stage delay component generates an N-phase intermediate clock (0340), the delay time of the delay components is greater than or equal to 0 and approximately equal, and the mean value thereof is the clock average delay (0346), and the delay can be caused by wiring delay, delay line delay, and cascade circuit delay.
  • a preferred method such as a Delay Lock Loop is generated.
  • the receiving clock can also be stepped through a cascade latch (Latch) or a cascade flip (Flip Flop) by a local clock whose frequency is several times the receiving frequency.
  • the shift equalization method produces that the clock average delay is a fixed value or a variable value.
  • a widened pulse (0490) having a width of at least about two transmission cycles (0302) is generated based on the received data (0314), and if the received data is required to be matched data (0444) via the delay matching component, the flipping is aligned with the flipping of the stretched pulse. If the data needs to be received, the N-phase intermediate data (0344) is generated by the multi-stage delay component with the delay level (0342) being N.
  • the delay time of the delay component is greater than or equal to 0 and approximately equal, and the mean value is the average data delay (0348).
  • a spread delay (0492) of N phase of at least about two transmission periods (0302) width is generated, and the delay time difference of the adjacent two-phase stretch delay (0492) is also a data average delay (0348), and the delay can be made by wiring.
  • a preferred method of delay, delay line delay, cascade circuit delay, etc. produces that the data average delay is a fixed value or a variable value, and the N-phase intermediate data becomes a data delay (0454) via the delay matching component, causing its flip to be aligned with the rollover of the stretch delay. .
  • the average clock delay (0346) and the average data delay (0348) can be 0, but can be 0 at the same time.
  • the receiving clock (0310) is the intermediate clock (0340), that is, there is no need to generate the middle.
  • the stretched pulse (0490) and the matched data (0444) are the stretched delay (0492) and the data delay (0454), respectively, that is, no spread delay and data delay are required;
  • sampling shift register (0500) with the series of sampling stages (0502) is separately phase-sampled for the N-phase stretched delay (0492) and the N-phase data delay (0454), and the sampling intermediate clock (0340) is inverted and inverted ( 0130) and rising flip (0140) at the same time, get negative edge broadening (0572) and positive edge broadening (0574) and data output (0580), sampling can be positive sequential sampling (0530) or reverse sequential sampling (0532), positive sequential sampling It means that the intermediate clock number is the same as the sequence of the sampled signal sequence, and the reverse sequence sampling means that the intermediate clock number and the sequence of the sampled signal are reversed.
  • the stretched output (0570) is divided into a negative edge output (0530) lead group and a positive edge output (0532) lead group, and the number of adjacent numbers is selected from the two, that is, the number of the same order (0760) is the largest and the starting number is the smallest.
  • the negative edge criterion (0740) and the positive edge criterion (0742) the starting sequence number is the same sequence number (0762) as the negative edge number (0750) and the positive edge number (0752);
  • the same order number (0760) is selected as the criterion output (0780)
  • the same sequence number (0762) is selected as the criterion output (0780)
  • the smallest sequence number in the selection criterion output is selected as the serial number (0782).
  • the phase selection (0784) selects the in-phase intermediate clock (0340).
  • the phase selection (0784) selects the inverted intermediate clock (0340), and the serial number selection is also It is determined whether to add 1 or subtract 1 correction according to one or part or all of the distortion criterion (0790);
  • the data output (0580) corresponding to the serial number selection (0782) and phase selection (0784) is output as the reception result data packet of the serial data (0000), and the corresponding stretched output (0570) can be used as the start and end of the data packet.
  • the trigger signal needs to set a bit counter to give the number of bits of each data packet.
  • the transmission frame (0210) of the asynchronous serial data (0002) is received in response to the effective level of the start bit (0220) from the active level of the stop bit (0224) or the idle bit (0226) to the received data (0314).
  • the start of the rollover of the spread output, the number of bits of one transmission frame is the number of content bits (0222) plus one start bit and one stop bit, so the end trigger signal generating the data packet requires the participation of the bit counter.
  • the present invention provides a receiving method and apparatus for asynchronously receiving serial data (0000).
  • the method and apparatus for serial data transmission are relatively simple, and the method of serial data receiving is complicated and difficult to implement.
  • the method and device provided by the invention simplifies the structure of the serial data receiving device to the utmost, so that the cost is low and easy to implement, and not only can meet the requirements of high performance applications, but also can meet the requirements of low cost and low power consumption. Application requirements.
  • two serial data transceivers can be realized, one is a Universal Serial Receievr/Transmitter (USRT), and the function can be any existing synchronous serial data.
  • the function of the transmission interface the other is the asynchronous serial transceiver (Universal Asynchronous Receievr/Transmitter, USRT)
  • its data transmission rate can be as high as the data transmission rate of the synchronous serial data interface
  • its physical layer protocol can be like universal input /
  • the physical layer protocol of the Output Interface (General Purpose Input/Output, GPIO) is as simple as the following:
  • the characteristics of the two serial data transceivers (0900) are as follows:
  • the method and apparatus of the present invention receive asynchronous serial data or synchronous serial data
  • one-way or two-way electrical connection (0901), single-ended or differential drive, one-way electrical connection (0902) transmitting data only or receiving data only, the two-way electrical connection (0903) can transmit data and receive data in a time-sharing manner;
  • the one-way data transmission channel (0905) consists of a one-way electrical connection (0902) that only transmits data or only receives data.
  • the two-way data transmission channel (0906) consists of one.
  • the two-way electrical connection (0902) constitutes or consists of a combination of a one-way electrical connection that only transmits data and a one-way electrical connection that only receives data;
  • One-way or two-way data transmission port (0907), one-way data transmission port (0908) consists of one or more unidirectional data transmission channels (0905), and two-way data transmission port (0909) consists of one or more two-way The data transmission channel (0906) is constructed.
  • the universal serial data communication apparatus implemented by the universal interface or the USRT method of the present invention is asynchronously implemented by the asynchronous interface or the UART. Serial data communication device.
  • asynchronous serial data (0002) communication with the same high data transmission rate as synchronous serial data (0003) communication can be realized, so that synchronization can be realized on the physical layer of asynchronous serial data communication.
  • the data link layer and protocol layer protocol of serial data communication reduce the power consumption and cost of the interface.
  • a method and apparatus according to the present invention for implementing a physical layer protocol for receiving and transmitting asynchronous serial data transmissions
  • the synchronous serial data of the data link layer and the protocol layer is transmitted as the content bit of the asynchronous serial data of the physical layer;
  • the received content bit of the asynchronous serial data of the physical layer is submitted to the data link layer and the protocol layer of the synchronous serial data communication;
  • the data transmission port is implemented based on the method and apparatus of the present invention.
  • the current general purpose computer central processing unit (0910, CPU) has a variety of external interfaces. With the method and device of the present invention, only two (USRT and UART) physical layers can be realized, and only one (UART) physical layer external interface can be realized.
  • General-purpose CPU Figure 9 shows a schematic diagram of a general-purpose CPU using the USRT and or UART interface. In the case of a new definition or the existing data link layer and protocol layer protocol, the physical layer protocol of the CPU external interface is based on USRT.
  • the internal structure of the central processing unit is arbitrary, and the new definition of the architecture or the existing architecture can be used;
  • the data transmission port is implemented based on the method and apparatus of the present invention.
  • the UART port is used for serial data transmission connection inside or outside the system, and the simple performance of the method and device of the invention reduces the port overhead of the FPGA device, thereby making it more Multiple input and output resources support high-speed data transfers.
  • Figure 10 shows a schematic of an FPGA using USRT and/or UART ports. The features of this field-programmable gate array device are as follows:
  • the internal architecture of the field programmable gate array device is arbitrary, and the new definition architecture or the existing architecture can be used;
  • the data transmission port is implemented based on the method and apparatus of the present invention.
  • the current general-purpose memories mainly include DRAM/SDRAM (0930), SRAM (0932), FLASH (0934), etc., all adopt parallel or serial data and control interfaces, and the UART physical layer interface can be realized by the method and device of the present invention.
  • Single-port or multi-port DRAM/SDRAM, SRAM, FLASH, etc. can be directly connected directly to one or more general-purpose CPUs described in the “General Computer Central Processing Unit” section of this manual.
  • Figure 11 shows the use of UART. Schematic diagram of DRAM/SDRAM, SRAM, FLASH, etc. of the interface. The characteristics of this memory are as follows:
  • the internal architecture of DRAM/SDRAM or SRAM or FLASH memory is arbitrary, and the new definition architecture or existing architecture can be used;
  • a method and apparatus according to the present invention for implementing a one-port or multi-port unidirectional or bidirectional physical layer protocol for receiving and transmitting asynchronous serial data
  • the data transmission port is implemented based on the method and apparatus of the present invention.
  • the current general-purpose memories mainly include DRAM/SDRAM (0930), SRAM (0932), FLASH (0934), etc., all adopt parallel or serial data and control interfaces, and the UART physical layer can be realized by the method and device of the present invention.
  • the interface of the single-port or multi-port DRAM/SDRAM, SRAM, FLASH and other memory controllers can be directly related to this specification "a general-purpose computer central processing unit" One or more general-purpose CPUs are partially connected directly.
  • Figure 12 shows a schematic diagram of DRAM/SDRAM, SRAM, FLASH and other memory modules and controllers using a UART interface.
  • the memory controller is connected to the DRAM/SDRAM and/or within the module.
  • the external port is a single port or multi port UART interface. The characteristics of this memory controller are as follows:
  • the interface structure with DRAM/SDRAM or SRAM or FLASH memory is arbitrary, and the new definition architecture or existing architecture can be used;
  • the data transmission port is implemented based on the method and apparatus of the present invention.
  • the current common external device interfaces mainly include synchronous serial, synchronous parallel, asynchronous parallel, asynchronous serial, etc.
  • the method and device of the present invention can implement an external device interface based on the USRT or UART physical layer protocol, which can be directly related to the present specification.
  • One or more general purpose CPUs described in the section "General Computer Central Processing Unit” are directly connected.
  • Figure 13 shows a schematic diagram of an interface controller of a computer external device based on the USRT or UART physical layer. The characteristics are as follows:
  • the internal architecture of the external device interface controller is arbitrary, and the new definition architecture or the existing architecture can be used;
  • the data transmission port is implemented based on the method and apparatus of the present invention.
  • any method for transmitting data has a maximum maximum distance for transmission. If a longer distance is to be transmitted, a relay device is required to transmit data.
  • the method and apparatus of the present invention can implement a physical layer based on USRT or UART.
  • Figure 14 shows a schematic diagram of a data transfer relay using the USRT or UART physical layer. The original physical layer is maintained by the relay interface while maintaining the original data link layer and protocol layer protocol. It is better to be replaced by USRT or UART, and it is better to replace it with UART.
  • the relay features of this data transmission are as follows:
  • the structure of the relayed data transmission interface is arbitrary, and the new definition architecture or the existing architecture can be used;
  • the data transmission port is implemented based on the method and apparatus of the present invention.
  • the system domain network is a data transmission network inside a high-performance computer system, and its performance and power consumption are compared.
  • a system domain network switch based on the USRT and/or UART physical layer can be implemented, and FIG. 15 shows a system domain based on the USRT and/or UART physical layer protocol.
  • Schematic diagram of a network switch the characteristics of such a system domain network switch are as follows:
  • the internal structure of the switch is arbitrary, and the new definition of the architecture or the existing architecture can be used;
  • the data transmission port is implemented based on the method and apparatus of the present invention.
  • the computer network is a data transmission network between computers.
  • the scale is as small as a data transmission network inside a home.
  • the scale is as large as a data transmission network with tens of thousands of computers inside the university.
  • the Internet is a global domain computer network.
  • the router is a necessary device of the computer network, and the computer network switch and/or router based on the USRT and/or UART physical layer can be implemented by using the method and device of the present invention, and FIG. 16 shows the physical layer based on the USRT and/or UART.
  • Schematic diagram of a protocol computer network switch and/or router The characteristics of such a computer network switch and/or router are as follows:
  • the internal architecture of the switch and/or router is arbitrary, and the new definition of the architecture or the existing architecture can be used;
  • a physical layer protocol for implementing network switching and/or routing as in the method and apparatus of the present invention
  • the data transmission port is implemented based on the method and apparatus of the present invention.
  • the communication network is a data transmission network of the global domain.
  • the switches and routers are indispensable components of the communication network.
  • communication network switches and/or routers based on the USRT and/or UART physical layer can be implemented.
  • 17 shows a schematic diagram of a communication network switch and/or router based on the USRT and/or UART physical layer protocol. The characteristics of such a communication network switch and/or router are as follows:
  • the internal architecture of the switch and/or router is arbitrary, and the new definition of the architecture or the existing architecture can be used;
  • a physical layer protocol for implementing network switching and/or routing as in the method and apparatus of the present invention
  • the data transmission port is implemented based on the method and apparatus of the present invention.

Abstract

In a method and an apparatus provided in the present invention, serial data is received in an asynchronous manner, thereby lowering requirements for a frequency difference and stability of a transmit clock and a receive clock, so that serial data, comprising synchronous serial data and asynchronous serial data, of any physical layer protocols can be universally received without distinguishing; only amplitude limiting, amplification, and delay need to be performed on a received serial data signal, there is no complex analog circuit, the circuit structure is simple, reliable, and easy to implement, and the maximum clock frequency of a trigger circuit is the maximum data transmission rate; the present invention has low cost, high performance, and universality, so that the present invention can be widely used for high-speed transmission of data.

Description

一种异步接收串行数据的方法及装置Method and device for asynchronously receiving serial data 技术领域Technical field
本发明一般涉及串行数据(0000)的异步接收(0001)方法及装置,诸如异步串行数据(0002)的接收方法及装置、同步串行数据(0003)的接收方法及装置等,包括计算机系统的存储器接口、外部总线接口、外部设备接口、有线网络接口、光纤网络接口等串行数据的接收方法及装置。具体地说,本发明涉及一种异步接收(0001)高速串行数据(0000)的方法及装置,基于该方法及装置,可以实现低成本、高性能、单通道或多通道、单端驱动或差分驱动等的同步串行数据或异步串行数据的通信接口装置,普适的满足高速数据传送的需求。The present invention generally relates to an asynchronous receive (0001) method and apparatus for serial data (0000), such as a method and apparatus for receiving asynchronous serial data (0002), a method and apparatus for receiving synchronous serial data (0003), and the like, including a computer A method and apparatus for receiving serial data of a system memory interface, an external bus interface, an external device interface, a wired network interface, a fiber optic network interface, and the like. In particular, the present invention relates to a method and apparatus for asynchronously receiving (0001) high speed serial data (0000), based on which a low cost, high performance, single or multi-channel, single-ended drive or A communication interface device for synchronous serial data or asynchronous serial data such as differential driving generally meets the demand for high-speed data transmission.
背景技术Background technique
串行数据通信是降低数据传输成本的基本手段之一,早期的串行数据通信以低速的异步通信(0004)为主,传送时钟和接收时钟的频率差的影响较小,为提高数据传输速率,同时传送时钟和数据的同步通信(0005)被采用,提高了数据传输速率但增加了成本,也难于满足更高速率的数据传输需求,时钟数据恢复(Clock Data Recovery)技术使同步通信(0005)不再需要同步传输时钟,该方法在数据传送端将时钟嵌入到同步串行数据(0003)中,在接收端将时钟从同步串行数据(0003)中恢复出来并用其解调出串行数据(0000),使数据传输速率更高,也可以传输的更远,但需要持续传送数据保持时钟数据恢复电路处于工作状态,采用二倍数据传输速率采样的多比特模数转换器也是接收串行数据(0000)的方法之一。Serial data communication is one of the basic means to reduce the cost of data transmission. Early serial data communication is mainly based on low-speed asynchronous communication (0004), and the influence of the frequency difference between the transmission clock and the receiving clock is small, in order to increase the data transmission rate. Simultaneous transmission of clock and data synchronization (0005) is adopted, which increases the data transmission rate but increases the cost, and is difficult to meet the higher-speed data transmission requirements. Clock Data Recovery technology enables synchronous communication (0005) The synchronous transfer clock is no longer needed. This method embeds the clock into the synchronous serial data (0003) at the data transfer end, recovers the clock from the synchronous serial data (0003) at the receiving end and demodulates the serial with it. The data (0000) makes the data transmission rate higher and can be transmitted further, but it needs to continuously transmit data to keep the clock data recovery circuit in operation. The multi-bit analog-to-digital converter sampling at the double data transmission rate is also the receiving string. One of the methods of row data (0000).
本发明提供一种异步接收(0001)高速串行数据(0000)的方法及装置,既可以接收异步串行数据(0002),也可以接收同步串行数据(0003)。The present invention provides a method and apparatus for asynchronously receiving (0001) high speed serial data (0000), which can receive either asynchronous serial data (0002) or synchronous serial data (0003).
附图说明DRAWINGS
以下首先对本发明说明书的附图进行简单的介绍,然后再结合这些附图对本发明的各个实施范例进行介绍,说明本发明的原理和特征。BRIEF DESCRIPTION OF THE DRAWINGS The present invention will be described in detail with reference to the embodiments of the present invention,
图1为串行数据(0000)传送和接收的时序示意图和按照本发明的方法实现的优选实例接收时钟(0310)和接收数据(0314)的多级延时产生中间时钟(0340)和中间数据(0344)的方法及装置示意图。1 is a timing diagram of serial data (0000) transmission and reception and a multi-stage delay generation intermediate clock (0340) and intermediate data of a preferred example receive clock (0310) and receive data (0314) implemented in accordance with the method of the present invention. Schematic diagram of the method and apparatus of (0344).
图2为按照本发明的方法实现的优选实例基于下降展宽(0440)、上升展宽(0442)、中间数据(0344)产生下降延迟(0450)、上升延迟(0452)、数据延迟(0454)的方法及装置示意图。2 is a diagram showing a preferred embodiment of the method according to the present invention based on a method of falling stretch (0440), rising stretch (0442), intermediate data (0344) generating a falling delay (0450), rising delay (0452), and data delay (0454). And device schematic.
图3为按照本发明的方法实现的优选实例用采样移位寄存器(0500)正相和负相中间时钟(0340)采样下降延迟(0450)、上升延迟(0452)、数据延迟(0454)的方法及装置示意图。3 is a block diagram of a method for sampling a falling delay (0450), a rising delay (0452), and a data delay (0454) using a sample shift register (0500) positive and negative phase intermediate clock (0340) in accordance with a preferred embodiment of the method of the present invention. And device schematic.
图4为按照本发明的方法实现的优选实例基于接收数据(0314)产生下降展宽 (0440)、上升展宽(0442)、匹配数据(0444)的方法及装置示意图。4 is a preferred embodiment of a method implemented in accordance with the present invention to generate a falling spread based on received data (0314) (0440), method and apparatus for ascending the broadening (0442) and matching data (0444).
图5为按照本发明的方法实现的优选实例正相和负相中间时钟(0340)采样信号翻转(0120)输出的翻转时序(0602)判别的方法及装置示意图。5 is a schematic diagram of a method and apparatus for determining the flip timing (0602) of a preferred example positive and negative phase intermediate clock (0340) sampled signal flip (0120) output implemented in accordance with the method of the present invention.
图6为按照本发明的方法实现的优选实例正相和负相中间时钟(0340)采样信号翻转(0120)输出的翻转时序(0602)判别的信号时序示意图。6 is a timing diagram of signal timing for a preferred example positive and negative phase intermediate clock (0340) sampled signal flip (0120) output flip timing (0602) discrimination implemented in accordance with the method of the present invention.
图7为按照本发明的方法实现的优选实例中间时钟(0340)正顺序采样(0530)的时间窗口(0700)确定方法及信号时序示意图。7 is a timing window (0700) determination method and signal timing diagram of a preferred example intermediate clock (0340) positive sequence sampling (0530) implemented in accordance with the method of the present invention.
图8为按照本发明的方法实现的优选实例中间时钟(0340)逆顺序采样(0532)的时间窗口(0700)确定方法及信号时序示意图。8 is a timing window (0700) determination method and signal timing diagram of a preferred example intermediate clock (0340) inverse sequential sampling (0532) implemented in accordance with the method of the present invention.
图9为按照本发明的方法实现的优选实例一种通用的计算机中央处理器的示意图。9 is a schematic diagram of a general purpose computer central processing unit in accordance with a preferred embodiment of the method of the present invention.
图10为按照本发明的方法实现的优选实例一种现场可编程门阵列芯片的示意图。Figure 10 is a schematic illustration of a field programmable gate array chip in accordance with a preferred embodiment of the method of the present invention.
图11为按照本发明的方法实现的优选实例一种串行数据接口存储器芯片的示意图。11 is a schematic diagram of a serial data interface memory chip in accordance with a preferred embodiment of the method of the present invention.
图12为按照本发明的方法实现的优选实例一种DRAM/SDRAM或SRAM或FLASH等存储器及模块控制器的示意图。12 is a schematic diagram of a preferred embodiment of a DRAM/SDRAM or SRAM or FLASH memory and module controller implemented in accordance with the method of the present invention.
图13为按照本发明的方法实现的优选实例基于USRT或USRT物理层的计算机外部设备的接口控制器的示意图。13 is a schematic diagram of an interface controller of a computer external device based on a USRT or USRT physical layer, in accordance with a preferred embodiment of the method of the present invention.
图14为按照本发明的方法实现的优选实例采用USRT或UART物理层的数据传送中继装置的示意图。Figure 14 is a schematic illustration of a preferred embodiment of a data transfer relay device employing a USRT or UART physical layer implemented in accordance with the method of the present invention.
图15为按照本发明的方法实现的优选实例基于USRT或UART物理层协议的系统域网络交换机的示意图。15 is a schematic diagram of a preferred embodiment of a system domain network switch based on a USRT or UART physical layer protocol implemented in accordance with the method of the present invention.
图16为按照本发明的方法实现的优选实例基于USRT或UART物理层协议的计算机网络交换机和/或路由器的示意图。16 is a schematic diagram of a computer network switch and/or router based on a USRT or UART physical layer protocol, in accordance with a preferred embodiment of the method of the present invention.
图17为按照本发明的方法实现的优选实例基于USRT或UART物理层协议的通信网络交换机和/或路由器的示意图。17 is a schematic diagram of a preferred example of a communication network switch and/or router based on a USRT or UART physical layer protocol implemented in accordance with the method of the present invention.
参考文献references
[1].《一种普适的串行数据的接收方法及装置》,中国发明专利申请,申请号201410313411.6,申请日期2014年7月3日。[1]. "A universal method and device for receiving serial data", Chinese invention patent application, application number 201410313411.6, application date July 3, 2014.
具体实施方式detailed description
一、描述约定First, the description of the agreement
在本发明方法的说明中,有以下约定:In the description of the method of the invention, there are the following conventions:
1、用L和H分别表示数字信号的低电平和高电平;1. Use L and H to indicate the low level and high level of the digital signal, respectively;
2、用x:y表示从x至y的全部整数值; 2. Use x:y to represent all integer values from x to y;
3、用Name(P/N)表示一个名称为Name的数字信号,用Name(N/P)表示Name(P/N)的反相信号,也用NameP和NameN分别表示正相和负相信号,有时仅用Name表示该信号,信号既可以是单端信号(0100),也可以是双端差分信号(0110),在说明中不加区分;3. Use Name (P/N) to represent a digital signal with the name Name, Name (N/P) for the inverted signal of Name (P/N), and NameP and NameN for the positive and negative phase signals, respectively. Sometimes, the signal is only represented by Name, and the signal can be either a single-ended signal (0100) or a double-ended differential signal (0110), which is not distinguished in the description;
4、信号翻转(0120,transition)是指一个数字信号从低电平L到高电平H或从高电平H到低电平L的快速变化,从高电平H到低电平L的信号翻转是下降翻转(0130,fall transition),从低电平L到高电平H的信号翻转是上升翻转(0140,rise transition);4. Signal flipping (0120, transition) refers to a rapid change of a digital signal from a low level L to a high level H or from a high level H to a low level L, from a high level H to a low level L The signal flip is a fall flip (0130, fall transition), and the signal flip from a low level L to a high level H is a rise flip (0140, rise transition);
5、信号宽度(0150)是指一个数字信号处于低电平L或处于高电平H的持续时间;5. The signal width (0150) refers to the duration of a digital signal at a low level L or at a high level H;
6、信号周期(0160)是指一个数字信号的相邻两次上升翻转(0130)或相邻两次下降翻转(0140)之间的时间间隔;6. The signal period (0160) refers to the time interval between two adjacent rising flips (0130) of a digital signal or two adjacent falling flips (0140);
7、在每个段落的起始用黑体字(标号)表示一个特定含义的名称,随后在同一段落中只用黑体字表示该特定含义的名称。7. The name of a particular meaning is indicated by a boldface (label) at the beginning of each paragraph, and then the name of that particular meaning is indicated in bold in the same paragraph.
二、异步传送Second, asynchronous transfer
参考文献[1]《具体实施方式》之二“异步串行数据的传送方法及装置”中描述了一种异步串行数据(0002)的传送方法,在这里复述并略作修改如下:A method for transmitting asynchronous serial data (0002) is described in the reference [1] "Detailed Description of the Invention", "Method and Apparatus for Asynchronous Serial Data Transmission", which is repeated here and modified as follows:
一个传输通道(0200)以传输帧(0210)为单位传送数据,传输帧由1个起始比特(0220)开始,随后是数量可变的B个内容比特(0222),由1个停止比特(0224)结束,相邻的传输帧之间可以插入可以是零的任意数量的空闲比特(0226),起始比特和停止比特的有效信号电平相异,空闲比特和停止比特的有效信号电平相同,如起始比特是高电平有效,则停止比特和空闲比特是低电平有效,如起始比特是低电平有效,则停止比特和空闲比特是高电平有效,传输通道的信号可以是单端信号(0100)或差分信号(0110)。A transmission channel (0200) transmits data in units of transmission frames (0210) starting with 1 start bit (0220) followed by a variable number of B content bits (0222), consisting of 1 stop bit ( 0224) End, any number of idle bits (0226), which may be zero, may be inserted between adjacent transmission frames, the effective signal levels of the start bit and the stop bit are different, and the effective signal levels of the idle bit and the stop bit are Similarly, if the start bit is active high, the stop bit and the idle bit are active low. If the start bit is active low, the stop bit and the idle bit are active high, and the signal of the transmission channel is valid. It can be a single-ended signal (0100) or a differential signal (0110).
传输帧(2010)中B个内容比特(0222)的内涵任意,可以是标记比特(0230)、数据比特(0232)、命令比特(0234)、校验比特(0236)、对齐比特(0238)、交换比特(0240)等等多种,例如:定义1个比特的标记比特,则传输帧(0210)被分为没有命令比特的数据帧(0212)和没有数据比特的命令帧(0214),其它种类内容比特的比特数可以为0或1或多个,内容比特可以是原始的数据或命令,也可以是对原始的数据或命令进行加扰、加密、编码等等处理的结果,校验比特使数据接收端可以实时发现传输错误,对齐比特是周期性循环加一变化的对齐序号(0250),被数据接收端用来将对齐组装组合帧(0216),交换比特是特定范围内的目标地址(0252),使交换机可以简捷的实现交换传输(0260),目标地址可以被细分为多个分级地址(0262),适用于多级交换(0264)传输。The content of the B content bits (0222) in the transmission frame (2010) is arbitrary, and may be a flag bit (0230), a data bit (0232), a command bit (0234), a parity bit (0236), an alignment bit (0238), Switching bits (0240) and the like, for example, defining a 1-bit flag bit, the transmission frame (0210) is divided into a data frame without a command bit (0212) and a command frame without a data bit (0214), and others. The number of bits of the type content bit may be 0 or 1 or more, the content bit may be original data or a command, or may be a result of scrambling, encrypting, encoding, etc. processing the original data or command, and verifying the bit The data receiving end can discover the transmission error in real time, the alignment bit is a cyclical cycle plus a change alignment number (0250), and the data receiving end is used to align the assembled combined frame (0216), and the exchange bit is a target address within a specific range. (0252), enabling the switch to implement switched transport (0260) in a simple manner, and the destination address can be subdivided into multiple hierarchical addresses (0262) for multi-level switching (0264) transmission.
多个传输通道(0200)可以组成一个组合通道(0202),组合通道的多个传输通道同时传送的传输帧(0210)到达接收端的时间有延迟差异(0254),因此需要对齐措施(0256)保证组合通道的全部传输帧可以正确的组合成一个组合帧(0216),本发明的几种可供选择的优选对齐措施如下: Multiple transmission channels (0200) can form a combined channel (0202), and the transmission frame (0210) transmitted simultaneously by multiple transmission channels of the combined channel has a delay difference (0254), so alignment measures (0256) are required. The entire transmission frames of the combined channel can be correctly combined into one combined frame (0216). Several alternative preferred alignment measures of the present invention are as follows:
1、在数据传送端为组合通道(0202)的每个传输通道(0200)设置一个传送延迟(0256),以传送时钟的周期或半周期为时间单位控制及调整组合通道内每个传输通道的传送延迟,使延迟差异(0254)尽可能小,数据接收端需测量延迟差异并告知数据传送方,数据接收端还需采取措施确保延迟差异不影响组合包的正确组合。1. Set a transmission delay (0256) for each transmission channel (0200) of the combined channel (0202) at the data transmission end to control and adjust each transmission channel in the combined channel for the period or half period of the transmission clock. The transmission delay makes the delay difference (0254) as small as possible. The data receiver needs to measure the delay difference and inform the data transmitter. The data receiver needs to take measures to ensure that the delay difference does not affect the correct combination of the combined packets.
2、以确定或不确定的时间间隔,数据传送端传送一个包含对齐比特(0238)的对齐命令帧(0214),数据接收端接收到对齐命令帧后根据对齐比特重新对齐数据缓冲区中的传输帧(2010)。2. At a determined or indeterminate time interval, the data transmitting end transmits an alignment command frame (0214) containing alignment bits (0238), and the data receiving end realigns the transmission in the data buffer according to the alignment bits after receiving the alignment command frame. Frame (2010).
项1的方法适用于组合通道(0202)的传输通道(0200)集中在单个芯片上的情况,项2的方法适用于组合通道的传输通道分布在多个芯片上的情况。The method of item 1 is applicable to the case where the transmission channel (0200) of the combined channel (0202) is concentrated on a single chip, and the method of item 2 is applicable to the case where the transmission channel of the combined channel is distributed over a plurality of chips.
在连续传送数据时每隔一段时间,在传输帧(0210)之间插入一定数量的空闲比特(0226),执行中继传送的设备,如中继器(0270,repeater)、交换机(0272,switch)等,可以通过增加或减少空闲比特的数量,以适应数据来源(0280)的传送时钟和数据目标(0282)接收时钟的频率差别,使时钟频率较低的接收设备的数据缓冲区免于溢出。At regular intervals when data is continuously transmitted, a certain number of idle bits (0226) are inserted between the transmission frames (0210), and devices that perform relay transmission, such as repeaters (0270, repeater), switches (0272, switch) The data buffer of the receiving device with a lower clock frequency can be prevented from overflowing by increasing or decreasing the number of idle bits to accommodate the difference between the transmit clock of the data source (0280) and the receive clock of the data target (0282). .
三、信号延迟Third, the signal delay
图1的上部是串行数据(0000)信号的时序示意图,为简捷说明,图中的串行数据每个传送周期(0302)Ttx翻转一次,即低电平L和高电平H被交替传送,传送数据(0304)TD(P/N)相对于传送时钟(0300)TK(P/N)的延迟没有标示,接收数据(0314)RD(P/N)相对于TK(P/N)的延迟也没有标示。由于传输和接收过程中的畸变(Distortion),接收数据的两次翻转之间的时间不再是Ttx的整数倍,以Ttx作为参考,有最大畸变时间(0320)td,Ttx-td*2即测量仪器检测信号显示的眼图(Eye Diagram Pattern)的张开时间。接收时钟(0310)是RK(P/N),采样触发器(0330,Flip-Flop)的建立时间(0332,set time)是ts、保持时间(0334,hold time)是th,则接收数据被正确接收的条件是接收时钟(0310)的接收周期(0312)Trx与Ttx相同且总是在位于图1中的sample窗口区间内采样。The upper part of Fig. 1 is a timing diagram of the serial data (0000) signal. For the sake of simplicity, the serial data in the figure is flipped once every transmission period (0302) Ttx, that is, the low level L and the high level H are alternately transmitted. The transmission data (0304) TD (P/N) is not indicated with respect to the delay of the transmission clock (0300) TK (P/N), and the reception data (0314) RD (P/N) is relative to the TK (P/N). The delay is also not indicated. Due to distortion during transmission and reception, the time between two inversions of the received data is no longer an integer multiple of Ttx. With Ttx as a reference, there is a maximum distortion time (0320) td, Ttx-td*2 The opening time of the eye diagram (Eye Diagram Pattern) displayed by the measuring instrument. The receiving clock (0310) is RK (P/N), the setup time (0332, set time) of the sampling flip-flop (0330, Flip-Flop) is ts, and the hold time (0334, hold time) is th, then the received data is received. The correct reception condition is that the reception period (0312) of the reception clock (0310) Trx is the same as Ttx and is always sampled within the sample window interval located in FIG.
图1的中部是在接收端用采样触发器(0330)采样串行数据(0000)的时序示意图,为简捷说明,图中的接收数据(0314)SI(P/N)每2个传送周期(0302)翻转一次,即交替传送2个低电平L和2个高电平H,图中只给出了不稳定采样的情况,即接收数据SI(P/N)的翻转处于相对于接收时钟(0310)CK(P/N)采样翻转超前建立时间(0332)ts和滞后保持时间(0334)th的区间内。接收时钟CK(P/N)的接收周期(0112)是Trx与Ttx近似相等,由于不稳定采样,采样触发器(0330)的输出RUD(P/N)不是正确采样的结果,约持续2个传送周期(0302)Ttx的持续电平被不稳定的采样成1个或2个或3个接收周期Trx的持续电平,这意味着约1个传送周期Ttx的持续电平可能没有采样输出,RDD(P/N)是同时用CK(N/P)采样的采样触发器输出,由于CK(N/P)的采样翻转在SI(P/N)的稳定区域内,RDD(P/N)是对SI(P/N)的正确采样结果。The middle part of Figure 1 is a timing diagram of sampling serial data (0000) with a sampling flip-flop (0330) at the receiving end. For the sake of simplicity, the received data (0314) SI (P/N) in the figure is transmitted every 2 transmission cycles ( 0302) Flip once, that is, alternately transmit two low-level L and two high-level H. Only the case of unstable sampling is given in the figure, that is, the flipping of the received data SI (P/N) is relative to the receiving clock. (0310) The CK (P/N) sampling flip is within the interval of the advance setup time (0332) ts and the hysteresis hold time (0334)th. The receiving period (0112) of the receiving clock CK (P/N) is approximately equal to Trx and Ttx. Due to the unstable sampling, the output RUD (P/N) of the sampling flip-flop (0330) is not the result of correct sampling, and lasts for about 2 The continuous level of Ttx of the transmission period (0302) is unstablely sampled into a continuous level of one or two or three reception periods Trx, which means that the continuous level of about one transmission period Ttx may have no sampling output, RDD(P/N) is the sampling trigger output that is sampled simultaneously with CK(N/P). Since the sampling flip of CK(N/P) is in the stable region of SI(P/N), RDD(P/N) It is the correct sampling result for SI (P/N).
图1的下部是本发明的方法及装置中基于接收时钟(0310)CK(P/N)和接收数 据(0314)SI(P/N)分别产生中间时钟(0340)DK<0:N-1>和中间数据(0344)DI<0:N-1>的示意图,延时级数(0342)N是产生中间时钟和中间数据的延时部件的级数。The lower part of FIG. 1 is based on the reception clock (0310) CK (P/N) and the number of receptions in the method and apparatus of the present invention. According to (0314) SI (P/N), the intermediate clock (0340) DK<0:N-1> and the intermediate data (0344)DI<0:N-1> are respectively generated, and the delay series (0342)N Is the number of stages of the delay component that produces the intermediate clock and intermediate data.
接收时钟(0310)CK(P/N)经N级延迟部件dK<0:N-1>,得到N相中间时钟(0340)DK(P/N)<0:N-1>,dK<N>使dK<N-1>的负载与前级延迟部件的负载相同,dK<0:N-1>也表示对应延迟部件的延迟时间,以dKa表示dK<0:N-1>的时钟平均延迟(0346)值,dK<0:N-1>均近似等于dKa,以中间时钟时差(0347)sKa表示DK<N>和CK的时差,则sKa≌(N+1)*dKa,用模数转换器测量sKa可以得到dKa的近似值。The receiving clock (0310) CK(P/N) is obtained by the N-stage delay unit dK<0:N-1>, and the N-phase intermediate clock (0340) DK(P/N)<0:N-1>, dK<N is obtained. > Make the load of dK<N-1> the same as the load of the previous stage delay component, dK<0:N-1> also indicates the delay time of the corresponding delay component, and the clock average of dK<0:N-1> is represented by dKa The delay (0346) value, dK<0:N-1> are approximately equal to dKa, and the time difference of DK<N> and CK is represented by the intermediate clock time difference (0347) sKa, then sKa≌(N+1)*dKa, using the mode The digital converter measures the sKa to obtain an approximation of dKa.
接收数据(0314)SI(P/N)经N级延迟部件dM<0:N-1>,得到N相中间数据(0344)DI(P/N)<0:N-1>,dM<N>使dM<N-1>的负载与前级延迟部件的负载相同,dM<0:N-1>也表示对应延迟部件的延迟时间,以dMa表示dM<0:N-1>的数据平均延迟(0348)值,dM<0:N-1>均近似等于dMa,以中间数据时差(0349)sMa表示DI<N>和SI的时差,则sMa≌(N+1)*dMa,用模数转换器测量sMa可以得到dMa的近似值。The received data (0314) SI(P/N) is obtained by the N-stage delay unit dM<0:N-1>, and the N-phase intermediate data (0344)DI(P/N)<0:N-1>, dM<N is obtained. > Make the load of dM<N-1> the same as the load of the previous stage delay component, dM<0:N-1> also indicates the delay time of the corresponding delay component, and dMa represents the average data of dM<0:N-1> The delay (0348) value, dM<0:N-1> are approximately equal to dMa, and the time difference of DI<N> and SI is represented by the intermediate data time difference (0349) sMa, then sMa≌(N+1)*dMa, using the mode The digital converter measures sMa to get an approximation of dMa.
dK<0:N-1>和dM<0:N-1>的延迟值均大于或等于0,时钟平均延迟(0346)dKa和数据平均延迟(0348)dMa均可以为0但不能同时为0,延迟值可以是固定值或可变值。The delay values of dK<0:N-1> and dM<0:N-1> are both greater than or equal to 0, and the clock average delay (0346)dKa and the data average delay (0348)dMa can both be 0 but not both. The delay value can be a fixed value or a variable value.
dK<0:N>和dM<0:N>的延迟可以由布线延迟、延迟线延迟、级联电路延迟等优选方法产生,延迟dK<0:N>还可以由延时锁定环(Delay Lock Loop)、级联锁存器(Latch)、级联触发器(Flip Flop)等优选方法产生。一般情况下本地时钟的频率与接收时钟(0310)的频率相同,如用级联锁存器(Latch)或级联触发器(Flip Flop)产生接收时钟的延时,则本地时钟的频率须数倍于接收时钟的频率。The delay of dK<0:N> and dM<0:N> may be generated by a preferred method such as wiring delay, delay line delay, cascade circuit delay, etc. Delay dK<0:N> may also be delayed lock loop (Delay Lock) A preferred method such as Loop), cascade latch (Latch), cascade flip-flop (Flip Flop) or the like is generated. In general, the frequency of the local clock is the same as the frequency of the receiving clock (0310). If the delay of the receiving clock is generated by a cascade latch (Latch) or a cascade flip (Flip Flop), the frequency of the local clock must be Times the frequency of the receiving clock.
四、脉冲展宽Fourth, pulse broadening
由于接收时钟(0310)与接收数据(0314)的相位差随机变化,当接收数据在低电平L或高电平H持续的时间只有一个发射周期(0302)时,不能保证采样触发器(0330)可以采集到接收数据的翻转,图4和图2给出了本发明的一个优选实例方法及装置,基于接收数据产生至少约两个传送周期(0302)宽度的展宽脉冲(0490),确保可以采集到每个接收数据的翻转。Since the phase difference between the receiving clock (0310) and the received data (0314) varies randomly, when the received data is at a low level L or a high level H for only one transmission period (0302), the sampling trigger cannot be guaranteed (0330). A flipping of the received data can be acquired. Figures 4 and 2 illustrate a preferred example method and apparatus of the present invention that produces a stretched pulse (0490) of at least about two transmission cycles (0302) based on the received data, ensuring that A rollover of each received data is collected.
在图4中,采样锁存器(0400,latch)0410/0:1构成一个环形二分频器,将接收数据(0314)SI(P/N)二分频展宽为展宽脉冲(0490),采样锁存器0410/0的输出是下降展宽(0440)SD(P/N),其翻转对应SI(P/N)的下降翻转(0130),采样锁存器0310/1的输出是上升展宽(0442)SU(P/N),其翻转对应SI(P/N)的上升翻转(0140),SD(P/N)和SU(P/N)翻转相对于SI(P/N)翻转的延迟时间是采样锁存器的使能延时(0402)tpd时间,采样匹配器(0420,match)0430的输出是匹配数据(0444)SM(P/N),其翻转与SI(P/N)的翻转相同但延迟采样锁存器的使能延时(0402)tpd时间,其作用是在数据平均延迟(0348)dMa为0时进行延迟匹配,使SM(P/N)可以供后续的部件采样接收数据。 In FIG. 4, the sampling latch (0400, latch) 0410/0:1 constitutes a ring-shaped two-divider, and the received data (0314) SI (P/N) is divided by a spread-width pulse (0490). The output of the sampling latch 0410/0 is the falling spread (0440) SD (P/N), its flip corresponds to the falling flip of SI (P/N) (0130), and the output of the sampling latch 0310/1 is the rising spread. (0442) SU(P/N) whose flip corresponds to the rising flip of SI(P/N) (0140), and the SD (P/N) and SU(P/N) flips are inverted relative to SI(P/N) The delay time is the enable delay (0402) tpd time of the sampling latch. The output of the sample matcher (0420, match) 0430 is the matching data (0444) SM(P/N), which is flipped with SI (P/N). The flipping is the same but delays the sampling latch's enable delay (0402) tpd time, which is used to delay match when the data average delay (0348)dMa is 0, so that SM(P/N) can be used for subsequent The component samples the received data.
图2中,展宽脉冲(0490)经由采样锁存器(0400)0460/0:N和0470/0:N成为展宽延迟(0492),采样锁存器(0400)0460/0:N的输出是下降延迟(0450)DD(P/N)<0:N>,其翻转分别对应DI(P/N)<0:N>的下降翻转(0130)但延迟使能延时(0302)tpd时间,采样锁存器(0400)0470/0:N的输出是上升延迟(0452)DU(P/N)<0:N>,其翻转分别对应DI(P/N)<0:N>的上升翻转(0140)但延迟使能延时(0302)tpd时间,采样匹配器(0420)0480/0:N-1的输出是数据延迟(0454)DM(P/N)<0:N-1>,其翻转与DI(P/N)<0:N-1>的翻转相同但延迟使能延时(0302)tpd时间,其作用是在数据平均延迟(0348)dMa不为0时进行延迟匹配,DM(P/N)<0:N-1>供后续的部件采样接收数据(0314)。In Figure 2, the stretched pulse (0490) becomes the stretch delay (0492) via the sample latches (0400) 0460/0:N and 0470/0:N, and the output of the sample latch (0400) 0460/0:N is Falling delay (0450) DD(P/N)<0:N>, which flips respectively to the falling flip (0130) of DI(P/N)<0:N> but the delay enable delay (0302) tpd time, The output of the sampling latch (0400) 0470/0:N is the rising delay (0452) DU(P/N)<0:N>, and its flipping corresponds to the rising flip of DI(P/N)<0:N> respectively. (0140) but the delay enable delay (0302) tpd time, the output of the sample matcher (0420) 0480/0:N-1 is the data delay (0454) DM(P/N)<0:N-1>, The flip is the same as the flip of DI(P/N)<0:N-1> but the delay enable delay (0302) tpd time, the effect is to perform delay matching when the data average delay (0348)dMa is not 0. DM(P/N)<0:N-1> is used for subsequent component sampling to receive data (0314).
五、信号采样Fifth, signal sampling
图3是用采样触发器(0330)构成的采样移位寄存器(0500),分别采样下降延迟(0450)DD(P/N)、上升延迟(0452)DU(P/N)、数据延迟(0454)DM(P/N)的方法及装置示意图,采样触发器0510/0:M-1构成的采样移位寄存器,用中间时钟(0340)的下降翻转(0130)采样,采样触发器0520/0:M-1构成的采样移位寄存器,用中间时钟(0340)的上升翻转(0140)采样,M是采样级数(0502),即采样移位寄存器的级数,采样移位寄存器是串入并出移位寄存器。Figure 3 is a sample shift register (0500) composed of a sampling flip-flop (0330), which samples the falling delay (0450) DD (P/N), rising delay (0452) DU (P/N), and data delay (0454). DM (P / N) method and device schematic, sampling flip-flop 0510 / 0: M-1 sample shift register, with the intermediate clock (0340) down flip (0130) sampling, sampling trigger 0520 / 0 The sampling shift register consisting of M-1 is sampled by the rising flip (0140) of the intermediate clock (0340), M is the sampling level (0502), that is, the number of stages of the sampling shift register, and the sampling shift register is serialized. And shift the register.
图3中信号标识名中的小写字符x是D或U或M,分别表示被采样的信号是下降延迟(0450)DD(P/N)<n>、上升延迟(0452)DU(P/N)<n>、数据延迟(0454)DM(P/N)<n>等。The lowercase character x in the signal identification name in Fig. 3 is D or U or M, respectively indicating that the sampled signal is a falling delay (0450) DD(P/N)<n>, a rising delay (0452) DU (P/N ) <n>, data delay (0454) DM (P/N) <n>, and the like.
图3中信号标识名中的<n>表示被采样信号的序号,其变化范围及次序是0至N-1,当数据平均延迟(0348)dMa为0时,下降延迟(0450)DD(P/N)<0:N-1>均为下降展宽(0440)SD(P/N)、上升延迟(0452)DU(P/N)<0:N-1>均为上升展宽(0442)SU(P/N)、数据延迟(0454)DM(P/N)<0:N-1>均为匹配数据(0444)SM(P/N)等,这里的N为延时级数(0342)。The <n> in the signal identification name in Fig. 3 indicates the serial number of the sampled signal, and its range and order of change are 0 to N-1. When the data average delay (0348)dMa is 0, the falling delay (0450) DD (P) /N)<0:N-1> are both the falling spread (0440) SD (P/N), the rising delay (0452) DU(P/N)<0:N-1> are the rising stretch (0442) SU (P/N), data delay (0454) DM(P/N)<0:N-1> are all matching data (0444)SM(P/N), etc., where N is the delay series (0342) .
图3中信号标识名中的<k>表示中间时钟(0340)的序号,其变化范围是0至N-1,其变化次序可以是0至N-1或N-1至0,当时钟平均延迟(0346)dKa为0时,中间时钟DK(P/N)<0:N-1>均为CK(P/N),这里的N为延时级数(0342)。如k的变化次序是0至N-1,则是正顺序(Foreward Sequence)采样(0530),如k的变化次序是N-1至0,则是逆顺序(Backward Sequence)采样(0532),正顺序采样是指中间时钟序号和被采样信号序号的变化次序相同,逆顺序采样是指中间时钟序号和被采样信号序号的变化次序相反。The <k> in the signal identification name in Fig. 3 indicates the serial number of the intermediate clock (0340), and its variation range is 0 to N-1, and the order of change may be 0 to N-1 or N-1 to 0, when the clock averages When the delay (0346) dKa is 0, the intermediate clock DK(P/N)<0:N-1> is CK(P/N), where N is the delay series (0342). If the order of change of k is 0 to N-1, it is the Foreward Sequence sample (0530). If the order of change of k is N-1 to 0, it is the Backward Sequence sample (0532). Sequential sampling means that the intermediate clock number and the sequence of the sampled signals are changed in the same order. The reverse order sampling means that the intermediate clock number and the sequence of the sampled signals are reversed.
采样移位寄存器(0500)0510/0:M-1和0520/0:M-1的输出分别是负沿输出(0530)dQx<0:N-1,0:M-1>和正沿输出(0532)uQx<0:N-1,0:M-1>,N是延时级数(0342),M是采样级数(0502),小写字符x是D或U或M,分别表示对下降延迟(0450)DD(P/N)<0:N-1>的采样输出负沿下降(0540)dQD<0:N-1,0:M-1>和正沿下降(0542)uQD<0:N-1,0:M-1>、对上升延迟(0452)DU(P/N)<0:N-1>的采样输出负沿上升(0550)dQU<0:N-1,0:M-1>和正沿上升(0552)uQU<0:N-1,0:M-1>、对数据延迟(0454)DM(P/N)<0:N-1>的采样输出负沿数据(0560)dQM<0:N-1,0:M-1> 和正沿数据(0562)uQM<0:N-1,0:M-1>。The output of the sample shift register (0500) 0510/0:M-1 and 0520/0:M-1 is the negative edge output (0530) dQx<0:N-1,0:M-1> and the positive edge output ( 0532) uQx<0:N-1,0:M-1>, N is the delay series (0342), M is the sampling series (0502), lowercase character x is D or U or M, respectively representing the falling Delay (0450) DD(P/N)<0:N-1> sample output negative edge falling (0540) dQD<0:N-1,0:M-1> and positive edge falling (0542)uQD<0: N-1,0:M-1>, the rising edge of the sampling output of the rising delay (0452) DU(P/N)<0:N-1> (0550) dQU<0:N-1,0:M -1> and positive edge rising (0552) uQU<0:N-1,0:M-1>, data delay (0454) DM(P/N)<0:N-1> sampling output negative edge data ( 0560) dQM<0: N-1, 0: M-1> And positive edge data (0562) uQM<0:N-1,0:M-1>.
在以下的说明中,统称负沿下降(0540)、正沿下降(0542)、负沿上升(0550)、正沿上升(0552)为展宽输出(0570),统称负沿下降(0540)和负沿上升(0550)为负沿展宽(0572)、统称正沿下降(0542)和正沿上升(0552)为正沿展宽(0574),统称负沿数据(0560)和正沿数据(0562)为数据输出(0580)。In the following description, collectively referred to as negative edge falling (0540), positive edge falling (0542), negative edge rising (0550), positive edge rising (0552) is the broadened output (0570), collectively referred to as negative edge falling (0540) and negative. The rising edge (0550) is the negative edge broadening (0572), the collective positive edge falling (0542) and the positive edge rising (0552) are the positive edge broadening (0574), collectively referred to as negative edge data (0560) and positive edge data (0562) for data output. (0580).
六、时间排序Six, time sorting
用中间时钟(0340)的下降翻转(0130)和上升翻转(0140)分别异步采样一个信号翻转(0120),负沿输出(0530)和正沿输出(0532)的翻转时间(0600)相差半个中间时钟的周期但翻转时序(0602)随机变化,图5是本发明的确定每次翻转时序的优选方法及装置示意图,负沿输出(0530)和正沿输出(0532)用采样触发器(0330)0610:0613是相互采样,0610是正沿输出uQx<n,t>的下降沿采样负沿输出dQx<n,t>的装置,其输出是dFx<n,t>,0611是正沿输出uQx<n,t>的上升沿采样负沿输出dQx<n,t>的装置,其输出是dRx<n,t>,0612是负沿输出dQx<n,t>的下降沿采样正沿输出uQx<n,t>的装置,其输出是uFx<n,t>,0613是负沿输出dQx<n,t>的上升沿采样正沿输出uQx<n,t>的装置,其输出是uRx<n,t>。A signal flip (0120) is asynchronously sampled by the falling flip (0130) and the rising flip (0140) of the intermediate clock (0340), and the flip time (0600) of the negative edge output (0530) and the positive edge output (0532) is halfway. The cycle of the clock but the flip timing (0602) varies randomly. FIG. 5 is a schematic diagram of a preferred method and apparatus for determining the timing of each flip of the present invention. The negative edge output (0530) and the positive edge output (0532) use a sampling trigger (0330) 0610. :0613 is mutually sampled, 0610 is the device that outputs dQx<n,t> on the falling edge of the positive edge of the output uQx<n,t>, and its output is dFx<n,t>, and 0611 is the positive edge output uQx<n, The rising edge of the t> sampling negative edge output dQx<n, t> device, its output is dRx<n, t>, 0612 is the negative edge output dQx<n, t> falling edge sampling positive edge output uQx<n, The device of t>, whose output is uFx<n,t>, is the device with negative edge output dQx<n, t> rising edge sampling positive edge output uQx<n,t>, the output of which is uRx<n,t >.
表1、信号翻转的采样时序状态Table 1, sampling timing status of signal flipping
Figure PCTCN2015093138-appb-000001
Figure PCTCN2015093138-appb-000001
图6是图5中方法及装置的信号时序示意图,在图6中,浅灰色区域是判定Mx<n>下降翻转(0130)时判定正相和负相中间时钟(0340)采样输出翻转时序(0602)的时间区域,深灰色区域是判定Mx<n>上升翻转(0140)时判定正相和负相中间时钟(0340)采样输出翻转时序(0602)的时间区域,表1是判别状态列表,其中的L表示低电平、H表示高电平、x表示任意电平。6 is a schematic diagram of signal timing of the method and apparatus of FIG. 5. In FIG. 6, the light gray area determines the sampling output flip timing of the positive and negative phase intermediate clocks (0340) when determining Mx<n> falling and flipping (0130). The time zone of 0602), the dark gray zone is a time zone for determining the sampling output inversion timing (0602) of the positive phase and the negative phase intermediate clock (0340) when Mx<n> is raised and inverted (0140), and Table 1 is a discriminating state list. Where L represents a low level, H represents a high level, and x represents an arbitrary level.
七、时间窗口Seven, time window
在已知正相和负相中间时钟(0340)采样输出翻转时序(0602)的情况下,可以将被采样的信号翻转(0120)时间确定在中间时钟(0340)半个周期的时间窗口(0700)范围内,用多相延迟中间时钟(0340)正相和负相采样多相延迟的下降延迟(0450)和上升延迟(0452),可以进一步的确定下降延迟(0450)和上升延迟 (0452)的信号翻转(0120)在更小的时间窗口范围内,采样触发器(0330)的建立时间(0332)和保持时间(0334)限制了时间窗口的最小值。In the case where the positive and negative phase intermediate clock (0340) is known to sample the output flip timing (0602), the sampled signal can be inverted (0120) time to determine the time window (0700) of the intermediate clock (0340) half cycle. In the range, the falling delay (0450) and the rising delay can be further determined by the multiphase delay intermediate clock (0340) positive and negative phase sampling multiphase delay falling delay (0450) and rising delay (0452). (0452) Signal Flip (0120) The settling time (0332) and hold time (0334) of the sampling flip-flop (0330) limits the minimum value of the time window over a smaller time window.
图7和图8是本发明的确定时间窗口(0700)的方法及信号时序示意图,其中t为1,小写的x是D或U,小写e是d或u,假设中间时钟(0340)DK<n>采样下降延迟(0450)MD<n-3:n+3>或上升延迟(0452)MU<n-3:n+3>的输出翻转时序(0602)均是dQx<n,t>/uQx<n,t>或uQx<n,t>/dQx<n,t>,不考虑器件延迟带来的影响,只考虑信号翻转和采样的实际结果,图中的XXX区域是被采样信号Mx<n-3:n+3>可能的翻转区域(0710)。7 and FIG. 8 are schematic diagrams showing the method and signal timing of determining the time window (0700) of the present invention, where t is 1, lowercase x is D or U, lowercase e is d or u, and the intermediate clock (0340) DK< n>Sampling falling delay (0450) MD<n-3:n+3> or rising delay (0452) MU<n-3:n+3> output flip timing (0602) are both dQx<n,t>/ uQx<n,t> or uQx<n,t>/dQx<n,t>, regardless of the effect of device delay, only consider the actual result of signal flipping and sampling, the XXX area in the figure is the sampled signal Mx <n-3:n+3> Possible flip area (0710).
图7是中间时钟(0340)正顺序采样(0530)的时间窗口(0700)确定方法及信号时序示意图,下面是对图7时序的说明:7 is a timing window (0700) determination method and signal timing diagram of the intermediate clock (0340) positive sequential sampling (0530), and the following is a description of the timing of FIG. 7:
1、时钟平均延迟(0346)dKa为Trx/3;1, the clock average delay (0346) dKa is Trx / 3;
2、数据平均延迟(0348)dMa为Trx/6;2. The average data delay (0348) dMa is Trx/6;
3、Mx<n>可能的翻转区域(0710)是某个DK<n>为高电平H或低电平L的Trx/2时间区间,翻转时序(0602)推论的翻转区域与Mx<n>可能的翻转区域重叠;3. The possible flip region of Mx<n> (0710) is a Trx/2 time interval in which DK<n> is high level H or low level L, and the flipping region (0602) inferred flip region and Mx<n > possible flip areas overlap;
4、Mx<n-1>可能的翻转区域(0710)是某个DK<n-1>为高电平H或低电平L的Trx/2时间区间,翻转时序(0602)推论的翻转区域超前约dKa*1,Mx<n-1>可能的翻转区域超前约dMa*1,翻转时序(0602)推论的翻转区域与Mx<n-1>可能的翻转区域重叠约Trx*2/3;4. The possible flip region (0710) of Mx<n-1> is a Trx/2 time interval in which a certain DK<n-1> is a high level H or a low level L, and a flipping region (0602) inferred flip region Leading dKa*1, Mx<n-1> possible flipping area leads dMa*1, flipping time (0602) inferred flipping area overlaps with Mx<n-1> possible flipping area about Trx*2/3;
5、Mx<n-2>可能的翻转区域(0710)是某个DK<n-2>为高电平H或低电平L的Trx/2时间区间,翻转时序(0602)推论的翻转区域超前约dKa*2,Mx<n-2>可能的翻转区域超前约dMa*2,翻转时序(0602)推论的翻转区域与Mx<n-2>可能的翻转区域重叠约Trx*1/3;5. Mx<n-2> The possible inversion region (0710) is a Trx/2 time interval in which a certain DK<n-2> is a high level H or a low level L, and the inversion region of the inversion timing (0602) is inferred. Leading dKa*2, Mx<n-2> possible flipping area leads dMa*2, flipping time (0602) inferred flipping area overlaps with Mx<n-2> possible flipping area by about Trx*1/3;
6、Mx<n-3>可能的翻转区域(0710)是某个DK<n-3>为高电平H或低电平L的Trx/2时间区间,翻转时序(0602)推论的翻转区域超前约dKa*3,Mx<n-3>可能的翻转区域超前约dMa*3,翻转时序(0602)推论的翻转区域与Mx<n-3>可能的翻转区域重叠约Trx*0/3;6. Mx<n-3> The possible flip region (0710) is a Trx/2 time interval in which a certain DK<n-3> is a high level H or a low level L, and a flipping region (0602) inferred flip region Leading dKa*3, Mx<n-3> possible flipping area leads dMa*3, flipping time (0602) inferred flipping area overlaps with Mx<n-3> possible flipping area about Trx*0/3;
7、Mx<n+1>可能的翻转区域(0710)是某个DK<n+1>为高电平H或低电平L的Trx/2时间区间,翻转时序(0602)推论的翻转区域滞后约dKa*1,Mx<n+1>可能的翻转区域滞后约dMa*1,翻转时序(0602)推论的翻转区域与Mx<n+1>可能的翻转区域重叠约Trx*2/3;7. Mx<n+1> The possible inversion region (0710) is a Trx/2 time interval in which a certain DK<n+1> is a high level H or a low level L, and a flipping region (0602) inferred flip region The lag is about dKa*1, Mx<n+1> the possible flip region lags about dMa*1, and the flip region (0602) infers that the flip region overlaps with the possible flip region of Mx<n+1> about Trx*2/3;
8、Mx<n+2>可能的翻转区域(0710)是某个DK<n+2>为高电平H或低电平L的Trx/2时间区间,翻转时序(0602)推论的翻转区域滞后约dKa*2,Mx<n+2>可能的翻转区域滞后约dMa*2,翻转时序(0602)推论的翻转区域与Mx<n+2>可能的翻转区域重叠约Trx*1/3;8. Mx<n+2> The possible inversion region (0710) is a Trx/2 time interval in which a certain DK<n+2> is a high level H or a low level L, and the inversion region of the inversion timing (0602) is inferred. The hysteresis is about dKa*2, Mx<n+2> the possible inversion region is delayed by about dMa*2, and the inversion region of the inversion timing (0602) is overlapped with the possible inversion region of Mx<n+2> by about Trx*1/3;
9、Mx<n+3>可能的翻转区域(0710)是某个DK<n+3>为高电平H或低电平L的Trx/2时间区间,翻转时序(0602)推论的翻转区域滞后约dKa*3, Mx<n+3>可能的翻转区域滞后约dMa*3,翻转时序(0602)推论的翻转区域与Mx<n+3>可能的翻转区域重叠约Trx*0/3。9. Mx<n+3> The possible inversion region (0710) is a Trx/2 time interval in which a certain DK<n+3> is a high level H or a low level L, and the inversion region of the inversion timing (0602) is inferred. Lag about dKa*3, Mx<n+3> The possible flip region lags about dMa*3, and the toggle region (0602) inferred flip region overlaps with Mx<n+3> possible flip region by about Trx*0/3.
图8是中间时钟(0340)逆顺序采样(0532)的时间窗口(0700)确定方法及信号时序示意图,下面是对图8时序的说明:8 is a timing window (0700) determination method and signal timing diagram of the intermediate clock (0340) reverse sequential sampling (0532), and the following is a description of the timing of FIG. 8:
1、时钟平均延迟(0346)dKa为Trx/18;1. The average clock delay (0346) dKa is Trx/18;
2、数据平均延迟(0348)dMa为Trx/9;2. The average data delay (0348) dMa is Trx/9;
3、Mx<n>可能的翻转区域(0710)是某个DK<n>为高电平H或低电平L的Trx/2时间区间,翻转时序(0602)推论的翻转区域与Mx<n>可能的翻转区域重叠;3. The possible flip region of Mx<n> (0710) is a Trx/2 time interval in which DK<n> is high level H or low level L, and the flipping region (0602) inferred flip region and Mx<n > possible flip areas overlap;
4、Mx<n-1>可能的翻转区域(0710)是某个DK<n-1>为高电平H或低电平L的Trx/2时间区间,翻转时序(0602)推论的翻转区域滞后约dKa*1,Mx<n-1>可能的翻转区域超前约dMa*1,翻转时序(0602)推论的翻转区域与Mx<n-1>可能的翻转区域重叠约Trx*2/3;4. The possible flip region (0710) of Mx<n-1> is a Trx/2 time interval in which a certain DK<n-1> is a high level H or a low level L, and a flipping region (0602) inferred flip region The lag is about dKa*1, Mx<n-1> the possible flip region leads dMa*1, and the flipping time (0602) inferred flip region overlaps with Mx<n-1> possible flip region about Trx*2/3;
5、Mx<n-2>可能的翻转区域(0710)是某个DK<n-2>为高电平H或低电平L的Trx/2时间区间,翻转时序(0602)推论的翻转区域滞后约dKa*2,Mx<n-2>可能的翻转区域超前约dMa*2,翻转时序(0602)推论的翻转区域与Mx<n-2>可能的翻转区域重叠约Trx*1/3;5. Mx<n-2> The possible inversion region (0710) is a Trx/2 time interval in which a certain DK<n-2> is a high level H or a low level L, and the inversion region of the inversion timing (0602) is inferred. The hysteresis is about dKa*2, Mx<n-2> the possible inversion region leads dMa*2, the inversion time (0602) inferred flip region overlaps with the possible flip region of Mx<n-2> about Trx*1/3;
6、Mx<n-3>可能的翻转区域(0710)是某个DK<n-3>为高电平H或低电平L的Trx/2时间区间,翻转时序(0602)推论的翻转区域滞后约dKa*3,Mx<n-3>可能的翻转区域超前约dMa*3,翻转时序(0602)推论的翻转区域与Mx<n-3>可能的翻转区域重叠约Trx*0/3;6. Mx<n-3> The possible flip region (0710) is a Trx/2 time interval in which a certain DK<n-3> is a high level H or a low level L, and a flipping region (0602) inferred flip region The hysteresis is about dKa*3, Mx<n-3> the possible inversion region leads dMa*3, the inversion time (0602) inferred flip region overlaps with Mx<n-3> possible flip region about Trx*0/3;
7、Mx<n+1>可能的翻转区域(0710)是某个DK<n+1>为高电平H或低电平L的Trx/2时间区间,翻转时序(0602)推论的翻转区域超前约dKa*1,Mx<n+1>可能的翻转区域滞后约dMa*1,翻转时序(0602)推论的翻转区域与Mx<n+1>可能的翻转区域重叠约Trx*2/3;7. Mx<n+1> The possible inversion region (0710) is a Trx/2 time interval in which a certain DK<n+1> is a high level H or a low level L, and a flipping region (0602) inferred flip region Leading dKa*1, Mx<n+1> possible flip region lags about dMa*1, flipping time (0602) inferred flip region overlaps with Mx<n+1> possible flip region about Trx*2/3;
8、Mx<n+2>可能的翻转区域(0710)是某个DK<n+2>为高电平H或低电平L的Trx/2时间区间,翻转时序(0602)推论的翻转区域超前约dKa*2,Mx<n+2>可能的翻转区域滞后约dMa*2,翻转时序(0602)推论的翻转区域与Mx<n+2>可能的翻转区域重叠约Trx*1/3;8. Mx<n+2> The possible inversion region (0710) is a Trx/2 time interval in which a certain DK<n+2> is a high level H or a low level L, and the inversion region of the inversion timing (0602) is inferred. Leading dKa*2, Mx<n+2> possible flipping region lags about dMa*2, flipping time (0602) inferred flip region overlaps with Mx<n+2> possible flip region about Trx*1/3;
9、Mx<n+3>可能的翻转区域(0710)是某个DK<n+3>为高电平H或低电平L的Trx/2时间区间,翻转时序(0602)推论的翻转区域超前约dKa*3,Mx<n+3>可能的翻转区域滞后约dMa*3,翻转时序(0602)推论的翻转区域与Mx<n+3>可能的翻转区域重叠约Trx*0/3。9. Mx<n+3> The possible inversion region (0710) is a Trx/2 time interval in which a certain DK<n+3> is a high level H or a low level L, and the inversion region of the inversion timing (0602) is inferred. Leading dKa*3, Mx<n+3> possible flipping region lags about dMa*3, and the flipping region (0602) inferred flip region overlaps with Mx<n+3> possible flip region by about Trx*0/3.
从图7和图8中可以看出,以一相时钟采样的翻转时序(0602)可以推论出时间窗口(0700)是Trx/2,增加一相相同翻转时序的采样输出,时间窗口(0700)就收窄一个时间步长(0720)dSa,正顺序采样(0530)的时间步长(0720)是dSa=abs(dKa-dMa),逆顺序采样(0532)的时间步长(0720)是dSa=dKa+dMa,可 以将时间窗口(0700)收窄到小于或等于dSa时间范围内,采样触发器(0330)的建立时间(0332)和保持时间(0334)限制了dSa的最小值。具有相同翻转时序(0602)采样输出的相数最大值是最大相数(0730)dNa=floor(0.5*Trx/dSa)。As can be seen from Fig. 7 and Fig. 8, the flipping timing (0602) of one phase clock sampling can infer that the time window (0700) is Trx/2, increasing the sampling output of the same flip timing of one phase, time window (0700) To narrow a time step (0720) dSa, the time step (0720) of the positive sequence sampling (0530) is dSa=abs(dKa-dMa), and the time step (0720) of the reverse order sampling (0532) is dSa. =dKa+dMa, available To narrow the time window (0700) to less than or equal to the dSa time range, the setup time (0332) and hold time (0334) of the sample trigger (0330) limits the minimum value of dSa. The maximum number of phases with the same flip timing (0602) sample output is the maximum number of phases (0730) dNa = floor (0.5 * Trx / dSa).
按照翻转时序(0602)将展宽输出(0570)分为负沿输出(0530)超前组和正沿输出(0532)超前组,分别从二者中选取序号相邻的数目即同序数目(0760)最大者且起始序号最小者作为负沿判据(0740)和正沿判据(0742),其起始序号即同序序号(0762)分别作为负沿序号(0750)和正沿序号(0752)。According to the flip timing (0602), the stretched output (0570) is divided into a negative edge output (0530) lead group and a positive edge output (0532) lead group, and the number of adjacent numbers is selected from the two, that is, the number of the same order (0760) is the largest. The minimum starting number is used as the negative edge criterion (0740) and the positive edge criterion (0742), and the starting sequence number is the same sequence number (0762) as the negative edge number (0750) and the positive edge number (0752), respectively.
负沿判据(0740)、正沿判据(0742)、负沿序号(0750)、正沿序号(0752)是确定时间窗口(0700)的判别依据,负沿序号(0750)和正沿序号(0752)的平均值是序号均值(0754)、与序号均值的差值是序号差值(0756),序号差值(0756)平方或绝对值的平均值是序号方差(0758),序号均值(0754)、序号差值(0756)、序号方差(0758)等是可供确定信号畸变程度的畸变判据(0790),需要据其之一或部分或全部对确定时间窗口(0700)的判别结果进行修正,序号均值(0754)和序号方差(0758)可以选取一个或多个数据窗口宽度进行计算,以分别反映出信号短期、中期、长期的畸变程度。The negative edge criterion (0740), the positive edge criterion (0742), the negative edge number (0750), and the positive edge number (0752) are the basis for determining the time window (0700), the negative edge number (0750) and the positive edge number ( The average value of 0752) is the mean value of the serial number (0754), the difference between the mean value of the serial number is the difference of the serial number (0756), the average value of the squared difference (0756) squared or the absolute value is the variance of the serial number (0758), the mean of the serial number (0754) ), the difference of the serial number (0756), the variance of the serial number (0758), etc. are the distortion criteria (0790) for determining the degree of signal distortion, and it is necessary to perform the discrimination result of the determined time window (0700) according to one or some of them. Correction, the serial number mean (0754) and the serial number variance (0758) can be selected by one or more data window widths to reflect the short-, medium-, and long-term distortion of the signal.
从图7和图8中可以看出,在负沿判据(0740)和正沿判据(0742)中,序号最小的负沿判据(0740)和正沿判据(0742)对应的被采样信号翻转超前中间时钟(0340)的采样翻转接近Trx/2时间,因此其对应的数据输出(0580)是正确数据(0770)的可能性较大,序号最大的负沿判据(0740)和正沿判据(0742)对应的被采样信号翻转滞后中间时钟(0340)的反相采样翻转接近Trx/2时间,因此其对应的数据输出(0580)是正确数据(0770)的可能性也较大,一种优选判别方法是:如果负沿判据(0740)和正沿判据(0742)的同序数目(0760)不同,则选取同序数目(0760)大者作为判据输出(0780),如果负沿判据(0740)和正沿判据(0742)的同序数目(0760)相同,则选取同序序号(0762)小者作为判据输出(0780),同时需要确定一个序号选择(0782)和相位选择(0784),相位选择确定选取中间时钟的下降翻转(0130)或上升翻转(0140)采样结果,序号选择还要根据对信号畸变程度的判断做出相应的加1或减1修正。As can be seen from Fig. 7 and Fig. 8, in the negative edge criterion (0740) and the positive edge criterion (0742), the sampled signal corresponding to the smallest negative edge criterion (0740) and the positive edge criterion (0742) The sampling flip of the flip intermediate clock (0340) is close to Trx/2 time, so the corresponding data output (0580) is more likely to be the correct data (0770), the largest negative edge criterion (0740) and positive edge judgment According to (0742), the inverted sampling of the corresponding sampled signal inverted hysteresis intermediate clock (0340) is close to Trx/2 time, so the corresponding data output (0580) is also more likely to be correct data (0770). A preferred discriminating method is: if the negative edge criterion (0740) and the positive edge criterion (0742) are different in the same order number (0760), then the same order number (0760) is selected as the criterion output (0780), if negative According to the same number of orders (0760) along the criterion (0740) and the positive edge criterion (0742), the same sequence number (0762) is selected as the criterion output (0780), and a serial number selection (0782) and Phase selection (0784), phase selection determines the sampling result of the falling flip (0130) or rising flip (0140) of the intermediate clock. Also accordingly adding or subtracting a correction signal is determined according to the degree of distortion.
如选择判据输出中的最小序号作为序号选择(0782),则相位选择(0784)选择同相中间时钟(0340),即翻转时序(0602)是中间时钟(0340)的下降翻转(0130)或上升翻转(0140)的采样超前,则选择中间时钟(0340)的下降翻转(0130)或上升翻转(0140);如选择判据输出中的最大序号作为序号选择(0782),则相位选择(0784)选择反相中间时钟(0340),即翻转时序(0602)是中间时钟(0340)的下降翻转(0130)或上升翻转(0140)超前,则选择中间时钟(0340)的上升翻转(0140)或下降翻转(0130)。If the minimum number in the criterion output is selected as the serial number selection (0782), the phase selection (0784) selects the in-phase intermediate clock (0340), that is, the flip timing (0602) is the falling flip (0130) or rising of the intermediate clock (0340). If the sampling of the flip (0140) is advanced, select the falling flip (0130) or the rising flip (0140) of the intermediate clock (0340); if the maximum number in the selection criterion is selected as the serial number selection (0782), the phase selection (0784) Select the inverting intermediate clock (0340), that is, the flip timing (0602) is the falling flip (0130) or the rising flip (0140) lead of the intermediate clock (0340), then select the rising flip (0140) or falling of the intermediate clock (0340). Flip (0130).
序号选择(0782)和相位选择(0784)对应的数据输出作为串行数据(0000)的接收结果以数据分组输出,对应的展宽输出(0570)可以作为数据分组的起始和结束的触发信号,还需要设置一个比特计数器给出数据分组的比特数。异步串行数据(0002)的传输帧(0210)接收以与接收数据从停止比特(0224)或空闲比特(0226)的有效电平向起始比特(0220)有效电平翻转对应的展宽输出的翻转开始, 一个传输帧的比特数是内容比特(0222)的数目加一个起始比特和一个停止比特,因此产生结束触发信号需要比特计数器的参与。The data output corresponding to the serial number selection (0782) and the phase selection (0784) is output as a data packet as the reception result of the serial data (0000), and the corresponding stretched output (0570) can be used as a trigger signal for the start and end of the data packet. It is also necessary to set a bit counter to give the number of bits of the data packet. The transmission frame (0210) of the asynchronous serial data (0002) receives the stretched output corresponding to the active level inversion of the received bit from the active bit of the stop bit (0224) or the idle bit (0226) to the active bit (0220). Flip start, The number of bits of a transmission frame is the number of content bits (0222) plus one start bit and one stop bit, so the generation of the end trigger signal requires the participation of the bit counter.
八、数据接收Eight, data reception
前面已经对本发明的基本方法及装置做了说明,下面对其进行总结并进一步说明,给出本发明的异步接收串行数据的方法及装置说明。The basic method and apparatus of the present invention have been described above, and the following is a summary and further description of the method and apparatus for asynchronously receiving serial data of the present invention.
1、本地时钟(0800)和接收数据(0314)由外部输入;1. The local clock (0800) and the received data (0314) are input from the outside;
2、本地时钟(0800)直接作为接收时钟(0310)或被分频产生接收时钟,接收频率(0312)与发射频率(0302)相同,如需要接收时钟经由延时级数(0342)为N的多级延迟部件产生N相中间时钟(0340),延迟部件的延迟时间大于或等于0且近似相等,其均值是时钟平均延迟(0346),延迟可以由布线延迟、延迟线延迟、级联电路延迟、延时锁定环(Delay Lock Loop)等优选方法产生,还可以由频率数倍于接收频率的本地时钟将接收时钟经级联锁存器(Latch)或级联触发器(Flip Flop)步进移相等优选方法产生,时钟平均延迟是固定值或可变值。2. The local clock (0800) is directly used as the receiving clock (0310) or divided to generate the receiving clock. The receiving frequency (0312) is the same as the transmitting frequency (0302). If the receiving clock needs to be delayed, the delay level (0342) is N. The multi-stage delay component generates an N-phase intermediate clock (0340), the delay time of the delay components is greater than or equal to 0 and approximately equal, and the mean value thereof is the clock average delay (0346), and the delay can be caused by wiring delay, delay line delay, and cascade circuit delay. A preferred method such as a Delay Lock Loop is generated. The receiving clock can also be stepped through a cascade latch (Latch) or a cascade flip (Flip Flop) by a local clock whose frequency is several times the receiving frequency. The shift equalization method produces that the clock average delay is a fixed value or a variable value.
3、基于接收数据(0314)产生至少约两个传送周期(0302)宽度的展宽脉冲(0490),如需要接收数据经由延迟匹配部件成为匹配数据(0444),使其翻转与展宽脉冲的翻转对齐,如需要接收数据经由延时级数(0342)为N的多级延迟部件产生N相中间数据(0344),延迟部件的延迟时间大于或等于0且近似相等,其均值是数据平均延迟(0348),基于中间数据产生N相至少约两个传送周期(0302)宽度的展宽延迟(0492),相邻两相展宽延迟(0492)的延时时差也是数据平均延迟(0348),延迟可以由布线延迟、延迟线延迟、级联电路延迟等优选方法产生,数据平均延迟是固定值或可变值,N相中间数据经由延迟匹配部件成为数据延迟(0454),使其翻转与展宽延迟的翻转对齐。3. A widened pulse (0490) having a width of at least about two transmission cycles (0302) is generated based on the received data (0314), and if the received data is required to be matched data (0444) via the delay matching component, the flipping is aligned with the flipping of the stretched pulse. If the data needs to be received, the N-phase intermediate data (0344) is generated by the multi-stage delay component with the delay level (0342) being N. The delay time of the delay component is greater than or equal to 0 and approximately equal, and the mean value is the average data delay (0348). ), based on the intermediate data, a spread delay (0492) of N phase of at least about two transmission periods (0302) width is generated, and the delay time difference of the adjacent two-phase stretch delay (0492) is also a data average delay (0348), and the delay can be made by wiring. A preferred method of delay, delay line delay, cascade circuit delay, etc., produces that the data average delay is a fixed value or a variable value, and the N-phase intermediate data becomes a data delay (0454) via the delay matching component, causing its flip to be aligned with the rollover of the stretch delay. .
4、时钟平均延迟(0346)和数据平均延迟(0348)均可以为0,但可以同时为0,时钟平均延迟为0时,接收时钟(0310)就是中间时钟(0340),即不需要产生中间时钟,数据平均延迟为0时,展宽脉冲(0490)和匹配数据(0444)分别就是展宽延迟(0492)和数据延迟(0454),即不需要产生展宽延迟和数据延迟;4. The average clock delay (0346) and the average data delay (0348) can be 0, but can be 0 at the same time. When the average clock delay is 0, the receiving clock (0310) is the intermediate clock (0340), that is, there is no need to generate the middle. When the clock has an average data delay of 0, the stretched pulse (0490) and the matched data (0444) are the stretched delay (0492) and the data delay (0454), respectively, that is, no spread delay and data delay are required;
5、用级数为采样级数(0502)的采样移位寄存器(0500)分别分相采样N相展宽延迟(0492)和N相数据延迟(0454),采样中间时钟(0340)的下降翻转(0130)和上升翻转(0140)同时进行,得到负沿展宽(0572)和正沿展宽(0574)及数据输出(0580),采样可以是正顺序采样(0530)或逆顺序采样(0532),正顺序采样是指中间时钟序号和被采样信号序号的变化次序相同,逆顺序采样是指中间时钟序号和被采样信号序号的变化次序相反;5. The sampling shift register (0500) with the series of sampling stages (0502) is separately phase-sampled for the N-phase stretched delay (0492) and the N-phase data delay (0454), and the sampling intermediate clock (0340) is inverted and inverted ( 0130) and rising flip (0140) at the same time, get negative edge broadening (0572) and positive edge broadening (0574) and data output (0580), sampling can be positive sequential sampling (0530) or reverse sequential sampling (0532), positive sequential sampling It means that the intermediate clock number is the same as the sequence of the sampled signal sequence, and the reverse sequence sampling means that the intermediate clock number and the sequence of the sampled signal are reversed.
6、分别让同一个展宽延迟(0492)的负沿展宽(0572)和正沿展宽(0574)相互采样,基于采样结果确定二者的翻转时序(0602),按照翻转时序将 展宽输出(0570)分为负沿输出(0530)超前组和正沿输出(0532)超前组,分别从二者中选取序号相邻的数目即同序数目(0760)最大者且起始序号最小者作为负沿判据(0740)和正沿判据(0742),其起始序号即同序序号(0762)分别作为负沿序号(0750)和正沿序号(0752);6. Let the negative edge broadening (0572) and the positive edge broadening (0574) of the same stretch width delay (0492) sample each other, and determine the flip timing (0602) of the two based on the sampling result, according to the flip timing. The stretched output (0570) is divided into a negative edge output (0530) lead group and a positive edge output (0532) lead group, and the number of adjacent numbers is selected from the two, that is, the number of the same order (0760) is the largest and the starting number is the smallest. As the negative edge criterion (0740) and the positive edge criterion (0742), the starting sequence number is the same sequence number (0762) as the negative edge number (0750) and the positive edge number (0752);
7、分别计算负沿序号(0750)和正沿序号(0752)的序号均值(0754)、序号方差(0758)、序号差值(0756)作为畸变判据(0790),可以选择一个或多个数据窗口宽度计算序号均值(0754)和序号方差(0758);7. Calculate the mean number of the negative edge number (0750) and the positive edge number (0752) (0754), the variance of the serial number (0758), and the difference of the serial number (0756) as the distortion criterion (0790). One or more data can be selected. Window width calculation serial number mean (0754) and serial number variance (0758);
8、如果负沿判据(0740)和正沿判据(0742)的同序数目(0760)不同,则选取同序数目(0760)大者作为判据输出(0780),如果负沿判据(0740)和正沿判据(0742)的同序数目(0760)相同,则选取同序序号(0762)小者作为判据输出(0780),如选择判据输出中的最小序号作为序号选择(0782),则相位选择(0784)选择同相中间时钟(0340),如选择判据输出中的最大序号作为序号选择(0782),则相位选择(0784)选择反相中间时钟(0340),序号选择还要根据畸变判据(0790)之一或部分或全部,决定是否进行加1或减1修正;8. If the negative edge criterion (0740) and the positive edge criterion (0742) are different in the same order number (0760), then the same order number (0760) is selected as the criterion output (0780), if the negative edge criterion ( 0740) and the same order number (0760) of the positive edge criterion (0742), then the same sequence number (0762) is selected as the criterion output (0780), and the smallest sequence number in the selection criterion output is selected as the serial number (0782). ), the phase selection (0784) selects the in-phase intermediate clock (0340). If the maximum number in the selection criterion output is selected as the serial number selection (0782), the phase selection (0784) selects the inverted intermediate clock (0340), and the serial number selection is also It is determined whether to add 1 or subtract 1 correction according to one or part or all of the distortion criterion (0790);
9、序号选择(0782)和相位选择(0784)对应的数据输出(0580)作为串行数据(0000)的接收结果数据分组输出,对应的展宽输出(0570)可以作为数据分组的起始和结束的触发信号,需要设置一个比特计数器给出每个数据分组的比特数。异步串行数据(0002)的传输帧(0210)接收以与接收数据(0314)从停止比特(0224)或空闲比特(0226)的有效电平向起始比特(0220)有效电平翻转对应的展宽输出的翻转起始,一个传输帧的比特数是内容比特(0222)的数目加一个起始比特和一个停止比特,因此产生数据分组的结束触发信号需要比特计数器的参与。9. The data output (0580) corresponding to the serial number selection (0782) and phase selection (0784) is output as the reception result data packet of the serial data (0000), and the corresponding stretched output (0570) can be used as the start and end of the data packet. The trigger signal needs to set a bit counter to give the number of bits of each data packet. The transmission frame (0210) of the asynchronous serial data (0002) is received in response to the effective level of the start bit (0220) from the active level of the stop bit (0224) or the idle bit (0226) to the received data (0314). The start of the rollover of the spread output, the number of bits of one transmission frame is the number of content bits (0222) plus one start bit and one stop bit, so the end trigger signal generating the data packet requires the participation of the bit counter.
九、应用领域Nine, application areas
在前面的说明中,本发明给出了异步接收串行数据(0000)的接收方法及装置,串行数据传送的方法及装置相对比较简单,而串行数据接收的方法则比较复杂且难于实现,本发明提供的方法及装置,最大限度的简化了串行数据接收装置的结构,使其成本低廉且易于实现,而且不仅可以满足高性能的应用需求,也可以满足低成本和低功耗的应用需求。In the foregoing description, the present invention provides a receiving method and apparatus for asynchronously receiving serial data (0000). The method and apparatus for serial data transmission are relatively simple, and the method of serial data receiving is complicated and difficult to implement. The method and device provided by the invention simplifies the structure of the serial data receiving device to the utmost, so that the cost is low and easy to implement, and not only can meet the requirements of high performance applications, but also can meet the requirements of low cost and low power consumption. Application requirements.
采用本发明的方法及装置,可以实现两种串行数据收发器,一种是通用串行收发器(Universal Serial Receievr/Transmitter,USRT),其功能可以是现有的任意一种同步串行数据传输接口的功能,另一种是异步串行收发器(UniversalAsynchronous Receievr/Transmitter,USRT),其数据传输速率可以象同步串行数据接口的数据传输速率一样高,其物理层协议可以象通用输入/输出接口(General Purpose Input/Output,GPIO)的物理层协议一样简单,这两种串行数据收发器(0900)的特征如下:With the method and device of the present invention, two serial data transceivers can be realized, one is a Universal Serial Receievr/Transmitter (USRT), and the function can be any existing synchronous serial data. The function of the transmission interface, the other is the asynchronous serial transceiver (Universal Asynchronous Receievr/Transmitter, USRT), its data transmission rate can be as high as the data transmission rate of the synchronous serial data interface, and its physical layer protocol can be like universal input / The physical layer protocol of the Output Interface (General Purpose Input/Output, GPIO) is as simple as the following: The characteristics of the two serial data transceivers (0900) are as follows:
1、如本发明的方法及装置接收异步串行数据或同步串行数据;1. The method and apparatus of the present invention receive asynchronous serial data or synchronous serial data;
2、单向或双向的电气连接(0901),单端驱动或差分驱动,单向电气连接 (0902)只传送数据或只接收数据,双向电气连接(0903)可以分时传送数据和接收数据;2, one-way or two-way electrical connection (0901), single-ended or differential drive, one-way electrical connection (0902) transmitting data only or receiving data only, the two-way electrical connection (0903) can transmit data and receive data in a time-sharing manner;
3、单向或双向的数据传输通道(0904),单向数据传输通道(0905)由一个只传送数据或只接收数据的单向电气连接(0902)构成,双向数据传输通道(0906)由一个双向电气连接(0902)构成或由一个只传送数据的单向电气连接和一个只接收数据的单向电气连接组合构成;3. One-way or two-way data transmission channel (0904). The one-way data transmission channel (0905) consists of a one-way electrical connection (0902) that only transmits data or only receives data. The two-way data transmission channel (0906) consists of one. The two-way electrical connection (0902) constitutes or consists of a combination of a one-way electrical connection that only transmits data and a one-way electrical connection that only receives data;
4、单向或双向的数据传输端口(0907),单向数据传输端口(0908)由一个或多个单向数据传输通道(0905)构成,双向数据传输端口(0909)由一个或多个双向数据传输通道(0906)构成。4. One-way or two-way data transmission port (0907), one-way data transmission port (0908) consists of one or more unidirectional data transmission channels (0905), and two-way data transmission port (0909) consists of one or more two-way The data transmission channel (0906) is constructed.
下面将分节说明本发明的方法及装置的应用,为简洁说明,用通用接口或USRT称呼本发明的方法实现的通用串行数据通信装置,用异步接口或UART称呼本发明的方法实现的异步串行数据通信装置。The following is a section explaining the application of the method and apparatus of the present invention. For the sake of brevity, the universal serial data communication apparatus implemented by the universal interface or the USRT method of the present invention is asynchronously implemented by the asynchronous interface or the UART. Serial data communication device.
(一)异步串行数据通信物理层之上的同步串行数据通信(1) Synchronous serial data communication over the physical layer of asynchronous serial data communication
采用本发明的方法及装置,可实现与同步串行数据(0003)通信同样高数据传输速率的异步串行数据(0002)通信,因此可在异步串行数据通信的物理层之上,实现同步串行数据通信的数据链路层和协议层协议,降低了接口的功耗及成本,这种方法的特征如下:With the method and apparatus of the present invention, asynchronous serial data (0002) communication with the same high data transmission rate as synchronous serial data (0003) communication can be realized, so that synchronization can be realized on the physical layer of asynchronous serial data communication. The data link layer and protocol layer protocol of serial data communication reduce the power consumption and cost of the interface. The characteristics of this method are as follows:
1、如本发明的的方法及装置实现接收和传送异步串行数据传输的物理层协议;1. A method and apparatus according to the present invention for implementing a physical layer protocol for receiving and transmitting asynchronous serial data transmissions;
2、数据链路层和协议层的同步串行数据作为物理层的异步串行数据的内容比特传送;2. The synchronous serial data of the data link layer and the protocol layer is transmitted as the content bit of the asynchronous serial data of the physical layer;
3、接收到的物理层的异步串行数据的内容比特提交给同步串行数据通信的数据链路层和协议层;3. The received content bit of the asynchronous serial data of the physical layer is submitted to the data link layer and the protocol layer of the synchronous serial data communication;
4、数据传输端口基于本发明的方法及装置实现。4. The data transmission port is implemented based on the method and apparatus of the present invention.
(二)一种通用计算机中央处理器(2) A general purpose computer central processor
当前的通用计算机中央处理器(0910,CPU),有多种外部接口,采用本发明的方法及装置,可实现只有两种(USRT和UART)物理层甚至只有一种(UART)物理层外部接口的通用CPU,图9给出了采用USRT和或UART接口的通用CPU的示意图,在全新定义或采用现有的数据链路层和协议层协议的情况下,CPU外部接口的物理层协议基于USRT和/或UART定义,仅基于UART定义物理层协议则更佳,此外CPU内部连接,如处理器内核(Core)与协处理器、高速缓存(Cache,L1/L2/L3)的连接、多个内核之间的连接等,这种通用单核或多核的中央处理器的特征如下:The current general purpose computer central processing unit (0910, CPU) has a variety of external interfaces. With the method and device of the present invention, only two (USRT and UART) physical layers can be realized, and only one (UART) physical layer external interface can be realized. General-purpose CPU, Figure 9 shows a schematic diagram of a general-purpose CPU using the USRT and or UART interface. In the case of a new definition or the existing data link layer and protocol layer protocol, the physical layer protocol of the CPU external interface is based on USRT. And / or UART definition, only based on the UART to define the physical layer protocol is better, in addition to CPU internal connections, such as the processor core (Core) and coprocessor, cache (Cache, L1/L2 / L3) connection, multiple The characteristics of this general-purpose single-core or multi-core CPU are as follows:
1、中央处理器的内部架构任意,全新定义架构或采用现有架构均可;1. The internal structure of the central processing unit is arbitrary, and the new definition of the architecture or the existing architecture can be used;
2、如本发明的方法及装置实现其单向或双向内部或外部接口的接收和传送串行数据的物理层协议; 2. A physical layer protocol for receiving and transmitting serial data in a unidirectional or bidirectional internal or external interface thereof as in the method and apparatus of the present invention;
3、全新定义或采用现有的内部或外部接口的数据链路层和协议层协议;3. Newly defined or adopted data link layer and protocol layer protocols of internal or external interfaces;
4、数据传输端口基于本发明的方法及装置实现。4. The data transmission port is implemented based on the method and apparatus of the present invention.
(三)一种现场可编程门阵列器件(3) A field programmable gate array device
当前的通用现场可编程门阵列(FPGA)器件(0920),只有少量的高速串行数据传输端口,在用其实现高性能交换机和/或路由器时,系统内部的数据传输只能采用通用的输入/输入(GPIO)端口,致使器件的引脚数量众多,采用本发明的方法及装置,可实现具有USRT和/或UART端口的FPGA,其USRT端口用于系统外部的串行数据传输连接,可以实现各种现有的串行数据传输协议,其UART端口用于系统内部或外部的串行数据传输连接,本发明的方法及装置的简捷性能,降低了FPGA器件的端口开销,使其有更多的输入和输出资源支持高速数据传输,图10给出了采用USRT和/或UART端口的FPGA的示意图,这种现场可编程门阵列器件的特征如下:Current Universal Field Programmable Gate Array (FPGA) devices (0920) have only a small number of high-speed serial data transfer ports, and when used in high-performance switches and/or routers, data transfer within the system can only be used with universal inputs. /Input (GPIO) port, resulting in a large number of pins of the device. With the method and device of the present invention, an FPGA having a USRT and/or UART port can be realized, and the USRT port is used for serial data transmission connection outside the system. Implementing various existing serial data transmission protocols, the UART port is used for serial data transmission connection inside or outside the system, and the simple performance of the method and device of the invention reduces the port overhead of the FPGA device, thereby making it more Multiple input and output resources support high-speed data transfers. Figure 10 shows a schematic of an FPGA using USRT and/or UART ports. The features of this field-programmable gate array device are as follows:
1、现场可编程门阵列器件的内部架构任意,全新定义架构或采用现有架构均可;1. The internal architecture of the field programmable gate array device is arbitrary, and the new definition architecture or the existing architecture can be used;
2、如本发明的方法及装置实现单向或双向内部或外部接口的接收和传送串行数据的物理层协议;2. A physical layer protocol for receiving and transmitting serial data in a one-way or two-way internal or external interface, as in the method and apparatus of the present invention;
3、全新定义或采用现有的内部或外部接口的数据链路层和协议层协议;3. Newly defined or adopted data link layer and protocol layer protocols of internal or external interfaces;
4、数据传输端口基于本发明的方法及装置实现。4. The data transmission port is implemented based on the method and apparatus of the present invention.
(四)一种异步串行数据传输接口的存储器(4) A memory of an asynchronous serial data transmission interface
当前通用的存储器主要有DRAM/SDRAM(0930)、SRAM(0932)、FLASH(0934)等,都采用并行或串行的数据和控制接口,采用本发明的方法及装置,可实现UART物理层接口的单端口或多端口的DRAM/SDRAM、SRAM、FLASH等,可直接与本说明书《一种通用的计算机中央处理器》部分描述的一个或多个通用CPU直接连接,图11给出了采用UART接口的DRAM/SDRAM、SRAM、FLASH等的示意图,这种存储器的特征如下:The current general-purpose memories mainly include DRAM/SDRAM (0930), SRAM (0932), FLASH (0934), etc., all adopt parallel or serial data and control interfaces, and the UART physical layer interface can be realized by the method and device of the present invention. Single-port or multi-port DRAM/SDRAM, SRAM, FLASH, etc., can be directly connected directly to one or more general-purpose CPUs described in the “General Computer Central Processing Unit” section of this manual. Figure 11 shows the use of UART. Schematic diagram of DRAM/SDRAM, SRAM, FLASH, etc. of the interface. The characteristics of this memory are as follows:
1、DRAM/SDRAM或SRAM或FLASH等存储器的内部的架构任意,全新定义架构或采用现有架构均可;1. The internal architecture of DRAM/SDRAM or SRAM or FLASH memory is arbitrary, and the new definition architecture or existing architecture can be used;
2、如本发明的的方法及装置实现单端口或多端口的单向或双向的接收和传送异步串行数据的物理层协议;2. A method and apparatus according to the present invention for implementing a one-port or multi-port unidirectional or bidirectional physical layer protocol for receiving and transmitting asynchronous serial data;
3、全新定义或采用现有的操作命令和状态信息;3. Newly define or adopt existing operational commands and status information;
4、数据传输端口基于本发明的方法及装置实现。4. The data transmission port is implemented based on the method and apparatus of the present invention.
(五)一种串异步行数据传输接口的存储器控制器(5) A memory controller for a serial walking data transmission interface
当前通用的存储器主要有DRAM/SDRAM(0930)、SRAM(0932)、FLASH(0934)等,都采用并行或串行的数据和控制接口,采用本发明的的方法及装置,可实现UART物理层接口的单端口或多端口的DRAM/SDRAM、SRAM、FLASH等存储器的控制器,可直接与本说明书《一种通用的计算机中央处理器》 部分描述的一个或多个通用CPU直接连接,图12给出了采用UART接口的DRAM/SDRAM、SRAM、FLASH等存储器模块及控制器的示意图,存储器控制器在模块内部连接DRAM/SDRAM和/或SRAM和/或FLASH等存储器,外接端口是单端口或多端口的UART接口,这种存储器的控制器的特征如下:The current general-purpose memories mainly include DRAM/SDRAM (0930), SRAM (0932), FLASH (0934), etc., all adopt parallel or serial data and control interfaces, and the UART physical layer can be realized by the method and device of the present invention. The interface of the single-port or multi-port DRAM/SDRAM, SRAM, FLASH and other memory controllers can be directly related to this specification "a general-purpose computer central processing unit" One or more general-purpose CPUs are partially connected directly. Figure 12 shows a schematic diagram of DRAM/SDRAM, SRAM, FLASH and other memory modules and controllers using a UART interface. The memory controller is connected to the DRAM/SDRAM and/or within the module. For memory such as SRAM and/or FLASH, the external port is a single port or multi port UART interface. The characteristics of this memory controller are as follows:
1、与DRAM/SDRAM或SRAM或FLASH等存储器的接口架构任意,全新定义架构或采用现有架构均可;1. The interface structure with DRAM/SDRAM or SRAM or FLASH memory is arbitrary, and the new definition architecture or existing architecture can be used;
2、如本发明的方法及装置实现单端口或多端口的单向或双向的接收和传送异步串行数据的物理层协议;2. A physical layer protocol for receiving and transmitting asynchronous serial data in a one-port or two-way manner, unidirectional or bidirectional, as in the method and apparatus of the present invention;
3、全新定义或采用现有的操作命令和状态信息;3. Newly define or adopt existing operational commands and status information;
4、数据传输端口基于本发明的方法及装置实现。4. The data transmission port is implemented based on the method and apparatus of the present invention.
(六)一种计算机外部设备的接口控制器(6) An interface controller for a computer external device
当前通用的外部设备接口主要有同步串行、同步并行、异步并行、异步串行等,采用本发明的方法及装置,可实现基于USRT或UART物理层协议的外部设备接口,可直接与本说明书《一种通用的计算机中央处理器》部分描述的一个或多个通用CPU直接连接,图13给出了基于USRT或UART物理层的计算机外部设备的接口控制器的示意图,这种计算机外部接口的特征如下:The current common external device interfaces mainly include synchronous serial, synchronous parallel, asynchronous parallel, asynchronous serial, etc. The method and device of the present invention can implement an external device interface based on the USRT or UART physical layer protocol, which can be directly related to the present specification. One or more general purpose CPUs described in the section "General Computer Central Processing Unit" are directly connected. Figure 13 shows a schematic diagram of an interface controller of a computer external device based on the USRT or UART physical layer. The characteristics are as follows:
1、外部设备接口控制器的内部架构任意,全新定义架构或采用现有架构均可;1. The internal architecture of the external device interface controller is arbitrary, and the new definition architecture or the existing architecture can be used;
2、如本发明的方法及装置实现外部设备控制器与计算机系统单向或双向连接的接收和传送串行数据的物理层协议;2. A physical layer protocol for receiving and transmitting serial data in a one-way or two-way connection between an external device controller and a computer system, as in the method and apparatus of the present invention;
3、全新定义或采用现有的数据链路层和协议层协议;3. Newly define or adopt existing data link layer and protocol layer protocols;
4、数据传输端口基于本发明的方法及装置实现。4. The data transmission port is implemented based on the method and apparatus of the present invention.
(七)一种数据传输的中继装置(7) A relay device for data transmission
任意一种传送数据的方法,其传输的最大距离均有限制,如果要传输更远的距离,则需要中继设备接力传送数据,采用本发明的方法及装置,可实现基于USRT或UART物理层中继器,图14给出了采用USRT或UART物理层的数据传送中继装置的示意图,被中继接口在保持原有的数据链路层和协议层协议的情况下,原有的物理层被USRT或UART替换,被UART替换则更佳,这种数据传输的中继装置特征如下:Any method for transmitting data has a maximum maximum distance for transmission. If a longer distance is to be transmitted, a relay device is required to transmit data. The method and apparatus of the present invention can implement a physical layer based on USRT or UART. Repeater, Figure 14 shows a schematic diagram of a data transfer relay using the USRT or UART physical layer. The original physical layer is maintained by the relay interface while maintaining the original data link layer and protocol layer protocol. It is better to be replaced by USRT or UART, and it is better to replace it with UART. The relay features of this data transmission are as follows:
1、被中继的数据传送接口的架构任意,全新定义架构或采用现有架构均可;1. The structure of the relayed data transmission interface is arbitrary, and the new definition architecture or the existing architecture can be used;
2、如本发明的方法及装置实现数据传送中继的物理层协议;2. A physical layer protocol for implementing data transfer relaying according to the method and apparatus of the present invention;
3、保持被中继接口的数据链路层和协议层协议不变;3. Keep the data link layer and protocol layer protocols of the relayed interface unchanged;
4、数据传输端口基于本发明的方法及装置实现。4. The data transmission port is implemented based on the method and apparatus of the present invention.
(八)一种系统域网络的交换机(8) A switch for a system domain network
系统域网络是高性能计算机系统内部的数据传送网络,其性能和功耗均较 高,规模小至一个单处理器的小型服务器内部的数据传送网络,规模大至一个有数万个处理器的超级计算机内部的数据传送网络,在多处理器的计算机系统中,系统域网络交换机往往是不可或缺的核心部件,采用本发明的方法及装置,可实现基于USRT和/或UART物理层的系统域网络交换机,图15给出了基于USRT和/或UART物理层协议的系统域网络交换机的示意图,这种系统域网络交换机的特征如下:The system domain network is a data transmission network inside a high-performance computer system, and its performance and power consumption are compared. High, small to a single-processor small server internal data transfer network, up to a data transfer network inside a supercomputer with tens of thousands of processors, in a multi-processor computer system, system domain network switch It is often an indispensable core component. With the method and device of the present invention, a system domain network switch based on the USRT and/or UART physical layer can be implemented, and FIG. 15 shows a system domain based on the USRT and/or UART physical layer protocol. Schematic diagram of a network switch, the characteristics of such a system domain network switch are as follows:
1、交换机的内部架构任意,全新定义架构或采用现有的架构均可;1. The internal structure of the switch is arbitrary, and the new definition of the architecture or the existing architecture can be used;
2、如本发明的方法及装置实现系统域交换网络的物理层协议;2. A physical layer protocol for implementing a system domain switching network as in the method and apparatus of the present invention;
3、全新定义或采用现有的数据链路层和协议层协议;3. Newly define or adopt existing data link layer and protocol layer protocols;
4、数据传输端口基于本发明的方法及装置实现。4. The data transmission port is implemented based on the method and apparatus of the present invention.
(九)一种计算机网络的交换机和/或路由器(9) A switch and/or router of a computer network
计算机网络是计算机之间的数据传送网络,规模小至一个家庭内部的数据传送网络,规模大至一个大学内部有数万台计算机的数据传送网络,国际互联网则是一个全球域的计算机网络,交换机和路由器是计算机网络的必备设备,采用本发明的方法及装置,可实现基于USRT和/或UART物理层的计算机网络交换机和/或路由器,图16给出了基于USRT和/或UART物理层协议的计算机网络交换机和/或路由器的示意图,这种计算机网络交换机和/或路由器的特征如下:The computer network is a data transmission network between computers. The scale is as small as a data transmission network inside a home. The scale is as large as a data transmission network with tens of thousands of computers inside the university. The Internet is a global domain computer network. And the router is a necessary device of the computer network, and the computer network switch and/or router based on the USRT and/or UART physical layer can be implemented by using the method and device of the present invention, and FIG. 16 shows the physical layer based on the USRT and/or UART. Schematic diagram of a protocol computer network switch and/or router. The characteristics of such a computer network switch and/or router are as follows:
1、交换机和/或路由器的内部架构任意,全新定义架构或采用现有的架构均可;1. The internal architecture of the switch and/or router is arbitrary, and the new definition of the architecture or the existing architecture can be used;
2、如本发明的方法及装置实现网络交换和/或路由的物理层协议;2. A physical layer protocol for implementing network switching and/or routing as in the method and apparatus of the present invention;
3、全新定义或采用现有的数据链路层和协议层协议;3. Newly define or adopt existing data link layer and protocol layer protocols;
4、数据传输端口基于本发明的方法及装置实现。4. The data transmission port is implemented based on the method and apparatus of the present invention.
(十)一种通信网络的交换机或路由器(10) A switch or router of a communication network
通信网络是全球域的数据传送网络,交换机和路由器是通信网络不可或缺的部件,采用本发明的方法及装置,可实现基于USRT和/或UART物理层的通信网络交换机和/或路由器,图17给出了基于USRT和/或UART物理层协议的通信网络交换机和/或路由器的示意图,这种通信网络交换机和/或路由器的特征如下:The communication network is a data transmission network of the global domain. The switches and routers are indispensable components of the communication network. With the method and device of the present invention, communication network switches and/or routers based on the USRT and/or UART physical layer can be implemented. 17 shows a schematic diagram of a communication network switch and/or router based on the USRT and/or UART physical layer protocol. The characteristics of such a communication network switch and/or router are as follows:
1、交换机和/或路由器的内部架构任意,全新定义架构或采用现有的架构均可;1. The internal architecture of the switch and/or router is arbitrary, and the new definition of the architecture or the existing architecture can be used;
2、如本发明的方法及装置实现网络交换和/或路由的物理层协议;2. A physical layer protocol for implementing network switching and/or routing as in the method and apparatus of the present invention;
3、全新定义或采用现有的数据链路层和协议层协议;3. Newly define or adopt existing data link layer and protocol layer protocols;
4、数据传输端口基于本发明的方法及装置实现。 4. The data transmission port is implemented based on the method and apparatus of the present invention.

Claims (12)

  1. 一种异步接收串行数据的方法及装置,包括:A method and apparatus for asynchronously receiving serial data, including:
    a)本地时钟和接收数据由外部输入;a) The local clock and received data are input externally;
    b)本地时钟直接作为接收时钟或被分频产生接收时钟,接收频率与发射频率相同,如需要接收时钟经由延时级数为N的多级延迟部件产生N相中间时钟,延迟部件的延迟时间大于或等于0且近似相等,其均值是时钟平均延迟,延迟可以由布线延迟、延迟线延迟、级联电路延迟、延时锁定环等优选方法产生,还可以由频率数倍于接收频率的本地时钟将接收时钟经级联锁存器或级联触发器步进移相等优选方法产生,时钟平均延迟是固定值或可变值;b) The local clock is directly used as the receiving clock or divided to generate the receiving clock. The receiving frequency is the same as the transmitting frequency. If the receiving clock is required to generate the N-phase intermediate clock through the multi-stage delay unit with the delay stage number N, the delay time of the delay component Greater than or equal to 0 and approximately equal, the mean is the clock average delay, and the delay can be generated by a preferred method such as wiring delay, delay line delay, cascade circuit delay, delay locked loop, etc., and can also be locally multiplied by the frequency of the receiving frequency. The clock generates a clock with a cascaded latch or a cascaded flip-flop equalization method, and the clock average delay is a fixed value or a variable value;
    c)基于接收数据产生至少约两个传送周期宽度的展宽脉冲,如需要接收数据经由延迟匹配部件成为匹配数据,使其翻转与展宽脉冲的翻转对齐,如需要接收数据经由延时级数为N的多级延迟部件产生N相中间数据,延迟部件的延迟时间大于或等于0且近似相等,其均值是数据平均延迟,延迟可以由布线延迟、延迟线延迟、级联电路延迟等优选方法产生,数据平均延迟是固定值或可变值,基于中间数据产生N相至少约两个传送周期宽度的展宽延迟,相邻两相展宽延迟的延时时差也是数据平均延迟,N相中间数据经由延迟匹配部件成为数据延迟,使其翻转与展宽延迟的翻转对齐;c) generating a spread pulse of at least about two transfer cycle widths based on the received data, if the received data is to be matched data via the delay matching component, and the flipping is aligned with the flipping of the stretched pulse, if the data needs to be received via the delay level N The multi-stage delay component generates N-phase intermediate data, the delay time of the delay component is greater than or equal to 0 and approximately equal, and the average value thereof is the data average delay, and the delay may be generated by a preferred method such as wiring delay, delay line delay, cascade circuit delay, and the like. The data average delay is a fixed value or a variable value. Based on the intermediate data, a spread delay of at least about two transmission period widths of the N phase is generated, and a delay time difference of adjacent two phase stretch delays is also an average data delay, and the N phase intermediate data is delayedly matched. The component becomes a data delay, causing its flip to be aligned with the flip of the stretch delay;
    d)时钟平均延迟和数据平均延迟均可以为0,但可以同时为0,时钟平均延迟为0时,接收时钟就是中间时钟,即不需要产生中间时钟,数据平均延迟为0时,展宽脉冲和匹配数据分别就是展宽延迟和数据延迟,即不需要产生展宽延迟和数据延迟;d) The average clock delay and the average data delay can be 0, but can be 0 at the same time. When the average clock delay is 0, the receiving clock is the intermediate clock, that is, the intermediate clock is not needed. When the average data delay is 0, the spread pulse and The matching data is the stretching delay and the data delay, respectively, that is, there is no need to generate the stretching delay and the data delay;
    e)用级数为采样级数的采样移位寄存器分别分相采样N相展宽延迟和N相数据延迟,采样中间时钟的下降翻转和上升翻转同时进行,得到负沿展宽和正沿展宽及数据输出,采样可以是正顺序采样或逆顺序采样,正顺序采样是指中间时钟序号和被采样信号序号的变化次序相同,逆顺序采样是指中间时钟序号和被采样信号序号的变化次序相反;e) The sampling shift register with the number of sampling stages is separately phase-sampled for the N-phase broadening delay and the N-phase data delay, and the falling and flipping of the sampling intermediate clock are simultaneously performed to obtain the negative edge broadening and the positive edge broadening and data output. The sampling may be positive sequential sampling or reverse sequential sampling. The positive sequential sampling means that the intermediate clock serial number and the sequence of the sampled signal are changed in the same order, and the reverse sequential sampling means that the intermediate clock serial number and the sequence number of the sampled signal are reversed;
    f)分别让同一个展宽延迟的负沿展宽和正沿展宽相互采样,基于采样结果确定二者的翻转时序,按照翻转时序将展宽输出分为负沿输出超前组和正沿输出超前组,分别从二者中选取序号相邻的数目即同序数目最大者且起始序号最小者作为负沿判据和正沿判据,其起始序号即同序序号分别作为负沿序号和正沿序号;f) respectively, the negative edge broadening and the positive edge broadening of the same stretch width are mutually sampled, and the flip timing of the two is determined based on the sampling result, and the stretched output is divided into a negative edge output lead group and a positive edge output lead group according to the flip timing, respectively. Among them, the number adjacent to the serial number is the one with the largest number of simultaneous sequences and the lowest starting number is used as the negative edge criterion and the positive edge criterion, and the starting serial number and the same serial number are respectively used as the negative edge serial number and the positive edge serial number;
    g)分别计算负沿序号和正沿序号的序号均值、序号方差、序号差值作为畸变判据,可以选择一个或多个数据窗口宽度计算序号均值和序号方差;g) Calculate the mean value of the negative edge number and the positive edge number, the variance of the serial number, and the difference of the serial number as the distortion criterion, and select one or more data window widths to calculate the mean value of the serial number and the variance of the serial number;
    h)如果负沿判据和正沿判据的同序数目不同,则选取同序数目大者作为判据输出,如果负沿判据和正沿判据的同序数目相同,则选取同序序号小者作为判据输出,如选择判据输出中的最小序号作为序号选择,则相位选择选择同相中间时钟,如选择判据输出中的最大序号作为序号选择, 则相位选择选择反相中间时钟,序号选择还要根据畸变判据之一或部分或全部,决定是否进行加1或减1修正;h) If the number of the same order of the negative edge criterion and the positive edge criterion is different, the one with the same number of the same order is selected as the criterion output. If the number of the same order of the negative edge criterion and the positive edge criterion is the same, the same sequence number is selected. As the criterion output, if the smallest serial number in the selection criterion output is selected as the serial number, the phase selection selects the in-phase intermediate clock, and the maximum serial number in the selection criterion output is selected as the serial number. Then the phase selection selects the inverted intermediate clock, and the serial number selection further determines whether to add 1 or subtract 1 correction according to one or part or all of the distortion criterion;
    i)序号选择和相位选择对应的数据输出作为串行数据的接收结果数据分组输出,对应的展宽输出可以作为数据分组的起始和结束的触发信号,需要设置一个比特计数器给出每个数据分组的比特数。异步串行数据的传输帧接收以与接收数据从停止比特或空闲比特的有效电平向起始比特有效电平翻转对应的展宽输出的翻转起始,一个传输帧的比特数是内容比特的数目加一个起始比特和一个停止比特,因此产生数据分组的结束触发信号需要比特计数器的参与。i) The data output corresponding to the serial number selection and phase selection is output as the receiving result data packet of the serial data, and the corresponding stretched output can be used as the trigger signal for the start and end of the data packet, and a bit counter needs to be set to give each data packet. The number of bits. The transmission frame reception of the asynchronous serial data starts with the inversion of the stretched output corresponding to the start bit effective level of the received bit from the active level of the stop bit or the idle bit, and the number of bits of one transmission frame is the number of content bits. A start bit and a stop bit are added, so the end trigger signal that generates the data packet requires the participation of the bit counter.
  2. 一种串行数据收发装置,包括:A serial data transceiver device comprising:
    a)如权利要求1的方法及装置接收同步串行数据或异步串行数据;a) The method and apparatus of claim 1 receiving synchronous serial data or asynchronous serial data;
    b)单向或双向的电气连接,单端驱动或差分驱动,单向电气连接只传送数据或只接收数据,双向电气连接可以分时传送数据和接收数据;b) One-way or two-way electrical connection, single-ended drive or differential drive, one-way electrical connection only transmits data or only receives data, and two-way electrical connection can transmit data and receive data in a time-sharing manner;
    c)单向或双向的数据传输通道,单向数据传输通道由一个只传送数据或只接收数据的单向电气连接构成,双向数据传输通道由一个双向电气连接构成或由一个只传送数据的单向电气连接和一个只接收数据的单向电气连接组合构成;c) a one-way or two-way data transmission channel consisting of a one-way electrical connection that transmits only data or only receives data. The two-way data transmission channel consists of a two-way electrical connection or a single data transmission Composed of an electrical connection and a one-way electrical connection that only receives data;
    d)单向或双向的数据传输端口,单向数据传输端口由一个或多个单向数据传输通道构成,双向数据传输端口由一个或多个双向数据传输通道构成。d) One-way or two-way data transmission port, the one-way data transmission port is composed of one or more one-way data transmission channels, and the two-way data transmission port is composed of one or more bidirectional data transmission channels.
  3. 一种异步串行数据通信物理层之上的同步串行数据通信的方法及装置,包括:A method and apparatus for synchronous serial data communication over a physical layer of asynchronous serial data communication, comprising:
    a)如权利要求1的方法及装置实现接收和发送异步串行数据的物理层协议;a) The method and apparatus of claim 1 implementing a physical layer protocol for receiving and transmitting asynchronous serial data;
    b)数据链路层和协议层的同步串行数据作为物理层的异步串行数据的内容比特发送;b) the synchronous serial data of the data link layer and the protocol layer is sent as the content bit of the asynchronous serial data of the physical layer;
    c)接收到的物理层的异步串行数据的内容比特提交给同步串行数据通信的数据链路层和协议层;c) the content bits of the received asynchronous layer of the physical layer are submitted to the data link layer and the protocol layer of the synchronous serial data communication;
    d)如权利要求2的数据传输端口。d) The data transmission port of claim 2.
  4. 一种单核或多核的通用计算机中央处理器,包括:A single-core or multi-core general-purpose computer central processor, comprising:
    a)中央处理器的内部架构任意,全新定义架构或采用现有架构均可;a) The internal architecture of the central processing unit is arbitrary, and the new definition of the architecture or the existing architecture can be used;
    b)如权利要求1和/或3的方法及装置实现其单向或双向内部或外部接口的接收和发送串行数据的物理层协议;b) a physical layer protocol for receiving and transmitting serial data of the method and apparatus of claim 1 and/or 3 that implements its one-way or two-way internal or external interface;
    c)全新定义或采用现有的外部接口的数据链路层和协议层协议;c) newly defined or adopted data link layer and protocol layer protocols of the external interface;
    d)如权利要求2的数据传输端口。d) The data transmission port of claim 2.
  5. 一种现场可编程门阵列器件,包括: A field programmable gate array device comprising:
    a)现场可编程门阵列器件的内部架构任意,全新定义架构或采用现有架构均可;a) The internal architecture of the field programmable gate array device is arbitrary, and the new definition architecture or existing architecture can be used;
    b)如权利要求1和/或3的方法及装置实现单向或双向内部或外部接口的接收和传送串行数据的物理层协议;b) a method and apparatus according to claim 1 and/or 3 for implementing a physical layer protocol for receiving and transmitting serial data over a one-way or two-way internal or external interface;
    c)全新定义或采用现有的内部或外部接口的数据链路层和协议层协议;c) a new definition or data link layer and protocol layer protocol using existing internal or external interfaces;
    d)如权利要求2的数据传输端口。d) The data transmission port of claim 2.
  6. 一种异步串行数据传输接口的存储器,包括:A memory for an asynchronous serial data transmission interface, comprising:
    a)DRAM/SDRAM或SRAM或FLASH等存储器的内部架构任意,全新定义架构或采用现有架构均可;a) The internal architecture of DRAM/SDRAM or SRAM or FLASH memory is arbitrary, and the new definition architecture or existing architecture can be used;
    b)如权利要求1的方法及装置实现单端口或多端口的单向或双向的接收和发送异步串行数据的物理层协议;b) The method and apparatus of claim 1 implementing a one-port or multi-port unidirectional or bidirectional physical layer protocol for receiving and transmitting asynchronous serial data;
    c)全新定义或采用现有的操作命令和状态信息;c) new definitions or use of existing operational commands and status information;
    d)如权利要求2的数据传输端口。d) The data transmission port of claim 2.
  7. 一种异步串行数据传输接口的存储器控制器,包括:A memory controller for an asynchronous serial data transmission interface, comprising:
    a)与DRAM/SDRAM或SRAM或FLASH等存储器的接口架构任意,全新定义架构或采用现有架构均可;a) interface structure with DRAM/SDRAM or SRAM or FLASH memory, any new definition architecture or existing architecture;
    b)如权利要求1的方法及装置实现单端口或多端口的单向或双向的接收和发送异步串行数据的物理层协议;b) The method and apparatus of claim 1 implementing a one-port or multi-port unidirectional or bidirectional physical layer protocol for receiving and transmitting asynchronous serial data;
    c)全新定义或采用现有的操作命令和状态信息;c) new definitions or use of existing operational commands and status information;
    d)如权利要求2的数据传输端口。d) The data transmission port of claim 2.
  8. 一种计算机外部设备的接口控制器,包括:An interface controller for a computer external device, comprising:
    a)外部设备的接口控制器的内部架构任意,全新定义架构或采用现有架构均可;a) The internal architecture of the interface controller of the external device is arbitrary, and the new definition of the architecture or the existing architecture can be used;
    b)如权利要求1和/或3的方法及装置实现外部设备控制器与计算机系统单向或双向连接的接收和发送串行数据的物理层协议;b) a method and apparatus according to claim 1 and/or 3 for implementing a physical layer protocol for receiving and transmitting serial data in a one-way or two-way connection between an external device controller and a computer system;
    c)全新定义或采用现有的数据链路层和协议层协议;c) new definition or adoption of existing data link layer and protocol layer protocols;
    d)如权利要求2的数据传输端口。d) The data transmission port of claim 2.
  9. 一种数据传输的中继装置,包括:A relay device for data transmission, comprising:
    a)被中继的数据传送接口的架构任意,全新定义架构或采用现有架构均可;a) The architecture of the relayed data transfer interface is arbitrary, and the new definition of the architecture or the existing architecture can be used;
    b)如权利要求1和/或3的方法及装置实现数据传送中继的物理层协议;b) a physical layer protocol for implementing data transfer relaying by the method and apparatus of claim 1 and/or 3;
    c)保持被中继接口的数据链路层和协议层协议不变;c) keeping the data link layer and protocol layer protocols of the relayed interface unchanged;
    d)如权利要求2的数据传输端口。 d) The data transmission port of claim 2.
  10. 一种系统域网络的交换机,包括:A switch for a system domain network, including:
    a)交换机的内部架构任意,全新定义架构或采用现有的架构均可;a) The internal architecture of the switch is arbitrary, and the new definition of the architecture or the existing architecture can be used;
    b)如权利要求1和/或3的方法及装置实现系统域交换网络的物理层协议;b) a method and apparatus according to claim 1 and/or 3 for implementing a physical layer protocol of a system domain switching network;
    c)全新定义或采用现有的数据链路层和协议层协议;c) new definition or adoption of existing data link layer and protocol layer protocols;
    d)如权利要求2的数据传输端口。d) The data transmission port of claim 2.
  11. 一种计算机网络的交换机和/或路由器,包括:A computer network switch and/or router comprising:
    a)交换机和/或路由器的内部架构任意,全新定义架构或采用现有的架构均可;a) The internal architecture of the switch and / or router is arbitrary, the new definition of the architecture or the existing architecture can be used;
    b)如权利要求1和/或3的方法及装置实现网络交换和/或路由的物理层协议;b) a physical layer protocol for implementing network switching and/or routing in accordance with the method and apparatus of claims 1 and/or 3;
    c)全新定义或采用现有的数据链路层和协议层协议;c) new definition or adoption of existing data link layer and protocol layer protocols;
    d)如权利要求2的数据传输端口。d) The data transmission port of claim 2.
  12. 一种通信网络的交换机和/或路由器,包括:A switch and/or router for a communication network, including:
    a)交换机和/或路由器的内部架构任意,全新定义架构或采用现有的架构均可;a) The internal architecture of the switch and / or router is arbitrary, the new definition of the architecture or the existing architecture can be used;
    b)如权利要求1和/或3的方法及装置实现网络交换和/或路由的物理层协议;b) a physical layer protocol for implementing network switching and/or routing in accordance with the method and apparatus of claims 1 and/or 3;
    c)全新定义或采用现有的数据链路层和协议层协议;c) new definition or adoption of existing data link layer and protocol layer protocols;
    d)如权利要求2的数据传输端口。 d) The data transmission port of claim 2.
PCT/CN2015/093138 2014-11-18 2015-10-28 Method and apparatus for asynchronously receiving serial data WO2016078506A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410654561.3A CN105893291B (en) 2014-11-18 2014-11-18 Method and device for asynchronously receiving serial data
CN201410654561.3 2014-11-18

Publications (1)

Publication Number Publication Date
WO2016078506A1 true WO2016078506A1 (en) 2016-05-26

Family

ID=56013268

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/093138 WO2016078506A1 (en) 2014-11-18 2015-10-28 Method and apparatus for asynchronously receiving serial data

Country Status (2)

Country Link
CN (1) CN105893291B (en)
WO (1) WO2016078506A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109586721A (en) * 2018-12-04 2019-04-05 中国航空工业集团公司西安航空计算技术研究所 A kind of sensing data intelligent acquisition system towards navigation system
CN113747276A (en) * 2021-08-25 2021-12-03 许继集团有限公司 Code element recovery and fault tolerance method and device for Ethernet over Ethernet data link layer
CN115189860A (en) * 2021-04-01 2022-10-14 华为技术有限公司 Method and apparatus for data signal transmission in network device

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656165A (en) * 2016-11-30 2017-05-10 北京中电华大电子设计有限责任公司 Synchronous counter circuit based on standard units and realization method thereof
CN109240977A (en) * 2018-09-10 2019-01-18 浙江大学 A kind of asynchronous router circuit based on four phase coding and double track agreements
CN110365565B (en) * 2019-06-26 2021-11-09 成都夸克光电技术有限公司 High fault tolerance bus identification system and identification method
CN112241615B (en) * 2020-10-09 2021-05-18 广芯微电子(广州)股份有限公司 Method and system for detecting data balance time sequence and electronic equipment
CN112241614B (en) * 2020-10-09 2021-05-18 广芯微电子(广州)股份有限公司 Method and system for detecting time delay of clock delay chain and electronic equipment
CN114428753A (en) * 2020-10-29 2022-05-03 施耐德电器工业公司 Display data transmission device and display data transmission method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080147926A1 (en) * 2006-10-18 2008-06-19 Mitac International Corp. Interface conversion device
CN101383819A (en) * 2007-09-05 2009-03-11 迈普(四川)通信技术有限公司 Asynchronous serial data line information transceiving method and asynchronous serial transceiver
CN103116562A (en) * 2011-09-14 2013-05-22 Vega格里沙贝两合公司 Method for asynchronous-serial data transfer over a synchronous-serial interface

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100335442B1 (en) * 1999-05-26 2002-05-04 윤종용 Circuit and method for recovering digital clock
JP3671920B2 (en) * 2001-11-15 2005-07-13 セイコーエプソン株式会社 Skew adjustment circuit and skew adjustment method
US7103131B1 (en) * 2002-08-14 2006-09-05 Applied Micro Circuits Corporation (Amcc) System and method for half-rate clock phase detection
US8189729B2 (en) * 2005-08-03 2012-05-29 Altera Corporation Wide range and dynamically reconfigurable clock data recovery architecture
EP1814254A1 (en) * 2006-01-26 2007-08-01 Alcatel Lucent Binary phase detector and clock data recovery device
CN102331979B (en) * 2011-09-28 2014-02-05 成都市芯锐微电子有限公司 Dynamic clock frequency calibration method applied to universal serial bus (USB) equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080147926A1 (en) * 2006-10-18 2008-06-19 Mitac International Corp. Interface conversion device
CN101383819A (en) * 2007-09-05 2009-03-11 迈普(四川)通信技术有限公司 Asynchronous serial data line information transceiving method and asynchronous serial transceiver
CN103116562A (en) * 2011-09-14 2013-05-22 Vega格里沙贝两合公司 Method for asynchronous-serial data transfer over a synchronous-serial interface

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109586721A (en) * 2018-12-04 2019-04-05 中国航空工业集团公司西安航空计算技术研究所 A kind of sensing data intelligent acquisition system towards navigation system
CN115189860A (en) * 2021-04-01 2022-10-14 华为技术有限公司 Method and apparatus for data signal transmission in network device
CN113747276A (en) * 2021-08-25 2021-12-03 许继集团有限公司 Code element recovery and fault tolerance method and device for Ethernet over Ethernet data link layer
CN113747276B (en) * 2021-08-25 2023-08-11 许继集团有限公司 Method and device for recovering and fault-tolerant code element of optical Ethernet data link layer

Also Published As

Publication number Publication date
CN105893291B (en) 2020-06-09
CN105893291A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
WO2016078506A1 (en) Method and apparatus for asynchronously receiving serial data
US10652067B2 (en) Orthogonal differential vector signaling codes with embedded clock
KR100546971B1 (en) A data capture method for high speed signaling
TWI541644B (en) Method and system of adapting communication links to link conditions on a platform
JP4384819B2 (en) Elastic interface device and method therefor
CN1791120B (en) System and method for effectively aligning data bit of parallel data channel
TWI470401B (en) Apparatus, system, and method for timing recovery
US8352774B2 (en) Inter-clock domain data transfer FIFO circuit
US8686773B1 (en) In-system margin measurement circuit
US5768529A (en) System and method for the synchronous transmission of data in a communication network utilizing a source clock signal to latch serial data into first registers and a handshake signal to latch parallel data into second registers
CN106897238B (en) Data processing device and method
US9250859B2 (en) Deterministic FIFO buffer
US20080175327A1 (en) System for reducing cross-talk induced source synchronous bus clock jitter
US8675798B1 (en) Systems, circuits, and methods for phase inversion
Adetomi et al. Clock buffers, nets, and trees for on-chip communication: A novel network access technique in FPGAs
CN116318601A (en) Frame alignment recovery for high speed signaling interconnect
WO2020259080A1 (en) Multi-digit data cross-clock domain processing method and apparatus
TW201826707A (en) Method for determining sampling phase of sampling clock signal and associated electronic device
WO2016127596A1 (en) Asynchronous data transmission method and system
Zhang et al. A high-speed serial transport platform based on SRIO for high-resolution image
Romoth et al. Optimizing inter-FPGA communication by automatic channel adaptation
Godbole et al. High speed multi-lane LVDS inter-FPGA communication link
WO2023087588A1 (en) Sampling circuit, use method of sampling circuit, storage medium, and electronic device
KR20050115195A (en) Asynchronous switch based on butterfly fat-tree for network on chip applications
Ezz-Eldin et al. Synchronous and Asynchronous NoC Design Under High Process Variation

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: 15860974

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 02.10.2017)

122 Ep: pct application non-entry in european phase

Ref document number: 15860974

Country of ref document: EP

Kind code of ref document: A1