System on chip and method of operating the same

By designing multiple processors and SoC managers in the SoC, and using the system bus or debug bus to extract and store debugging information, the problem of difficulty in extracting information in a deadlock state is solved, and the efficiency of deadlock cause identification and system recovery is improved.

CN110347639BActive Publication Date: 2024-10-18SAMSUNG ELECTRONICS CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN201910228208.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-03-25
Publication Date
2024-10-18
Estimated Expiration
2039-03-25

AI Technical Summary

Technical Problem

In SoC, the occurrence of deadlock state makes it difficult to extract and store debugging information, thereby reducing the efficiency of identifying the cause of the deadlock state.

Method used

Design an SoC in which multiple processors have different architectures, including the SoC manager and the debug host, capable of sending information extraction commands through the system bus or debug bus in a deadlock state to extract and store the debug information of the respective processors, and store this information before resetting.

Benefits of technology

It realizes the effective extraction and storage of debugging information of each processor in SoC deadlock state, improves the efficiency of identifying the causes of deadlock state, and ensures that the system can quickly recover and debug after deadlock.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110347639B_ABST
    Figure CN110347639B_ABST
Patent Text Reader

Abstract

A system on chip and an operation method thereof are disclosed. The system on chip (SoC) comprises: a plurality of processors configured to: store respective debugging information in response to respective information extraction commands received in a deadlock state, wherein the plurality of processors have different architectures; a system bus connected to the plurality of processors; and a SoC manager configured to: generate respective information extraction commands differently according to the architecture of each of the plurality of processors in response to detecting the occurrence of a deadlock state, and send the respective information extraction commands to the plurality of processors through the system bus.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority benefit of Korean Patent Application No. 10-2018-0038758 filed on April 3, 2018, in the Korean Intellectual Property Office, and Korean Patent Application No. 10-2018-0087692 filed on July 27, 2018, in the Korean Intellectual Property Office, the disclosures of which are incorporated herein by reference in their entirety. Technical Field

[0002] The inventive concept relates to a SoC and an operating method thereof. Background Art

[0003] In recent years, SoC has been increasingly used. SoC implements a complex system with various functions in a single chip including one or more processors SoC. Multiple processors included in the SoC can be operated when sending and receiving necessary data. During such operation of the SoC, an unexpected deadlock state may occur. In order to enable a developer or user to identify the cause of the deadlock state, a function of obtaining debug information required for debugging from a processor included in the SoC can be implemented in the SoC. Summary of the invention

[0004] According to an exemplary embodiment conceived by the present invention, a system on chip (SoC) and an operating method thereof are provided, the SoC including a plurality of processors designed according to different architectures and installed therein, the SoC being capable of extracting and / or storing debugging information considering the architecture of each of the plurality of processors when a deadlock state occurs.

[0005] According to an example embodiment, a SoC includes: a plurality of processors configured to: store respective debugging information in response to respective information extraction commands received in a deadlock state, wherein the plurality of processors have different architectures; a system bus connected to the plurality of processors; and a SoC manager configured to: in response to detecting the occurrence of a deadlock state, generate respective information extraction commands differently according to the architecture of each of the plurality of processors, and send the respective information extraction commands to the plurality of processors via the system bus.

[0006] The SoC manager is further configured to reset the plurality of processors and the system bus after the plurality of processors store respective debug information in response to respective information fetch commands.

[0007] The bus is a debug bus that is physically separated from the system bus or logically separated from the system bus by partitioning the system bus, wherein the SoC manager sends respective information extraction commands to the plurality of processors through the debug bus in response to detecting a deadlock state.

[0008] The respective debug information includes a bit value of a status register included in at least one processor among the plurality of processors.

[0009] The SoC manager includes: a SoC controller configured to detect a deadlock state; and a debugging host configured to send respective information extraction commands to the plurality of processors.

[0010] At least one of the multiple processors includes: a central processing unit (CPU), configured to: perform arithmetic operations; and a debugging resource, configured to: store status information generated by the CPU in a predetermined cycle, and output at least a portion of the status information as corresponding debugging information in response to a corresponding information extraction command.

[0011] The corresponding debugging information output by the debugging resource is stored in a storage space that is not reset by a restart of the plurality of processors and the system bus.

[0012] At least one of the plurality of processors includes a central processing unit (CPU) configured to perform arithmetic operations; and a subcomponent configured to extract corresponding debugging information from the CPU and store the corresponding debugging information in response to a corresponding information extraction command.

[0013] At least one of the plurality of processors includes a central processing unit (CPU) configured to execute predetermined instructions included in a corresponding information extraction command to extract corresponding debugging information and store the corresponding debugging information in a storage area that is not reset by a restart of the plurality of processors and a system bus.

[0014] Each of the plurality of processors includes a debugging host configured to store corresponding debugging information in response to a corresponding information extraction command.

[0015] At least one of the multiple processors includes: a central processing unit (CPU) configured to perform arithmetic operations; and a debugging resource configured to store status information generated by the CPU in a predetermined cycle, wherein the debugging host marks at least a portion of the status information as corresponding debugging information in response to a corresponding information extraction command.

[0016] At least one of the plurality of processors includes a central processing unit (CPU) configured to perform arithmetic operations; and a subcomponent configured to extract corresponding debugging information from the CPU and store the corresponding debugging information.

[0017] The debugging host is configured to activate the subcomponent in response to a corresponding information extraction command.

[0018] The debugging host is configured to: in response to a corresponding information extraction command, control the subcomponent to extract corresponding debugging information from the CPU.

[0019] The debugging host is configured to, in response to a corresponding information extraction command, store the corresponding debugging information in a storage space that is not reset by a restart of the plurality of processors and the system bus.

