US6911843B2 - Data transfer device for transferring data between blocks of different clock domains - Google Patents
Data transfer device for transferring data between blocks of different clock domains Download PDFInfo
- Publication number
- US6911843B2 US6911843B2 US10/352,164 US35216403A US6911843B2 US 6911843 B2 US6911843 B2 US 6911843B2 US 35216403 A US35216403 A US 35216403A US 6911843 B2 US6911843 B2 US 6911843B2
- Authority
- US
- United States
- Prior art keywords
- data
- clock signal
- count
- serial data
- signal
- Prior art date
- Legal status (The legal status 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 status listed.)
- Expired - Lifetime, expires
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
- H04L7/02—Speed or phase control by the received code signals, the signals containing no special synchronisation information
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M9/00—Parallel/series conversion or vice versa
Definitions
- the present invention relates generally to a data transfer device used for a high speed serial communication apparatus, and more particularly to a data transfer device in which data transfer between blocks having clock domains different from each other is performed in synchronization with a clock signal.
- FIG. 20 is a block diagram showing a conventional data transfer device arranged in a serial communication apparatus.
- a reference sign A indicates a high speed operating block
- a reference sign B indicates a low speed operating block
- a reference sign C indicates a clock signal producing block.
- the parallel data is transferred to the high speed operating block A, the parallel data is converted into serial communication data in the high speed operating block A, minimum part of processing is performed for the serial communication data in the high speed operating block A, and the serial communication data is transmitted to the outside.
- a clock skew between the clock signals CLK-A and CLK-B is adjusted so as to synchronize the clock signal CLK-B with the clock signal CLK-A.
- data transfer between the operating blocks A and B can be synchronously performed without performing the countermeasure for metastable.
- a frequency of the clock signal CLK-A is equal to 480 MHz
- a frequency of the clock signal CLK-B is equal to 60 MHz
- a bit length of parallel data is equal to 8 bits.
- it is required to adjust a clock skew between the clock signals CLK-A and CLK-B. Therefore, a problem has arisen that it takes a lot of time to design a data transfer device.
- the transfer of parallel data RxData and TxData between the operating blocks A and B is controlled in handshaking.
- the number of stuff bits in the serial transmission data is counted.
- a data receiving operation when the counted value of the stuff bits reaches a bit length of parallel data RxData transferred from the operating block A to the operating block B, a RxValid signal for the parallel data is negated.
- the parallel data RxData is treated as invalid data (refer to a literature “USB2.0 Transceiver Macrocell Interface (UTMI) Specification” Ver1.05 page 23 5.6 Bit Unstuff Logic & FIG. 5 ).
- a TxReady signal is negated to stop the transmission of parallel data TxData from a protocol processing unit of the low speed operating block A (refer to a literature “USB2.0 Transceiver Macrocell Interface (UTMI) Specification” Ver1.05 page 29 5.11 Bit Unstuff Logic & FIG. 11 ).
- a main object of the present invention is to provide, with due consideration to the drawbacks of the conventional data transfer device, a data transfer device in which data transfer between operating blocks having clock domains different from each other is synchronously performed without the adjustment of clock skew between clock signals of the operating blocks or a countermeasure for asynchronous data transfer between the operating blocks.
- a subordinate object of the present invention is to provide a data transfer device in which data transfer between operating blocks having clock domains different from each other is synchronously performed in serial communication performed according to bit stuffing processing while preventing the increase of the total number of gates and the increase of the number of gates serially placed due to a countermeasure for overflow or underflow and preventing the increase of consumed electric power due to the increase of the total number of gates.
- the main object is achieved by the provision of a data transfer device including a high speed operating unit operation in synchronization with a first clock signal and a low speed operating unit operation in synchronization with a second clock signal, and the high speed operating unit includes a count signal producing unit, a clock signal producing unit and a data converting unit.
- the count signal producing unit the number of pulses of the first clock is circularly counted, and count signals indicating count values are produced.
- the clock signal producing unit the second clock signal is produced according to two count signals in synchronization with the first clock signal.
- the data converting unit input serial data is converted into reception parallel data, the reception parallel data is driven in response to one count signal so as to be sampled in the low speed operating unit in synchronization with the second clock signal. Also, transmission parallel data driven in the low speed operating unit in synchronization with the second clock signal is sampled in response to one count signal, the transmission parallel data is converted into output serial data, and the output serial data is transmitted.
- a setup time from the driving operation to the sampling operation for data and a hold time from the sampling operation to the driving operation for data can be sufficiently set in the data transfer between the high speed operating unit and the low speed operating unit, and the data transfer can be reliably performed in synchronization with the second clock signal. Accordingly, the data transfer between the operating units having clock domains different from each other can be synchronously performed without the adjustment of clock skew between the first clock signals and the second clock signal or a countermeasure for asynchronous data transfer between the operating blocks.
- the subordinate object is achieved by the provision of a data transfer device further including a stuff bit control signal producing unit.
- a stuff bit control signal indicating the detection or the insertion of a stuff bit in synchronization with the first clock signal.
- the counting is stopped according to the stuff bit control signal so as to hold the count value during a time period corresponding to the stuff bit.
- a stuff bit is removed from the input serial data, and bit-data placed just before the stuff bit is held during a time period corresponding to the stuff bit according to the stuff bit control signal. Also, a stuff bit is inserted in the output serial data according to the stuff bit control signal.
- the cycle of the second clock is lengthened by the time period corresponding to the stuff bit when a stuff bit is detected or inserted, and the synchronous data transfer between the high speed operating unit and the low speed operating unit can be maintained. Accordingly, even though serial communication is performed according to bit stuffing processing, the data transfer between operating blocks having clock domains different from each other can be synchronously performed while preventing the increase of the total number of gates and the increase of the number of gates serially placed due to a countermeasure for overflow of the input serial data or a countermeasure for underflow of the output serial data and preventing the increase of consumed electric power due to the increase of the total number of gates.
- FIG. 1 is a block diagram showing a data transfer device according to a first embodiment of the present invention
- FIG. 2 is an explanatory view of various signals used in the data transfer device shown in FIG. 1 ;
- FIG. 3 is a circuit view of a sampling circuit shown in FIG. 1 ;
- FIG. 4 is a circuit view of a clock signal producing block shown in FIG. 1 ;
- FIG. 5 is a timing chart of various signals used in the data transfer device shown in FIG. 1 in a serial data receiving operation
- FIG. 6 is a timing chart of various signals used in the data transfer device shown in FIG. 1 in a serial data transmitting operation
- FIG. 7 is a block diagram of a data transfer device according to a second embodiment of the present invention.
- FIG. 8 is a circuit view of a sampling circuit shown in FIG. 7 ;
- FIG. 9 is a timing chart of various signals used in the data transfer device shown in FIG. 7 in a serial data transmitting operation
- FIG. 10 is a block diagram of a data transfer device according to a third embodiment of the present invention.
- FIG. 11 is a circuit view of a sampling circuit shown in FIG. 10 ;
- FIG. 12 is a timing chart of various signals used in the data transfer device shown in FIG. 10 in a serial data transmitting operation
- FIG. 13 is a block diagram of a data transfer device according to a fourth embodiment of the present invention.
- FIG. 14 is a timing chart of various signals used in the data transfer device shown in FIG. 13 in a serial data receiving operation
- FIG. 15 is a timing chart of various signals used in the data transfer device shown in FIG. 13 in a serial data transmitting operation
- FIG. 16 is a block diagram of a data transfer device according to a fifth embodiment of the present invention.
- FIG. 17 is a circuit view of a clock signal producing block shown in FIG. 16 ;
- FIG. 18 is a timing chart of various signals used in the data transfer device shown in FIG. 17 in a serial data receiving operation
- FIG. 19 is a timing chart of various signals used in the data transfer device shown in FIG. 17 in a serial data transmitting operation.
- FIG. 20 is a block diagram showing a conventional data transfer device.
- FIG. 1 is a block diagram showing a data transfer device according to a first embodiment of the present invention.
- serial transmission of data is performed according to serial bus standards of USB (Universal Serial Bus).
- USB Universal Serial Bus
- a piece of bit-data of the low level (“0”) additionally placed just after the six pieces of successive bit-data of the input serial data as a stuff bit is received in the data transfer device. That is, in the serial transmission, input serial data has a stuff bit just after each group of six pieces of bit-data successively set to the high level (“1111110”).
- a piece of bit-data set to the low level is additionally added just after the six pieces of successive bit-data of the output serial data as a stuff bit in the data transfer device, and the output serial data including the stuff bit (“1111110”) is transmitted from the data transfer device.
- a clock signal CLK-B is transmitted from a high speed operating block 1 to a low speed operating block 2 through a signal line 312 , reception parallel data RxData is transmitted from the high speed operating block 1 to the low speed operating block 2 through a bus 321 , and transmission parallel data TxData is transmitted from the high speed operating block 1 to the low speed operating block 2 through a bus 322 .
- control signals such as a RxValid signal, a RxActive signal and a TxReady signal transmitted between the high speed operating block 1 and the low speed operating block 2 are omitted, and drive timing of these control signals is the same as that of the reception parallel data RxData and the transmission parallel data TxData.
- FIG. 2 is an explanatory view of various signals used in the data transfer device.
- FIG. 3 is a circuit view of a sampling circuit shown in FIG. 1 .
- FIG. 4 is a circuit view of a clock signal producing block shown in FIG. 1 .
- FIG. 5 is a timing chart of various signals used in the data transfer device in a serial data receiving operation. In this timing chart, pieces of 8-bit reception parallel data FF, 80 , 5 A and 7 E are driven and sampled in that order.
- FIG. 6 is a timing chart of various signals used in the data transfer device in a serial data transmitting operation. In this timing chart, pieces of 8-bit transmission parallel data 80 , 5 A, FF and F 0 are driven and sampled in that order.
- 1 indicates the high speed operating block (or high speed operating unit) for receiving pieces of bit-data of input serial data SDIN from the outside in synchronization with pulses of a clock signal CLK-A (or a first clock signal) and transmitting pieces of bit-data of output serial data SDOUT to the outside in synchronization with pulses of the clock signal CLK-A.
- the clock signal CLK-A has a frequency corresponding to a transmission rate of both the input serial data SDIN and the output serial data SDOUT.
- the clock signal CLK-A have a frequency corresponding to a transmission rate higher than that of both the input serial data SDIN and the output serial data SDOUT.
- the low speed operating block (or low speed operating unit) for performing protocol processing for both the reception parallel data RxData transferred from the high speed operating block 1 and the transmission parallel data TxData in synchronization with the clock signal CLK-B (or a second clock signal) having a frequency lower than that of the clock signal CLK-A, and transferring the transmission parallel data TxData to the high speed operating block 1 .
- a shift register (or data converting unit) for receiving the input serial data SDIN through a bus 323 in a serial data receiving operation, converting the input serial data SDIN into 8-bit parallel data Sft-Regs[7:0], receiving the 8-bit transmission parallel data TxData[7:0] transferred from the low speed operating block 2 in a serial data transmitting operation, and converting the transmission parallel data TxData into serial data Sft-Regs[0].
- a right shift is performed for the input serial data SDIN in the serial data receiving operation regardless of the value of a load enable signal Ld-En sent through a signal line 331 .
- the transmission parallel data TxData transferred from the low speed operating block 2 is sampled when the load enable signal Ld-En is set to the high level, and a right shift is performed for the transmission parallel data TxData when the load enable signal Ld-En is set to the low level. Therefore, the transmission parallel data TxData is converted into the serial data Sft-Regs[0].
- the shift register 12 is used for both the serial data transmitting operation and the serial data receiving operation. However, it is applicable that one shift register used for the serial data transmitting operation and another shift register used for the serial data receiving operation be prepared.
- the 11 indicates a holding register (or data holding unit) for holding the parallel data Sft-Regs[7:0] until the driving operation of the parallel data Sft-Regs[7:0] and setting up the parallel data Sft-Regs[7:0] until the sampling operation.
- the parallel data Sft-Regs[7:0] sent from the shift register 12 through a bus 335 and held in the holding register 11 is driven (at the pulses C 2 , C 10 and C 19 of the clock signal CLK-A in FIG. 5 ), and the parallel data Sft-Regs[7:0] is set up in the holding register 11 until the parallel data Sft-Regs[7:0] is sampled in the lows peed operating block 2 as the reception parallel data RxData.
- a stuff bit detecting block (or a stuff bit control signal producing unit) for detecting a stuff bit inserted into the input serial data SDIN in the serial data receiving operation, and detecting six pieces of bit-data successively set to the high level from the serial data Sft-Regs[0] in the serial data transmitting operation.
- a holding signal Hld (or a stuff bit control signal) set to the high level is output from the stuff bit detecting block 13 .
- a holding signal Hld (or a stuff bit control signal) set to the high level is output from the stuff bit detecting block 13 .
- the stuff bit detecting block 13 is used according to the protocol of USB, only when six pieces of bit-data of the input serial data SDIN or six pieces of bit-data of the serial data Sft-Regs[0] are successively set to “1”, the holding signal Hld is set to the high level. In other cases, the holding signal Hld is set to the low level.
- a range of the count value in the counter 16 depends on a width of the data bus 321 , 322 between the high speed operating block 1 and the low speed operating block 2 .
- the data bus width is set to 8 bits.
- FIG. 17 indicates a clock signal producing block (or a clock signal producing unit) for producing the clock signal CLK-B by forming a leading edge (or first edge) of each pulse according to the count signal Cnt[3] in synchronization with the clock signal CLK-A and forming a trailing edge (or a second edge) of each pulse according to the count signal Cnt[7] in synchronization with the clock signal CLK-A.
- the configuration of the clock signal producing block 17 is shown in FIG. 17 in detail.
- 161 and 163 indicate AND gates respectively.
- 162 , 164 and 167 indicate flip-flops respectively.
- 165 indicates an exclusive NOR gate.
- 166 indicates a selector.
- the clock signal CLK-B is set to the high level in synchronization with a leading edge of the clock signal CLK-A by the functions of the exclusive NOR gate 165 , the selector 166 and the flip-flop 167 (pulses C 6 , C 14 and C 23 of the clock signal CLK-A in FIG. 5 , and pulses C 2 , C 10 and C 18 of the clock signal CLK-A in FIG. 6 ).
- the clock signal CLK-B is set to the low level in synchronization with a leading edge of the clock signal CLK-A by the functions of the exclusive NOR gate 165 , the selector 166 and the flip-flop 167 (pulses C 2 , C 10 and C 19 of the clock signal CLK-A in FIG. 5 , and pulses C 6 , C 14 and C 23 of the clock signal CLK-A in FIG. 6 ).
- the timing of the count signal Cnt[3] set to the high level and the timing of the count signal Cnt[7] set to the high level differ from each other by half of the count range of the counter 16 , and the leading and trailing edges of the clock signal CLK-B are alternately formed at equal intervals.
- a sampling circuit or a load enable signal producing unit for producing a load enable signal Ld-En which is set to the high level in response to the count signal Cnt[7] set to the high level in both the serial data transmitting operation and the serial data receiving operation.
- One bit-data of the parallel data Sft-Regs[7:0] output from the shift register 12 is held in the holding register 11 in response to the load enable signal Ld-En set to the high level, and the transmission parallel data TxData transferred from the low speed operational block 2 is sampled in the shift register 12 in response to the load enable signal Ld-En set to the high level.
- the configuration of the sampling circuit 15 is shown in FIG. 3 in detail.
- 151 indicates an AND gate.
- 152 indicates a flip-flop. An operation of the sampling circuit 15 will be described below. Only when the count signal Cnt[7] set to the high level and the holding signal Hld set to the low level are input to the AND gate 151 , the load enable signal Ld-En set to the high level is output from the flip flop 152 (pulses C 1 , C 9 and C 18 of the clock signal CLK-A in FIG. 5 , and pulses C 5 , C 13 and C 22 of the clock signal CLK-A in FIG. 6 ).
- the 14 indicates a stuff bit inserting block (or data converting unit) for inserting a stuff bit into the serial data sft-regs[0] in the serial data transmitting operation and outputting the serial data sft-regs[0] as the output serial data SDOUT.
- the serial data Sft-Regs[0] is compulsorily set to the low level, and the serial data Sft-Regs[0] is output as the output serial data SDOUT (a pulse C 21 in FIG. 6 ).
- the count signals Cnt[0] to Cnt[7] are produced in synchronization with the clock signal CLK-A in the counter 16 , and the clock signal CLK-B is formed in the clock signal producing block 17 by forming the leading edge of each pulse in response to the count signal Cnt[3] and forming the trailing edge of each pulse in response to the count signal Cnt[7]. Therefore, a cycle of the clock signal CLK-B is set to a time period of eight pulses of the clock signal CLK-A. Thereafter, the clock signal CLK-B is transmitted to the low poer operating block 2 . Also, the load enable signal Ld-EN is set to the high level in the sampling circuit 15 in response to the count signal Cnt[7].
- the serial-parallel conversion is performed for the input serial data SDIN in the shift register 12 to produce the parallel data Sft-Regs [7:0] from the input serial data SDIN while performing the right shift for the input serial data SDIN in synchronization with the clock signal CLK-A, and the parallel data Sft-Regs [7:0] is held in the holding register 11 .
- the parallel-serial conversion is performed in the shift register 12 for the transmission parallel data TxData transferred from the low power operating block 2 to produce the serial data Sft-Regs[0] from the transmission parallel data TxData, and the serial data Sft-Regs[0] is output as output serial data SDOUT to the bus line 324 through the stuff bit inserting block 14 .
- the cycle of the clock signal CLK-B at the timing of the detection or insertion of the stuff bit is lengthen by a time period (or one cycle of the clock signal CLK-A) of the detected or inserted stuff bit.
- the holding signal Hld set to the high level is output from the stuff bit detecting block 13 to the shift register 12 , the stuff bit inserting block 14 , the sampling circuit 15 , the counter 16 and the clock signal producing block 17 in the time period of the pulse C 16 of the clock signal CLK-A, and the shift register 12 , the sampling circuit 15 , the counter 16 and the clock signal producing block 17 are set to the hold state respectively in the time period of the pulse C 17 of the clock signal CLK-A.
- the counting operation of the counter 16 is stopped in the time period of the pulse C 17 , one count signal (in this embodiment, the count signal [7]) recently obtained in the time period of the pulse C 16 is held in the time period of the pulse C 17 , and the counting operation of the counter 16 is again started from the time period of the pulse C 18 of the clock signal CLK-A.
- a pulse repetition time period between pulses of the clock signal CLK-B corresponding to the timing of the detection of the stuff bit is lengthened by the time period corresponding to the stuff bit equal to the time period of one pulse of the clock signal CLK-A and is set to a time period of five pulses of the clock signal CLK-A (from the pulse C 14 to the pulse C 19 of the clock signal CLK-A). Therefore, the cycle of the clock signal CLK-B is lengthened to nine pulses of the clock signal CLK-A (from the pulse C 14 to the pulse C 23 of the clock signal CLK-A).
- the shift operation of the shift register 12 is stopped in the time period of the pulse C 17 of the clock signal CLK-A. Therefore, the stuff bit placed just after the six pieces of bit-data of the input serial data SDIN is removed from the parallel data Sft-Regs [7:0], and one piece of bit-data (in this embodiment, bit-data FC) placed just before the stuff bit and recently set in the shift register 12 as one piece of bit-data of the parallel data Sft-Regs [7:0] is held in the holding register 11 as one piece of bit-data of the parallel data Sft-Regs [7:0] in the time period of the pulse C 17 . That is, the piece of bit-data is twice held in the holding register 11 .
- bit-data FC bit-data FC
- the 9 bit parallel data composed of 2D, 96 , CB, E 5 , F 2 , F 9 , FC, FC and 7 F is sampled in the low power operating block 2 as the 8-bit reception parallel data RxData[7:0] composed of 2D, 96 , CB, E 5 , F 2 , F 9 , FC and 7 F in synchronization with the clock signal CLK-B having the pulse repetition time period of nine pulses of the clock signal CLK-A.
- the reception parallel data RxData[7:0] can be processed in the low speed operating block 2 in synchronization with the clock signal CLK-B.
- the holding signal Hld set to the high level is output from the stuff bit detecting block 13 to the shift register 12 , the stuff bit inserting block 14 , the sampling circuit 15 , the counter 16 and the clock signal producing block 17 in the time period of the pulse C 20 of the clock signal CLK-A to set the shift register 12 , the sampling circuit 15 , the counter 16 and the clock signal producing block 17 to the hold state respectively.
- the stuff bit inserting block 14 because the shift register 12 is set in the hold state in the time period of the pulse C 20 of the clock signal CLK-A, a stuff bit of the low level is inserted at a position just after the six pieces of bit-data of the serial data Sft-Regs[0], and one piece of bit-data following the six pieces of bit-data in the trabsnission parallel data TxData is placed just after the stuff bit.
- the serial data Sft-Regs[0] having the stuff bit after the six pieces of bit-data of the high level is output as the output serial data SDOUT.
- the output serial data SDOUT has the stuff bit in the time period of the pulse C 21 of the clock signal CLK-A.
- the cycle of the clock signal CLK-B is normally set to a time period of eight pulses of the clock signal CLK-A
- a pulse repetition time period between pulses corresponding to the timing of the insertion of the stuff bit is lengthened by the time period corresponding to the stuff bit equal to the time period of one pulse of the clock signal CLK-A
- the cycle of the clock signal CLK-B is set to a time period of nine pulses of the clock signal CLK-A in the time period from the pulse C 14 to the pulse C 23 of the clock signal CLK-A.
- reception parallel data RxData is transferred from the high speed operating block 1 to the low speed operating block 2 , the reception parallel data RxData is driven in the high speed operating block 1 substantially in synchronization with each trailing edge (or second edge) of the clock signal CLK-B, and the reception parallel data RxData is sampled in the low speed operating block 2 in synchronization with each leading edge of the clock signal CLK-B.
- this operation is described with reference to the timing chart of the serial data receiving operation shown in FIG. 5 .
- the count signal Cnt[7] is set to the high level (at the pulses C 8 and C 17 of the clock pulse CLK-A) in the counter 16
- the load enable signal Ld-En is set to the high level (at the pulses C 1 , C 9 and C 18 of the clock pulse CLK-A) in the sampling circuit 15 in response to the count signal Cnt[7] set to the high level
- the parallel data Sft-Regs[7:0] obtained from the input serial data SDIN in the shift register 12 is held in the holding register 11 in response to the load enable signal Ld-En set to the high level
- the reception parallel data RxData is driven in the holding register 11 in synchronization with the leading edges of the pulses C 2 , C 10 and C 19 of the clock pulse CLK-A in response to the load enable signal Ld-En set to the high level so as to set up the reception parallel data RxData.
- the CLK-B trailing edge enable signal Clk-Neg-Edge is set to the high level (at the pulses C 1 , C 9 and C 18 of the clock pulse CLK-A) in response to the count signal Cnt[7] set to the high level, and the trailing edges of the clock signal CLK-B are formed at the pulses C 2 , C 10 and C 18 of the clock signal CLK-A in response to the trailing edge enable signal Clk-Neg-Edge set to the high level.
- the reception parallel data RxData is driven in the high speed operating block 1 substantially in synchronization with the trailing edges of the clock signal CLK-B synchronized with the leading edges of the pulses C 2 , C 10 and C 18 of the clock signal CLK-A. Thereafter, the reception parallel data RxData driven and set up in the holding register 11 is sampled in the low speed operating block 2 in synchronization with the leading edges of the clock signal CLK-B synchronized with the leading edges of the pulses C 6 , C 14 and C 23 of the clock signal CLK-A.
- the reception parallel data RxData is set up in the holding register 11 during a setup time equal to a time period 4CLK-A of four pulses of the clock signal CLK-A until the sampling operation after the reception parallel data RxData is driven substantially in synchronization with each trailing edge of the clock signal CLK-B, and the reception parallel data RxData is held in the holding register 11 during a hold time equal to the time period 4CLK-A of four pulses of the clock signal CLK-A until the driving operation after the reception parallel data RxData is sampled in synchronization with each leading edge of the clock signal CLK-B.
- the hold time from the sampling operation to the driving operation and the setup time from the driving operation to the sampling operation are sufficiently set for the reception parallel data RxData, unless the delay of the sampling of the reception parallel data RxData exceeding the time period 4CLK-A occurs, it is not required to perform a countermeasure for the asynchronous data transfer. Also, because the reception parallel data RxData is transferred from the high speed operating block 1 to the low speed operating block 2 in synchronization with the clock signal CLK-B, it is not required to adjust the clock skew between the clock signals CLK-A and CLK-B.
- the data transfer device can be designed so as to perform the synchronous data transfer of the reception parallel data RxData from the high speed operating block 1 to the low speed operating block 2 .
- the transmission parallel data TxData is driven in the low speed operating block 2 in response to the leading edges of the clock signal CLK-B synchronized with the leading edges of the pulses C 2 , C 10 and C 18 of the clock signal CLK-A.
- the count signal Cnt[7] is set to the high level in the counter 16 in the time periods of pulses C 4 , C 12 and C 21 of the clock pulse CLK-A
- the load enable signal Ld-En is set to the high level in the sampling circuit 15 in response to the count signal Cnt[7] set to the high level in the time periods of pulses C 5 , C 13 and C 22 of the clock pulse CLK-A
- the transmission parallel data TxData is sampled in the high speed operating block 1 in response to the load enable signal Ld-En set to the high level. Therefore, the transmission parallel data TxData is sampled substantially in synchronization with the trailing edges of the clock signal CLK-B synchronized with the leading edges of the pulses C 6 , C 14 and C 23 of the clock signal CLK-A.
- the transmission parallel data TxData is held in the low speed operating block 2 during a hold time equal to the time period 4CLK-A of four pulses of the clock signal CLK-A until the driving operation after the transmission parallel data TxData is sampled in the holding register 11 substantially in synchronization with each trailing edge of the clock signal CLK-B, and the transmission parallel data TxData is set up in the low speed operating block 2 during a setup time equal to the time period 4CLK-A of four pulses of the clock signal CLK-A until the sampling operation after the transmission parallel data TxData is driven in the low speed operating block 2 in synchronization with each leading edge of the clock signal CLK-B.
- the transmission parallel data TxData can be reliably transferred from the low speed operating block 2 to the high speed operating block 1 .
- the delay of the driving of the transmission parallel data TxData exceeding the time period 4CLK-A occurs, it is not required to perform a countermeasure for the asynchronous transfer.
- the transmission parallel data TxData is transferred from the low speed operating block 2 to the high speed operating block 1 in synchronization with the clock signal CLK-B, it is not required to adjust the clock skew between the clock signals CLK-A and CLK-B.
- the data transfer device can be designed so as to perform the synchronous data transfer of the transmission parallel data TxData from the low speed operating block 2 to the high speed operating block 1 .
- the time period 4CLK-A of four pulses of the clock signal CLK-A can be obtained for the data sampling timing in the data transfer between the high speed operating block 1 and the low speed operating block 2 . Accordingly, to perform the synchronous data transfer of both the reception parallel data RxData and the transmission parallel data TxData between the operating blocks 1 and 2 , it is not required to perform the countermeasure for the asynchronous transfer or to adjust a clock skew between the clock signals CLK-A and CLK-B.
- the transmission parallel data TxData is sampled substantially in synchronization with the trailing edges of the clock signal CLK-B, and the reception parallel data RxData is driven substantially in synchronization with the trailing edges of the clock signal CLK-B. Therefore, the sampling timing of the transmission parallel data TxData is the same as the drive timing of the reception parallel data RxData. Therefore, in the data transfer device of the first embodiment, assuming that the transmission parallel data TxData is driven after a time period equal to or longer than the time period 4CLK-A is elapsed from each leading edge of the clock signal CLK-B, the sampling of the transmission parallel data TxData cannot be performed substantially in synchronization with each trailing edge of the clock signal CLK-B and is delayed. In this case, the data transfer between the high speed operating block 1 and the low speed operating block 2 cannot be synchronously performed.
- the enable timing of the load enable signal Ld-En is further shifted to a time lagged behind each leading edge of the clock signal CLK-B by a time period shorter than the time period 4CLK-A to change both the sampling timing of the transmission parallel data TxData and the drive timing of the reception parallel data RxData.
- the problem for the sampling timing of the transmission parallel data TxData is solved, because a time period from the drive timing of the reception parallel data RxData to the sampling timing of the reception parallel data RxData is shortened, there is a case that the reception parallel data RxData cannot be undesirably sampled substantially in synchronization with each leading edge of the clock signal CLK-B.
- the sampling timing of the transmission parallel data TxData differs from the drive timing of the reception parallel data RxData. That is, the sampling timing of the transmission parallel data TxData is set according to the count signal Cnt[2], and the drive timing of the reception parallel data RxData is set according to the count signal Cnt[7] in the same manner as in the first embodiment.
- FIG. 7 is a block diagram of a data transfer device according to the second embodiment of the present invention.
- the constituent elements which are the same as those shown in FIG. 1 , are indicated by the same reference numerals as those of the constituent elements shown in FIG. 1 , and additional description of those constituent elements is omitted.
- 21 indicates a holding register (or a data holding unit).
- the serial data receiving operation when the load enable signal Ld-En is set to the high level, the parallel data Sft-Regs[7:0] converted in the shift register 12 is received in the holding register 21 , and the parallel data Sft-Regs[7:0] is held in the holding register 21 in the same manner as in the first embodiment.
- values of the transmission parallel data TxData driven from the low power operating block 2 are sampled and held in the holding register 21 .
- the transmission parallel data TxData is sampled when the load enable signal Ld-En is set to an enable state (or the high level).
- a sampling circuit or a load enable signal producing unit
- Ld-En a load enable signal Ld-En which is set to the high level in response to the count signal Cnt[2] in the serial data transmitting operation and is set to the high level in response to the count signal Cnt[7] in the serial data receiving operation.
- the parallel data Sft-Regs[7:0] output from the shift register 12 is held in the holding register 21 in response to the load enable signal Ld-En set to the high level, and the transmission parallel data TxData transferred from the low speed operational block 2 is sampled in the holding register 21 in response to the load enable signal Ld-En set to the high level.
- FIG. 8 The configuration of the sampling circuit 22 is shown in FIG. 8 in detail.
- 421 indicates a selector for selecting the count signal cnt[2] in the serial data transmitting operation according to a transfer mode signal SEL-RX-TX set to “0” and selecting the count signal Cnt[7] in the serial data receiving operation according to a transfer mode signal SEL-RX-TX set to “1”.
- the other constituent elements indicated by the same reference numerals as those in FIG. 3 are the same as those shown in FIG. 3 .
- the enable timing (or high level timing) of the load enable signal Ld-En in the serial data transmitting operation differs from that in the serial data receiving operation.
- the load enable signal Ld-En is set to the high level in both the transmitting and receiving operations.
- the count signal Cnt[7] is selected in the serial data receiving operation and is input to the AND gate 151
- the count signal Cnt[2] is selected in the serial data transmitting operation and is input to the AND gate 151 .
- the load enable signal Ld-En is set to the high level in the serial data receiving operation when both the high level of the count signal Cnt[7] and the low level of the holding signal Hld are satisfied, and the load enable signal Ld-En is set to the high level in the serial data transmitting operation when both the high level of the count signal Cnt[2] and the low level of the holding signal Hld are satisfied.
- the sampling circuit 22 has a function for producing a shift enable signal Sft-En.
- the shift enable signal Sft-En is set to the low level in response to the count signal Cnt[3] set to the high level (or the count value of “3”) when the holding signal Hld is set to the low level, and the shift enable signal Sft-En is set to the high level when the count signal Cnt[3] is set to the low level due to the count value other than “3”.
- the holding signal Hld is set to the high level
- the level of the shift enable signal Sft-En is not changed, and the level of the shift enable signal Sft-En set just before the setting of the high level of the holding signal Hld is held.
- the shift enable signal Sft-En is always set to the high level.
- the transmission parallel data TxData is not directly fetched (or sampled) from the low speed operating block 2 to the shift register 12 but is fetched to the holding register 21 .
- the transmission parallel data TxData fetched to the holding register 21 is fetched from the holding register 21 to the shift register 12 in response to the shift enable signal Sft-En set to the low level.
- FIG. 9 is a timing chart of various signals showing the serial data transmitting operation of the data transfer device.
- the transmission parallel data TxData is driven in the low speed operating block 2 in synchronization with each leading edge of the clock signal CLK-B in the same manner as in the first embodiment.
- the leading edges of the clock signal CLK-B are synchronized with the leading edges of the pulses C 2 , C 10 and c 19 of the clock signal CLK-A.
- the load enable signal Ld-En is changed to the high level in response to the count value of “ 2 ” (the high level of the count signal Cnt[2]) obtained in the counter 16 .
- the load enable signal Ld-En is set to the high level in response to the pulses C 8 and c 16 of the clock signal CLK-A.
- the transmission parallel data TxData is sampled in the holding register 21 after a time period 7CLK-A of seven pulses of the clock signal CLK-A is elapsed from each leading edge of the clock signal CLK-B.
- the transmission parallel data TxData is sampled in response to the leading edges of the pulses C 1 , C 9 and C 17 of the clock signal CLK-A.
- the shift enable signal Sft-En is set to the low level in the time periods of the pulses C 1 , C 9 and C 17 of the clock signal CLK-A in response to the count signal Cnt[3] set to the high level.
- the transmission parallel data TxData sampled in the holding register 21 is sent to the shift register 12 in response to the shift enable signal Sft-En set to the low level in the sampling circuit 22 .
- the shift enable signal Sft-En is changed to the high level
- the right shift for the transmission parallel data TxData is performed in the shift register 12 in response to the shift enable signal Sft-En set to the high level
- serial data Sft-Regs[0] are produced from the transmission parallel data TxData.
- the output serial data SDOUT produced from serial data Sft-Regs[0] is transmitted to the bus 324 .
- the sampling timing of the transmission parallel data TxData transferred from the low speed operating block 2 to the high speed operating block 1 can be appropriately set, and the drive timing of the reception parallel data RxData transferred from the high speed operating block 1 to the low speed operating block 2 can be appropriately set. Therefore, even though the transmission parallel data TxData is driven in the low speed operating block 2 after a time period equal to or longer than the time period 4CLK-A is elapsed from each leading edge of the clock signal CLK-B, the transmission parallel data TxData can be reliably sampled in the high speed operating block 1 . Accordingly, it is not required to perform the countermeasure for the asynchronous data transfer or to adjust a clock skew between the clock signals CLK-A and CLK-B.
- the transmission parallel data TxData is not directly fetched from the low speed operating block 2 to the shift register 12 but is fetched to the holding register 21 . However, it is applicable that the transmission parallel data TxData be directly fetched from the low speed operating block 2 to the shift register 12 . In this case, the shift enable signal Sft-En is not required.
- the load enable signal Ld-En is used in common for both the serial data transmitting operation and the serial data receiving operation.
- both a transmission load enable signal for the serial data transmitting operation and a reception load enable signal for the serial data receiving operation be used on condition that the enable timing of the transmission load enable signal differs from that of the reception load enable signal.
- the sampling timing of the transmission parallel data TxData determined due to the count signal Cnt[7] or Cnt[2] is fixed with respect to the clock signal CLK-B
- the drive timing of the reception parallel data RxData determined due to the count signal Cnt[7] is fixed with respect to the clock signal CLK-B.
- the sampling timing of the transmission parallel data TxData and the drive timing of the reception parallel data RxData are arbitrarily changed according to a selection signal set in a software architecture or set at an external terminal.
- FIG. 10 is a block diagram of a data transfer device according to the third embodiment of the present invention.
- the constituent elements which are the same as those shown in FIG. 7 , are indicated by the same reference numerals as those of the constituent elements shown in FIG. 7 , and additional description of those constituent elements is omitted.
- 31 indicates a sampling circuit (or a load enable signal producing unit) for producing a load enable signal Ld-En which is set to the high level in response to the count signal Cnt[0], Cnt[1], Cnt[2], Cnt[3], Cnt[4], Cnt[5] or Cnt[6] in the serial data transmitting operation and is set to the high level in response to the count signal Cnt[7] in the serial data receiving operation.
- a sampling circuit or a load enable signal producing unit for producing a load enable signal Ld-En which is set to the high level in response to the count signal Cnt[0], Cnt[1], Cnt[2], Cnt[3], Cnt[4], Cnt[5] or Cnt[6] in the serial data transmitting operation and is set to the high level in response to the count signal Cnt[7] in the serial data receiving operation.
- the parallel data Sft-Regs[7:0] output from the shift register 12 is held in the holding register 21 in response to the load enable signal Ld-En set to the high level, and the transmission parallel data TxData transmitted from the low speed operational block 2 is sampled in the holding register 21 in response to the load enable signal Ld-En set to the high level.
- FIG. 11 The configuration of the sampling circuit 31 is shown in FIG. 11 in detail.
- 711 indicates a selector for selecting the count signal Cnt[0], Cnt[1], Cnt[2], Cnt[3], Cnt[4], Cnt[5], Cnt[6] or Cnt[7] according to a value of an enable timing setting signal (or selection signal) SEL-CNT set in a software architecture or set at an external terminal.
- the other constituent elements indicated by the same reference numerals as those in FIG. 8 are the same as those shown in FIG. 8 .
- FIG. 12 is a timing chart of various signals used in the data transfer device in the serial data transmitting operation.
- the sampling timing of the transmission parallel data TxData is, for example, determined due to the count signal Cnt[1].
- the enable timing setting signal SEL-CNT indicating the value of “1” is set according to a software architecture or is set at an external terminal, and the enable timing setting signal SEL-CNT indicating the value of “1” is input to the selector 711 .
- the count signal Cnt[1] is selected in the selector 711 , and the load enable signal Ld-En is set to the high level in response to the count signal Cnt[1] set to the high level. Therefore, the transmission parallel data TxData is sampled in the holding register 21 after a time period 6CLK-A of six pulses of the clock signal CLK-A is elapsed from each leading edge of the clock signal CLK-B.
- the transmission parallel data TxData is, for example, sampled in response to the leading edges of the pulses C 8 and C 16 of the clock signal CLK-A in cases where the clock signal CLK-B has the leading edges synchronized with the leading edges of the pulses C 2 and C 10 of the clock signal CLK-A.
- the enable timing setting signal SEL-CNT indicating the value of “2” is set according to the software architecture or is set at the external terminal, and the enable timing setting signal SEL-CNT indicating the value of “2” is input to the selector 711 .
- the count signal Cnt[2] is selected in the selector 711 , and the load enable signal Ld-En is set to the high level in response to the count signal Cnt[2] set to the high level. Therefore, in the same manner as in the second embodiment (shown in FIG. 9 ), the transmission parallel data TxData is sampled in the holding register 21 after the time period 7CLK-A of seven pulses of the clock signal CLK-A is elapsed from each leading edge of the clock signal CLK-B.
- the sampling timing of the transmission parallel data TxData and the drive timing of the reception parallel data RxData can be arbitrarily set according to the enable timing setting signal SEL-CNT set in the software architecture or set at the external terminal, the sampling timing of the transmission parallel data TxData and the drive timing of the reception parallel data RxData can be changed after the manufacturing of the data transfer device. For example, after the data transfer device is arranged on a large scale integrated circuit, there is a trouble that the data transfer synchronized with the clock signal CLK-B cannot be performed between the high speed operating block 1 and the low speed operating block 2 due to the difference between an expected delay and an actual delay of data.
- the sampling timing of the transmission parallel data TxData and the drive timing of the reception parallel data RxData can be arbitrarily changed according to the enable timing setting signal SEL-CNT set in the software architecture or set at the external terminal, the data transfer synchronized with the clock signal CLK-B can be reliably performed between the high speed operating block 1 and the low speed operating block 2 .
- the transmission parallel data TxData is not directly fetched from the low speed operating block 2 to the shift register 12 but is fetched to the holding register 21 .
- the transmission parallel data TxData be directly fetched from the low speed operating block 2 to the shift register 12 in the same manner as in the first embodiment by replacing the sampling circuit 31 with the sampling circuit 15 of the first embodiment. In this case, no enable timing setting signal SEL-CNT is used.
- the sampling timing of the transmission parallel data TxData and the drive timing of the reception parallel data RxData for the clock signal CLK-B are adjusted by changing the enable timing of the load enable signal Ld-En for the clock signal CLK-B. Therefore, the sampling timing of the transmission parallel data TxData and the drive timing of the reception parallel data RxData differ from the timing of the leading and trailing edges of the clock signal CLK-B.
- the sampling timing of the transmission parallel data TxData and the drive timing of the reception parallel data RxData for the clock signal CLK-B are adjusted by changing the count signal determining the enable timing of the load enable signal Ld-En to an appropriate count signal.
- the timing of the leading edges of the clock signal CLK-B and the trailing edges of the clock signal CLK-B for the clock signal CLK-B are adjusted while the enable timing of the load enable signal Ld-En is set according to the count signal Cnt[7] in the same manner as in the first embodiment, and the sampling timing of the transmission parallel data TxData and the drive timing of the reception parallel data RxData for the clock signal CLK-B are adjusted to shorten or lengthen the time period from the drive timing of the reception parallel data RxData to the sampling timing of the reception parallel data RxData and to lengthen or shorten the time period from the drive timing of the transmission parallel data TxData to the sampling timing of the transmission parallel data TxData.
- a time period 4CLK-A from the timing of the leading edge of the clock signal CLK-B to the sampling timing of the transmission parallel data TxData is insufficient in a data transfer device arranged on a type of large scale integrated circuit
- a time period 4CLK-A from the drive timing of the reception parallel data RxData to the timing of the leading edge of the clock signal CLK-B is sufficient in the data transfer device arranged on the type of large scale integrated circuit.
- the data transfer device according to the fourth embodiment is designed to shorten the time period from the drive timing of the reception parallel data RxData to the sampling timing of the reception parallel data RxData and to lengthen the time period from the drive timing of the transmission parallel data TxData to the sampling timing of the transmission parallel data TxData.
- FIG. 13 is a block diagram of a data transfer device according to the fourth embodiment of the present invention.
- the constituent elements which are the same as those shown in FIG. 1 , are indicated by the same reference numerals as those of the constituent elements shown in FIG. 1 , and additional description of those constituent elements is omitted.
- the count signal Cnt[2] and the count signal Cnt[6] are input to the clock signal producing block 17 in place of the count signal Cnt[3] and the count signal Cnt[7] used in the first embodiment.
- FIG. 14 is a timing chart of various signals showing the serial data receiving operation of the data transfer device.
- FIG. 15 is a timing chart of various signals showing the serial data transmitting operation of the data transfer device.
- the leading edges of the clock signal CLK-B and the trailing edges of the clock signal CLK-B are formed in response to the count value of “3” and the count value of “7”
- the leading edges of the clock signal CLK-B and the trailing edges of the clock signal CLK-B are formed in response to the count value of “2” and the count value of “6”.
- the load enable signal Ld-En is set to the enable state in response to the count value of “7”. Therefore, in the fourth embodiment, the timing of the leading and trailing edges of the clock signal CLK-B for the enable timing of the load enable signal Ld-En is earlier than that in the first embodiment by one pulse of the clock signal CLK-A.
- the reception parallel data RxData is driven in response to each of the pulses C 2 , C 10 and C 19 of the clock signal CLK-A later than the leading edges of the clock signal CLK-B by one pulse of the clock signal CLK-A
- the sampling timing of the reception parallel data RxData is placed after three pulses (or three cycles) of the clock signal CLK-A from the drive timing of the reception parallel data RxData. That is, the reception parallel data RxData is sampled at the pulses C 5 , C 13 and C 22 of the clock signal CLK-A.
- the transmission parallel data TxData is driven in synchronization with the leading edges of the clock signal CLK-B synchronized with the leading edges of the pulses C 1 , C 9 and C 17 of the clock signal CLK-A respectively.
- the sampling timing of the transmission parallel data TxData sampled in response to the load enable signal Ld-En set to the high level is placed after five pulses (or five cycles) of the clock signal CLK-A from the drive timing of the transmission parallel data TxData.
- the sampling timing of the transmission parallel data TxData is synchronized with the leading edges of the pulses C 6 and C 14 of the clock signal CLK-A.
- the holding signal set to the high level is received in the sampling circuit 15 in a time period from the drive timing of the transmission parallel data TxData to the sampling timing of the transmission parallel data TxData, because one stuff bit is inserted into the transmission parallel data TxData in the stuff bit inserting block 14 during one pulse of the clock signal CLK-A, the sampling timing of the transmission parallel data TxData is placed after six pulses (or six cycles) of the clock signal CLK-A from the drive timing of the transmission parallel data TxData. That is, the sampling timing of the transmission parallel data TxData is synchronized with the leading edge of the pulse C 23 of the clock signal CLK-A.
- the set of count signals Cnt[2] and Cnt[6] are used in the clock signal producing block 17 to set the timing of the leading edges of the clock signal CLK-B and the timing of the trailing edges of the clock signal CLK-B.
- a set of count signals Cnt[1] and Cnt[5] or a set of count signals Cnt[0] and Cnt[4] be used in the clock signal producing block 17 to set the timing of the leading edges of the clock signal CLK-B and the timing of the trailing edges of the clock signal CLK-B.
- the timing of the leading and trailing edges of the clock signal CLK-B is earlier than the enable timing of the load enable signal Ld-En by two or three pulses of the clock signal CLK-A.
- the synchronization data transfer between the high speed operating block 1 and the low speed operating block 2 can be reliably performed while removing or inserting the stuff bit from/into the reception parallel data RxData or the transmission parallel data TxData.
- the timing of the leading and trailing edges of the clock signal CLK-B for the enable timing of the load enable signal Ld-En is advanced as compared with in the first embodiment.
- the timing of the leading and trailing edges of the clock signal CLK-B for the enable timing of the load enable signal Ld-En is delayed as compared with in the first embodiment by using the count value of “4” and the count value of “0” in the clock signal producing block 17 to set the timing of the leading edges of the clock signal CLK-B and the timing of the trailing edges of the clock signal CLK-B.
- the enable timing of the load enable signal Ld-En is set according to the count signal Cnt[7] in both the serial data receiving and transmitting operations.
- the count signal for setting the enable timing of the load enable signal Ld-En in the serial data receiving operation differ from that in the serial data transmitting operation.
- the time period from the drive timing of the reception parallel data RxData to the sampling timing of the reception parallel data RxData and the time period from the drive timing of the transmission parallel data TxData to the sampling timing of the transmission parallel data TxData can be independently and precisely set.
- the timing of the leading and trailing edges of the clock signal CLK-B set according to the count signal Cnt[3] and the count signal Cnt[7] in the first embodiment cannot be changed after the manufacturing of the data transfer device. Also, the timing of the leading and trailing edges of the clock signal CLK-B set according to the count signal Cnt[2] and the count signal Cnt[6] in the fourth embodiment cannot be changed after the manufacturing of the data transfer device.
- the timing of the leading and trailing edges of the clock signal CLK-B is set so as to be adjustable according to a selection signal set in a software architecture or set at an external terminal after the manufacturing of a data transfer device.
- FIG. 16 is a block diagram of a data transfer device according to the fifth embodiment of the present invention.
- the constituent elements which are the same as those shown in FIG. 1 , are indicated by the same reference numerals as those of the constituent elements shown in FIG. 1 , and additional description of those constituent elements is omitted.
- 51 indicates a clock signal producing block (or a clock signal producing unit) for producing a clock signal CLK-B according to the count signal Cnt[0:7], the clock signal CLK-A, a CLK-B leading edge timing setting signal SEL-PE and a CLK-B trailing edge timing setting signal SEL-NE.
- Each of both the leading edge timing setting signal SEL-PE and the trailing edge timing setting signal SEL-NE is set to a value of “0”, “1”, “2”, “3”, “4”, “5”, “6” or “7”.
- the signal is readable and writable in a register according to a software architecture, or the signal is set at an external terminal.
- FIG. 17 The configuration of the clock signal producing block 51 is shown in FIG. 17 in detail.
- 510 indicates a selector for selecting the count signal Cnt[0], Cnt[l], Cnt[2], Cnt[3], Cnt[4], Cnt[5], Cnt[6] or Cnt[7] according to the value of the trailing edge timing setting signal SEL-NE.
- 511 indicates a selector for selecting the count signal Cnt[0], Cnt[l], Cnt[2], Cnt[3], Cnt[4], Cnt[5], Cnt[6] or Cnt[7] according to the value of the leading edge timing setting signal SEL-PE.
- the count signal selected in the selector 510 is input to the AND gate 161 , and the count signal selected in the selector 511 is input to the AND gate 163 .
- the other constituent elements indicated by the same reference numerals as those in FIG. 4 are the same as those shown in FIG. 4 .
- FIG. 18 is a timing chart of various signals used in the serial data receiving operation of the data transfer device.
- FIG. 19 is a timing chart of various signals used in the serial data transmitting operation of the data transfer device.
- the leading edge timing setting signal SEL-PE is set to the value of “0” to input the count signal Cnt[0] to the AND gate 163
- the trailing edge timing setting signal SEL-NE is set to the value of “4” to input the count signal Cnt[4] to the AND gate 161 .
- the holding signal Hld is set to the high level at the pulse C 16
- the count signal Cnt[0] is set to the high level at the pulses C 1 , C 9 and C 18 of the clock signal CLK-A
- the count signal Cnt[4] is set to the high level at the pulses C 5 , C 13 and C 22 of the clock signal CLK-A
- the leading enable signal Clk-Pos-Edge is set to the high level in response to the count signal Cnt[0] at the pulses C 2 , C 10 and C 19 of the clock signal CLK-A
- the trailing enable signal Clk-Neg-Edge is set to the high level in response to the count signal Cnt[4] at the pulses C 6 , C 14 and C 23 of the clock signal CLK-A
- the leading edges of the clock signal CLK-B synchronized with the leading edges of the pulses C 3 , C 11 and C 20 of the clock signal CL
- the holding signal Hld is set to the high level at the pulse C 22
- the count signal Cnt[0] is set to the high level at the pulses C 7 , C 15 and C 24 of the clock signal CLK-A
- the count signal Cnt[4] is set to the high level at the pulses C 3 , C 11 and C 19 of the clock signal CLK-A
- the leading edges of the clock signal CLK-B synchronized with the leading edges of the pulses C 1 , C 9 and C 17 of the clock signal CLK-A are formed
- the trailing edges of the clock signal CLK-B synchronized with the leading edges of the pulses C 5 , C 13 and C 21 of the clock signal CLK-A are formed.
- the load enable signal Ld-En is set to the high level at the pulses C 7 , C 15 and C 24 of the clock signal CLK-A in response to the count signal Cnt[7]
- the sampling timing of the transmission parallel data TxData is synchronized with the leading edges of the pulses C 8 , C 16 and C 25 of the clock signal CLK-A in response to the load enable signal Ld-En
- the drive timing of the transmission parallel data TxData synchronized with the leading edges of the clock signal CLK-B is synchronized with the leading edges of the pulses C 1 , C 9 and C 17 of the clock signal CLK-A.
- the sampling timing of the transmission parallel data TxData is later than the drive timing of the transmission parallel data TxData by the time period 7CLK-A of seven pulses of the clock signal CLK-A.
- the sampling timing of the transmission parallel data TxData is later than the drive timing of the transmission parallel data TxData by a time period 8CLK-A of eight pulses of the clock signal CLK-A.
- the reception parallel data RxData is sampled after one pulse (or one cycle) of the clock signal CLK-A from the setting-up of the reception parallel data RxData in the holding register 11 , a set-up time period of the reception parallel data RxData in the holding register 11 is not sufficient when the data transfer device is used for a type of large scale integrated circuit.
- the inventive idea of the second or third embodiment is combined with that of the fifth embodiment, and the set-up time period of the reception parallel data RxData is set to be sufficient regardless of the type of large scale integrated circuit.
- the data transfer device is operated in the same manner as in the fourth embodiment.
- the timing of the leading and trailing edges of the clock signal CLK-B can be changed after the manufacturing of the data transfer device.
- the high speed operating block 1 is manufactured while fixing a layout of the elements of the high speed operating block 1
- the low speed operating block 2 is manufactured while changeably setting a layout of the elements of the low speed operating block 2
- the data transfer devices are used for various types of large scale integrated circuits respectively.
- data delay in the low speed operating block 2 depends on process and/or technology of the type of large scale integrated circuit. Therefore, it is required to appropriately set an interface between the high speed operating block 1 and the low speed operating block 2 for each type of large scale integrated circuit, and it is required to adjust the performance of the high speed operating block 1 to compensate the timing delay in the interface between the high speed operating block 1 and the low speed operating block 2 .
- the inventive idea of the first, second or fourth embodiment is adopted to adjust the performance of the high speed operating block 1 , it takes a long time and high cost.
- the performance of the high speed operating block 1 can be reliably adjusted by appropriately setting the values of the trailing edge timing setting signal SEL-NE and the leading edge timing setting signal SEL-PE, and it is not required to change the layout of the elements of the high speed operating block 1 .
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Systems (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Bus Control (AREA)
Abstract
Description
(Frequency of clock signal CLK-A)=(Frequency of clock signal CLK-B)×(bit length of parallel data),
a clock skew between the clock signals CLK-A and CLK-B is adjusted so as to synchronize the clock signal CLK-B with the clock signal CLK-A. In this case, data transfer between the operating blocks A and B can be synchronously performed without performing the countermeasure for metastable. For example, a frequency of the clock signal CLK-A is equal to 480 MHz, a frequency of the clock signal CLK-B is equal to 60 MHz, and a bit length of parallel data is equal to 8 bits. However, it is required to adjust a clock skew between the clock signals CLK-A and CLK-B. Therefore, a problem has arisen that it takes a lot of time to design a data transfer device.
(2) When a stuff bit of the input serial data SDIN is detected and removed or a stuff bit is inserted into the output serial data SDOUT, the cycle of the clock signal CLK-B at the timing of the removal or insertion of the stuff bit is lengthened by the time period corresponding to the stuff bit equal to one cycle of the clock signal CLK-A. Therefore, both the reception parallel data RxData and the transmission parallel data TxData can be transferred between the operating blocks 1 and 2 in synchronization with the clock signal CLK-B. Accordingly, the increase of the number of gates and the increase of the number of gates serially placed due to the countermeasure for overflow of the transmission parallel data TxData or underflow of the reception parallel data RxData can be prevented. Also, the increase of the consumed electric power due to the increase of the number of gates can be prevented.
Claims (15)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002230423A JP3998532B2 (en) | 2002-08-07 | 2002-08-07 | Data transfer device |
JP2002-230423 | 2002-08-07 |
Publications (2)
Publication Number | Publication Date |
---|---|
US20040027167A1 US20040027167A1 (en) | 2004-02-12 |
US6911843B2 true US6911843B2 (en) | 2005-06-28 |
Family
ID=31492330
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US10/352,164 Expired - Lifetime US6911843B2 (en) | 2002-08-07 | 2003-01-28 | Data transfer device for transferring data between blocks of different clock domains |
Country Status (5)
Country | Link |
---|---|
US (1) | US6911843B2 (en) |
JP (1) | JP3998532B2 (en) |
CN (1) | CN1266904C (en) |
DE (1) | DE10313886A1 (en) |
TW (1) | TWI221373B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050235089A1 (en) * | 2004-04-02 | 2005-10-20 | Fred Cheng | Method and apparatus for universal serial bus (USB) physical layer |
US20060002399A1 (en) * | 2004-06-30 | 2006-01-05 | Fujitsu Limited | Apparatus for receiving parallel data and method thereof |
US20060217865A1 (en) * | 2005-03-22 | 2006-09-28 | Sigmatel, Inc. | Method and system for communicating with memory devices |
US20070257877A1 (en) * | 2006-04-13 | 2007-11-08 | Etron Technology, Inc. | Method and circuit for transferring data stream across multiple clock domains |
US7307558B1 (en) * | 2005-12-20 | 2007-12-11 | National Semiconductor Corporation | Dual shift register data serializer |
US20090296797A1 (en) * | 2008-05-27 | 2009-12-03 | Wei-Yi Wei | Data Description Method and Related Packet and Testing System for a Serial Transmission Interface |
US20100123924A1 (en) * | 2008-11-20 | 2010-05-20 | Sony Corporation | Data communication device, communication control method, and program |
US10349707B2 (en) | 2016-07-05 | 2019-07-16 | Alfatex Nv | Fastener tape |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4364041B2 (en) * | 2004-04-01 | 2009-11-11 | Okiセミコンダクタ株式会社 | Data transfer circuit |
KR100563073B1 (en) | 2004-11-01 | 2006-03-24 | 삼성에스디아이 주식회사 | A sampling clock signal generator |
US7428652B2 (en) * | 2005-05-10 | 2008-09-23 | Intel Corporation | Programmable phase generator for cross-clock communication where the clock frequency ratio is a rational number |
KR100635500B1 (en) | 2005-05-24 | 2006-10-17 | 삼성에스디아이 주식회사 | Shift register and organic electroluminescent display device having the same |
JP5019419B2 (en) * | 2006-07-07 | 2012-09-05 | ルネサスエレクトロニクス株式会社 | Display data receiving circuit and display panel driver |
JP4445535B2 (en) * | 2007-09-19 | 2010-04-07 | 富士通株式会社 | DATA TRANSFER DEVICE, INFORMATION PROCESSING SYSTEM, DATA TRANSFER PROGRAM, AND COMPUTER-READABLE RECORDING MEDIUM CONTAINING THE PROGRAM |
CN102541784A (en) * | 2010-12-21 | 2012-07-04 | 上海华虹集成电路有限责任公司 | Parallel design circuit for realizing bit stuffing |
CN102592636A (en) * | 2011-01-11 | 2012-07-18 | 上海华虹集成电路有限责任公司 | NRZI (non return to zero invert) decoding parallel design circuit |
CN102340316A (en) * | 2011-09-07 | 2012-02-01 | 上海大学 | FPGA (Field Programmable Gate Array)-based micro-space oversampling direct-current balance serial deserializer |
CN103633969B (en) * | 2012-08-20 | 2017-10-31 | 上海华虹集成电路有限责任公司 | asynchronous signal transfer circuit |
CN103401656B (en) * | 2013-08-16 | 2016-07-06 | 中国科学院上海微系统与信息技术研究所 | Spaceborne phased array receiving antenna data transmission system |
CN108873766B (en) * | 2017-08-15 | 2021-03-23 | 北京旷视科技有限公司 | IO control circuit for camera and camera equipment |
CN108872830A (en) * | 2018-06-07 | 2018-11-23 | 苏州纳芯微电子股份有限公司 | A kind of single line test method for sensor conditioning chip |
CN110971238B (en) * | 2019-12-16 | 2023-04-18 | 电子科技大学 | External synchronization device for continuous equal-gap sampling of sigma-delta type AD |
CN113407476B (en) * | 2021-06-17 | 2024-02-23 | 芯天下技术股份有限公司 | Method and device for improving data channel speed, storage medium and terminal |
JP2024048776A (en) * | 2022-09-28 | 2024-04-09 | ラピステクノロジー株式会社 | Data reception circuit, display driver, and display device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4872155A (en) * | 1987-03-13 | 1989-10-03 | Pioneer Electronic Corporation | Clock generator circuit and a synchronizing signal detection method in a sampled format system and a phase comparator circuit suited for generation of the clock |
US4989223A (en) * | 1988-11-25 | 1991-01-29 | Nec Corporation | Serial clock generating circuit |
US5293628A (en) * | 1991-11-04 | 1994-03-08 | Motorola, Inc. | Data processing system which generates a waveform with improved pulse width resolution |
US5598446A (en) * | 1995-09-08 | 1997-01-28 | Vlsi Technology, Inc. | Clock extraction of a clock signal using rising and falling edges of a received transmission signal |
US6097674A (en) * | 1995-10-30 | 2000-08-01 | Motorola, Inc. | Method for measuring time and structure therefor |
US6259283B1 (en) * | 1999-10-25 | 2001-07-10 | Xilinx, Inc. | Clock doubler circuit and method |
JP2001268142A (en) | 2000-03-16 | 2001-09-28 | Seiko Epson Corp | Data transfer controller and electronic equipment |
EP1172960A2 (en) * | 2000-07-10 | 2002-01-16 | International Business Machines Corporation | Apparatus and method for determining the quality of a digital signal |
-
2002
- 2002-08-07 JP JP2002230423A patent/JP3998532B2/en not_active Expired - Lifetime
-
2003
- 2003-01-21 TW TW092101211A patent/TWI221373B/en not_active IP Right Cessation
- 2003-01-28 US US10/352,164 patent/US6911843B2/en not_active Expired - Lifetime
- 2003-03-27 DE DE10313886A patent/DE10313886A1/en not_active Ceased
- 2003-03-31 CN CN03107767.6A patent/CN1266904C/en not_active Expired - Lifetime
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4872155A (en) * | 1987-03-13 | 1989-10-03 | Pioneer Electronic Corporation | Clock generator circuit and a synchronizing signal detection method in a sampled format system and a phase comparator circuit suited for generation of the clock |
US4989223A (en) * | 1988-11-25 | 1991-01-29 | Nec Corporation | Serial clock generating circuit |
US5293628A (en) * | 1991-11-04 | 1994-03-08 | Motorola, Inc. | Data processing system which generates a waveform with improved pulse width resolution |
US5598446A (en) * | 1995-09-08 | 1997-01-28 | Vlsi Technology, Inc. | Clock extraction of a clock signal using rising and falling edges of a received transmission signal |
US6097674A (en) * | 1995-10-30 | 2000-08-01 | Motorola, Inc. | Method for measuring time and structure therefor |
US6259283B1 (en) * | 1999-10-25 | 2001-07-10 | Xilinx, Inc. | Clock doubler circuit and method |
JP2001268142A (en) | 2000-03-16 | 2001-09-28 | Seiko Epson Corp | Data transfer controller and electronic equipment |
EP1172960A2 (en) * | 2000-07-10 | 2002-01-16 | International Business Machines Corporation | Apparatus and method for determining the quality of a digital signal |
Non-Patent Citations (3)
Title |
---|
"Universal Serial Bus Specification," Revision 2.0, http://www.usb.org/developers/data/usb_20.zip Apr 27, 2000, pp. 157-158. |
USB 2.0 Transceiver Macrocell Interface (UTMI) Specification 1999-2001 Intel Corporation, Ver. 1.05, http://developer.intel.com/technology/usb/download/ 2_0_Xcvr_Macrocell_1_05.pdf Mar. 29, 2001, P29 5.11 Bitstuff Logic & Figure 11. |
USB 2.0 Transceiver Macrocell Interface (UTMI) Specification 1999-2001 Intel Corporation, Ver. 1.05, http://developer.intel.com/technology/usb/download/2_0_Xcvr_Macrocell_1_05.pdf Mar. 29, 2001, P23 5.6 Bit Unstuff Logic & Figure 5. |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050235089A1 (en) * | 2004-04-02 | 2005-10-20 | Fred Cheng | Method and apparatus for universal serial bus (USB) physical layer |
US20060002399A1 (en) * | 2004-06-30 | 2006-01-05 | Fujitsu Limited | Apparatus for receiving parallel data and method thereof |
US7620138B2 (en) * | 2004-06-30 | 2009-11-17 | Fujitsu Limited | Apparatus for receiving parallel data and method thereof |
US7685333B2 (en) * | 2005-03-22 | 2010-03-23 | Sigmatel, Inc | Method and system for communicating with memory devices utilizing selected timing parameters from a timing table |
US20060217865A1 (en) * | 2005-03-22 | 2006-09-28 | Sigmatel, Inc. | Method and system for communicating with memory devices |
US7307558B1 (en) * | 2005-12-20 | 2007-12-11 | National Semiconductor Corporation | Dual shift register data serializer |
US7860202B2 (en) * | 2006-04-13 | 2010-12-28 | Etron Technology, Inc. | Method and circuit for transferring data stream across multiple clock domains |
US20070257877A1 (en) * | 2006-04-13 | 2007-11-08 | Etron Technology, Inc. | Method and circuit for transferring data stream across multiple clock domains |
US20090296797A1 (en) * | 2008-05-27 | 2009-12-03 | Wei-Yi Wei | Data Description Method and Related Packet and Testing System for a Serial Transmission Interface |
US20100123924A1 (en) * | 2008-11-20 | 2010-05-20 | Sony Corporation | Data communication device, communication control method, and program |
TWI408931B (en) * | 2008-11-20 | 2013-09-11 | Sony Corp | Data communication device, communication control method, and program |
US8654377B2 (en) * | 2008-11-20 | 2014-02-18 | Sony Corporation | Data communication device, communication control method, and program |
US10349707B2 (en) | 2016-07-05 | 2019-07-16 | Alfatex Nv | Fastener tape |
Also Published As
Publication number | Publication date |
---|---|
TWI221373B (en) | 2004-09-21 |
CN1474567A (en) | 2004-02-11 |
TW200402974A (en) | 2004-02-16 |
DE10313886A1 (en) | 2004-03-04 |
CN1266904C (en) | 2006-07-26 |
JP3998532B2 (en) | 2007-10-31 |
US20040027167A1 (en) | 2004-02-12 |
JP2004072511A (en) | 2004-03-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6911843B2 (en) | Data transfer device for transferring data between blocks of different clock domains | |
CN1791120B (en) | System and method for efficient alignment of data bits on parallel data channels | |
US5179670A (en) | Slot determination mechanism using pulse counting | |
CA2017394C (en) | Data alignment method and apparatus | |
US20030194018A1 (en) | High speed data transmitter and transmitting method thereof | |
US6741193B2 (en) | Parallel in serial out circuit having flip-flop latching at multiple clock rates | |
CN113282531B (en) | Pulse trigger-based two-port serial data receiving and transmitting circuit and method | |
JP7471447B2 (en) | Multi-channel signal synchronization system, circuit and method | |
CN105224485B (en) | A kind of method of reseptance and device of pervasive serial data | |
EP3734465A1 (en) | Data transmission code and interface | |
Li et al. | UART Controller with FIFO Buffer Function Based on APB Bus | |
US8675798B1 (en) | Systems, circuits, and methods for phase inversion | |
US11169952B2 (en) | Data transmission code and interface | |
EP1860815B1 (en) | Data transmission method and transmission circuit thereof | |
CN210518362U (en) | Single-wire communication circuit and communication system | |
CN116795758A (en) | Multichannel synchronous Biss-C protocol decoding transmission device based on FPGA | |
JP2004531150A (en) | Multiphase encoding protocol and bus synchronization | |
US7764614B2 (en) | Multi-mode management of a serial communication link | |
WO2003052566A2 (en) | System for providing a calibrated clock and methods thereof | |
CN102693200A (en) | SPI (serial peripheral interface) communication port based on CPLD (complex programmable logic device) | |
US20020018539A1 (en) | Multi-bit counter | |
Gupta et al. | Analysis of Universal Asynchronous Receiver-Transmitter (UART) | |
KR100239437B1 (en) | Serial interface communication | |
CN221127259U (en) | Deburring circuit in SPI Slave chip design | |
JP4463295B2 (en) | Semiconductor device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: MITSUBISHI DENKI KABUSHIKI KAISHA, JAPAN Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:MIZUMOTO, KATSUYA;SHIROTA, HIROSHI;OKUDA, RYOSUKE;AND OTHERS;REEL/FRAME:013709/0088 Effective date: 20030115 Owner name: MITSUBISHI ELECTRIC SYSTEM LSI DESIGN CORPORATION, Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:MIZUMOTO, KATSUYA;SHIROTA, HIROSHI;OKUDA, RYOSUKE;AND OTHERS;REEL/FRAME:013709/0088 Effective date: 20030115 |
|
AS | Assignment |
Owner name: RENESAS TECHNOLOGY CORP., JAPAN Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:MITSUBISHI DENKI KABUSHIKI KAISHA;REEL/FRAME:014502/0289 Effective date: 20030908 |
|
AS | Assignment |
Owner name: RENESAS TECHNOLOGY CORP., JAPAN Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:MITSUBISHI DENKI KABUSHIKI KAISHA;REEL/FRAME:015185/0122 Effective date: 20030908 |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
CC | Certificate of correction | ||
FEPP | Fee payment procedure |
Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
FPAY | Fee payment |
Year of fee payment: 4 |
|
AS | Assignment |
Owner name: RENESAS ELECTRONICS CORPORATION, JAPAN Free format text: CHANGE OF NAME;ASSIGNOR:NEC ELECTRONICS CORPORATION;REEL/FRAME:024990/0129 Effective date: 20100401 Owner name: NEC ELECTRONICS CORPORATION, JAPAN Free format text: MERGER;ASSIGNOR:RENESAS TECHNOLOGY CORP.;REEL/FRAME:024990/0153 Effective date: 20100401 |
|
FPAY | Fee payment |
Year of fee payment: 8 |
|
FPAY | Fee payment |
Year of fee payment: 12 |
|
AS | Assignment |
Owner name: RENESAS DESIGN CORP., JAPAN Free format text: CHANGE OF NAME;ASSIGNOR:RENESAS LSI DESIGN CORPORATION;REEL/FRAME:044020/0347 Effective date: 20050401 Owner name: RENESAS LSI DESIGN CORPORATION, JAPAN Free format text: CHANGE OF NAME;ASSIGNOR:MITSUBISHI ELECTRIC SYSTEM LSI DESIGN CORPORATION;REEL/FRAME:044020/0316 Effective date: 20030401 Owner name: RENESAS SYSTEM DESIGN CO., LTD., JAPAN Free format text: MERGER;ASSIGNOR:RENESAS DESIGN CORP.;REEL/FRAME:044020/0377 Effective date: 20131001 Owner name: RENESAS SYSTEM DESIGN CO., LTD., JAPAN Free format text: MERGER AND CHANGE OF NAME;ASSIGNORS:RENESAS SYSTEM DESIGN CO., LTD.;RENESAS SOLUTIONS CORPORATION;REEL/FRAME:044020/0475 Effective date: 20150401 Owner name: RENESAS ELECTRONICS CORPORATION, JAPAN Free format text: MERGER;ASSIGNOR:RENESAS SYSTEM DESIGN CO., LTD.;REEL/FRAME:044020/0503 Effective date: 20170701 Owner name: RENESAS SYSTEM DESIGN CO., LTD., JAPAN Free format text: CHANGE OF ADDRESS;ASSIGNOR:RENESAS SYSTEM DESIGN CO., LTD.;REEL/FRAME:045807/0091 Effective date: 20150401 |
|
AS | Assignment |
Owner name: RENESAS ELECTRONICS CORPORATION, JAPAN Free format text: CHANGE OF ADDRESS;ASSIGNOR:RENESAS ELECTRONICS CORPORATION;REEL/FRAME:044928/0001 Effective date: 20150806 |
|
AS | Assignment |
Owner name: RENESAS SYSTEM DESIGN CO., LTD., JAPAN Free format text: CHANGE OF NAME;ASSIGNOR:RENESAS MICRO SYSTEMS CO., LTD.;REEL/FRAME:044353/0309 Effective date: 20131001 Owner name: RENESAS MICRO SYSTEMS CO., LTD., JAPAN Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE ASSIGNEE NAME PREVIOUSLY RECORDED AT REEL: 044020 FRAME: 0377. ASSIGNOR(S) HEREBY CONFIRMS THE MERGER;ASSIGNOR:RENESAS DESIGN CORP.;REEL/FRAME:045645/0850 Effective date: 20131001 |