US20150270944A1 - Clock generation apparatus, server system and clock control method - Google Patents
Clock generation apparatus, server system and clock control method Download PDFInfo
- Publication number
- US20150270944A1 US20150270944A1 US14/660,598 US201514660598A US2015270944A1 US 20150270944 A1 US20150270944 A1 US 20150270944A1 US 201514660598 A US201514660598 A US 201514660598A US 2015270944 A1 US2015270944 A1 US 2015270944A1
- Authority
- US
- United States
- Prior art keywords
- clock
- signal
- switching
- clock signal
- transmission circuit
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims description 16
- 230000005540 biological transmission Effects 0.000 claims description 231
- 238000005259 measurement Methods 0.000 claims description 31
- 239000000725 suspension Substances 0.000 claims description 15
- 230000006870 function Effects 0.000 description 22
- 238000010586 diagram Methods 0.000 description 10
- 230000008901 benefit Effects 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 239000000203 mixture Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000010363 phase shift Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000003449 preventive effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
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/0016—Arrangements for synchronising receiver with transmitter correction of synchronization errors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/04—Generating or distributing clock signals or signals derived directly therefrom
- G06F1/12—Synchronisation of different clock signals provided by a plurality of clock generators
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0685—Clock or time synchronisation in a node; Intranode synchronisation
- H04J3/0688—Change of the master or reference, e.g. take-over or failure of the master
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L7/00—Arrangements for synchronising receiver with transmitter
- H04L7/0079—Receiver details
- H04L7/0083—Receiver details taking measures against momentary loss of synchronisation, e.g. inhibiting the synchronisation, using idle words or using redundant clocks
Definitions
- the present invention relates to a clock generation apparatus including multiplexed clock transmission circuits, a server system and a clock control method.
- patent document 1 Japanese Patent Application Laid-Open No. 2013-201743
- a clock switching device which can prevent synchronization between circuits from being lost in association with switching of a clock transmission circuit.
- synchronization between circuits is achieved by adjusting the phase of a stand-by system clock to the phase of the active system clock in advance so that a transmission clock after switching a clock transmission circuit can be the same phase with the clock before the switching.
- the present invention has been made in order to settle the problem mentioned above, and its object is to provide a multiplexed clock generation apparatus in which an unnecessary clock does not occur when switching a clock transmission circuit, and thus synchronization between circuits based on a received clock is not lost.
- a clock generation apparatus of the present invention includes: a clock determination unit which determines whether a cycle shift time between a first clock signal and a second clock signal satisfies a predetermined condition or not; and a clock switching unit which switches the first clock signal and the second clock signal based on determination of the clock determination unit.
- a clock generation apparatus having a clock determination unit which determines whether a cycle shift time of a first clock signal and a second clock signal satisfies a predetermined condition or not and a clock switching unit which switches the first clock signal and the second clock signal based on determination of the clock determination unit, and a plurality of reception circuits to operate based on a clock signal outputted by the clock generation apparatus are connected via a transmission line.
- a cycle shift time between a first clock signal and a second clock signal satisfies a predetermined condition or not is determined; and the first clock signal and the second clock signal are switched based on determination of whether the cycle shift time satisfies the predetermined condition.
- a multiplexed clock generation apparatus in which synchronization between circuits based on a received clock is not lost can be provided.
- FIG. 2 is a block diagram showing a functional structure of a clock generation apparatus according to a second exemplary embodiment of the present invention
- FIG. 3 is a block diagram of an example of a structure in which a clock generation apparatus according to the second exemplary embodiment of the present invention has a plurality of sub-circuits as a main circuit;
- FIG. 5 is a flow chart showing operations of a sub-circuit of a clock generation apparatus according to the second exemplary embodiment of the present invention.
- FIG. 6 is a flow chart showing operations of a main circuit of a clock generation apparatus according to the second exemplary embodiment of the present invention.
- FIG. 7 is a sequence diagram showing relation between operations of a main circuit and those of a sub-circuit in the time of normal operation of a clock generation apparatus according to the second exemplary embodiment of the present invention.
- FIG. 8 is a sequence diagram showing relation between operations of a main circuit and a sub-circuit at the time of a switching operation of a clock generation apparatus according to the second exemplary embodiment of the present invention
- FIG. 10 is a flow chart showing operations of a sub-circuit of a clock generation apparatus according to the third exemplary embodiment of the present invention.
- FIG. 11 is a conceptual diagram illustrating a path difference to a clock generation apparatus between reception circuits in a server system according to a fourth exemplary embodiment of the present invention.
- the clock generation apparatus 1 includes a clock determination means 2 and a clock switching means 3 .
- the clock determination means 2 is means to take a first clock signal and a second clock signal as input, and determine whether a cycle shift time between the first and the second clock signal satisfies a predetermined condition or not. Description will be made later about the predetermined condition.
- the clock switching means 3 is means to switch the first clock signal and the second clock signal based on determination of the clock determination means 2 .
- the second clock signal corresponds to a stand-by system clock signal that is restrained without being outputted from the clock generation apparatus 1 .
- a first clock signal will be a stand-by system clock signal that is restrained without being outputted from the clock generation apparatus 1 .
- the clock generation apparatus 1 outputs any one of the first clock signal and the second clock signal as an active system clock.
- the first clock signal and the second clock signal are generated by different clock transmission circuits (not shown), for example, inside the clock generation apparatus 1 .
- different clock transmission circuits are connected to a common clock bus (not shown).
- the clock generation apparatus 1 outputs a clock signal generated by one of the clock transmission circuits to external clock receiving apparatus via a clock bus.
- the predetermined condition is a condition which satisfies both of the following two conditions.
- a condition that comes first is a condition that a cycle shift time obtained from a phase difference between the first clock signal and the second clock signal is equal to or larger than a period from a setup start time to a hold end time of a signal that are specified for the clock bus.
- a condition that comes second is a condition that a cycle shift time obtained from a phase difference between the first clock signal and the second clock signal exists before the next setup time.
- a cycle shift time obtained from a phase difference between the first clock signal and the second clock signal can be paraphrased into a time from a rise of an active system clock to a rise of a stand-by system clock. Paraphrase can be also made that the clock switching means 3 switches a clock when a cycle shift time is outside the period from a setup start time to a hold end time of a signal specified for a clock bus.
- the clock generation apparatus 1 By the clock generation apparatus 1 according to the above exemplary embodiment, it is possible to prevent a clock reception circuit from receiving an unnecessary clock due to influence of a path difference at the time of clock switching. As a result, according to this exemplary embodiment, the multiplexed clock generation apparatus 1 that does not lose synchronization between a plurality of clock reception circuits can be provided.
- FIG. 2 a structure of a clock generation apparatus 10 according to the second exemplary embodiment of the present invention will be described using FIG. 2 .
- the clock generation apparatus 10 includes a first clock transmission circuit 11 - 1 , a second clock transmission circuit 11 - 2 and a clock bus 13 .
- the first clock transmission circuit 11 - 1 is set as a main circuit and the second clock transmission circuit 11 - 2 as a sub-circuit.
- the clock generation apparatus 10 only has to include at least two clock transmission circuits, and it may be formed by first to Nth clock transmission circuits 11 - 1 to 11 - n as shown in FIG. 3 (n and N are a natural number of no smaller than 2).
- the first clock transmission circuit 11 - 1 has a clock generating means 101 , a clock measurement means 102 , a clock switching availability determination means 103 , a clock switching directing means 104 and an output clock switching means 105 .
- the clock determination means 2 is composed of the clock measurement means 102 and the clock switching availability determination means 103
- the clock switching means 3 is composed of the clock switching directing means 104 and the output clock switching means 105 .
- the second clock transmission circuit 11 - 2 has a clock generating means 111 , a clock measurement means 112 , a clock switching availability determination means 113 , a clock switching directing means 114 and an output clock switching means 115 . That is, the first clock transmission circuit 11 - 1 and the second clock transmission circuit 11 - 2 have similar circuit configurations. However, the circuit configurations of the first clock transmission circuit 11 - 1 and the second clock transmission circuit 11 - 2 are not necessary to be fully identical, and they only have to possess the functions shown in FIG. 2 in common at least.
- a clock generated by the first clock transmission circuit 11 - 1 that is the main circuit is an active system clock
- a clock generated by the second clock transmission circuit 11 - 2 that is a sub-circuit is a stand-by system clock.
- a transmission circuit which generates an active system clock switches over. That is, when the second clock transmission circuit 11 - 2 transits to a main circuit, a clock generated by the second clock transmission circuit 11 - 2 becomes an active system clock, and a clock generated by the first clock transmission circuit 11 - 1 becomes a stand-by system clock.
- the first clock transmission circuit 11 - 1 that is a main circuit in FIG. 2 outputs an active system clock which has been generated by itself to outside via the clock bus 13 .
- the second clock transmission circuit 11 - 2 that is a sub-circuit does not output a stand-by system clock generated by itself to the clock bus 13 .
- the clock bus 13 is a transmission line for transmitting an active system clock outputted by a main circuit to outside.
- an active system clock which has been generated by the first clock transmission circuit 11 - 1 that is the main circuit is outputted to the clock bus 13 .
- any number of clock transmission circuits of no smaller than 1 can be connected as a sub-circuit to a clock transmission circuit to be a main circuit.
- FIG. 3 a structure which makes the first clock transmission circuit 11 - 1 be a main circuit is illustrated.
- the second clock transmission circuit 11 - 2 , the third clock transmission circuit 11 - 3 , . . . , and the Nth clock transmission circuit 11 - n are connected to the first clock transmission circuit 11 - 1 that is the main circuit as sub-circuits.
- a main circuit which outputs an active system clock to the clock bus 13 is one among the plurality of clock transmission circuits.
- the clock generating means has a function to generate a clock signal to be outputted to a clock bus.
- a clock signal generated by a clock transmission circuit which is a main circuit is an active system clock signal
- a clock signal generated by a clock transmission circuit which is a sub-circuit is a stand-by system clock signal.
- a clock signal generated by the clock generating means 101 of the first clock transmission circuit 11 - 1 that is a main circuit is an active system clock signal.
- a clock signal generated by the clock generating means 111 of the second clock transmission circuit 11 - 2 that is a sub-circuit is a stand-by system clock signal.
- a clock generating means is realized by an oscillating device including an oscillator which oscillates a specific frequency signal, for example.
- the clock generating means 101 of the first clock transmission circuit 11 - 1 outputs a clock signal generated by itself to the clock measurement means 102 and the output clock switching means 105 .
- the clock generating means 111 of the second clock transmission circuit 11 - 2 outputs a clock signal generated by itself to the clock measurement means 112 and the output clock switching means 115 .
- the clock measurement means of a sub-circuit has a function to receive a clock signal (stand-by system clock signal) generated by its own transmission circuit and an active system clock signal which other clock transmission circuits is transmitting to the clock bus, and measure a phase difference between the stand-by system clock signal and the active system clock signal. Meanwhile, although an operation of the clock measurement means of the main circuit may be suspended, the operation does not have to be suspended necessarily.
- the clock measurement means 112 of the sub-circuit receives a clock signal generated by its own transmission circuit and an active system clock signal which the first clock transmission circuit 11 - 1 is transmitting to the clock bus, and measures a phase difference between each signal.
- the clock measurement means 102 of the first clock transmission circuit 11 - 1 that has been set as a main circuit is suspending its operation.
- the clock measurement means 102 begins its operations at timing when the first clock transmission circuit 11 - 1 transits to a sub-circuit, and the clock measurement means 112 suspends its operations at timing when the second clock transmission circuit 11 - 2 transits to a main circuit.
- the clock measurement means of a clock transmission circuit that has been set as a main circuit does not have to suspend its operation necessarily.
- a clock measurement means can be realized as a structure including: a phase comparator which takes an active system clock signal and a stand-by system clock signal as input; a low pass filter for a phase comparison result output signal; and a voltage measuring instrument to measure a voltage of a filtering result, for example.
- a phase difference can be calculated from a measured voltage.
- the clock measurement means of a clock transmission circuit being functioning as a sub-circuit outputs a measured phase difference between an active system clock signal and a stand-by system clock signal to a clock switching availability determination means. That is, in FIG. 2 , the clock measurement means 112 of the clock transmission circuit functioning as the sub-circuit outputs a measured phase difference between an active system clock signal and its own clock signal to the clock switching availability determination means 113 .
- a clock switching availability determination means has a function to determine whether clock switching is possible or not based on a phase difference measured by the clock measurement means of its own transmission circuit in the state that its own clock cycle shifts by a certain amount relative to the phase of an active system clock signal. Meanwhile, it is supposed that the clock switching availability determination means of a main circuit suspends its operations. However, the clock switching availability determination means of a clock transmission circuit that is being set as a main circuit does not have to suspend its operations necessarily.
- the clock switching availability determination means 113 that is a sub-circuit determines whether switching of a clock is possible or not in the state that its own clock cycle shifts by a certain amount relative to the phase of an active system clock signal based on a phase difference measured by the clock measurement means 112 .
- the clock switching availability determination means 113 of the sub-circuit determines whether it is possible to switch a clock according to whether a cycle shift time of a stand-by system clock signal obtained from a phase difference satisfies a predetermined condition or not.
- the predetermined condition means that the following two conditions are satisfied together.
- a first condition is a condition that a cycle shift time of a stand-by system clock signal obtained from a phase difference is equal to or larger than the period from the setup start time to the hold end time of a signal specified for the clock bus 13 .
- a second condition is a condition that a cycle shift time obtained from a phase difference exists before the next setup time.
- a cycle shift time of a stand-by system clock signal obtained from a phase difference satisfies the predetermined condition means that clock switching is performed at timing to avoid a setup time and a hold time.
- FIG. 4 is an example of a timing chart illustrating the above-mentioned predetermined condition. Meanwhile, a time difference between an active system clock signal and a stand-by system clock signal corresponds to a cycle shift time. It is supposed that setup time t S and hold time t H are specified for the clock bus.
- the pulse signal in the upper section is an active system clock signal
- the pulse signal in the lower section is a stand-by system clock signal.
- a cycle shift time is larger than any of setup time t S and hold time t H .
- a setup time and a hold time that are made to be the criteria in the first condition are specified by the type of a bus, and are specified by what interface a bus is used.
- a data setup time is specified to be 250 ⁇ s, and a data hold time to be 5 ⁇ s.
- a setup time at the time of data input is specified to be 3 ns, and a hold time to be 0 ns.
- the above-mentioned predetermined condition is satisfied, and thus a clock will be switched at timing of the clock switching.
- the pulse signal in the lower section will be an active system clock signal and the pulse signal in the upper section will be a stand-by system clock signal. That is, by switching a clock, the previous stand-by system clock becomes a new active system clock, and, after the clock switching, a clock signal comes to be transmitted to the clock bus from the new active system clock. Therefore, by switching a clock, setup time t S and hold time t H will be also changed to timing of the new active system clock standard.
- the clock switching availability determination means 113 determines that it is possible to switch a clock when a cycle shift time of a stand-by system clock signal obtained from a phase difference satisfies the predetermined condition, and determines that switching of a clock is impossible when the predetermined condition is not satisfied.
- the clock switching availability determination means 103 of the first clock transmission circuit 11 - 1 being set as a main circuit suspends its operations. Then, the clock switching availability determination means 103 starts its operations at timing when the first clock transmission circuit 11 - 1 transits to a sub-circuit, and the clock switching availability determination means 113 stops at timing when the second clock transmission circuit 11 - 2 transits to a main circuit.
- the clock switching availability determination means 103 ( 113 ) of a sub-circuit can be realized as a comparison circuit which compares a cycle shift time of a stand-by system clock signal which is obtained from a phase difference measured by a clock measurement means with the predetermined condition, for example.
- the clock switching availability determination means 103 ( 113 ) may be made to be of a structure including a storage device (such as a memory and a register) which stores a threshold value, for example.
- an active system clock signal and a stand-by system clock signal will not be switched at timing when they are in the same phase or have a small phase difference. That is, in the clock generation apparatus 10 according to this exemplary embodiment, an output clock will be switched under a condition that clock cycles of an active system clock signal and a stand-by system clock signal shift from each other sufficiently.
- a clock switching directing means has a function to output, according to a clock switching request signal from an upper system, a clock output suspension direction signal to make output of an active system clock signal be stopped, and issue an instruction to output a clock signal generated in its own transmission circuit to a clock bus.
- a system, software or the like that manages the clock apparatus is assumed to be an upper system which issues a clock switching request signal. It is also possible to make it be of a structure in which a physical selector switch is provided in a clock generation apparatus, and a switching instruction signal is asserted when the selector switch is pressed.
- the clock switching directing means 114 when functioning as a sub-circuit, the clock switching directing means 114 outputs a clock switching instruction signal to the output clock switching means 115 .
- it may be made to be of a structure in which a mechanism that the second clock transmission circuit 11 - 2 blocks off clock output of the first clock transmission circuit 11 - 1 compulsorily is provided, and clock output of the first clock transmission circuit 11 - 1 is blocked off compulsorily by the side of the second clock transmission circuit 11 - 2 .
- the clock switching directing means 104 of the first clock transmission circuit 11 - 1 set as a main circuit is suspending its operations. Also, the clock switching directing means 104 starts its operations at timing when the first clock transmission circuit 11 - 1 transits to a sub-circuit, and the clock switching directing means 114 stops at timing when the second clock transmission circuit 11 - 2 transits to a main circuit.
- the clock switching directing means 104 of the first clock transmission circuit 11 - 1 is not depicted in FIG. 2 in a manner that it can receive a clock switching request signal, it will be able to receive a clock switching request signal when the first clock transmission circuit 11 - 1 is switched to a sub-circuit.
- the clock switching directing means 104 ( 114 ) can be realized by a structure including a control function of CPU (Central Processing Unit), for example.
- CPU Central Processing Unit
- An output clock switching means has a function to, about an output state of its own clock signal to a clock bus, switch between a clock restraint state and a clock transmission state according to a received clock switching instruction signal.
- an output clock switching means has a function to output its own clock signal generated in its own transmission circuit to the clock bus and a function to restrain it.
- the output clock switching means of a main circuit outputs its own clock signal generated in its own transmission circuit to the clock bus.
- the output clock switching means of a sub-circuit restrains output of its own clock signal generated in its own transmission circuit.
- the output clock switching means 105 of the first clock transmission circuit 11 - 1 outputs its own clock signal to the clock bus 13 .
- the output clock switching means 115 of the second clock transmission circuit 11 - 2 restrains its own clock signal.
- the output clock switching means 115 of the second clock transmission circuit 11 - 2 that has been a sub-circuit in the initial state outputs the own clock signal to the clock bus 13 .
- the second clock transmission circuit 11 - 2 that has been the former sub-circuit will transit to a new main circuit.
- the output clock switching means of the clock transmission circuit of the new main circuit outputs a clock output suspension direction signal to the clock transmission circuit which has been a main circuit up to now. Then, the output clock switching means of the clock transmission circuit which has been the main circuit up to now restrains its own clock signal from being outputted to the clock bus when a clock output suspension direction signal is received.
- a step to transmit an active system clock signal to the clock bus from a new main circuit and a step to transmit a clock output suspension direction signal to the former main circuit from the new main circuit may be performed by an optional order.
- the output clock switching means 115 of the second clock transmission circuit 11 - 2 when a clock switching instruction signal is received, the output clock switching means 115 of the second clock transmission circuit 11 - 2 outputs its own clock signal to the clock bus 13 .
- the output clock switching means 115 of the second clock transmission circuit 11 - 2 outputs a clock output suspension direction signal to the first clock transmission circuit 11 - 1 that functions as a main circuit.
- the output clock switching means 105 of the first clock transmission circuit 11 - 1 that has been functioning as a main circuit restrains its own clock signal from being outputted to the clock bus 13 . Meanwhile, it may be of a structure to make the output clock switching means 105 of the first clock transmission circuit 11 - 1 be stopped by the output clock switching means 115 of the second clock transmission circuit 11 - 2 directly.
- An output clock switching means can be realized as a multiplexer (selection circuit), for example, which takes a received clock switching instruction signal as a selection control signal.
- the clock generating means 111 of the second clock transmission circuit 11 - 2 generates a clock signal (stand-by system clock signal) using its oscillator (Step S 11 ). At that time, a clock signal generated in the clock generating means 111 is outputted to the clock measurement means 112 and the output clock switching means 115 .
- the second clock transmission circuit 11 - 2 restrains clock transmission in the output clock switching means 115 and receives an active system clock which the first clock transmission circuit 11 - 1 that is a main circuit transmits to the clock bus 13 (Step S 12 ).
- the second clock transmission circuit 11 - 2 keeps receiving an active system clock signal and measures a phase difference between the active system clock and its own clock in the clock measurement means 112 (Step S 13 ).
- the clock switching availability determination means 113 determines whether it is possible to switch a clock at the present from a calculated phase difference (Step S 14 ).
- Step S 14 When a cycle shift time of a stand-by system clock signal obtained from the phase difference satisfies the predetermined condition (in Step S 14 , Yes), the clock switching availability determination means 113 determines that it is possible to change a clock. When being determined that it is possible to change a clock in Step S 14 , an advance towards Step S 15 of FIG. 5 is made.
- Step S 14 when a cycle shift time does not satisfy the predetermined condition (in Step S 14 , No), the clock switching availability determination means 113 determines that switching of a clock is impossible. When it is determined that switching of a clock is impossible in Step S 14 , the processing returns to Step S 13 of FIG. 5 .
- a clock switching event is a situation such as a main circuit replacement in the event of maintenance, a failure or the like of the main circuit, for example.
- Step S 14 Even if switching of a clock is possible (in Step S 14 , Yes), when a clock switching event is not occurring (in Step S 15 , No), the second clock transmission circuit 11 - 2 does not switch a clock.
- Step S 14 When switching of a clock is possible (in Step S 14 , Yes) and a clock switching event occurs (in Step S 15 , Yes), the second clock transmission circuit 11 - 2 makes the output clock switching means 115 transit from the clock restraint state to the clock transmission state. That is, the second clock transmission circuit 11 - 2 outputs its own clock signal to the clock bus 13 (Step S 16 ). Then, the second clock transmission circuit 11 - 2 transmits a clock output suspension direction signal to the first clock transmission circuit 11 - 1 (Step S 17 ). Meanwhile, although it is arranged in FIG. 5 such that the processing advances towards Step S 17 following Step S 16 , Step S 16 and Step S 17 may be performed simultaneously, or Step S 17 may be performed before Step S 16 .
- the second clock transmission circuit 11 - 2 transits to a main circuit, and performs operations corresponding to a main circuit (Step S 18 ).
- the clock generating means 101 of the first clock transmission circuit 11 - 1 generates a clock signal to be transmitted to the clock bus 13 (active system clock signal) using its own oscillator (Step S 21 ).
- the output clock switching means 105 of the first clock transmission circuit 11 - 1 transmits its own clock signal to the clock bus 13 (Step S 22 ).
- the first clock transmission circuit 11 - 1 performs different operations according to whether a clock output suspension direction signal has been received from the second clock transmission circuit 11 - 2 or not (Step S 23 ).
- Step S 23 When a clock output suspension direction signal has not been received (in Step S 23 , No), the first clock transmission circuit 11 - 1 continues clock output (Step S 23 is repeated) until a clock output suspension direction signal is received from the second clock transmission circuit 11 - 2 that is the other clock transmission circuit.
- Step S 23 when a clock output suspension direction signal has been received (in Step S 23 , Yes), the output clock switching means 105 of the first clock transmission circuit 11 - 1 stops its clock output (Step S 24 ). Meanwhile, when a mechanism that the second clock transmission circuit 11 - 2 blocks off clock output of the first clock transmission circuit 11 - 1 compulsorily is provided, clock output stop processing in Step S 24 is carried out by the second clock transmission circuit 11 - 2 .
- the first clock transmission circuit 11 - 1 transits to a sub-circuit and operates as a sub-circuit (Step S 25 ). Meanwhile, when the first clock transmission circuit 11 - 1 transits to a sub-circuit, it starts or stops at least part of its functions according to the situation, and operates along the flow chart of FIG. 5 .
- FIG. 7 and FIG. 8 there is shown operation relation between the first clock transmission circuit 11 - 1 and the second clock transmission circuit 11 - 2 at the time of normal operations (at the time of initial operations) or at the time of a switching operation. Meanwhile, a main circuit and a sub-circuit operate along the flow charts of FIG. 5 and FIG. 6 .
- FIG. 7 is a sequence diagram showing operation relation between the first clock transmission circuit 11 - 1 and the second clock transmission circuit 11 - 2 in normal operation.
- clock signals are generated individually.
- the first clock transmission circuit 11 - 1 outputs a generated clock signal to the clock bus 13 as an active system clock signal.
- the second clock transmission circuit 11 - 2 restrains a generated clock signal in the output clock switching means 115 .
- a clock signal that is restrained in the output clock switching means 115 is called a stand-by system clock signal.
- the second clock transmission circuit 11 - 2 makes the clock measurement means 112 measure a clock phase difference between the active system clock signal and its own clock signal. Then, the second clock transmission circuit 11 - 2 determines whether a cycle shift time of a stand-by system clock obtained from a clock phase difference satisfies the predetermined condition or not.
- FIG. 8 is a sequence diagram showing operation relation between the first clock transmission circuit 11 - 1 and the second clock transmission circuit 11 - 2 at the time of a switching operation.
- the second clock transmission circuit 11 - 2 When a clock switching request signal is received, the second clock transmission circuit 11 - 2 outputs its own clock signal to the clock bus 13 and outputs a clock output suspension direction signal to the first clock transmission circuit 11 - 1 .
- the output clock switching means 105 restrains output of its own clock signal to the clock bus 13 .
- a clock generation apparatus switching of an output clock is not performed at timing when an active system clock signal and a stand-by system clock signal is in the same phase or when a phase difference between them is small, and an output clock is switched under a condition that clock cycles shift sufficiently from each other.
- synchronization between circuits based on a received clock is not lost because there are no cases that one unnecessary pulse of a clock signal occurs due to a transmission line difference when a clock signal to be transmitted is switched from an active system clock signal to a stand-by system clock signal.
- the clock generation apparatus 20 according to this exemplary embodiment is different from the clock generation apparatus 10 according to the second exemplary embodiment in a point that a first clock transmission circuit 21 - 1 includes a clock phase changing means 106 , and a second clock transmission circuit 21 - 2 includes a clock phase changing means 116 .
- the clock generation apparatus 20 includes the first clock transmission circuit 21 - 1 , the second clock transmission circuit 21 - 2 and the clock bus 13 .
- the first clock transmission circuit 21 - 1 has the clock generating means 101 , the clock measurement means 102 , the clock switching availability determination means 103 , the clock switching directing means 104 , the output clock switching means 105 and the clock phase changing means 106 .
- the second clock transmission circuit 21 - 2 includes the clock generating means 111 , the clock measurement means 112 , the clock switching availability determination means 113 , the clock switching directing means 114 , the output clock switching means 115 and the clock phase changing means 116 . Meanwhile, any number of clock transmission circuits of no smaller than 1 can be connected as sub-circuits to a clock transmission circuit to be a main circuit as is the case with the second exemplary embodiment.
- first clock transmission circuit 21 - 1 and the second clock transmission circuit 21 - 2 of the clock generation apparatus 20 will be described.
- the first clock transmission circuit 21 - 1 and the second clock transmission circuit 21 - 2 according to this exemplary embodiment have the same structure as the second exemplary embodiment except for the clock phase changing means 106 and 116 . Therefore, the clock phase changing means 106 and 116 will be described in detail in this exemplary embodiment, and description about the same components as those of the second exemplary embodiment is omitted.
- a clock phase changing means has a function to change, when a cycle shift time between an active system clock signal and a stand-by system clock signal measured by a clock measurement means does not satisfy the predetermined condition, the phase of its own clock signal and adjust it so as to satisfy the predetermined condition. That is, a clock phase changing means adjusts a cycle shift time between an active system clock signal and a stand-by system clock signal such that it is shifted so as to make it be equal to or more that a period from a setup start time to a hold end time of a signal specified for the clock bus.
- the clock phase changing means 116 of the second clock transmission circuit 21 - 2 set as a sub-circuit function
- the clock phase changing means 106 of the first clock transmission circuit 21 - 1 set as a main circuit does not function.
- a path between the clock generating means and the output clock switching means may be bypassed.
- the clock phase changing means 106 start its function at timing when the first clock transmission circuit 11 - 1 transits to a sub-circuit, and the clock phase changing means 116 stops its function at timing when the second clock transmission circuit 11 - 2 transits to a main circuit. Meanwhile, the clock phase changing means 106 and 116 do not have to be stopped every time a clock is switched.
- the clock phase changing means 116 can be realized by a phase shift circuit (phase shifter) which can adjust a generated clock to an optional phase, for example.
- phase shift circuit phase shifter
- the clock generating means 111 of the second clock transmission circuit 21 - 2 generates a clock signal (stand-by system clock signal) using its oscillator (Step S 31 ).
- the second clock transmission circuit 21 - 2 restrains clock transmission in the output clock switching means 115 , and receives an active system clock signal transmitted to the clock bus 13 by the first clock transmission circuit 21 - 1 that is a main circuit (Step S 32 ).
- the second clock transmission circuit 21 - 2 keeps receiving an active system clock signal and measures a phase difference between an active system clock signal and its clock signal in the clock measurement means 112 (Step S 33 ).
- the clock switching availability determination means 113 of the second clock transmission circuit 21 - 2 determines whether it is possible to switch a clock or not at the present from a calculated phase difference (Step S 34 ).
- Step S 34 When a cycle shift time of a stand-by system clock signal obtained from a phase difference satisfies the predetermined condition (in Step S 34 , Yes), the clock switching availability determination means 113 determines that switching of a clock is possible. When being determined that switching of a clock is possible in Step S 34 , the processing advances towards Step S 36 of FIG. 10 .
- Step S 34 when a cycle shift time of a stand-by system clock signal obtained from a phase difference does not satisfy the predetermined condition (in Step S 34 , No), the clock switching availability determination means 113 determines that switching of a clock is impossible. In this case, the clock phase changing means 116 adjusts the phase of the stand-by system clock signal generated by its own clock transmission circuit so that a cycle shift time may satisfy the predetermined condition (Step S 35 ).
- the second clock transmission circuit 21 - 2 performs different operations (Step S 36 ).
- Step S 34 Even if switching of a clock is possible (in Step S 34 , Yes), the second clock transmission circuit 21 - 2 does not switch a clock (return to Step S 33 is made) when a clock switching event is not occurring (in Step S 36 , No).
- Step S 34 When it is possible to switch a clock (in Step S 34 , Yes) and a clock switching event occurs (in Step S 36 , Yes), the second clock transmission circuit 21 - 2 makes the output clock switching means 115 transit from a clock restraint state to a clock transmission state. That is, the second clock transmission circuit 21 - 2 outputs its own clock signal to the clock bus 13 (Step S 37 ). Then, the second clock transmission circuit 21 - 2 transmits a clock output suspension direction signal to the first clock transmission circuit 21 - 1 (Step S 38 ). Meanwhile, a mechanism that the second clock transmission circuit 21 - 2 blocks off clock output of the first clock transmission circuit 21 - 1 compulsorily may be provided. In FIG. 10 , although it is arranged such that advance towards Step S 38 is made following Step S 37 , Step S 37 and Step S 38 may be performed simultaneously, or Step S 38 may be performed before Step S 37 .
- the second clock transmission circuit 21 - 2 performs operations corresponding to a main circuit (Step S 39 ).
- a main circuit and a sub-circuit operate in the relation as shown in FIG. 7 and FIG. 8 as is the case with a clock generation apparatus according to the second exemplary embodiment.
- a clock generation apparatus it becomes possible to, by having a clock phase changing means, set a clock cycle shift time between a main circuit and a sub-circuit so that the predetermined condition may be always satisfied.
- a clock generation apparatus In a clock generation apparatus according to the second exemplary embodiment, even in a case where a clock signal is needed to be switched immediately, such as a case of a main circuit failure, for example, there is a possibility that this situation cannot be handled regardless of having received a clock switching request signal because the predetermined condition is not satisfied. In contrast, in a clock generation apparatus according to this exemplary embodiment, even in a case where a clock signal is needed to be switched immediately, such as a case of a main circuit failure, a clock can be switched certainly if it is in the state that a clock signal is already adjusted in advance.
- FIG. 11 indicates a schematic diagram of a server system 100 according to the fourth exemplary embodiment of the present invention. Meanwhile, although various functional structures are needed in an actual server system, only portions which are the essence of this exemplary embodiment are picked out and shown in a simplified manner in FIG. 11 .
- the server system 100 includes a clock generation apparatus 110 according to the second exemplary embodiment of the present invention, a transmission line 130 and a plurality of reception circuits 120 ( 120 - 1 , 120 - 1 , . . . , 120 - n ) (n is a natural number). Meanwhile, although detailed description will be omitted, the clock generation apparatus 110 has the same internal configuration as the clock generation apparatus 10 according to the second exemplary embodiment. In the server system 100 , a device having the functional structure of the clock generation apparatus 20 according to the third exemplary embodiment may be used as the clock generation apparatus 110 .
- the plurality of reception circuits 120 are connected with the clock generation apparatus 110 via the transmission line 130 .
- Each of the plurality of reception circuits 120 has path differences to the clock generation apparatus 110 .
- Each of the plurality of reception circuits 120 operates based on an active system clock signal received from the clock generation apparatus 110 .
- the clock generation apparatus 110 it is supposed that a clock transmission circuit to output an active system clock signal has been switched over. At that time, regarding an active system clock signal which is outputted by the clock generation apparatus 110 according to this exemplary embodiment, a difference does not occur to received clocks received by the reception circuits 120 that are clock supply destinations, even if a clock transmission circuit inside the clock generation apparatus 110 is switched over.
- a difference may occur to received clocks due to a path difference to the clock transmission circuit between reception circuits to be clock supply destinations.
- a short pulse may occur in addition to a usual clock when an active system clock and a stand-by system clock is switched at timing that they have approximately the same phase and, in addition, at timing of clock rise.
- clocks increased unnecessarily by one pulse are received when a path length is short, and clocks without one-pulse increase are received when a path length is long because the pulse is dulled.
- synchronization between the reception circuits cannot be achieved correctly any more.
- a short pulse does not occur because, even when a clock transmission circuit to output an active system clock is switched, the phases of clock signals which are transmitted from different clock transmission circuits are the same.
- a difference due to path differences does not occur to clocks supplied to reception circuits.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
Description
- This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2014-055794, filed on Mar. 19, 2014, the disclosure of which is incorporated herein in its entirety by reference.
- The present invention relates to a clock generation apparatus including multiplexed clock transmission circuits, a server system and a clock control method.
- There is a method to perform synchronous control between circuits by: a certain circuit transmitting a synchronization clock; and the other circuits operating based on the synchronization clock. Also, there is a method to improve reliability in preparation for a failure and the like of an active system circuit by: multiplexing circuits for transmitting a synchronization clock; making one circuit among those multiplexed circuits activate a clock transmission function as an active system; and making the remaining circuits be stand-by systems. In such multiplexed circuit configuration, when an active system circuit has a failure or when a preventive maintenance replacement is carried out to the active system circuit, the function of the active system circuit is made to be stopped, and one of stand-by system circuits is made to function as an active system circuit newly.
- In a structure in which clock transmission circuits are multiplexed, it is necessary not to lost synchronization between subordinate circuits even if a circuit to transmit a clock is switched.
- In patent document 1 (Japanese Patent Application Laid-Open No. 2013-201743), there is disclosed a clock switching device which can prevent synchronization between circuits from being lost in association with switching of a clock transmission circuit. In a clock switching device in
patent document 1, synchronization between circuits is achieved by adjusting the phase of a stand-by system clock to the phase of the active system clock in advance so that a transmission clock after switching a clock transmission circuit can be the same phase with the clock before the switching. - Generally, when a synchronizing operation is performed between a plurality of reception circuits based on a synchronization clock outputted from a multiplexed clock transmission circuit, there is a problem that a difference in received clocks occurs between the reception circuits. It is because a path difference to the clock transmission circuit exists between each reception circuit.
- For example, when switching is carried out at timing when an active system clock and a stand-by system clock is the same phase mostly and, in addition, at timing of a clock rise, there is a case where a short pulse occurs in addition to a usual clock. At that time, there is a case where a reception circuit with a short path length receives clocks increased by one pulse unnecessarily, and a reception circuit with a long path length receives clocks without increase of one pulse because the pulse is dulled. As a result, a difference occurs to received clocks between the reception circuit with the short path length and the reception circuit with the long path length.
- In addition, there is an individual difference in frequency characteristics of oscillators included in clock transmission circuits. Therefore, in a multiplex structure in which an active system clock and a stand-by system clock are generated from separate oscillators, even if the clocks are of the same phase at a certain time point, phases may shift a little at a next time point. When clock switching is carried out in a state that phases are shifted a little, there is a case where a short pulse occurs in addition to a usual clock. At that time, according to a path difference from a clock transmission circuit to each subordinate circuit, there exist a circuit which recognizes the short pulse and a circuit which does not recognize it. As a result, at the time of clock switching, there are a circuit which receives usual clocks and a circuit which receives clocks that are more than usual by one pulse unnecessarily, resulting in a synchronizing operation between the circuits based on a received clock not being performed correctly.
- According to a clock switching circuit in
patent document 1, loss of synchronization between circuits associated with clock switching can be prevented by using an identical clock supply part. However, there is a problem that, even by a clock switching circuit inpatent document 1, loss of synchronization between circuits caused by an individual difference of frequency characteristics of an oscillator and a path difference cannot be prevented in a structure to achieve multiplexing using separate clock supply parts. - The present invention has been made in order to settle the problem mentioned above, and its object is to provide a multiplexed clock generation apparatus in which an unnecessary clock does not occur when switching a clock transmission circuit, and thus synchronization between circuits based on a received clock is not lost.
- A clock generation apparatus of the present invention includes: a clock determination unit which determines whether a cycle shift time between a first clock signal and a second clock signal satisfies a predetermined condition or not; and a clock switching unit which switches the first clock signal and the second clock signal based on determination of the clock determination unit.
- In a server system of the present invention, a clock generation apparatus having a clock determination unit which determines whether a cycle shift time of a first clock signal and a second clock signal satisfies a predetermined condition or not and a clock switching unit which switches the first clock signal and the second clock signal based on determination of the clock determination unit, and a plurality of reception circuits to operate based on a clock signal outputted by the clock generation apparatus are connected via a transmission line.
- In a clock control method of the present invention, whether a cycle shift time between a first clock signal and a second clock signal satisfies a predetermined condition or not is determined; and the first clock signal and the second clock signal are switched based on determination of whether the cycle shift time satisfies the predetermined condition.
- According to the present invention, by preventing an unnecessary clock generation when a clock transmission circuit is switched, a multiplexed clock generation apparatus in which synchronization between circuits based on a received clock is not lost can be provided.
- Exemplary features and advantages of the present invention will become apparent from the following detailed description when taken with the accompanying drawings in which:
-
FIG. 1 is a block diagram showing a functional structure of a clock generation apparatus according to a first exemplary embodiment of the present invention; -
FIG. 2 is a block diagram showing a functional structure of a clock generation apparatus according to a second exemplary embodiment of the present invention; -
FIG. 3 is a block diagram of an example of a structure in which a clock generation apparatus according to the second exemplary embodiment of the present invention has a plurality of sub-circuits as a main circuit; -
FIG. 4 is a timing chart illustrating a condition whether clock switching can be done or not in a clock generation apparatus according to the second exemplary embodiment of the present invention; -
FIG. 5 is a flow chart showing operations of a sub-circuit of a clock generation apparatus according to the second exemplary embodiment of the present invention; -
FIG. 6 is a flow chart showing operations of a main circuit of a clock generation apparatus according to the second exemplary embodiment of the present invention; -
FIG. 7 is a sequence diagram showing relation between operations of a main circuit and those of a sub-circuit in the time of normal operation of a clock generation apparatus according to the second exemplary embodiment of the present invention. - A
FIG. 8 is a sequence diagram showing relation between operations of a main circuit and a sub-circuit at the time of a switching operation of a clock generation apparatus according to the second exemplary embodiment of the present invention; -
FIG. 9 is a block diagram showing a functional structure of a clock generation apparatus according to a third exemplary embodiment of the present invention; -
FIG. 10 is a flow chart showing operations of a sub-circuit of a clock generation apparatus according to the third exemplary embodiment of the present invention; and -
FIG. 11 is a conceptual diagram illustrating a path difference to a clock generation apparatus between reception circuits in a server system according to a fourth exemplary embodiment of the present invention. - Embodiments for implementing the present invention will be described using a drawing below. In this regard, however, although limitation that is technically desirable to implement the present invention is applied to exemplary embodiments described below, the scope of the invention is not limited to the followings.
- First, a
clock generation apparatus 1 according to the first exemplary embodiment of the present invention will be described usingFIG. 1 . Theclock generation apparatus 1 according to this exemplary embodiment includes a clock determination means 2 and a clock switching means 3. - The clock determination means 2 is means to take a first clock signal and a second clock signal as input, and determine whether a cycle shift time between the first and the second clock signal satisfies a predetermined condition or not. Description will be made later about the predetermined condition.
- The clock switching means 3 is means to switch the first clock signal and the second clock signal based on determination of the clock determination means 2.
- For example, when the first clock signal is an active system clock signal outputted from the
clock generation apparatus 1, the second clock signal corresponds to a stand-by system clock signal that is restrained without being outputted from theclock generation apparatus 1. In contrast, when the second clock signal is an active system clock signal which is outputted from theclock generation apparatus 1, for example, a first clock signal will be a stand-by system clock signal that is restrained without being outputted from theclock generation apparatus 1. In other words, theclock generation apparatus 1 outputs any one of the first clock signal and the second clock signal as an active system clock. - The first clock signal and the second clock signal are generated by different clock transmission circuits (not shown), for example, inside the
clock generation apparatus 1. Inside theclock generation apparatus 1, different clock transmission circuits are connected to a common clock bus (not shown). Theclock generation apparatus 1 outputs a clock signal generated by one of the clock transmission circuits to external clock receiving apparatus via a clock bus. - Here, the predetermined condition is a condition which satisfies both of the following two conditions.
- (1) A condition that comes first (a first condition) is a condition that a cycle shift time obtained from a phase difference between the first clock signal and the second clock signal is equal to or larger than a period from a setup start time to a hold end time of a signal that are specified for the clock bus.
- (2) A condition that comes second (a second condition) is a condition that a cycle shift time obtained from a phase difference between the first clock signal and the second clock signal exists before the next setup time.
- A cycle shift time obtained from a phase difference between the first clock signal and the second clock signal can be paraphrased into a time from a rise of an active system clock to a rise of a stand-by system clock. Paraphrase can be also made that the clock switching means 3 switches a clock when a cycle shift time is outside the period from a setup start time to a hold end time of a signal specified for a clock bus.
- By the
clock generation apparatus 1 according to the above exemplary embodiment, it is possible to prevent a clock reception circuit from receiving an unnecessary clock due to influence of a path difference at the time of clock switching. As a result, according to this exemplary embodiment, the multiplexedclock generation apparatus 1 that does not lose synchronization between a plurality of clock reception circuits can be provided. - Next, a clock generation apparatus according to this exemplary embodiment will be described in detail by the following second to fourth exemplary embodiments.
- Next, a structure of a
clock generation apparatus 10 according to the second exemplary embodiment of the present invention will be described usingFIG. 2 . - Referring to
FIG. 2 , theclock generation apparatus 10 according to this exemplary embodiment includes a first clock transmission circuit 11-1, a second clock transmission circuit 11-2 and aclock bus 13. Meanwhile, in the following description, it is supposed that, as an initial state, the first clock transmission circuit 11-1 is set as a main circuit and the second clock transmission circuit 11-2 as a sub-circuit. When the second clock transmission circuit 11-2 transits to a main circuit, the first clock transmission circuit 11-1 transits to a sub-circuit. Meanwhile, theclock generation apparatus 10 according to this exemplary embodiment only has to include at least two clock transmission circuits, and it may be formed by first to Nth clock transmission circuits 11-1 to 11-n as shown inFIG. 3 (n and N are a natural number of no smaller than 2). - The first clock transmission circuit 11-1 has a clock generating means 101, a clock measurement means 102, a clock switching availability determination means 103, a clock switching directing means 104 and an output clock switching means 105. When making them correspond to the
clock generation apparatus 1 ofFIG. 1 , the clock determination means 2 is composed of the clock measurement means 102 and the clock switching availability determination means 103, and the clock switching means 3 is composed of the clock switching directing means 104 and the output clock switching means 105. - Similarly, the second clock transmission circuit 11-2 has a clock generating means 111, a clock measurement means 112, a clock switching availability determination means 113, a clock switching directing means 114 and an output clock switching means 115. That is, the first clock transmission circuit 11-1 and the second clock transmission circuit 11-2 have similar circuit configurations. However, the circuit configurations of the first clock transmission circuit 11-1 and the second clock transmission circuit 11-2 are not necessary to be fully identical, and they only have to possess the functions shown in
FIG. 2 in common at least. - In the
clock generation apparatus 10, a clock generated by the first clock transmission circuit 11-1 that is the main circuit is an active system clock, and a clock generated by the second clock transmission circuit 11-2 that is a sub-circuit is a stand-by system clock. Then, when the second clock transmission circuit 11-2 transits to a main circuit and the first clock transmission circuit 11-1 transits to a sub-circuit, a transmission circuit which generates an active system clock switches over. That is, when the second clock transmission circuit 11-2 transits to a main circuit, a clock generated by the second clock transmission circuit 11-2 becomes an active system clock, and a clock generated by the first clock transmission circuit 11-1 becomes a stand-by system clock. - The first clock transmission circuit 11-1 that is a main circuit in
FIG. 2 outputs an active system clock which has been generated by itself to outside via theclock bus 13. In contrast, the second clock transmission circuit 11-2 that is a sub-circuit does not output a stand-by system clock generated by itself to theclock bus 13. - The
clock bus 13 is a transmission line for transmitting an active system clock outputted by a main circuit to outside. InFIG. 2 , an active system clock which has been generated by the first clock transmission circuit 11-1 that is the main circuit is outputted to theclock bus 13. - As shown in
FIG. 3 , any number of clock transmission circuits of no smaller than 1 can be connected as a sub-circuit to a clock transmission circuit to be a main circuit. - In
FIG. 3 , a structure which makes the first clock transmission circuit 11-1 be a main circuit is illustrated. The second clock transmission circuit 11-2, the third clock transmission circuit 11-3, . . . , and the Nth clock transmission circuit 11-n are connected to the first clock transmission circuit 11-1 that is the main circuit as sub-circuits. - For example, when the second clock transmission circuit 11-2 is made to transit to a main circuit, the first clock transmission circuit 11-1 that has been functioning as a main circuit transits to a sub-circuit. Similarly, the third clock transmission circuit 11-3 to the Nth clock transmission circuit 11-n can also transit to a main circuit. Meanwhile, in the
clock generation apparatus 10 according to this exemplary embodiment, a main circuit which outputs an active system clock to theclock bus 13 is one among the plurality of clock transmission circuits. - Next, an internal configuration of the first clock transmission circuit 11-1 and the second clock transmission circuit 11-2 of the
clock generation apparatus 10 according to this exemplary embodiment will be described. - (Clock Generating Means)
- The clock generating means has a function to generate a clock signal to be outputted to a clock bus. As mentioned above, a clock signal generated by a clock transmission circuit which is a main circuit is an active system clock signal, and a clock signal generated by a clock transmission circuit which is a sub-circuit is a stand-by system clock signal.
- That is, in
FIG. 2 , a clock signal generated by the clock generating means 101 of the first clock transmission circuit 11-1 that is a main circuit is an active system clock signal. In contrast, a clock signal generated by the clock generating means 111 of the second clock transmission circuit 11-2 that is a sub-circuit is a stand-by system clock signal. After the main circuit and the sub-circuit have been switched over, a clock signal which the clock generating means 111 generates will be an active system clock signal, and a clock signal which the clock generating means 101 generates will be a stand-by system clock signal. - A clock generating means is realized by an oscillating device including an oscillator which oscillates a specific frequency signal, for example.
- The clock generating means 101 of the first clock transmission circuit 11-1 outputs a clock signal generated by itself to the clock measurement means 102 and the output clock switching means 105. Similarly, the clock generating means 111 of the second clock transmission circuit 11-2 outputs a clock signal generated by itself to the clock measurement means 112 and the output clock switching means 115.
- (Clock Generating Means)
- The clock measurement means of a sub-circuit has a function to receive a clock signal (stand-by system clock signal) generated by its own transmission circuit and an active system clock signal which other clock transmission circuits is transmitting to the clock bus, and measure a phase difference between the stand-by system clock signal and the active system clock signal. Meanwhile, although an operation of the clock measurement means of the main circuit may be suspended, the operation does not have to be suspended necessarily.
- That is, in
FIG. 2 , the clock measurement means 112 of the sub-circuit receives a clock signal generated by its own transmission circuit and an active system clock signal which the first clock transmission circuit 11-1 is transmitting to the clock bus, and measures a phase difference between each signal. - In the initial state of
FIG. 2 , while the clock measurement means 112 of the second clock transmission circuit 11-2 that has been set as a sub-circuit operates, the clock measurement means 102 of the first clock transmission circuit 11-1 that has been set as a main circuit is suspending its operation. The clock measurement means 102 begins its operations at timing when the first clock transmission circuit 11-1 transits to a sub-circuit, and the clock measurement means 112 suspends its operations at timing when the second clock transmission circuit 11-2 transits to a main circuit. However, as mentioned above, the clock measurement means of a clock transmission circuit that has been set as a main circuit does not have to suspend its operation necessarily. - A clock measurement means can be realized as a structure including: a phase comparator which takes an active system clock signal and a stand-by system clock signal as input; a low pass filter for a phase comparison result output signal; and a voltage measuring instrument to measure a voltage of a filtering result, for example. For example, when making the clock measurement means be of a structure including a phase comparator (phase comparison means), a low pass filter (filtering means) and a voltage measuring instrument (voltage measurement means), a phase difference can be calculated from a measured voltage.
- The clock measurement means of a clock transmission circuit being functioning as a sub-circuit outputs a measured phase difference between an active system clock signal and a stand-by system clock signal to a clock switching availability determination means. That is, in
FIG. 2 , the clock measurement means 112 of the clock transmission circuit functioning as the sub-circuit outputs a measured phase difference between an active system clock signal and its own clock signal to the clock switching availability determination means 113. - (Clock Switching Availability Determination Means)
- A clock switching availability determination means has a function to determine whether clock switching is possible or not based on a phase difference measured by the clock measurement means of its own transmission circuit in the state that its own clock cycle shifts by a certain amount relative to the phase of an active system clock signal. Meanwhile, it is supposed that the clock switching availability determination means of a main circuit suspends its operations. However, the clock switching availability determination means of a clock transmission circuit that is being set as a main circuit does not have to suspend its operations necessarily.
- That is, in
FIG. 2 , the clock switching availability determination means 113 that is a sub-circuit determines whether switching of a clock is possible or not in the state that its own clock cycle shifts by a certain amount relative to the phase of an active system clock signal based on a phase difference measured by the clock measurement means 112. - In
FIG. 2 , the clock switching availability determination means 113 of the sub-circuit determines whether it is possible to switch a clock according to whether a cycle shift time of a stand-by system clock signal obtained from a phase difference satisfies a predetermined condition or not. - Here, the predetermined condition means that the following two conditions are satisfied together.
- (1) A first condition is a condition that a cycle shift time of a stand-by system clock signal obtained from a phase difference is equal to or larger than the period from the setup start time to the hold end time of a signal specified for the
clock bus 13. - (2) A second condition is a condition that a cycle shift time obtained from a phase difference exists before the next setup time.
- Meanwhile, that a cycle shift time of a stand-by system clock signal obtained from a phase difference satisfies the predetermined condition means that clock switching is performed at timing to avoid a setup time and a hold time.
-
FIG. 4 is an example of a timing chart illustrating the above-mentioned predetermined condition. Meanwhile, a time difference between an active system clock signal and a stand-by system clock signal corresponds to a cycle shift time. It is supposed that setup time tS and hold time tH are specified for the clock bus. - In
FIG. 4 , it is supposed that, in the initial state, the pulse signal in the upper section is an active system clock signal, and the pulse signal in the lower section is a stand-by system clock signal. In the example ofFIG. 4 , a cycle shift time is larger than any of setup time tS and hold time tH. - Here, when a clock switching request signal is inputted to the sub-circuit at timing shown in
FIG. 4 , both of the two predetermined conditions will be satisfied at timing of the rise of the stand-by system clock signal. Meanwhile, a setup time and a hold time that are made to be the criteria in the first condition are specified by the type of a bus, and are specified by what interface a bus is used. - For example, when a bus is used as I2C (Inter-Integrated Circuit) standard mode, a data setup time is specified to be 250 μs, and a data hold time to be 5 μs. Also, when it is a PCI (Peripheral Component Interconnect) bus of 33 MHz, for example, a setup time at the time of data input is specified to be 3 ns, and a hold time to be 0 ns.
- In the example of
FIG. 4 , the above-mentioned predetermined condition is satisfied, and thus a clock will be switched at timing of the clock switching. As shown inFIG. 4 , after the switching of a clock, the pulse signal in the lower section will be an active system clock signal and the pulse signal in the upper section will be a stand-by system clock signal. That is, by switching a clock, the previous stand-by system clock becomes a new active system clock, and, after the clock switching, a clock signal comes to be transmitted to the clock bus from the new active system clock. Therefore, by switching a clock, setup time tS and hold time tH will be also changed to timing of the new active system clock standard. - The clock switching availability determination means 113 determines that it is possible to switch a clock when a cycle shift time of a stand-by system clock signal obtained from a phase difference satisfies the predetermined condition, and determines that switching of a clock is impossible when the predetermined condition is not satisfied.
- In the initial state of
FIG. 2 , while the clock switching availability determination means 113 of the second clock transmission circuit 11-2 being set as a sub-circuit operates, the clock switching availability determination means 103 of the first clock transmission circuit 11-1 being set as a main circuit suspends its operations. Then, the clock switching availability determination means 103 starts its operations at timing when the first clock transmission circuit 11-1 transits to a sub-circuit, and the clock switching availability determination means 113 stops at timing when the second clock transmission circuit 11-2 transits to a main circuit. - The clock switching availability determination means 103 (113) of a sub-circuit can be realized as a comparison circuit which compares a cycle shift time of a stand-by system clock signal which is obtained from a phase difference measured by a clock measurement means with the predetermined condition, for example. Meanwhile, the clock switching availability determination means 103 (113) may be made to be of a structure including a storage device (such as a memory and a register) which stores a threshold value, for example.
- In the
clock generation apparatus 10 according to this exemplary embodiment, by satisfying the predetermined condition mentioned above, an active system clock signal and a stand-by system clock signal will not be switched at timing when they are in the same phase or have a small phase difference. That is, in theclock generation apparatus 10 according to this exemplary embodiment, an output clock will be switched under a condition that clock cycles of an active system clock signal and a stand-by system clock signal shift from each other sufficiently. - (Clock Switching Directing Means)
- A clock switching directing means has a function to output, according to a clock switching request signal from an upper system, a clock output suspension direction signal to make output of an active system clock signal be stopped, and issue an instruction to output a clock signal generated in its own transmission circuit to a clock bus. Here, a system, software or the like that manages the clock apparatus is assumed to be an upper system which issues a clock switching request signal. It is also possible to make it be of a structure in which a physical selector switch is provided in a clock generation apparatus, and a switching instruction signal is asserted when the selector switch is pressed.
- That is, in
FIG. 2 , when functioning as a sub-circuit, the clock switching directing means 114 outputs a clock switching instruction signal to the output clock switching means 115. Meanwhile, it may be made to be of a structure in which a mechanism that the second clock transmission circuit 11-2 blocks off clock output of the first clock transmission circuit 11-1 compulsorily is provided, and clock output of the first clock transmission circuit 11-1 is blocked off compulsorily by the side of the second clock transmission circuit 11-2. - In the initial state of
FIG. 2 , while the clock switching directing means 114 of the second clock transmission circuit 11-2 set as a sub-circuit operates, the clock switching directing means 104 of the first clock transmission circuit 11-1 set as a main circuit is suspending its operations. Also, the clock switching directing means 104 starts its operations at timing when the first clock transmission circuit 11-1 transits to a sub-circuit, and the clock switching directing means 114 stops at timing when the second clock transmission circuit 11-2 transits to a main circuit. - Although the clock switching directing means 104 of the first clock transmission circuit 11-1 is not depicted in
FIG. 2 in a manner that it can receive a clock switching request signal, it will be able to receive a clock switching request signal when the first clock transmission circuit 11-1 is switched to a sub-circuit. - The clock switching directing means 104 (114) can be realized by a structure including a control function of CPU (Central Processing Unit), for example.
- (Output Clock Switching Means)
- An output clock switching means has a function to, about an output state of its own clock signal to a clock bus, switch between a clock restraint state and a clock transmission state according to a received clock switching instruction signal. When paraphrased, an output clock switching means has a function to output its own clock signal generated in its own transmission circuit to the clock bus and a function to restrain it.
- The output clock switching means of a main circuit outputs its own clock signal generated in its own transmission circuit to the clock bus. In contrast, the output clock switching means of a sub-circuit restrains output of its own clock signal generated in its own transmission circuit.
- That is, in
FIG. 2 , in the initial state, the output clock switching means 105 of the first clock transmission circuit 11-1 outputs its own clock signal to theclock bus 13. In contrast, inFIG. 2 , in the initial state, the output clock switching means 115 of the second clock transmission circuit 11-2 restrains its own clock signal. - When a clock switching instruction signal is received from the clock switching directing means 114, the output clock switching means 115 of the second clock transmission circuit 11-2 that has been a sub-circuit in the initial state outputs the own clock signal to the
clock bus 13. At that time, the second clock transmission circuit 11-2 that has been the former sub-circuit will transit to a new main circuit. - The output clock switching means of the clock transmission circuit of the new main circuit outputs a clock output suspension direction signal to the clock transmission circuit which has been a main circuit up to now. Then, the output clock switching means of the clock transmission circuit which has been the main circuit up to now restrains its own clock signal from being outputted to the clock bus when a clock output suspension direction signal is received.
- Meanwhile, in switching a clock, there may be set up a function to make the output clock switching means of a transmission circuit which functions as a sub-circuit in the initial state stop the output clock switching means of a clock transmission circuit which functions as a main circuit. Also, a step to transmit an active system clock signal to the clock bus from a new main circuit and a step to transmit a clock output suspension direction signal to the former main circuit from the new main circuit may be performed by an optional order.
- That is, in
FIG. 2 , when a clock switching instruction signal is received, the output clock switching means 115 of the second clock transmission circuit 11-2 outputs its own clock signal to theclock bus 13. At the same time, the output clock switching means 115 of the second clock transmission circuit 11-2 outputs a clock output suspension direction signal to the first clock transmission circuit 11-1 that functions as a main circuit. When the clock output suspension direction signal is received, the output clock switching means 105 of the first clock transmission circuit 11-1 that has been functioning as a main circuit restrains its own clock signal from being outputted to theclock bus 13. Meanwhile, it may be of a structure to make the output clock switching means 105 of the first clock transmission circuit 11-1 be stopped by the output clock switching means 115 of the second clock transmission circuit 11-2 directly. - An output clock switching means can be realized as a multiplexer (selection circuit), for example, which takes a received clock switching instruction signal as a selection control signal.
- The above is description about a structure of the
clock generation apparatus 10 according to this exemplary embodiment. - (Operation)
- Next, operations of the
clock generation apparatus 10 according to this exemplary embodiment will be described with reference toFIGS. 5-8 . Meanwhile, in below, description will be made to a case where the first clock transmission circuit 11-1 is set as a main circuit and the second clock transmission circuit 11-2 is set as a sub-circuit initially as shown inFIG. 2 . - (Sub-Circuit)
- First, operations of the second clock transmission circuit 11-2 that is a sub-circuit in the initial state will be described using the flow chart of
FIG. 5 . - In
FIG. 5 , the clock generating means 111 of the second clock transmission circuit 11-2 generates a clock signal (stand-by system clock signal) using its oscillator (Step S11). At that time, a clock signal generated in the clock generating means 111 is outputted to the clock measurement means 112 and the output clock switching means 115. - The second clock transmission circuit 11-2 restrains clock transmission in the output clock switching means 115 and receives an active system clock which the first clock transmission circuit 11-1 that is a main circuit transmits to the clock bus 13 (Step S12).
- The second clock transmission circuit 11-2 keeps receiving an active system clock signal and measures a phase difference between the active system clock and its own clock in the clock measurement means 112 (Step S13).
- Here, based on the predetermined condition, the clock switching availability determination means 113 determines whether it is possible to switch a clock at the present from a calculated phase difference (Step S14).
- When a cycle shift time of a stand-by system clock signal obtained from the phase difference satisfies the predetermined condition (in Step S14, Yes), the clock switching availability determination means 113 determines that it is possible to change a clock. When being determined that it is possible to change a clock in Step S14, an advance towards Step S15 of
FIG. 5 is made. - On the other hand, when a cycle shift time does not satisfy the predetermined condition (in Step S14, No), the clock switching availability determination means 113 determines that switching of a clock is impossible. When it is determined that switching of a clock is impossible in Step S14, the processing returns to Step S13 of
FIG. 5 . - Here, according to whether a situation that requires switching of a clock (hereinafter, it is referred to as a clock switching event) is occurring or not, the second clock transmission circuit 11-2 performs different operations (Step S15). Meanwhile, a clock switching event is a situation such as a main circuit replacement in the event of maintenance, a failure or the like of the main circuit, for example.
- Even if switching of a clock is possible (in Step S14, Yes), when a clock switching event is not occurring (in Step S15, No), the second clock transmission circuit 11-2 does not switch a clock.
- When switching of a clock is possible (in Step S14, Yes) and a clock switching event occurs (in Step S15, Yes), the second clock transmission circuit 11-2 makes the output clock switching means 115 transit from the clock restraint state to the clock transmission state. That is, the second clock transmission circuit 11-2 outputs its own clock signal to the clock bus 13 (Step S16). Then, the second clock transmission circuit 11-2 transmits a clock output suspension direction signal to the first clock transmission circuit 11-1 (Step S17). Meanwhile, although it is arranged in
FIG. 5 such that the processing advances towards Step S17 following Step S16, Step S16 and Step S17 may be performed simultaneously, or Step S17 may be performed before Step S16. - After that, the second clock transmission circuit 11-2 transits to a main circuit, and performs operations corresponding to a main circuit (Step S18).
- (Main Circuit)
- Next, operations of the first clock transmission circuit 11-1 that is a main circuit in the initial state will be described using the flow chart of
FIG. 6 . - In
FIG. 6 , the clock generating means 101 of the first clock transmission circuit 11-1 generates a clock signal to be transmitted to the clock bus 13 (active system clock signal) using its own oscillator (Step S21). - The output clock switching means 105 of the first clock transmission circuit 11-1 transmits its own clock signal to the clock bus 13 (Step S22).
- Here, the first clock transmission circuit 11-1 performs different operations according to whether a clock output suspension direction signal has been received from the second clock transmission circuit 11-2 or not (Step S23).
- When a clock output suspension direction signal has not been received (in Step S23, No), the first clock transmission circuit 11-1 continues clock output (Step S23 is repeated) until a clock output suspension direction signal is received from the second clock transmission circuit 11-2 that is the other clock transmission circuit.
- On the other hand, when a clock output suspension direction signal has been received (in Step S23, Yes), the output clock switching means 105 of the first clock transmission circuit 11-1 stops its clock output (Step S24). Meanwhile, when a mechanism that the second clock transmission circuit 11-2 blocks off clock output of the first clock transmission circuit 11-1 compulsorily is provided, clock output stop processing in Step S24 is carried out by the second clock transmission circuit 11-2.
- After that, the first clock transmission circuit 11-1 transits to a sub-circuit and operates as a sub-circuit (Step S25). Meanwhile, when the first clock transmission circuit 11-1 transits to a sub-circuit, it starts or stops at least part of its functions according to the situation, and operates along the flow chart of
FIG. 5 . - (Operation Relation Between Main Circuit and Sub-Circuit)
- In
FIG. 7 andFIG. 8 , there is shown operation relation between the first clock transmission circuit 11-1 and the second clock transmission circuit 11-2 at the time of normal operations (at the time of initial operations) or at the time of a switching operation. Meanwhile, a main circuit and a sub-circuit operate along the flow charts ofFIG. 5 andFIG. 6 . - (Normal Operation)
-
FIG. 7 is a sequence diagram showing operation relation between the first clock transmission circuit 11-1 and the second clock transmission circuit 11-2 in normal operation. - In the first clock transmission circuit 11-1 and the second clock transmission circuit 11-2, clock signals are generated individually. The first clock transmission circuit 11-1 outputs a generated clock signal to the
clock bus 13 as an active system clock signal. In contrast, the second clock transmission circuit 11-2 restrains a generated clock signal in the output clock switching means 115. Meanwhile, a clock signal that is restrained in the output clock switching means 115 is called a stand-by system clock signal. - When the active system clock signal is received via the
clock bus 13, the second clock transmission circuit 11-2 makes the clock measurement means 112 measure a clock phase difference between the active system clock signal and its own clock signal. Then, the second clock transmission circuit 11-2 determines whether a cycle shift time of a stand-by system clock obtained from a clock phase difference satisfies the predetermined condition or not. - Unless the second clock transmission circuit 11-2 receives a clock switching request signal, operations of the first clock transmission circuit 11-1 and the second clock transmission circuit 11-2 shown in
FIG. 7 are repeated. - (Switching Operation)
-
FIG. 8 is a sequence diagram showing operation relation between the first clock transmission circuit 11-1 and the second clock transmission circuit 11-2 at the time of a switching operation. - In
FIG. 8 , description will be omitted until the point where the second clock transmission circuit 11-2 determines a difference of a clock phase, because it is similar to the normal operation ofFIG. 7 . - When a clock switching request signal is received, the second clock transmission circuit 11-2 outputs its own clock signal to the
clock bus 13 and outputs a clock output suspension direction signal to the first clock transmission circuit 11-1. - When the first clock transmission circuit 11-1 receives the clock output suspension direction signal from the second clock transmission circuit 11-2, the output clock switching means 105 restrains output of its own clock signal to the
clock bus 13. - Thus, by the second clock transmission circuit 11-2 transiting to a main circuit and the first clock transmission circuit 11-1 transiting to a sub-circuit, a transmission circuit of a clock signal is switched over.
- As above, in a clock generation apparatus according to this exemplary embodiment, switching of an output clock is not performed at timing when an active system clock signal and a stand-by system clock signal is in the same phase or when a phase difference between them is small, and an output clock is switched under a condition that clock cycles shift sufficiently from each other. As a result, synchronization between circuits based on a received clock is not lost because there are no cases that one unnecessary pulse of a clock signal occurs due to a transmission line difference when a clock signal to be transmitted is switched from an active system clock signal to a stand-by system clock signal.
- Meanwhile, in the technique of this exemplary embodiment, although there is a possibility that a timing change of a transmission clock occurs between before and after switching of a clock, a difference does not occur in recognition of a clock between reception circuits.
- Next, a structure of a
clock generation apparatus 20 according to the third exemplary embodiment of the present invention will be described usingFIG. 9 . Theclock generation apparatus 20 according to this exemplary embodiment is different from theclock generation apparatus 10 according to the second exemplary embodiment in a point that a first clock transmission circuit 21-1 includes a clockphase changing means 106, and a second clock transmission circuit 21-2 includes a clockphase changing means 116. - Referring to
FIG. 9 , theclock generation apparatus 20 according to this exemplary embodiment includes the first clock transmission circuit 21-1, the second clock transmission circuit 21-2 and theclock bus 13. - The first clock transmission circuit 21-1 has the clock generating means 101, the clock measurement means 102, the clock switching availability determination means 103, the clock switching directing means 104, the output clock switching means 105 and the clock
phase changing means 106. - The second clock transmission circuit 21-2 includes the clock generating means 111, the clock measurement means 112, the clock switching availability determination means 113, the clock switching directing means 114, the output clock switching means 115 and the clock
phase changing means 116. Meanwhile, any number of clock transmission circuits of no smaller than 1 can be connected as sub-circuits to a clock transmission circuit to be a main circuit as is the case with the second exemplary embodiment. - Next, internal configurations of the first clock transmission circuit 21-1 and the second clock transmission circuit 21-2 of the
clock generation apparatus 20 according to this exemplary embodiment will be described. Meanwhile, the first clock transmission circuit 21-1 and the second clock transmission circuit 21-2 according to this exemplary embodiment have the same structure as the second exemplary embodiment except for the clockphase changing means phase changing means - (Clock Phase Changing Means)
- A clock phase changing means has a function to change, when a cycle shift time between an active system clock signal and a stand-by system clock signal measured by a clock measurement means does not satisfy the predetermined condition, the phase of its own clock signal and adjust it so as to satisfy the predetermined condition. That is, a clock phase changing means adjusts a cycle shift time between an active system clock signal and a stand-by system clock signal such that it is shifted so as to make it be equal to or more that a period from a setup start time to a hold end time of a signal specified for the clock bus.
- In the initial state of
FIG. 9 , while the clockphase changing means 116 of the second clock transmission circuit 21-2 set as a sub-circuit function, the clockphase changing means 106 of the first clock transmission circuit 21-1 set as a main circuit does not function. In the clock transmission circuit in the side set as a main circuit, a path between the clock generating means and the output clock switching means may be bypassed. - The clock
phase changing means 106 start its function at timing when the first clock transmission circuit 11-1 transits to a sub-circuit, and the clockphase changing means 116 stops its function at timing when the second clock transmission circuit 11-2 transits to a main circuit. Meanwhile, the clockphase changing means - The clock
phase changing means 116 can be realized by a phase shift circuit (phase shifter) which can adjust a generated clock to an optional phase, for example. - (Operations)
- Next, with reference to the flow chart of
FIG. 6 andFIG. 10 , operations of theclock generation apparatus 20 according to this exemplary embodiment will be described. Meanwhile, in below, description will be made about a case where the first clock transmission circuit 21-1 is set as a main circuit and the second clock transmission circuit 21-2 is set as a sub-circuit initially. Description about operations of the first clock transmission circuit 21-1 (main circuit) according to this exemplary embodiment will be omitted because those are the same as the operations of the first clock transmission circuit 11-1 (main circuit) according to the second exemplary embodiment shown inFIG. 6 . - (Sub-Circuit)
- Operations of the second clock transmission circuit 21-2 that is a sub-circuit in the initial state will be described using the flow chart of
FIG. 10 . Meanwhile, description about operations of the first clock transmission circuit 21-1 that is a main circuit in the initial state will be omitted because they are similar to those of the flow chart ofFIG. 6 . - In
FIG. 10 , the clock generating means 111 of the second clock transmission circuit 21-2 generates a clock signal (stand-by system clock signal) using its oscillator (Step S31). - The second clock transmission circuit 21-2 restrains clock transmission in the output clock switching means 115, and receives an active system clock signal transmitted to the
clock bus 13 by the first clock transmission circuit 21-1 that is a main circuit (Step S32). - The second clock transmission circuit 21-2 keeps receiving an active system clock signal and measures a phase difference between an active system clock signal and its clock signal in the clock measurement means 112 (Step S33).
- Here, based on the predetermined condition, the clock switching availability determination means 113 of the second clock transmission circuit 21-2 determines whether it is possible to switch a clock or not at the present from a calculated phase difference (Step S34).
- When a cycle shift time of a stand-by system clock signal obtained from a phase difference satisfies the predetermined condition (in Step S34, Yes), the clock switching availability determination means 113 determines that switching of a clock is possible. When being determined that switching of a clock is possible in Step S34, the processing advances towards Step S36 of
FIG. 10 . - On the other hand, when a cycle shift time of a stand-by system clock signal obtained from a phase difference does not satisfy the predetermined condition (in Step S34, No), the clock switching availability determination means 113 determines that switching of a clock is impossible. In this case, the clock
phase changing means 116 adjusts the phase of the stand-by system clock signal generated by its own clock transmission circuit so that a cycle shift time may satisfy the predetermined condition (Step S35). - Here, according to whether a situation for which switching of a clock is required (hereinafter, referred to as a clock switching event) is occurring or not, the second clock transmission circuit 21-2 performs different operations (Step S36).
- Even if switching of a clock is possible (in Step S34, Yes), the second clock transmission circuit 21-2 does not switch a clock (return to Step S33 is made) when a clock switching event is not occurring (in Step S36, No).
- When it is possible to switch a clock (in Step S34, Yes) and a clock switching event occurs (in Step S36, Yes), the second clock transmission circuit 21-2 makes the output clock switching means 115 transit from a clock restraint state to a clock transmission state. That is, the second clock transmission circuit 21-2 outputs its own clock signal to the clock bus 13 (Step S37). Then, the second clock transmission circuit 21-2 transmits a clock output suspension direction signal to the first clock transmission circuit 21-1 (Step S38). Meanwhile, a mechanism that the second clock transmission circuit 21-2 blocks off clock output of the first clock transmission circuit 21-1 compulsorily may be provided. In
FIG. 10 , although it is arranged such that advance towards Step S38 is made following Step S37, Step S37 and Step S38 may be performed simultaneously, or Step S38 may be performed before Step S37. - After that, the second clock transmission circuit 21-2 performs operations corresponding to a main circuit (Step S39).
- Also in a clock generation apparatus according to this exemplary embodiment, a main circuit and a sub-circuit operate in the relation as shown in
FIG. 7 andFIG. 8 as is the case with a clock generation apparatus according to the second exemplary embodiment. - As above, according to a clock generation apparatus according to this exemplary embodiment, it becomes possible to, by having a clock phase changing means, set a clock cycle shift time between a main circuit and a sub-circuit so that the predetermined condition may be always satisfied.
- In a clock generation apparatus according to the second exemplary embodiment, even in a case where a clock signal is needed to be switched immediately, such as a case of a main circuit failure, for example, there is a possibility that this situation cannot be handled regardless of having received a clock switching request signal because the predetermined condition is not satisfied. In contrast, in a clock generation apparatus according to this exemplary embodiment, even in a case where a clock signal is needed to be switched immediately, such as a case of a main circuit failure, a clock can be switched certainly if it is in the state that a clock signal is already adjusted in advance.
-
FIG. 11 indicates a schematic diagram of aserver system 100 according to the fourth exemplary embodiment of the present invention. Meanwhile, although various functional structures are needed in an actual server system, only portions which are the essence of this exemplary embodiment are picked out and shown in a simplified manner inFIG. 11 . - The
server system 100 according to this exemplary embodiment includes aclock generation apparatus 110 according to the second exemplary embodiment of the present invention, atransmission line 130 and a plurality of reception circuits 120 (120-1, 120-1, . . . , 120-n) (n is a natural number). Meanwhile, although detailed description will be omitted, theclock generation apparatus 110 has the same internal configuration as theclock generation apparatus 10 according to the second exemplary embodiment. In theserver system 100, a device having the functional structure of theclock generation apparatus 20 according to the third exemplary embodiment may be used as theclock generation apparatus 110. - The plurality of
reception circuits 120 are connected with theclock generation apparatus 110 via thetransmission line 130. Each of the plurality ofreception circuits 120 has path differences to theclock generation apparatus 110. Each of the plurality ofreception circuits 120 operates based on an active system clock signal received from theclock generation apparatus 110. - Here, in the
clock generation apparatus 110 according to this exemplary embodiment, it is supposed that a clock transmission circuit to output an active system clock signal has been switched over. At that time, regarding an active system clock signal which is outputted by theclock generation apparatus 110 according to this exemplary embodiment, a difference does not occur to received clocks received by thereception circuits 120 that are clock supply destinations, even if a clock transmission circuit inside theclock generation apparatus 110 is switched over. - When a general clock transmission circuit is used, a difference may occur to received clocks due to a path difference to the clock transmission circuit between reception circuits to be clock supply destinations. For example, a short pulse may occur in addition to a usual clock when an active system clock and a stand-by system clock is switched at timing that they have approximately the same phase and, in addition, at timing of clock rise. As a result, in each reception circuit which is a clock supply destination, clocks increased unnecessarily by one pulse are received when a path length is short, and clocks without one-pulse increase are received when a path length is long because the pulse is dulled. Thus, when there is a difference in received clocks depending on reception circuits which are a plurality of clock supply destinations, synchronization between the reception circuits cannot be achieved correctly any more.
- In contrast, in a server system according to this exemplary embodiment, a short pulse does not occur because, even when a clock transmission circuit to output an active system clock is switched, the phases of clock signals which are transmitted from different clock transmission circuits are the same. As a result, in a server system according to this exemplary embodiment, a difference due to path differences does not occur to clocks supplied to reception circuits.
- Regarding a control method of a clock generation apparatus described in each exemplary embodiment of the present invention, even if it does not depend on the same structure as each exemplary embodiment, it is deemed to be included in the scope of the present invention if it is a method to which the above-mentioned techniques and methods are applied or a method guessed from the above-mentioned techniques and methods. A program which makes a computer execute a control method of a clock generation apparatus according to an exemplary embodiment of the present invention is also deemed to be included in the scope of the present invention. Further, a program storage medium storing a program included in the scope of the present invention is also deemed to be included in the scope of the present invention.
- Although the present invention has been described with reference to an exemplary embodiment above, the present invention is not limited to the above-mentioned exemplary embodiments. Various changes which a person skilled in the art can understand can be performed in the composition and details of the present invention within the scope of the present invention.
-
-
- 1 Clock generation apparatus
- 2 Clock determination means
- 3 Clock switching means
- 10 and 20 Clock generation apparatus
- 11-1 First clock transmission circuit
- 11-2 Second clock transmission circuit
- 21-1 First clock transmission circuit
- 21-2 Second clock transmission circuit
- 13 Clock bus
- 21-1 First clock transmission circuit
- 21-2 Second clock transmission circuit
- 100 Server system
- 101 and 111 Clock generating means
- 102 and 112 Clock measurement means
- 103 and 113 Clock switching availability determination means
- 104 and 114 Clock switching directing means
- 105 and 115 Output clock switching means
- 106 and 116 Clock phase changing means
- 110 Clock generation apparatus
- 120 Reception circuit
- 130 Transmission line
Claims (10)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014055794A JP5880603B2 (en) | 2014-03-19 | 2014-03-19 | Clock generator, server system, and clock control method |
JP2014-055794 | 2014-03-19 |
Publications (2)
Publication Number | Publication Date |
---|---|
US20150270944A1 true US20150270944A1 (en) | 2015-09-24 |
US9654277B2 US9654277B2 (en) | 2017-05-16 |
Family
ID=54143081
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US14/660,598 Active 2035-06-24 US9654277B2 (en) | 2014-03-19 | 2015-03-17 | Clock generation apparatus, server system and clock control method |
Country Status (2)
Country | Link |
---|---|
US (1) | US9654277B2 (en) |
JP (1) | JP5880603B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190094903A1 (en) * | 2016-03-24 | 2019-03-28 | Wago Verwaltungsgesellschaft Mbh | Security control and method for operating a security control |
US10771229B2 (en) * | 2018-08-30 | 2020-09-08 | Thales | Synchronizing method and system |
CN112073038A (en) * | 2020-09-08 | 2020-12-11 | 新港海岸(北京)科技有限公司 | Programmable hardware clock switching method, device and system |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10979048B2 (en) * | 2019-09-13 | 2021-04-13 | Semiconductor Components Industries, Llc | Clock switching circuit and method |
Citations (33)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5059925A (en) * | 1990-09-28 | 1991-10-22 | Stratacom, Inc. | Method and apparatus for transparently switching clock sources |
US5274678A (en) * | 1991-12-30 | 1993-12-28 | Intel Corporation | Clock switching apparatus and method for computer systems |
US5315181A (en) * | 1993-07-07 | 1994-05-24 | Maxtor Corporation | Circuit for synchronous, glitch-free clock switching |
US5373254A (en) * | 1992-01-17 | 1994-12-13 | Hitachi, Ltd. | Method and apparatus for controlling phase of a system clock signal for switching the system clock signal |
US5517638A (en) * | 1993-05-13 | 1996-05-14 | Texas Instruments Incorporated | Dynamic clock switching circuitry and method |
US5604452A (en) * | 1995-04-03 | 1997-02-18 | Exar Corporation | Clock generator using a state machine to switch between two offset clocks |
US5726593A (en) * | 1992-10-27 | 1998-03-10 | Nokia Telecommunications Oy | Method and circuit for switching between a pair of asynchronous clock signals |
US5758136A (en) * | 1991-07-29 | 1998-05-26 | Unisys Corp. | Method for dynamically switching between a plurality of clock sources upon detection of phase alignment therefor and disabling all other clock sources |
US6189076B1 (en) * | 1997-11-14 | 2001-02-13 | Lucent Technologies, Inc. | Shared synchronous memory with a switching circuit controlled by an arbiter and method for glitch free switching of a clock signal |
US6275546B1 (en) * | 1998-06-30 | 2001-08-14 | Hewlett-Packard Company | Glitchless clock switch circuit |
US20010032323A1 (en) * | 2000-04-06 | 2001-10-18 | Konica Corporation | Clock generating device |
US6310498B1 (en) * | 1998-12-09 | 2001-10-30 | Agere Systems Guardian Corp. | Digital phase selection circuitry and method for reducing jitter |
US6366146B2 (en) * | 2000-03-23 | 2002-04-02 | Telefonaktiebolaget L M Ericsson (Publ) | Phase-locked loop based clock phasing implementing a virtual delay |
US20020126785A1 (en) * | 1999-12-31 | 2002-09-12 | Santo Maggio | Method for recovering a clock signal in a telecommunications system and circuit thereof |
US6453425B1 (en) * | 1999-11-23 | 2002-09-17 | Lsi Logic Corporation | Method and apparatus for switching clocks presented to synchronous SRAMs |
US20030090302A1 (en) * | 2001-11-12 | 2003-05-15 | Hiroyuki Hanamori | Semiconductor integrated circuit characterized by timing adjustment of clock switching control |
US6741109B1 (en) * | 2002-02-28 | 2004-05-25 | Silicon Laboratories, Inc. | Method and apparatus for switching between input clocks in a phase-locked loop |
US6795932B2 (en) * | 2000-12-15 | 2004-09-21 | Renesas Technology Corp. | Clock switchover circuit |
US6845490B2 (en) * | 2002-01-11 | 2005-01-18 | Oki Electric Industry Co., Ltd. | Clock switching circuitry for jitter reduction |
US7003683B2 (en) * | 2002-01-31 | 2006-02-21 | Stmicroelectronics. Inc. | Glitchless clock selection circuit |
US7046047B2 (en) * | 2003-12-25 | 2006-05-16 | Fujitsu Limited | Clock switching circuit |
US7145368B2 (en) * | 2003-07-14 | 2006-12-05 | Matsushita Electric Industrial Co., Ltd. | Clock signal switching device, clock signal switching method, data bus switching device, and data bus switching method |
US7259598B2 (en) * | 2005-12-30 | 2007-08-21 | National Chiao Tung University | Clock switching circuit |
US20070230647A1 (en) * | 2006-03-31 | 2007-10-04 | Ati Technologies Inc. | Clock error detection apparatus and method |
US7334152B2 (en) * | 2004-07-12 | 2008-02-19 | Seiko Epson Corporation | Clock switching circuit |
US7405628B2 (en) * | 2006-09-29 | 2008-07-29 | Silicon Laboratories Inc. | Technique for switching between input clocks in a phase-locked loop |
US7605617B2 (en) * | 2006-06-09 | 2009-10-20 | Atmel Automotive Gmbh | Method for switching a system clock and clock synchronization unit |
US7777534B2 (en) * | 2006-10-23 | 2010-08-17 | Realtek Semiconductor Corp. | Fraction-N frequency divider and method thereof |
US7821311B2 (en) * | 2008-10-13 | 2010-10-26 | Hynix Semiconductor Inc. | Delay locked loop circuit and memory device having the same |
US20120027144A1 (en) * | 2010-07-30 | 2012-02-02 | Ming-Cheng Chiang | Multi-phase clock switching device and method thereof |
US8140918B2 (en) * | 2009-03-05 | 2012-03-20 | Fujitsu Limited | Clock supply method and information processing apparatus |
US9118458B1 (en) * | 2014-04-24 | 2015-08-25 | Telefonaktiebolaget L M Ericsson (Publ) | Clock phase alignment |
US20160112223A1 (en) * | 2013-05-10 | 2016-04-21 | Mitsubishi Electric Corporation | Signal processing device |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3593743B2 (en) * | 1995-06-09 | 2004-11-24 | 株式会社日立製作所 | Clock circuit |
JP3720552B2 (en) * | 1997-11-07 | 2005-11-30 | 富士通株式会社 | Dual clock synchronous control system |
JP3447671B2 (en) * | 2000-06-19 | 2003-09-16 | 日本電気株式会社 | Redundant clock selection method |
US6803783B2 (en) * | 2003-01-31 | 2004-10-12 | Hewlett-Packard Development Company, L.P. | Time borrowing using dynamic clock shift for bus speed performance |
JP4862984B2 (en) * | 2005-03-30 | 2012-01-25 | 日本電気株式会社 | Clock switching device and clock switching method |
JP4838110B2 (en) * | 2006-12-18 | 2011-12-14 | 富士通株式会社 | System clock supply apparatus and reference oscillator frequency deviation determination method |
JP5401947B2 (en) * | 2008-12-01 | 2014-01-29 | 沖電気工業株式会社 | Clock uninterruptible switching device and operation method thereof |
JP6036014B2 (en) | 2012-02-22 | 2016-11-30 | 沖電気工業株式会社 | Clock switching device |
-
2014
- 2014-03-19 JP JP2014055794A patent/JP5880603B2/en active Active
-
2015
- 2015-03-17 US US14/660,598 patent/US9654277B2/en active Active
Patent Citations (33)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5059925A (en) * | 1990-09-28 | 1991-10-22 | Stratacom, Inc. | Method and apparatus for transparently switching clock sources |
US5758136A (en) * | 1991-07-29 | 1998-05-26 | Unisys Corp. | Method for dynamically switching between a plurality of clock sources upon detection of phase alignment therefor and disabling all other clock sources |
US5274678A (en) * | 1991-12-30 | 1993-12-28 | Intel Corporation | Clock switching apparatus and method for computer systems |
US5373254A (en) * | 1992-01-17 | 1994-12-13 | Hitachi, Ltd. | Method and apparatus for controlling phase of a system clock signal for switching the system clock signal |
US5726593A (en) * | 1992-10-27 | 1998-03-10 | Nokia Telecommunications Oy | Method and circuit for switching between a pair of asynchronous clock signals |
US5517638A (en) * | 1993-05-13 | 1996-05-14 | Texas Instruments Incorporated | Dynamic clock switching circuitry and method |
US5315181A (en) * | 1993-07-07 | 1994-05-24 | Maxtor Corporation | Circuit for synchronous, glitch-free clock switching |
US5604452A (en) * | 1995-04-03 | 1997-02-18 | Exar Corporation | Clock generator using a state machine to switch between two offset clocks |
US6189076B1 (en) * | 1997-11-14 | 2001-02-13 | Lucent Technologies, Inc. | Shared synchronous memory with a switching circuit controlled by an arbiter and method for glitch free switching of a clock signal |
US6275546B1 (en) * | 1998-06-30 | 2001-08-14 | Hewlett-Packard Company | Glitchless clock switch circuit |
US6310498B1 (en) * | 1998-12-09 | 2001-10-30 | Agere Systems Guardian Corp. | Digital phase selection circuitry and method for reducing jitter |
US6453425B1 (en) * | 1999-11-23 | 2002-09-17 | Lsi Logic Corporation | Method and apparatus for switching clocks presented to synchronous SRAMs |
US20020126785A1 (en) * | 1999-12-31 | 2002-09-12 | Santo Maggio | Method for recovering a clock signal in a telecommunications system and circuit thereof |
US6366146B2 (en) * | 2000-03-23 | 2002-04-02 | Telefonaktiebolaget L M Ericsson (Publ) | Phase-locked loop based clock phasing implementing a virtual delay |
US20010032323A1 (en) * | 2000-04-06 | 2001-10-18 | Konica Corporation | Clock generating device |
US6795932B2 (en) * | 2000-12-15 | 2004-09-21 | Renesas Technology Corp. | Clock switchover circuit |
US20030090302A1 (en) * | 2001-11-12 | 2003-05-15 | Hiroyuki Hanamori | Semiconductor integrated circuit characterized by timing adjustment of clock switching control |
US6845490B2 (en) * | 2002-01-11 | 2005-01-18 | Oki Electric Industry Co., Ltd. | Clock switching circuitry for jitter reduction |
US7003683B2 (en) * | 2002-01-31 | 2006-02-21 | Stmicroelectronics. Inc. | Glitchless clock selection circuit |
US6741109B1 (en) * | 2002-02-28 | 2004-05-25 | Silicon Laboratories, Inc. | Method and apparatus for switching between input clocks in a phase-locked loop |
US7145368B2 (en) * | 2003-07-14 | 2006-12-05 | Matsushita Electric Industrial Co., Ltd. | Clock signal switching device, clock signal switching method, data bus switching device, and data bus switching method |
US7046047B2 (en) * | 2003-12-25 | 2006-05-16 | Fujitsu Limited | Clock switching circuit |
US7334152B2 (en) * | 2004-07-12 | 2008-02-19 | Seiko Epson Corporation | Clock switching circuit |
US7259598B2 (en) * | 2005-12-30 | 2007-08-21 | National Chiao Tung University | Clock switching circuit |
US20070230647A1 (en) * | 2006-03-31 | 2007-10-04 | Ati Technologies Inc. | Clock error detection apparatus and method |
US7605617B2 (en) * | 2006-06-09 | 2009-10-20 | Atmel Automotive Gmbh | Method for switching a system clock and clock synchronization unit |
US7405628B2 (en) * | 2006-09-29 | 2008-07-29 | Silicon Laboratories Inc. | Technique for switching between input clocks in a phase-locked loop |
US7777534B2 (en) * | 2006-10-23 | 2010-08-17 | Realtek Semiconductor Corp. | Fraction-N frequency divider and method thereof |
US7821311B2 (en) * | 2008-10-13 | 2010-10-26 | Hynix Semiconductor Inc. | Delay locked loop circuit and memory device having the same |
US8140918B2 (en) * | 2009-03-05 | 2012-03-20 | Fujitsu Limited | Clock supply method and information processing apparatus |
US20120027144A1 (en) * | 2010-07-30 | 2012-02-02 | Ming-Cheng Chiang | Multi-phase clock switching device and method thereof |
US20160112223A1 (en) * | 2013-05-10 | 2016-04-21 | Mitsubishi Electric Corporation | Signal processing device |
US9118458B1 (en) * | 2014-04-24 | 2015-08-25 | Telefonaktiebolaget L M Ericsson (Publ) | Clock phase alignment |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190094903A1 (en) * | 2016-03-24 | 2019-03-28 | Wago Verwaltungsgesellschaft Mbh | Security control and method for operating a security control |
US10969819B2 (en) * | 2016-03-24 | 2021-04-06 | Wago Verwaltungsgesellschaft Mbh | Security control and method for operating a security control |
US10771229B2 (en) * | 2018-08-30 | 2020-09-08 | Thales | Synchronizing method and system |
CN112073038A (en) * | 2020-09-08 | 2020-12-11 | 新港海岸(北京)科技有限公司 | Programmable hardware clock switching method, device and system |
Also Published As
Publication number | Publication date |
---|---|
JP2015179351A (en) | 2015-10-08 |
US9654277B2 (en) | 2017-05-16 |
JP5880603B2 (en) | 2016-03-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9654277B2 (en) | Clock generation apparatus, server system and clock control method | |
US8874058B2 (en) | Stream signal transmission device and transmission method | |
US8648622B2 (en) | Method and device for monitoring a frequency signal | |
KR102162321B1 (en) | Processor system and fault detection method thereof | |
KR20040009269A (en) | System for Concluding Phase of Multi-Clock | |
KR100882391B1 (en) | Seamless clock | |
EP2221684A2 (en) | Distributed control system | |
US20130077430A1 (en) | Semiconductor system | |
US7656215B2 (en) | Clock generator circuit, clock selector circuit, and semiconductor integrated circuit | |
JP5138187B2 (en) | Measuring system and measuring unit | |
KR101848767B1 (en) | Guidance and control system and system clock generating method thereof | |
JP2008176578A (en) | Redundant operation system and operation part | |
JP4755868B2 (en) | Switching control system and control unit applied thereto | |
US9832551B2 (en) | Optical transmission device and optical transmission control method | |
KR100212050B1 (en) | The way and circuit for watching and choosing synchronous source of digital exchange | |
JP2014187791A (en) | Motor control device, motor control method, and game machine | |
EP2506469A1 (en) | Method, device and system for clock dejitter | |
US20090100283A1 (en) | Method for switching between two redundant oscillator signals within an alignment element | |
US11923862B2 (en) | Transmission apparatus and transmission system | |
CN109086242B (en) | Communication system and method | |
JP5604799B2 (en) | Fault tolerant computer | |
JP2009200872A (en) | Reference signal synchronization control method in redundant configuration system | |
EP3812874B1 (en) | Glitch-free clock multiplexer | |
EP2302484A2 (en) | Semiconductor integrated device and control method thereof | |
JP4192581B2 (en) | Clock switching device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: NEC CORPORATION, JAPAN Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:TANNO, YUKI;REEL/FRAME:035185/0215 Effective date: 20150305 |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Year of fee payment: 4 |
|
AS | Assignment |
Owner name: NEC ASIA PACIFIC PTE LTD., SINGAPORE Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:NEC CORPORATION;REEL/FRAME:063349/0459 Effective date: 20230414 |
|
AS | Assignment |
Owner name: IP WAVE PTE LTD., SINGAPORE Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:NEC ASIA PACIFIC PTE LTD.;REEL/FRAME:066376/0276 Effective date: 20240118 |
|
AS | Assignment |
Owner name: CLOUD BYTE LLC., DELAWARE Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:IP WAVE PTE LTD.;REEL/FRAME:067944/0332 Effective date: 20240305 |