[0020] According to an example embodiment, a SoC includes: a plurality of processors, each of the plurality of processors including a first interface, a second interface and a central processing unit (CPU); a system bus connected to the first interface; at least one debugging host connected to the second interface; and a SoC controller connected to the plurality of processors via the system bus and configured to: detect a deadlock state in the plurality of processors, wherein the debugging host is configured to: when a deadlock state occurs, in response to an instruction of the SoC controller, send respective information extraction commands generated based on the architecture of each of the plurality of processors to the plurality of processors; wherein the plurality of processors are configured to: generate respective status information in response to the respective information extraction commands.

[0021] Each processor of the plurality of processors includes a debug host of the at least one debug host.

[0022] The debugging host is connected to the second interface via the system bus.

[0023] The respective state information includes state information about at least one processor among the plurality of processors immediately before and after the deadlock state occurs.

[0024] According to an example embodiment, a SoC includes: a first processor, which is designed according to a first architecture; a second processor, which is designed according to a second architecture different from the first architecture; an SoC controller, which is configured to: detect a deadlock state in at least one of the first processor and the second processor; a debugging host, which is connected to a slave interface of each of the first processor and the second processor, and is configured to: when a deadlock state occurs, before the first processor and the second processor are reset, obtain respective debugging information about the first processor and the second processor by sending respective information extraction commands to the first processor and the second processor via the slave interface; wherein the first processor and the second processor are configured to: store respective debugging information using different methods in response to the information extraction commands. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The above and other aspects of the present invention will be more clearly understood from the following detailed description in conjunction with the accompanying drawings, in which:

[0026] Figure 1is a block diagram illustrating a system on chip (SoC) according to an example embodiment;

[0027] Figure 2 and Figure 3 is a block diagram illustrating a processor included in a SoC according to an example embodiment;

[0028] Figure 4 and Figure 5 illustrates the operation of a SoC according to an example embodiment;

[0029] Figure 6 is a block diagram illustrating a SoC according to an example embodiment;

[0030] Figure 7 and Figure 8 illustrates the operation of a SoC according to an example embodiment;

[0031] Fig. 9 and Fig.10 illustrates the operation of a SoC according to an example embodiment;

[0032] Figures 11 to 14 is a flowchart provided to describe the operation of a SoC according to an example embodiment;

[0033] Fig.15 is a block diagram illustrating an electronic device including a SoC according to an example embodiment;

[0034] Fig.16 is a block diagram illustrating an autonomous driving vehicle including a SoC according to an example embodiment. DETAILED DESCRIPTION

[0035] Hereinafter, example embodiments of the inventive concept will be described in detail with reference to the accompanying drawings.

[0036] Figure 1 is a block diagram illustrating a system on chip (SoC) according to example embodiments.

[0037] Reference Figure 1 , the SoC 10 may include components 11 to 17 such as a plurality of processors 11 to 13, a graphics processor (GPU) 14, a digital signal processor (DSP) 15, an SoC manager 16, a memory controller 17, and the like. The components 11 to 17 may be operated while transmitting and receiving data through a system bus 18. The system bus 18 may include a plurality of interfaces (e.g., a master interface and a slave interface) connected to the components 11 to 17.

[0038] For example, the SoC manager 16 may control the overall operation of the SoC 10 and may include power management logic, clock management logic, etc. The memory controller 17 may include logic for sending data and control commands to and receiving data and control commands from a volatile memory or a nonvolatile memory provided outside the SoC 10. The GPU 14 may process image data to be displayed on a display device connected to the SoC 10.

[0039] The SoC 10 may be installed in various products such as electronic devices, autonomous vehicles, etc. to perform operations required to control these products through the plurality of processors 11 to 13. The plurality of processors 11 to 13 may transmit and receive data to and from other components of the SoC 10 through the system bus 18, if necessary.

[0040] When the SoC 10 enters a deadlock state, the SoC 10 may provide information for analyzing the cause of occurrence of the deadlock state, source code causing the deadlock state, etc. to a developer or user as debug information. The plurality of components 11 to 17 may be designed and implemented according to different architectures, and therefore, the process that must be performed to extract and store debug information when a deadlock state occurs may differ for each of the plurality of components 11 to 17.

[0041] For example, the first processor 11 may store state information (or status information) in its own internal debugging resources at a predetermined cycle. Therefore, when a deadlock state occurs, debugging information about the first processor 11 may be obtained by reading and storing part of the state information stored in the internal debugging resources of the first processor 11. On the other hand, in the second processor 12 and the third processor 13, a function for storing state information in its own debugging resources may not be provided. Therefore, when the SoC 10 enters a deadlock state, the operation of extracting debugging information from the second processor 12 and the third processor 13 and storing the debugging information may be performed before the entirety of the SoC 10 or the second processor 12 and the third processor 13 are selectively restarted. Here, the restart may be automatically started without a user operation. According to an example embodiment, the state information of each of the first processor 11 to the third processor 13 may be a bit value stored in a state register included in the corresponding processor.

[0042] The SoC manager 16 generates an information extraction command for storing debug information, and sends the information extraction command for storing debug information to the second processor 12 and the third processor 13. The SoC manager 16 may generate the information extraction command in consideration of the architecture of each of the second processor 12 and the third processor 13. In response to the information extraction command, the second processor 12 and the third processor 13 may output and / or store the time point at which the deadlock state occurs, before and after the time point at which the deadlock state occurs (preferably but not necessarily, immediately before and after the time point at which the deadlock state occurs) as debug information. For example, the state information within a predetermined time period before and after the occurrence of the deadlock state may be output and stored as debug information.

