Clock system, system on chip and electronic equipment
In a multi-processor system, some of the output clock ports of the main processor provide clock signals to the slave processors, which solves the problems of high external clock source deployment costs and circuit complexity, and reduces the number of external clock sources and circuit complexity. effect.
Patent Information
- Application Number
- CN202323498746.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-20
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2033-12-20
AI Technical Summary
In multi-processor systems, the deployment cost of external clock sources is high and the circuit complexity of the clock system increases. A solution is needed to reduce the deployment cost and circuit complexity of external clock sources.
By providing a clock signal to the slave processor on part of the second clock port of the master processor, part of the output clock port of the master processor serves as the clock source of the slave processor, thereby reducing the number of external clock sources that the slave processor needs to connect, and Reduce the circuit complexity of the clock system.
It effectively reduces the number of external clock sources deployed, reduces the circuit complexity of the clock system, improves the stability and efficiency of the system, and reduces development and maintenance costs.
Smart Images

Figure CN221927012U_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a clock system, a system on a chip, and an electronic device. Background Art
[0002] The clock system of the processor may be used to coordinate and control internal operations and external operations of the processor. For example, by providing a clock signal to the processor, the internal operations and external operations of the processor may be coordinated and controlled.
[0003] The clock signal of the processor can be provided by an external clock source. However, when there are multiple processors, multiple external clock sources need to be arranged accordingly to provide clock signals for the multiple processors, which results in a high deployment cost of the external clock source and increases the circuit complexity of the clock system. Therefore, how to provide an improved clock system solution to reduce the deployment cost of the external clock source and reduce the circuit complexity of the clock system has become a technical problem that technicians in this field need to solve urgently. Utility Model Content
[0004] In view of this, embodiments of the present application provide a clock system, a system on chip, and an electronic device, which can reduce the deployment cost of an external clock source and reduce the circuit complexity of the clock system.
[0005] To achieve the above objectives, the embodiments of the present application provide the following technical solutions.
[0006] In a first aspect, an embodiment of the present application provides a clock system, comprising: a plurality of processors, and an external clock source providing a clock signal;
[0007] The processor comprises a clock port; the clock port comprises at least a first clock port for receiving a clock signal, and at least a second clock port for outputting a clock signal;
[0008] The multiple processors are divided into a master processor and a slave processor; the first clock port of the master processor is connected to the external clock source, and at least part of the second clock port of the master processor is connected to at least part of the first clock port of the slave processor.
[0009] Optionally, all first clock ports of the slave processor are connected to at least part of the second clock ports of the master processor;
[0010] Alternatively, part of the first clock port of the slave processor is connected to at least part of the second clock port of the master processor, and another part of the first clock port of the slave processor is connected to an external clock source.
[0011] Optionally, the second clock port connecting the master processor and the slave processor is located on a side of the master processor close to the slave processor;
[0012] The first clock port of the slave processor connected to the master processor is located at a side of the slave processor close to the master processor.
[0013] Optionally, the first clock port includes any one of the following: an input clock port, a clock signal input part of an input-output bidirectional clock port;
[0014] The second clock port includes any one of the following: an output clock port, a clock signal output part of an input-output bidirectional clock port.
[0015] Optionally, the main processor is connected to a peripheral device, wherein the main processor is connected to the peripheral device through part or all of the second clock ports; the slave processor is connected to a peripheral device, wherein the slave processor is connected to the peripheral device through part or all of the second clock ports.
[0016] Optionally, the processor further includes:
[0017] A high-speed IO port and an IO die are arranged inside the processor;
[0018] The high-speed IO port is connected to a peripheral device, the clock port is located in the IO die, and a second clock port connected to the peripheral device is connected to the high-speed IO port through an interface of the IO die.
[0019] Optionally, a physical connection link is provided between the high-speed IO port and the peripheral device, and the physical connection link connects the high-speed IO port and the peripheral device.
[0020] Optionally, the first clock port includes a clock signal input part of an input-output bidirectional clock port; the second clock port includes an output clock port;
[0021] In a processor, the number of the output clock ports is multiple, and the number of the output clock ports is not less than the number of high-speed IO ports in the processor.
[0022] In a second aspect, an embodiment of the present application provides a system on chip, which includes the clock system described above.
[0023] In a third aspect, an embodiment of the present application provides an electronic device, wherein the electronic device includes the system on chip described above.
[0024] The clock system provided in the embodiment of the present application includes: multiple processors, and an external clock source providing a clock signal; the processor includes a clock port; the clock port includes at least a first clock port for receiving a clock signal, and at least a second clock port for outputting a clock signal; the multiple processors are divided into a master processor and a slave processor; the first clock port of the master processor is connected to the external clock source, and at least part of the second clock port of the master processor is connected to at least part of the first clock port of the slave processor.
[0025] It can be seen that the clock system provided in the embodiment of the present application can provide a clock signal to at least part of the first clock port of the slave processor through part of the second clock port of the master processor. In other words, part of the second clock port of the master processor can be used as the clock source of the slave processor, thereby reducing the external clock source that the slave processor needs to connect to, thereby reducing the deployment of the external clock source and reducing the circuit complexity of the clock system. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0027] Figure 1 is an example diagram of a clock system provided in an embodiment of the present application;
[0028] Figure 2 is another example diagram of a clock system provided in an embodiment of the present application;
[0029] Figure 3 is another example diagram of a clock system provided in an embodiment of the present application;
[0030] Figure 4 is a structural example diagram of a high-speed IO port provided in an embodiment of the present application;
[0031] Figure 5 This is another example diagram of the clock system provided in the embodiment of the present application. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0033] The processor is one of the important components in the computer system and is also the core of the computer to achieve various data processing and computing tasks. The processor is responsible for receiving and executing instructions in the computer program and controlling various operations of the computer system to ensure that the various tasks of the computer can be executed in an orderly manner, providing better support for various computing applications.
[0034] In the process of processor application, the processor needs to rely on peripheral hardware circuits to ensure its normal operation. Peripheral hardware circuits are used to provide the function of data exchange and connection between the processor and peripheral devices. At the same time, the processor is designed with various ports, and each port has unique functions and protocols. For example, the ports designed by the processor are: clock ports.
[0035] The clock port has a dedicated chip pin (in modern computer systems, the processor can be designed as a microchip and installed on the computer motherboard). The system formed by the processor's clock port and the external clock source connected to the clock port can be called the processor's clock system.
[0036] The processor's clock system is used to synchronize the operations and scheduling within the processor. For example, the processor requires an external clock source to provide a working clock, and the processor also provides a reference clock for peripheral devices. Among them, the external clock source connected to the processor through the clock port can be a crystal oscillator (Crystal Oscillator) or an external clock generator (ExternalClock Generator). These external clock sources generate stable clock signals to provide the processor's working clock frequency and timing.
[0037] It should be noted that the working clock refers to the clock signal used to drive the various functional modules inside the processor, providing the basic time reference required for the normal operation of the processor. The reference clock refers to an accurate and stable signal used to provide a benchmark for calibration and synchronization, with high accuracy and stability. Therefore, the reference clock can be used to synchronize the clocks of the processor and peripheral devices, ensuring the coordinated operation of various components in the computer system.
[0038] As an example, Figure 1 The clock system example diagram provided by the embodiment of the present application is exemplarily shown. Figure 1 The processor 100 is provided with a clock port 110, and the external clock source 120 is connected to the clock port 110 to provide a clock signal for the processor 100. At the same time, the processor 100 can be connected to a peripheral device (not shown in the figure) through the clock port 110, thereby ensuring that the peripheral device and the processor transmit data in the correct timing.
[0039] It can be seen that the clock system plays an important role in the stable operation and timing control of the processor. However, for a multi-processor system composed of multiple processors, it is necessary to set multiple external clock sources to provide clock signals for the multiple processors. Although this can ensure the stable operation of the multi-processor system, it will cause the deployment cost of the external clock source to be high and increase the complexity of the clock system. Therefore, it is necessary to reduce the deployment cost of the external clock source of the clock system and reduce the circuit complexity of the clock system. Based on this, the embodiment of the present application provides an improved clock system solution in the case of a multi-processor system.
[0040] Based on a multi-processor system, an embodiment of the present application provides a clock system, which can reduce the number of external clock sources deployed in the clock system and reduce the circuit complexity of the clock system. Figure 2 Another example diagram of the clock system provided by the embodiment of the present application is shown exemplarily. The clock system provided by the embodiment of the present application may include multiple processors and an external clock source that provides a clock signal. Figure 2 , multiple processors can be divided into at least Figure 2 A master processor 210 and a slave processor 220 are shown.
[0041] The master processor is the main controller in the multi-processor system, with high computing power and control capabilities, responsible for managing the resources of the multi-processor system, coordinating task allocation and the core functions of the multi-processor system. The slave processor is assigned tasks by the master processor, has lower cache and computing power, and is used to perform some specific computing tasks, such as input / output, assisting the master processor in parallel computing, etc. The slave processor communicates with the master processor through a bus or other interconnection methods.
[0042] It should be noted that the above division method of the master processor and the slave processor is only optional. The embodiment of the present application can support any designated master processor in a multi-processor system and use other processors that communicate with the master processor as slave processors.
[0043] Optionally, the clock port of the processor (whether it is a master processor or a slave processor) may include at least an output clock port and an input clock port. The output clock port can be used for the processor to output a clock signal, and the input clock port can be used for the processor to access a clock signal. As an optional implementation, the embodiment of the present application may refer to a clock port that at least has the function of accessing a clock signal as a first clock port, and a clock port that at least has the function of outputting a clock signal as a second clock port. Thus, the input clock port can be regarded as an example of a first clock port, and the output clock port can be regarded as an example of a second clock port.
[0044] In other examples, the clock port may also be an input-output bidirectional clock port having an input clock signal function and an output clock signal function, for example, the input-output bidirectional clock port has a part for inputting clock signals and a part for outputting clock signals. In this example, the clock signal input part of the input clock signal of the input-output bidirectional clock port can be regarded as an example of the first clock port, and the clock signal output part of the output clock signal of the input-output bidirectional clock port can be regarded as an example of the second clock port.
[0045] That is, the first clock port having at least the function of receiving a clock signal may be an input clock port that simply receives a clock signal, or may be the clock signal input portion of an input / output bidirectional clock port. The second clock port having at least the function of outputting a clock signal may be an output clock port that simply outputs a clock signal, or may be the clock signal output portion of an input / output bidirectional clock port.
[0046] Figure 2 Take the first clock port as the input clock port and the second clock port as the output clock port as an example for explanation. Figure 2 The master processor 210 is provided with an output clock port 111 , an input clock port 112 , and an output clock port 113 ; the slave processor 220 is provided with an input clock port 114 , an input clock port 115 , and an output clock port 116 .
[0047] In a processor, the clock signal of the processor includes at least an input clock and an output clock. The input clock refers to an external clock signal supplied to the processor, which is the reference clock signal of the processor and is used to drive the operation of various components inside the processor. It has an important impact on the performance and stability of the processor.
[0048] In an alternative implementation, a clock signal provided by an external clock source may be input to an input clock port of the processor, for example, Figure 2 The input clock port 112 of the main processor 210 is connected to the external clock source 121, so that the external clock source 121 provides an input clock signal to the main processor 210 through the input clock port 112.
[0049] The output clock of a processor is a clock provided by the processor to the outside of the processor. For example, the output clock refers to a clock signal output after internal processing (such as frequency division processing) of the processor. The output clock of the processor can be output through the output clock port of the processor.
[0050] In an embodiment of the present application, at least part of the output clock ports of the master processor can be set as the clock source of the slave processor to provide a clock signal to the slave processor. For example, part of the output clock ports of the master processor can be connected to part of the input clock ports of the slave processor to provide a clock signal to the slave processor.
[0051] In an alternative embodiment, referring to Figure 2 The output clock port 111 of the master processor 210 is connected to the input clock port 114 of the slave processor 220. The master processor 210 transmits a clock signal to the input clock port 114 of the slave processor 220 through the output clock port 111. The master processor can then serve as a clock source for the slave processor and provide clock input for the slave processor.
[0052] In an optional implementation, the categories of clocks may include at least: a real-time clock (RTCCLK), a system clock, and a system real-time clock.
[0053] A real-time clock is a clock used in computer systems to provide real-time date, time, alarm and other functions. The real-time clock can be provided with a clock signal by an independent crystal oscillator, and the frequency of RTCCLK is relatively low, ranging from tens of kHz to hundreds of kHz, with the characteristics of low power consumption and long-lasting timing.
[0054] The system clock is the basic clock signal used to synchronize various components and operations in a computer system, driving the operation of key components such as the processor and data transmission.
[0055] The system real-time clock is a software abstraction in the operating system that represents the current date and time of the system. The system real-time clock is an important clock in the operating system that ensures that the computer's time remains accurate.
[0056] In an alternative embodiment, referring to Figure 2 , the output clock output by the master processor 210 to the slave processor 220 may be a real-time clock, for example, the clock output by the output clock port 111 is a real-time clock. Thus, the slave processor 220 reads the received real-time clock signal and uses the received real-time clock as the system real-time clock of the slave processor 220. In other words, the real-time clock output by the output clock port 111 of the master processor 210 may be used as the system real-time clock input by the input clock port 114 of the slave processor 220, so that the master processor 210 provides the real-time clock for the slave processor 220 and corrects the system real-time clock of the slave processor 220. In this case, the output clock of the master processor is associated with the input clock of the slave processor, that is, the output clock port 111 of the master processor provides the input of the system real-time clock for the input clock port 114 of the slave processor.
[0057] Optionally, the output clock port connecting the master processor and the slave processor is located on the side of the master processor close to the slave processor; the input clock port connecting the slave processor and the master processor is located on the side of the slave processor close to the master processor. For the transmission of clock signals between two processors, the signal transmission ports in the two processors are set on the side close to each other, which can shorten the transmission path, reduce the delay and distortion of signal transmission, and improve the stability and accuracy of the clock signal.
[0058] Optional, see Figure 2 The output clock port 111 connecting the main processor 210 and the slave processor 220 is located on the side of the main processor close to the slave processor, and the input clock port 114 connecting the slave processor 220 and the main processor 210 is located on the side of the slave processor close to the main processor, thereby shortening the transmission path of the clock signal between the main processor 210 and the slave processor 220.
[0059] In an optional embodiment, at least part of the output clock ports of the master processor can provide a clock for the slave processor, so that all the input clock ports of the slave processor can be connected to at least part of the output clock ports of the master processor. In this case, the slave processor does not need to be connected to an external clock source, and all the input clock signals of the slave processor are provided by the master processor.
[0060] In another optional embodiment, part of the input clock ports of the slave processor may be connected to at least part of the output clock ports of the master processor, and the remaining input clock ports may be connected to an external clock source. Figure 2 The input clock port 114 of the slave processor 220 is connected to the output clock port 111 of the master processor 210, and the input clock port 115 can be connected to the external clock source 122. That is, the input clock signal of the slave processor can be provided partly by the master processor and partly by the external clock source.
[0061] Optionally, the external clock source may be a crystal oscillator (hereinafter referred to as a crystal oscillator device) or other clock sources (such as an external clock generator). A crystal oscillator device is an electronic component used to generate a clock signal of a constant frequency, and has a stable mechanical vibration characteristic, thereby providing an accurate and stable clock signal. Crystal oscillator devices may include active crystal oscillators, passive crystal oscillators, and differential active crystal oscillators. Active crystal oscillators are active components that require an external power supply to provide energy to generate a stable oscillation signal, have high accuracy and stability, and can provide precise frequencies; differential active crystal oscillators use differential output to provide a stable clock signal, that is, to provide a signal of a forward phase and a reverse phase at the same time. This differential signal has the characteristics of strong anti-interference and anti-noise capabilities, and can effectively reduce noise and distortion during the transmission of clock signals; passive crystal oscillators also have the function of generating a stable frequency, but passive crystal oscillators are passive components that do not require an external power supply and use the mechanical vibration characteristics of the crystal itself to generate a fixed frequency.
[0062] In an optional implementation, the clock provided by the external clock source for the input clock port may be a system clock or a system real-time clock, and the external clock source may be an active crystal oscillator, a passive crystal oscillator, a differential active crystal oscillator or other clock sources.
[0063] It should be noted that although the external clock source can provide precise timing and stable clock frequency, so that the processor and other devices can operate within the predetermined clock cycle, if the processor is connected to too many external clock sources, it may increase the possibility of signal interference, resulting in signal distortion or interruption, and system clock instability, thus affecting the normal operation of the entire computer system; at the same time, it will increase the complexity of the clock system circuit design, resulting in increased development and maintenance costs.
[0064] Therefore, in a multi-processor system, an embodiment of the present application adopts a solution in which the output clock of the master processor is interconnected with the input clock of the slave processor. At this time, the output clock port of the master processor serves as the clock source of the slave processor, and some or all of the input clock ports of the slave processor may not be connected to an external clock source, thereby saving external clock sources and reducing the deployment cost of external clock sources.
[0065] In a further optional implementation, part of the output clock ports of the master processor can be used to provide clock signals for the slave processor, and the remaining output clock ports can also be connected to peripheral devices to output clock signals to the peripheral devices, thereby providing reference clocks for the peripheral devices. Figure 2The output clock port 113 of the main processor 210 can be connected to a peripheral device 131 (such as an external memory, a communication interface, etc.) to provide a reference clock for the peripheral device 131, ensuring that the peripheral device and the main processor use the same clock frequency, thereby improving the accuracy and stability of the multi-processor system. On the other hand, by using the reference clock signal provided by the main processor, a timing relationship can be established between the peripheral device and the main processor to ensure that operations are performed in the correct timing, thereby improving the efficiency, stability and reliability of the entire multi-processor system.
[0066] Optionally, the reference clock output by the processor to the peripheral device through the output clock port can be a differential reference clock. The differential reference clock is a clock transmission method that uses two clock signals in opposite directions for transmission. Therefore, it has stronger resistance and anti-interference capabilities, and differential transmission can reduce the delay difference between signals, provide a more stable clock signal, and facilitate the transmission of high-speed signals. Optionally, refer to Figure 2 The output clock port 113 can be set to output a differential reference clock, thereby providing a differential reference clock for the peripheral device 131, thereby improving the stability and effect of clock signal transmission.
[0067] It should be noted that the output clock ports connected to the peripheral devices in the main processor can be part of the output clock ports or all of the output clock ports. Figure 2 , the output clock port 111 of the master processor 210 provides a clock for the slave processor 220, and the output clock port 111 can also be connected to the peripheral device 131 to provide a reference clock for the peripheral device 131. Optionally, all the output clock ports of the slave processor can be connected to the peripheral device to provide a reference clock for the peripheral device. Figure 2 The output clock port 116 of the slave processor 220 is connected to the peripheral device 132 and can provide a reference clock for the peripheral device 132 .
[0068] As an optional implementation, the second clock port where the master processor outputs a clock signal to the slave processor may be a clock signal output portion of an input / output bidirectional clock port. Figure 3 Another example diagram of the clock system provided by the embodiment of the present application is exemplarily shown. Figure 3 The main processor 210 may be provided with an input / output bidirectional clock port 117. The input / output bidirectional clock port refers to a clock port having both an input clock function and an output clock function.
[0069] In an optional implementation, the input / output bidirectional clock port 117 may have a clock signal output portion for outputting a clock signal, and a clock signal input portion for inputting a clock signal. The clock signal output portion of the input / output bidirectional clock port 117 may be connected to the input clock port 114 of the slave processor 220 to provide a clock signal to the slave processor. In this case, the clock signal output portion of the input / output bidirectional clock port of the master processor serves as a clock source for the slave processor.
[0070] Optionally, the clock signal input part of the input / output bidirectional clock port 117 can be connected to an external clock source 123, and the external clock source 123 provides a clock signal to the main processor 210. In addition, the output clock port 118 of the main processor 210 can be connected to a peripheral device 131 to provide a reference clock to the peripheral device 131.
[0071] In an optional implementation, the peripheral device may be connected to the output clock port of the processor, and may also be connected to an external clock source. That is, the reference clock of the peripheral device may be provided by the output clock port of the processor, and may also be provided by an external clock source.
[0072] In an alternative embodiment, referring to Figure 3 , the reference clock of the peripheral device 131 can be provided by the output clock port 113 and the output clock port 118 of the master processor 210, or by the external clock source 123. Similarly, the reference clock of the peripheral device 132 can be provided by the output clock port 116 of the slave processor 220, or by the external clock source 123. Providing reference clocks for peripheral devices in the above implementation can enhance the flexibility and stability of the multi-processor system, thereby improving the performance and availability of the entire multi-processor system.
[0073] It should be noted that Figure 3 Zhongyu Figure 2 The same content can be referred to Figure 2 The relevant description of some parts will not be elaborated here.
[0074] Based on the above-mentioned multiple implementation methods, in a multi-processor system, the clock signal output part of the output clock port and / or the input and output bidirectional clock port of the master processor is used as the clock source of the slave processor to provide a clock signal for the slave processor, so that the slave processor is interconnected with the output clock of the master processor through the input clock, and the slave processor can receive the clock signal provided by the master processor for synchronous operation. Furthermore, the embodiment of the present application can ensure that each processor in the multi-processor system executes tasks according to the same timing, maintaining the stability and consistency of the multi-processor system; at the same time, it can reduce the number of external clock sources in the clock system, reduce the deployment cost of the external clock source, and reduce the circuit complexity of the clock system.
[0075] It is understandable that in the clock system design provided in the embodiment of the present application, the clock system design of the main processor, except for the part that provides the clock signal to the slave processor, can also be applied to a single processor system. A single processor system is composed of a single processor, that is, compared with a multi-processor system, a single processor system has only one processor.
[0076] Furthermore, in an embodiment of the present application, when the processor provides a reference clock to a peripheral device through an output clock port, it is necessary to first output the output clock of the processor to a high-speed IO (Input / Output) port as a reference clock for the high-speed IO port, so that the peripheral device connected to the high-speed IO port can synchronize its own operation based on the reference clock and ensure that data transmission between the processor is carried out at a predetermined clock beat.
[0077] In an optional implementation, a high-speed IO port and an IO die are provided inside the processor; the high-speed IO port can obtain a clock signal provided by a clock port inside the IO die through the IO die as a reference clock of the high-speed IO port, and at the same time provide the obtained clock signal to a peripheral device connected to the high-speed IO port as a reference clock of the peripheral device.
[0078] Among them, the high-speed IO port of the processor refers to a port that can support high-speed data transmission and can be used to connect peripheral devices to achieve high-speed data transmission and fast response; the IO die is an interface for realizing data communication and transmission, and is internally provided with a clock port. Each IO die can output a clock signal through the clock port and can also receive a clock signal input from an external clock source. Therefore, the high-speed IO port can obtain the clock signal output by the clock port through the clock port in the IO die as a reference clock.
[0079] For ease of understanding, Figure 4 The structure of the high-speed IO port provided in the embodiment of the present application is exemplarily shown. Figure 4 The processor is provided with a high-speed IO port 400, which may include a first high-speed IO port 401 and a second high-speed IO port 402. By building multiple high-speed IO ports in the processor, parallel or serial data transmission with multiple peripheral devices is achieved, thereby supporting higher data throughput and more complex data exchange. Figure 4 The processor can simultaneously transmit signals or data with the first peripheral device 403 and the second peripheral device 404 by setting the first high-speed IO port 401 and the second high-speed IO port 402.
[0080] In an optional embodiment, the high-speed IO port may be a high-speed Serdes (Serializer / Deserializer) port. A high-speed Serdes port is an interface technology for high-speed data transmission, which can be used to transmit a large amount of data between chips, modules or devices, and can provide a higher data transmission rate. Therefore, using a high-speed Serdes port, signal or data transmission between a processor and a peripheral device can be achieved, while meeting high bandwidth requirements, and increasing data transmission rates and reducing latency.
[0081] Optionally, a physical connection link 405 is provided between the high-speed IO port and the peripheral device, and the high-speed IO port and the peripheral device can transmit signals through the physical connection link. The physical connection link refers to a physical communication method that connects the signal transmission between two devices or modules, and the form and type of the physical connection link can be selected according to actual conditions.
[0082] In an optional embodiment, the physical connection link may be a connection link corresponding to a differential clock bus. The differential clock bus is a clock transmission mechanism used to synchronize the communication between various components and devices. It can perform data transmission based on the transmission principle of differential signals and has the advantages of strong anti-interference and long transmission distance. Therefore, transmission through the differential clock bus can provide a reliable and stable clock transmission mechanism for the processor, ensuring the normal operation and high-performance transmission of the computer system.
[0083] In a further optional implementation, the processor provides a reference clock to the peripheral device through a high-speed IO port. Figure 5 Another example diagram of the clock system provided by the embodiment of the present application is shown as an example. Figure 4 and Figure 5 The processor 500 is provided with a first IO die 501 and a second IO die 502, and two high-speed IO ports (a first high-speed IO port 401 and a second high-speed IO port 402) respectively obtain clock signals through clock ports in the two IO die as reference clocks.
[0084] In an optional implementation, a clock port may be set in the IO die. For example, an input / output bidirectional clock port and an output clock port may be set in the IO die. Figure 5 The first IO die 501 is provided with an input / output bidirectional clock port 503 and an output clock port 504 ; the second IO die 502 is provided with an input / output bidirectional clock port 506 and an output clock port 505 .
[0085] In an optional embodiment, in combination with Figure 4 and Figure 5The first IO die 501 can be connected to an external clock source 507 through the clock signal input part of the input / output bidirectional clock port 503, and the external clock source 507 provides a clock signal for the input / output bidirectional clock port 503; then the first high-speed IO port 401 can obtain the clock signal provided by the output clock port 504 inside the first IO die 501 and the signal output part of the input / output bidirectional clock port 503 through the first IO die 501 as a reference clock, thereby providing a reference clock for the first peripheral device 403 connected to the first high-speed IO port 401.
[0086] Similarly, the second IO die 502 can be connected to the external clock source 508 through the clock signal input part of the input / output bidirectional clock port 506, and the external clock source 508 provides a clock signal for the input / output bidirectional clock port 506; and then the second high-speed IO port 402 can obtain the clock signal provided by the output clock port 505 inside the second IO die 502 and the signal output part of the input / output bidirectional clock port 506 through the second IO die 502 as a reference clock, and then provide a reference clock for the second peripheral device 404 connected to the second high-speed IO port 402.
[0087] Optionally, the high-speed IO port obtains a clock signal through an output clock port or an input / output bidirectional clock port in the IO die, and the obtained clock signal can be used as a reference clock through a differential clock bus (such as Figure 5 ), provided to peripheral devices.
[0088] Furthermore, in an embodiment of the present application, in a processor, the number of output clock ports provided by the processor is multiple, and the number of output clock ports is not less than the number of high-speed IO ports.
[0089] In an embodiment of the present application, the processor needs to provide a reference clock for the high-speed IO port through the output clock port as a reference clock for the peripheral devices connected to the high-speed IO port; therefore, the number of output clock ports provided by the processor cannot be less than the number of high-speed IO ports to ensure that each high-speed IO port can receive the correct clock signal and data synchronization.
[0090] It can be seen that the clock system provided in the embodiment of the present application can provide a clock signal to at least part of the first clock port of the slave processor through part of the second clock port of the master processor. In other words, part of the second clock port of the master processor can be used as the clock source of the slave processor, thereby reducing the external clock source that the slave processor needs to connect to, thereby reducing the deployment of the external clock source and reducing the circuit complexity of the clock system.
[0091] An embodiment of the present application further provides a system on chip, which includes the clock system described in the above embodiment.
[0092] An embodiment of the present application provides an electronic device, such as a terminal device or a server device, wherein the electronic device includes the system on chip described in the above embodiment.
[0093] The above describes multiple implementation schemes provided by the embodiments of the present application. The various optional methods introduced in each implementation scheme can be combined and cross-referenced with each other without conflict, thereby extending a variety of possible implementation schemes, which can all be considered as implementation schemes disclosed and open in the embodiments of the present application.
[0094] Although the embodiments of the present application are disclosed above, the present application is not limited thereto. Any person skilled in the art may make various changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be subject to the scope defined by the claims.
Claims
1. A clock system, characterized in that: include: Multiple processors, and an external clock source providing a clock signal; The processor includes a clock port; The clock port includes at least a first clock port for receiving a clock signal, and at least a second clock port for outputting a clock signal; The multiple processors are divided into a master processor and a slave processor; The first clock port of the master processor is connected to the external clock source, and at least part of the second clock port of the master processor is connected to at least part of the first clock port of the slave processor.
2. The clock system according to claim 1, characterized in that: All the first clock ports of the slave processor are connected to at least part of the second clock ports of the master processor; Alternatively, part of the first clock port of the slave processor is connected to at least part of the second clock port of the master processor, and another part of the first clock port of the slave processor is connected to an external clock source.
3. The clock system according to claim 1, characterized in that: The second clock port connecting the master processor and the slave processor is located at a side of the master processor close to the slave processor; The first clock port of the slave processor connected to the master processor is located at a side of the slave processor close to the master processor.
4. The clock system according to any one of claims 1 to 3, characterized in that: The first clock port includes any of the following: an input clock port, a clock signal input part of an input-output bidirectional clock port; The second clock port includes any one of the following: an output clock port, a clock signal output part of an input-output bidirectional clock port.
5. The clock system according to claim 1, characterized in that: The main processor is connected to the peripheral device, wherein the main processor is connected to the peripheral device through part or all of the second clock ports; the slave processor is connected to the peripheral device, wherein the slave processor is connected to the peripheral device through part or all of the second clock ports.
6. The clock system according to claim 5, characterized in that: The processor further comprises: A high-speed IO port and an IO die are arranged inside the processor; The high-speed IO port is connected to a peripheral device, the clock port is located in the IO die, and a second clock port connected to the peripheral device is connected to the high-speed IO port through an interface of the IO die.
7. The clock system according to claim 6, characterized in that: A physical connection link is provided between the high-speed IO port and the peripheral device, and the physical connection link connects the high-speed IO port and the peripheral device.
8. The clock system according to any one of claims 6 to 7, characterized in that: The first clock port includes a clock signal input part of an input-output bidirectional clock port; the second clock port includes an output clock port; In a processor, the number of the output clock ports is multiple, and the number of the output clock ports is not less than the number of high-speed IO ports in the processor.
9. A system on chip, characterized in that: The system on chip comprises the clock system according to any one of claims 1-8.
10. An electronic device, characterized in that: The electronic device comprises the system on chip as claimed in claim 9.
Citation Information
Cited By
High-speed serial communication interface, chip and clock distribution method
CN120045502A
High-speed serial communication interface, chip and clock distribution method
CN120045502B