[0043] For example, when a CPU responsible for arithmetic operations and a subcomponent capable of obtaining status information from the CPU are included in the second processor 12, the SoC manager 16 activates the subcomponent to extract and / or store debug information about the second processor 12. In addition, for example, the SoC manager 16 may switch the third processor 13 to a debug mode, and may send an information extraction command including a predetermined instruction to the third processor 13. In response to the instruction included in the information extraction command, status information about the CPU included in the third processor 13 may be extracted and / or stored as debug information. For example, the debug information may be stored in a separate storage space different from the first to third processors 11 to 13. The storage space may be a storage space that is not reset despite a selective restart of the entirety of the SoC 10 or at least a portion of the first to third processors 11 to 13, and may be set as a non-volatile memory or the like.

[0044] Meanwhile, the deadlock state occurring in the SoC 10 may be accompanied by an error in the system bus 18. Therefore, the SoC manager 16 may send an information extraction command for storing debug information to at least a portion of the components 11 to 17 through a separate path different from the system bus 18. For example, the system bus 18 may be logically divided to define a first bus and a second bus, and the second bus is not activated in a normal operation mode and is activated to be used only when a deadlock state occurs. Alternatively, a debug bus physically separated from the system bus 18 may be provided to be used in a deadlock state.

[0045] Figure 2 and Figure 3 is a block diagram illustrating a processor included in a SoC according to example embodiments.

[0046] First, refer to Figure 2 ,according to Figure 2The SoC 20 of the example embodiment shown in FIG. 1 may include a processor 21, a system bus 25, and a SoC manager 26. The SoC manager 26 may include a SoC controller 27 that detects whether a deadlock state occurs, and a debugging master 28 that sends an information extraction command to the processor 21 to obtain debugging information when a deadlock state occurs.

[0047] The processor 21 may have at least one CPU 22 responsible for arithmetic operations. The CPU 22 may have a first interface 23 and a second interface 24 for sending data to and receiving data from other components of the SoC 20. For example, the CPU 22 may send data to and receive data from the SoC controller 27 through the first interface 23 and the system bus 25, and may send data to and receive data from the debug host 28 through the second interface 24 and the system bus 25. The first interface 23 may be a master interface, and the second interface 24 may be a slave interface. In other words, when data is sent and received between the processor 21 and the debug host 28 through the second interface 24, the processor 21 may be operated as a slave device for the debug host 28. The CPU 22 may include two or more cores that process multiple instructions and data configuration software.

[0048] In normal operation, the CPU 22 may send data to the SoC controller 27 and other components of the SoC 20 through the system bus 25, and receive data from the SoC controller 27 and other components of the SoC 20. In other words, the CPU 22 may send data to other components (such as a GPU, a digital signal processor (DSP), an internal memory, a memory controller, etc.) other than the SoC controller 27 through the first interface 23 and the system bus 25, and receive data from other components.

[0049] When the SoC 20 enters the deadlock state, most components included in the SoC 20 and the processor 21 stop operating and do not respond. Therefore, when the SoC 20 enters the deadlock state, it may be difficult to determine what instructions are executed and what data are accessed. In addition, when the SoC 20 is restarted to resolve the deadlock state, all components are reset. Therefore, it may be difficult to identify the instructions, data and / or code that caused the deadlock state. Due to the above situation, the efficiency of the debugging operation for eliminating the cause of the deadlock state may be reduced.

[0050] According to an example embodiment, the debug host 28 may extract debug information about the processor 21 through an instruction of the SoC controller 27 that detects a deadlock state. The debug host 28 may send an information extraction command for obtaining debug information to the CPU 22 through the second interface 24 that is not used in the normal operation mode. For example, the debug host 28 may send an appropriate information extraction command suitable for the architecture of the processor 21 to the CPU 22. The system bus 25 may have a first bus and a second bus that are logically divided, and the information extraction command may be sent through the second bus that is not used in the normal operation mode.

[0051] For example, when a deadlock state occurs, the debug host 28 may generate an information extraction command including an instruction for forcibly outputting the state of the processor 21 as debug information, and send the information extraction command to the processor 21. The debug information output by the processor 21 through the instruction may be stored in a predetermined storage space that is not reset when the SoC 20 is restarted by the debug host 28 or the SoC controller 27.

[0052] In other example embodiments, a subcomponent included in the processor 21 and different from the CPU 22 may be activated by an information extraction command sent by the debug host 28. The subcomponent may extract debug information from the CPU 22, or may control the CPU 22 to store debug information in a specific storage space of the same. As can be seen from the above example embodiments, the debug host 28 may select instructions suitable for obtaining debug information in consideration of the architecture of the processor 21, and include the instructions in the information extraction command sent to the processor 21. The debug host 28 may directly generate the information extraction command as above, or may receive the information extraction command from the SoC controller 27 to send to the processor 21. At the same time, the debug host 28 may operate in conjunction with an external debug tool (e.g., a Joint Test Action Group (JTAG) debug tool).

[0053] Next, refer to Figure 3 According to an example embodiment, the SoC 30 may include a processor 31, a system bus 36, a SoC controller 37, etc. According to an example embodiment, a debug host 35 may be provided between the CPU 32 and the system bus 36. Figure 3 In the embodiment of the present invention, the debug host 35 is included in the processor 31, but the debug host 35 is provided as a separate component between the system bus 36 and the processor 31. When the SoC 30 has a separate debug bus separated from the system bus 36, the debug host 35 may be connected between the debug bus and the processor 31. The debug host 35 may transmit and receive data to and from the CPU 32 through the second interface 34 (i.e., slave interface).

[0054] When the SoC 30 enters a deadlock state, the SoC controller 37 may send an instruction to the debug host 35 through the system bus 36 to obtain debug information. In the deadlock state, the operation of the system bus 36 is also stopped. Therefore, the system bus 36 may be divided into a first bus and a second bus, the first bus can only be used in normal operation, and the second bus can only be used when a deadlock state occurs. The SoC controller 37 may send an instruction for obtaining debug information to the debug host 35 through the second bus. Alternatively, as previously described, the SoC controller 37 may send an instruction for obtaining debug information to the debug host 35 through a separate debug bus logically divided from the system bus 36.

[0055] The debug host 35 can access the CPU 32 through the second interface 34. The debug host 35 can forcibly extract debug information from the CPU 32 and store the debug information, or can control the CPU 32 to store the debug information for itself. The debug information can be stored in a storage space that is not reset when the SoC 30 or the processor 31 is restarted. For example, the debug information can be stored in a storage space within the processor 31 included in the SoC 30, or in a storage space of a component other than the processor 31.

[0056] Figure 4 and Figure 5 The operation of the SoC according to example embodiments is illustrated.

[0057] Reference Figure 4 and Figure 5 , the SoC 100 may include a plurality of processors 110 to 130, a GPU 140, a digital signal processor 150, a SoC manager 160, a memory controller 170, and a system bus 180. The SoC manager 160 may include a SoC controller 161 and a debug host 162.

[0058] The components included in the SoC 100 may be variously added or changed according to functions to be implemented or provided by the SoC 100. For example, in addition to Figure 4 and Figure 5 In addition to the components shown in , it may also include logic responsible for video / audio codec processing, logic for processing information collected by various sensors connected to SoC 100, etc.

[0059] like Figure 4 and Figure 5As shown in , the plurality of processors 110 to 130 may have different architectures. For example, the first processor 110 may include a first CPU 111 and a debug resource 112, and the state information of the first CPU 111 may be stored in the debug resource 112 at a predetermined cycle. When the SoC 100 enters a deadlock state, the debug host 162 accesses the debug resource 112 of the first processor 110 to mark or read the state information stored in the debug resource 112 at a time point close to the time point at which the deadlock state occurs (for example, immediately before and after the occurrence of the deadlock state) as debug information, thereby obtaining debug information about the first processor 110.

[0060] In a manner different from the first processor 110, the second processor 120 and the third processor 130 may not provide a function for automatically and / or periodically storing state information usable as debug information. Therefore, when the SoC 100 enters the deadlock state, the debug host 162 may obtain debug information from each of the second processor 120 and the third processor 130 in response to an instruction from the SoC controller 161.

[0061] First, refer to Figure 4 When the SoC 100 enters a deadlock state, operations of the plurality of processors 110 to 130, the GPU 140, the digital signal processor 150, the memory controller 170, etc. may be stopped. In the deadlock state, the system bus 180 may also not be operated normally.

[0062] The deadlock state may be detected by the SoC controller 161. For example, at least one of the plurality of processors 110 to 130, the GPU 140, the digital signal processor 150, and the memory controller 170 may include a counter circuit therein, and the SoC controller 161 may receive a signal from the counter circuit at a predetermined cycle. Therefore, if a signal is not received from the counter circuit even after a predetermined cycle, the SoC controller 161 may determine that the SoC 100 has entered a deadlock state. Alternatively, when a predetermined specific situation occurs regardless of whether a signal is received from the counter circuit, or when an interrupt indicating the occurrence of a fault is detected, the SoC 100 may be determined to have entered a deadlock state.

[0063] When the SoC 100 is determined to have entered a deadlock state, the debug host 162 may send an information extraction command for obtaining debug information to at least one of the components of the SoC 100 in response to an instruction of the SoC controller 161. Figure 5 , the debug host 162 may send information extraction commands to the plurality of processors 110 to 130, but the information extraction commands for obtaining debug information may also be sent to the GPU 140, the digital signal processor 150, the memory controller 170, and the like.

[0064] The information extraction command may include various instructions determined according to the architecture of the plurality of processors 110 to 130. For example, by the information extraction command sent to the first processor 110, at least a portion of the state information stored in the debugging resource 112 may be selected as the debugging information of the first processor 110 to be stored separately. In addition, by the information extraction command sent to the second processor 120, the subcomponent 122 is activated to extract the debugging information from the second CPU 121 and store the debugging information. In another example embodiment, by the information extraction command from the debugging host 162, the second processor 120 may be controlled to forcibly output the debugging information. The debugging information forcibly output from the second processor 120 may be stored by the debugging host 162 in a predetermined storage space within the SoC 100. As previously described, the debugging host 162 may store the debugging information in a storage space that is not reset by a restart of the SoC 100.

[0065] At the same time, the third CPU 131 of the third processor 130 may execute a predetermined instruction included in the information extraction command received from the debug host 160, thereby extracting the debug information and storing the debug information in an internal register. The debug information may be stored in a storage space that is not reset by a restart of the SoC 100. For example, the storage space storing the debug information may be a storage space located outside the third CPU 131.

[0066] In summary, the plurality of processors 110 to 130 may have different architectures, and therefore, the methods for extracting and storing respective debug information when the SoC 100 enters a deadlock state are also different. In an example embodiment, the SoC controller 161 and / or the debug host 162 identifies the architecture of each of the plurality of processors 110 to 130, thereby selecting a suitable method for extracting and storing debug information for each of the plurality of processors 110 to 130. The SoC controller 161 and / or the debug host 162 may send an information extraction command generated with reference to a method for extracting and storing debug information selected based on the architecture to the plurality of processors 110 to 130. Therefore, the debug information may be stored using an optimal method for each of the plurality of processors 110 to 130. In addition, after the SoC 100 is restarted, a developer or user may effectively analyze the cause of the occurrence of the deadlock state by using the debug information.

[0067] Figure 6 is a block diagram illustrating a SoC according to example embodiments.

[0068] Reference Figure 6, the SoC 200 according to an example embodiment may include a plurality of processors 210 to 230, a GPU 240, a digital signal processor 250, an SoC manager 260, a memory controller 270, etc. The components 210 to 270 may be operated while communicating with each other through a system bus 280. The SoC manager 260 may include an SoC controller 261 and a debug host 262.

[0069] exist Figure 6 In the embodiment, in addition to the system bus 280, the debug bus 290 is included in the SoC 200. The debug bus 290 may be a bus physically separated from the system bus 280, and may maintain an inactive state in the normal operation mode. When the SoC 200 enters a deadlock state, the debug bus 290 may be activated by the SoC manager 260. Figure 7 and Figure 8 The operation of SoC 200 is described in more detail.

[0070] Figure 7 and Figure 8 The operation of the SoC according to example embodiments is illustrated.

[0071] Reference Figure 7 and Figure 8 , the plurality of processors 210 to 230 may have different architectures. For example, the first processor 210 may include a first CPU 211 and a debugging resource 212, and the first CPU 211 may store the state information for each set period and / or the state information when a deadlock state occurs as debugging information in the debugging resource 212. Therefore, when the SoC 200 enters the deadlock state, before the SoC 200 is restarted, the debugging information about the first processor 210 may be extracted from the debugging resource 212 and may be stored in a predetermined storage space. When the restart of the SoC 200 is completed, the debugging information stored in the storage space may be provided to a user or a developer. In other words, in the first processor 210, the debugging information may be obtained by selecting and separately storing part of the state information stored in the debugging resource 212.

[0072] The second processor 220 and the third processor 230 may not provide the function of automatically and / or periodically storing debug information of the first processor 210. Therefore, when the SoC 200 enters the deadlock state, the debug host 262 may respond to the instruction from the SoC controller 261, or the debug host 262 itself may obtain debug information from each of the second processor 220 and the third processor 230.

[0073] First, refer to Figure 7When the SoC 200 enters a deadlock state, the operations of the GPU 240, the digital signal processor 250, the memory controller 270, etc., and the plurality of processors 210 to 230 may be stopped. In the deadlock state, the operation of the system bus 280 is also stopped.

[0074] SoC controller 261 may generate an information extraction command for obtaining debug information, and send the information extraction command for obtaining debug information to debug host 262. Alternatively, SoC controller 261 sends only an instruction for obtaining debug information to debug host 262, and debug host 262 may generate an information extraction command including the instruction. In other words, the information extraction command may be generated by at least one of SoC controller 261 and debug host 262.

[0075] The debug host 262 may send an information extraction command to the plurality of processors 210 to 230 via the debug bus 290. The debug bus 290 may be activated after the SoC 200 enters a deadlock state. At the same time, the information extraction command may also be sent to other components (such as the GPU 240, the digital signal processor 250, the memory controller 270, etc.). The type and number of components for receiving the information extraction command are determined by the SoC controller 261.

[0076] The plurality of processors 210 to 230 have different architectures, so the information extraction command sent to each of the plurality of processors 210 to 230 may include different instructions. For example, the information extraction command sent to the first processor 210 may include instructions for selecting debug information from the state information stored in the debug resource 212 and recording the selected debug information on a separate storage space.

[0077] Unlike the first processor 210, the second processor 220 may not include the debugging resource 212. The information extraction command sent to the second processor 220 may include an instruction for forcing the second CPU 221 to output debugging information, or may include an instruction for controlling the activation subcomponent 222 to extract debugging information from the second CPU 221. The information extraction command sent to the third processor 230 may include an instruction processed by the third CPU 231 to control the third CPU 231 to record debugging information on a predetermined storage space. In other words, different information extraction commands having instructions determined according to the architecture of each of the plurality of processors 210 to 230 may be sent to the plurality of processors 210 to 230 differently.

[0078] Fig. 9 and Fig.10 The operation of the SoC according to example embodiments is illustrated.

[0079] First, refer to Fig. 9 , according to Fig. 9 In the SoC 300 of the example embodiment shown in FIG. 3 , the plurality of processors 310 to 330 may include a debug host 313, a debug host 323, and a debug host 333, respectively. When the SoC 300 enters a deadlock state, the SoC controller 360 may send an information extraction command to each of the plurality of processors 310 to 330. The information extraction command may include an instruction for storing and / or extracting debug information corresponding to state information when the processors 310 to 330 enter the deadlock state. The system bus 380 cannot be normally operated in the deadlock state. Therefore, the SoC 300 may have a debug-dedicated bus divided from the system bus 380 for operation in the deadlock state.

[0080] When the debug host 313 of the first processor 310 receives the information extraction command, the debug host 313 may mark the state information stored in the debug resource 312 periodically and / or when the first processor 310 enters the deadlock state as debug information. The debug host 313 may store the marked debug information in a storage space that is not reset when the SoC 300 is restarted. The debug host 323 of the second processor 320 may activate the subcomponent 322 in response to the information extraction command. The activated subcomponent 322 may receive debug information from the second CPU 321 and store the debug information. Optionally, the debug host 323 directly accesses the second CPU 321 in response to the information extraction command to force the second CPU 321 to output debug information. When the debug host 333 of the third processor 330 receives the information extraction command, an instruction for controlling the third CPU 331 to extract debug information may be sent to the third CPU 331. The debug information extracted through the above operation may be stored in a storage space that is not reset by the reboot of the SoC 300 and may be used for a debug operation after the SoC 300 is rebooted.

[0081] according to Fig.10 The operation of the SoC 400 of the example embodiment shown in FIG. Fig. 9 The operation of the SoC 300 shown in FIG. Fig.10In the example embodiment shown in , the debug bus 490 may be provided as a separate bus physically separated from the system bus 480. The debug bus 490 is not activated under normal operation, but may be activated only when an activation instruction is sent by the SoC controller 460 (for example, when the SoC 400 enters a deadlock state). When the SoC 400 enters a deadlock state, the SoC controller 460 may send an information extraction command to the debug hosts 413, 423, and 433 respectively included in the plurality of processors 410 to 430 through the debug bus 490. The debug hosts 413, 423, and 433 may obtain debug information from each of the first to third CPUs 311 to 321 by using the instruction included in the information extraction command.

[0082] Figures 11 to 14 is a flowchart provided to describe the operation of a SoC according to example embodiments.

[0083] First, refer to Fig.11 , the operation of the SoC according to the example embodiment may start by detecting a deadlock state (S10). The deadlock state may be detected by a SoC controller included in the SoC. For example, a plurality of components included in the SoC may include respective counter circuits therein, and each counter circuit may send a signal to the SoC controller at a predetermined cycle. When the SoC controller does not receive a signal from each of the plurality of counter circuits even after a predetermined cycle, it may be determined that a deadlock state has occurred. In addition, when each of the plurality of components included in the SoC detects a fault and generates an interrupt, it may be confirmed that a deadlock state has occurred.

[0084] When a deadlock state is detected, the SoC controller may send a command suitable for the architecture of each of the plurality of processors (S20). The command may be an information extraction command including instructions for extracting debug information indicating the state of each of the plurality of processors when the SoC enters the deadlock state. The information extraction command may be sent to the processor via the SoC controller and the debug host, and the information extraction command may also be sent to other components of the SoC.

[0085] The processor receiving the information extraction command may store and / or output debug information in response to the information extraction command (S30). As previously described, the method for storing and / or outputting debug information by each of the multiple processors may be determined according to the architecture of each of the multiple processors. For example, in the case where the processor includes a subcomponent, the subcomponent may be activated in response to the information extraction command. The activated subcomponent may extract debug information from the CPU included in the processor, and may store the debug information in a predetermined storage space. In the case where the processor does not include a subcomponent, the instructions included in the information extraction command are executed by the CPU in the processor, and the debug information may be stored by the CPU in the storage space. The storage space may be an area that is not reset even when the SoC is restarted.

[0086] When the debug information is stored in the above-mentioned area, the SoC may be restarted (S40). However, according to an example embodiment, only some components that enter a deadlock state may be restarted. When the SoC includes a plurality of processors and the plurality of processors are grouped and managed, the restart may be performed on a group basis.

[0087] When the restart is completed, the SoC can provide the debugging information stored in S30 to the developer or user, and the developer and the user can use the debugging information to perform debugging operations (S50). Thus, the instructions that cause the deadlock state of the SoC can be quickly identified, and thus, the debugging efficiency of the developer and the user can be improved.

[0088] Fig.12 is used to further describe executing in a processor having a first architecture Fig.11 Flowchart of an example embodiment of S30 of FIG. A processor receiving an information extraction command may access a debugging resource (S31). A debugging resource may be a space for recording state information at a predetermined cycle or when a deadlock state occurs in a CPU, a core, etc. included in the processor. When receiving an information extraction command, the processor may retrieve state information stored in the debugging resource when a deadlock state occurs (S32). For example, state information at a time point close to a time point when a deadlock state occurs may be retrieved in S32.

[0089] The processor may store the retrieved state information as debug information (S33). As previously described, the debug information may be recorded in a storage space that is not reset even when the SoC is rebooted.

[0090] Fig.13 is used to further describe the execution of a processor having a second architecture Fig.11 The second architecture can be used with reference to Fig.12 The first architecture described is different.

[0091] exist Fig.13 In the example embodiment shown in FIG. 1 , a subcomponent included in a processor may be activated by an information extraction command (S34). The subcomponent activated in S34 may be logic that accesses a CPU or a core in a processor that has entered a deadlock state to extract specific information. In other words, the activated subcomponent may extract debug information from the CPU and store the debug information (S35). The debug information may be recorded in a storage space that is not reset when the SoC is restarted.

[0092] Fig.14 is used to further describe the execution of a processor having a third architecture Fig.11 The third architecture can be used with reference to Fig.11 and Fig.12 The first and second architectures described are different.

[0093] exist Fig.14 In the example embodiment shown in FIG. 1 , a predetermined instruction included in the information extraction command may be executed (S36). For example, the instruction from the information extraction command may be executed by a debugging host or a processor. When the instruction is executed, debugging information is extracted from a CPU or a core of the processor to be stored in an internal register of the processor (S37). At the same time, the debugging information may be recorded in a storage space outside the processor (S38). As shown in FIG. Fig.12 and Fig.13 As described above, the debugging information may be recorded in a storage space that is not reset by a reboot of the SoC.

[0094] Except for the case where the SoC enters a deadlock state, refer to Figures 1 to 14 The described example embodiments may be applied to a situation where a developer or user needs debug information for development and / or maintenance purposes. In other words, even when the SoC does not enter a deadlock state, a developer or user who needs debug information controls the SoC controller to output an information extraction command. In this case, a component including a plurality of processors receives the information extraction command, thereby storing debug information. The developer or user uses the stored debug information so that debugging can be performed regardless of the entry of a deadlock state.

[0095] Fig.15 is a block diagram illustrating an electronic device including a SoC according to example embodiments.

[0096] according to Fig.15 The electronic device 1000 (eg, a computer device) of the example embodiment shown in FIG. 1 may include an image sensor 1010, an input / output (I / O) device 1020, a memory 1030, an SoC 1040, a port 1050, etc. The electronic device 1000 may also include a wired / wireless communication device, a power supply, etc. Fig.15Among the components shown in FIG. 1 , a port 1050 may be provided for the electronic device 1000 to communicate with a video card, a sound card, a memory card, a universal serial bus (USB) device, etc. The electronic device 1000 may be a smart phone, a tablet PC, a smart wearable device, etc. according to the related art, as well as a desktop computer and a laptop computer.

[0097] The SoC 1040 may perform specific operations, instructions, tasks, etc. The SoC 1040 may communicate with other devices connected to the port 1050 in addition to the image sensor 1010, the I / O device 1020, and the memory 1030 through the bus 1060. The SoC 1040 may include a plurality of processors designed according to different architectures, and may be configured according to the reference Figures 1 to 14 Various example embodiments are described to obtain debug information upon entering a deadlock state.

[0098] The memory 1030 may be a storage medium for storing data or multimedia data required for the operation of the electronic device 1000. The memory 1030 may include a volatile memory such as a random access memory (RAM) or a non-volatile memory such as a flash memory. In addition, the memory 1030 may include at least one of a solid state drive (SSD), a hard disk drive (HDD), and an optical disk drive (ODD) as a storage device. The I / O device 1020 may include an input device such as a keyboard, a mouse, and a touch screen and an output device such as a display and an audio output unit provided to a user.

[0099] The image sensor 1010 may be mounted on a package substrate that will be connected to the SoC 1040 through a bus 1060 or other communication unit. ... Figures 1 to 14 The described forms of various exemplary embodiments are applied to the electronic device 1000 .

[0100] Fig.16 is a block diagram illustrating an autonomous driving vehicle including a SoC according to an example embodiment.

[0101] Reference Fig.16 , the autonomous driving vehicle 1100 may include a SoC 1110, a visual sensor 1120, a body control module (BMC) 1130, a memory 1140, a communication module 1150, etc. The SoC 1110 may include a plurality of processors designed according to different architectures, and may be configured according to the reference Figures 1 to 14 Various example embodiments are described to obtain debug information upon entering a deadlock state.

[0102] The SoC 1110 may control the visual sensor 1120, the body control module 1130, the memory 1140, and the communication module 1150, thereby providing an autonomous driving function of the autonomous driving vehicle 1100. For example, the SoC 1110 may determine a driving environment using visual information around the vehicle collected by the visual sensor 1120, traffic information received through the communication module 1150, and the like, and may control the body control module 1130 together with the driving system of the vehicle based on the driving environment.

[0103] As described above, according to the exemplary embodiments of the inventive concept, when a SoC having a plurality of processors designed according to various architectures and installed therein enters a deadlock state, before the SoC is restarted, at least a portion of the processors may be controlled to store and / or output debug information based on the architecture of each of the plurality of processors. Therefore, debugging is performed using debug information of the processor causing the deadlock state in the SoC, so that the cause of the deadlock state can be accurately identified and the efficiency of debugging can also be improved.

[0104] The operations or steps of the above methods or algorithms may be implemented as computer-readable codes on a computer-readable recording medium or transmitted through a transmission medium. A computer-readable recording medium is any data storage device that can store data that can be read by a computer system afterwards. Examples of computer-readable recording media include read-only memory (ROM), random access memory (RAM), compact disc (CD)-ROM, digital versatile disc (DVD), magnetic tape, floppy disk, and optical data storage device, but are not limited thereto. Transmission media may include carrier waves transmitted through the Internet or various types of communication channels. The computer-readable recording medium may also be distributed on networked computer systems so that the computer-readable code is stored and executed in a distributed manner.

[0105] According to example embodiments, components, elements, modules or units (such as, Figure 4At least one of the debugging resources 112, subcomponents 122, debugging host 162, and SoC controller 161 (collectively referred to as "components" in this paragraph) may be implemented as various numbers of hardware, software, and / or firmware structures that perform the respective functions described above. For example, at least one of these components may use a direct circuit structure (such as a memory, a processor, a logic circuit, a lookup table, etc.) that can perform the respective functions under the control of one or more microprocessors or other control devices. In addition, at least one of these components may be specifically implemented by a module, a program, or a portion of code that contains one or more executable instructions for performing specific logical functions and is executed by one or more microprocessors or other control devices. Two or more of these components may be combined into a single component that performs all operations or functions of the combined two or more components. In addition, at least part of the functions of at least one of these components may be performed by another of these components. The functional aspects of the above exemplary embodiments may be implemented as an algorithm executed on one or more processors.

[0106] The embodiments provided in the above description do not exclude association with one or more features of another example or another embodiment that is also provided herein or not provided herein but consistent with the inventive concept. For example, unless otherwise mentioned in the description of a specific example, even if something described in a specific example is not described in an example different from it, the thing can also be understood to be related to or combined with a different example.

[0107] While example embodiments have been shown and described above, it will be apparent to those skilled in the art that modifications and variations may be made without departing from the scope of the inventive concept as defined by the appended claims.

Claims

1. A system on a chip, include: A plurality of processors configured to: store respective debug information in response to respective information extraction commands received in a deadlock state, wherein the plurality of processors have different architectures; a system bus connected to the plurality of processors; The system-on-chip manager is configured to: in response to detecting the occurrence of a deadlock state, generate respective information extraction commands differently according to the architecture of each of the plurality of processors, and send the respective information extraction commands to the plurality of processors via a bus separate from the system bus, and Wherein, the processors among the plurality of processors that do not provide a function of automatically and / or periodically storing state information are configured to: extract respective debugging information from respective central processors in response to respective information extraction commands received in a deadlock state; and Among them, the processors among the multiple processors that provide the function of automatically and / or periodically storing status information are configured to: in response to respective information extraction commands received in a deadlock state, select at least a portion of status information stored in respective debugging resources as respective debugging information.

2. The system on chip according to claim 1, in, The on-chip system manager is further configured to reset the plurality of processors and the system bus after the plurality of processors store respective debug information in response to respective information fetch commands.

3. The system on chip according to claim 1, in, The debug bus is physically separated from the system bus or logically separated from the system bus by partitioning the system bus. The on-chip system manager sends respective information extraction commands to the plurality of processors via a debug bus in response to detecting a deadlock state.

4. The system on chip according to claim 1, in, The respective debug information includes bit values ​​stored in a status register included in a corresponding processor among the plurality of processors.

5. The system on chip according to claim 1, in, The SoC manager includes: The system-on-chip controller is configured to: detect a deadlock condition; The debugging host is configured to send respective information extraction commands to the plurality of processors.

6. The system on chip according to claim 5, in, At least one of the plurality of processors comprises: A central processing unit, configured to: perform arithmetic operations; The debugging resource is configured to store the state information generated by the central processing unit at a predetermined period, and output at least a part of the state information as corresponding debugging information in response to a corresponding information extraction command.

7. The system on chip according to claim 6, in, The corresponding debugging information output by the debugging resource is stored in a storage space that is not reset by a restart of the plurality of processors and the system bus.

8. The system on chip according to claim 5, in, At least one of the plurality of processors comprises: A central processing unit, configured to: perform arithmetic operations; The subcomponent is configured to: in response to a corresponding information extraction command, extract corresponding debugging information from the central processing unit and store the corresponding debugging information.

9. The system on chip according to claim 5, in, At least one of the plurality of processors includes a central processing unit configured to execute a predetermined instruction included in a corresponding information extraction command to extract corresponding debugging information and store the corresponding debugging information in a storage area that is not reset by a restart of the plurality of processors and a system bus.

10. The system on chip according to claim 1, in, Each of the plurality of processors includes a debugging host configured to store corresponding debugging information in response to a corresponding information extraction command.

11. The system on chip according to claim 10, in, At least one of the plurality of processors comprises: A central processing unit, configured to: perform arithmetic operations; The debugging resource is configured to: store status information generated by the central processing unit at a predetermined period, The debugging host marks at least a portion of the state information as corresponding debugging information in response to the corresponding information extraction command.

12. The system on chip according to claim 10, in, At least one of the plurality of processors comprises: A central processing unit, configured to: perform arithmetic operations; The subcomponent is configured to extract corresponding debugging information from the central processing unit and store the corresponding debugging information.

13. The system on chip according to claim 12, in, The debugging host is configured to activate the subcomponent in response to a corresponding information extraction command.

14. The system on chip according to claim 12, in, The debugging host is configured to: in response to a corresponding information extraction command, control the subcomponent to extract corresponding debugging information from the central processor.

15. The system on chip according to claim 10, in, The debugging host is configured to, in response to a corresponding information extraction command, store the corresponding debugging information in a storage space that is not reset by a restart of the plurality of processors and the system bus.

16. A system on a chip, include: A plurality of processors, each of the plurality of processors comprising: a first interface, a second interface and a central processing unit; a system bus connected to the first interface; at least one debugging host connected to the second interface; A system on chip controller is connected to the plurality of processors via a system bus and is configured to: detect a deadlock state in the plurality of processors, The debugging host is configured to: when a deadlock state occurs, in response to an instruction of the on-chip system controller, send respective information extraction commands generated based on the architecture of each of the plurality of processors to the plurality of processors, The plurality of processors are configured to: in response to respective information extraction commands, output and / or store respective state information as respective debugging information; Wherein, the processors among the plurality of processors that do not provide a function of automatically and / or periodically storing state information are configured to: extract respective debugging information from respective central processors in response to respective information extraction commands; and Among the plurality of processors, the processors providing the function of automatically and / or periodically storing state information are configured to: in response to respective information extraction commands, select at least a portion of state information stored in respective debugging resources as respective debugging information.

17. The system on chip according to claim 16, in, Each processor of the plurality of processors includes a corresponding debug host of the at least one debug host.

18. The system on chip according to claim 16, in, The at least one debugging host is connected to the second interface via the system bus.

19. The system on chip according to claim 16, in, The respective state information includes state information about at least one processor among the plurality of processors immediately before and after the deadlock state occurs.

20. A system on a chip, include: A first processor, designed according to a first architecture; a second processor designed according to a second architecture different from the first architecture; a system on chip controller configured to: detect a deadlock condition in at least one of the first processor and the second processor; a debugging host connected to the slave interface of each of the first processor and the second processor and configured to: when a deadlock state occurs, before the first processor and the second processor are reset, obtain respective debugging information about the first processor and the second processor by sending respective information extraction commands to the first processor and the second processor via the slave interface, The first processor and the second processor are configured to: in response to respective information extraction commands, use different methods to store respective debugging information, The processors among the first processor and the second processor that do not provide the function of automatically and / or periodically storing the state information are configured to: extract respective debugging information from respective central processors in response to respective information extraction commands; and Among them, the processors among the first processor and the second processor that provide the function of automatically and / or periodically storing state information are configured to: in response to respective information extraction commands, select at least a portion of state information stored in respective debugging resources as respective debugging information.

Citation Information

Patent Citations

  • Ultra dense server cluster apparatus

    KR1020180038758A

  • Development of natural dyeing quality and mass production process using soybean and antibacterical agent

    KR1020180087692A

  • Device and system for realizing debuggability of multicore processor EJTAG

    CN101710300A

  • System-on-chip, mobile terminal, and method for operating the system-on-chip

    CN106970864A

  • Multiprocessor device

    JP2013140630A