Chip signal analysis device, system, processor chip and electronic equipment

Through the bus protocol conversion device, in the processor chip signal analysis system under the POWER architecture, the advanced tracking bus protocol ATB is used for data encapsulation and protocol conversion, which solves the problems of low software interaction efficiency and large resource occupation in post-silicon chip verification, and improves It improves the universality of application scenarios and efficiency of software interaction.

CN117725863BActive Publication Date: 2024-09-10SHANGHAI HEXIN DIGITAL TECH CO LTD +1
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202311698097.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-11
Publication Date
2024-09-10
Estimated Expiration
2043-12-11

AI Technical Summary

Technical Problem

During the post-silicon chip verification process of the processor chip signal analysis system under the POWER architecture, the software interaction efficiency is low and the software resources are occupied, resulting in limited application scenarios and low efficiency.

Method used

Provide a chip signal analysis device and system that completes data encapsulation and protocol conversion through a bus protocol conversion device, and uses the advanced tracking bus protocol ATB to transmit circuit data to the debugging device to achieve timing synchronization and protocol conversion, improve software interaction efficiency and reduce Resource usage.

Benefits of technology

It improves the universality of the application scenarios of the chip signal analysis system, improves the efficiency of software interaction, reduces the occupation of software resources during the chip signal analysis process, and solves the problems of low software interaction efficiency and large resource occupation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117725863B
    Figure CN117725863B
Patent Text Reader

Abstract

The present application provides a chip signal analysis device, system, processor chip and electronic device, which carry or call software resources for chip signal analysis through a software resource device, and read the software resources through a chip data acquisition device to obtain circuit data on a target line, and then transmit the circuit data to a bus protocol conversion device according to the data transmission protocol of the server chip. The bus protocol conversion device completes the timing synchronization and protocol conversion process, encapsulates the circuit data into encapsulated data according to a preset target protocol, and transmits the data to a debugging device according to the target protocol for chip signal analysis. As a result, the universality of application scenarios is improved, the efficiency of software interaction is improved, the occupancy of software resources in the chip signal analysis process is reduced, and the problems of low software interaction efficiency and large software resource occupancy in the post-silicon chip verification process of the processor chip signal analysis system under the POWER architecture are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to electronic design technology, and in particular to a chip signal analysis device, system, processor chip and electronic equipment. Background Art

[0002] In the field of server chip design, such as POWER architecture server chips, post-silicon chip verification methods are usually implemented using devices with debugging and traceability functions. After the chip returns from the manufacturer, the device can provide chip designers with a large number of continuous, microscopic integrated circuit electronic signals, which is a key means of chip hardware positioning. Chip designers can set trigger conditions at the location of the fault, and with the help of the corresponding hardware resources on the chip, they can provide circuit changes over a period of time. If a fault event occurs, the signals and circuit conditions before and after the fault can be captured.

[0003] However, currently only some chips have the aforementioned devices. For most chip manufacturers, some interfaces will be retained on the chip, and some matrix selections will be used internally and connected to the logic analyzer externally to observe some timing changes, so as to realize chip hardware positioning, signal analysis, troubleshooting and other functions. The current post-silicon chip verification method is implemented through a software resource device and a chip data acquisition device for data tracing on the chip routing. That is, in the original POWER architecture, the software resource device used to store software resource information or call third-party software resource information and the chip data acquisition device corresponding to the data tracing constitute the entire technical solution. The software can configure the working mode of the chip data acquisition device through the bus. After a chip failure occurs, the chip controls the data tracing device to start and stop collecting data; the software needs to poll and wait in this process. When the chip data acquisition device completes the circuit data collection on the target routing, the software reads the data in the storage medium in sequence through the summary interface.

[0004] Therefore, for the software resources, the application scenarios are limited due to the limited chip resources, and in the chip signal analysis process such as post-silicon chip verification, the efficiency of software and chip data interaction is not high, and the software resources are large. In summary, the processor chip signal analysis system under the POWER architecture has the problems of low software interaction efficiency and large software resource occupation in the post-silicon chip verification process. Summary of the invention

[0005] The present application provides a chip signal analysis device, system, processor chip and electronic equipment to solve the problems of low software interaction efficiency and large software resource usage in the post-silicon chip verification process of the processor chip signal analysis system under the POWER architecture.

[0006] In a first aspect, the present application provides a chip signal analysis device, which is applied to a target chip under a POWER architecture, and is used to obtain circuit data on a preset target routing in the target chip, encapsulate it with a target protocol, obtain the encapsulated data, and transmit it to a preset storage unit or a debugging unit;

[0007] The target protocol includes an advanced trace bus protocol ATB, and the encapsulated data is used to analyze the signal response of the target routing to obtain the working state information or fault information of the target routing.

[0008] In a second aspect, the present application provides a chip signal analysis system, the system comprising:

[0009] A software resource device, a chip data acquisition device, a debugging device, and the chip signal analysis device described in the first aspect, wherein the chip signal analysis device includes a bus protocol conversion device;

[0010] Wherein, the software resource device is used to carry or call external software resources for chip signal analysis;

[0011] The chip data acquisition device includes a storage medium, the chip data acquisition device is used to acquire the circuit data on the preset target routing line through the software resource, and the storage medium is used to access the circuit data;

[0012] The debugging device is used to obtain the packaging data and perform signal analysis on the target routing according to the packaging data;

[0013] Wherein, the software resource device and the chip data analysis device realize data interaction through memory access;

[0014] The chip data analysis device is connected to the bus protocol conversion device, and the bus protocol conversion device is connected to the debugging device.

[0015] As an optional implementation, the bus protocol conversion device includes a read-write control unit;

[0016] Wherein, the read-write control unit is connected to the storage medium in the chip data acquisition device;

[0017] Furthermore, the read / write control unit is used to control the working parameters of reading and writing the circuit data, and read / write the circuit data according to the working parameters.

[0018] As an optional implementation, the read-write control unit includes a trigger sending control subunit;

[0019] The trigger transmission control subunit is used to control the chip data acquisition device to generate a target information packet after completing the acquisition of the circuit data on the target routing line, and drive the target information packet to be transmitted to the debugging device.

[0020] As an optional implementation, the read-write control unit includes a dynamic sending control subunit;

[0021] The dynamic transmission control subunit is used to control the bus protocol conversion device to transmit the encapsulation data to the debugging device while acquiring the circuit data on the target routing line.

[0022] As an optional implementation, the read-write control unit includes a mode control subunit;

[0023] The mode control subunit is used to control the data sending mode of the bus protocol conversion device.

[0024] As an optional implementation, the read-write control unit includes a data drain control subunit;

[0025] The data draining control subunit is used to control the draining of data in the storage medium according to the clock domain of the circuit structure corresponding to each of the target routings, and send the data to the bus protocol conversion device.

[0026] As an optional implementation, the bus protocol conversion device further includes a priority processing unit;

[0027] Wherein, the priority processing unit is connected to the read-write control unit and connected to the storage medium in the chip data acquisition device;

[0028] And, the priority processing unit is used to process the data read and write request of the read and write control unit and control the priority of data read and write;

[0029] And, the bus protocol conversion device also includes a protocol conversion unit;

[0030] Wherein, the protocol conversion unit is connected to the read-write control unit, and is connected to the debugging device via a bus based on the target protocol;

[0031] Furthermore, the protocol conversion unit is used to receive a data write request from the debugging device through the bus, and send the encapsulated data to the debugging device according to the data write request.

[0032] In a third aspect, the present application provides a processor chip, wherein the chip includes the chip signal analysis system as described in the second aspect.

[0033] In a fourth aspect, the present application provides an electronic device, comprising the processor chip as described in the third aspect.

[0034] The chip signal analysis device, system, processor chip and electronic device provided by the present application carry or call software resources for chip signal analysis through a software resource device, carry or call software resources for chip signal analysis through a software resource device, and read the software resources through a chip data acquisition device to obtain circuit data on the target routing, and then transmit the circuit data to a bus protocol conversion device using the data transmission protocol of the server chip. The bus protocol conversion device completes the timing synchronization and protocol conversion process, encapsulates the circuit data into encapsulated data according to a preset target protocol, and transmits it to a debugging device using the target protocol for chip signal analysis. This improves the universality of application scenarios, improves the efficiency of software interaction, reduces the occupancy of software resources during chip signal analysis, and solves the problems of low software interaction efficiency and large software resource occupancy in the post-silicon chip verification process of the processor chip signal analysis system under the POWER architecture. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0036] Figure 1 It is a structural schematic diagram of a chip signal analysis system disclosed in an embodiment of the present invention;

[0037] Figure 2 is a schematic diagram of the structure of another chip signal analysis system disclosed in an embodiment of the present invention;

[0038] Figure 3 is a schematic diagram of the structure of another chip signal analysis system disclosed in an embodiment of the present invention;

[0039] Figure 4 It is a flow chart of the operation logic of a chip signal analysis system disclosed in an embodiment of the present invention;

[0040] Figure 5 It is a flow chart of another chip signal analysis system operation logic disclosed in an embodiment of the present invention;

[0041] Reference numerals:

[0042] 11. Software resource installation;

[0043] 12. Chip data acquisition device;

[0044] 13. Bus protocol conversion device;

[0045] 14. Debugging device;

[0046] Read / write Control, read / write control unit;

[0047] Trigger Send Control, trigger send control subunit;

[0048] Active Send Control, dynamic send control subunit;

[0049] Work Mode Control, mode control subunit;

[0050] Flush Control, data drain control subunit;

[0051] SP, priority processing unit;

[0052] ATB Master, protocol conversion unit;

[0053] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0054] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0055] In server chip architectures such as IBM POWER, data tracing and data debugging are important methods for post-silicon chip verification. After the chip is returned from the manufacturer, it can provide chip designers with a large number of continuous, microscopic integrated circuit electronic signals, which is a key means of chip hardware positioning. Chip designers can set trigger conditions at the location of the fault. With the help of on-chip hardware resources for data tracing and data debugging, they can provide circuit changes over a period of time, and accurately capture the conditions before and after the fault.

[0056] Currently, in very large-scale integrated circuits, only some manufacturers have similar on-chip chip verification capabilities. Most chip manufacturers in the industry have not set up corresponding hardware resources on the chip. They usually reserve some interfaces on the input and output interfaces of the chip, select them internally through some matrices, and connect to some logic analyzers externally to observe some timing changes.

[0057] See also Figure 1 , Figure 1 is a schematic diagram of the structure of a chip signal analysis system disclosed in an embodiment of the present invention, such as Figure 1 As shown, as an exemplary implementation, in the POWER architecture, a software resource device for storing software resource information or calling third-party software resource information, and a chip data acquisition device corresponding to data tracing constitute the entire technical solution. The software can configure the working mode of the chip data acquisition device through the bus. After a chip failure occurs, the chip controls the data tracing device to start and stop collecting data. The software needs to poll and wait during this process. When the chip data acquisition device completes the collection of circuit data on the target routing, the software reads the data in the storage medium in sequence through the summary interface.

[0058] The current chip signal analysis system has the following problems when applied to the post-silicon chip verification process of POWER architecture server chips:

[0059] First, due to chip resources, storage capacity is limited, and each target path contains only a limited number of interfaces. Even with data compression algorithms, the information stored is relatively limited. In addition, with the addition of timestamps, compressed time differences and other information, the effective data is further reduced. Increasing the storage capacity on silicon can only improve slightly, but it will increase huge costs.

[0060] Second, in the IBM POWER architecture, the data stored on the chip can be accessed by software through bus access, but the efficiency is low.

[0061] Third, the software consumes a lot of power. During the chip signal analysis process, the software needs to constantly poll and obtain on-chip data.

[0062] Based on this, the present application provides a chip signal analysis device, which is applied to a target chip under a POWER architecture, and is used to obtain circuit data on a preset target routing line in the target chip, encapsulate it with a target protocol, obtain the encapsulated data, and transmit it to a preset storage unit or debugging unit;

[0063] The target protocol includes an advanced tracking bus protocol ATB, and the encapsulated data is used to analyze the signal response of the target routing to obtain the working state information or fault information of the target routing.

[0064] It should be noted that in a specific application scenario, the chip signal analysis device can be implemented in the form of a series of device-based functional circuits, or can be based on a main processor or processing unit integrated in the landing system, or a separately set processing unit to complete the corresponding functions. Therefore, for the chip signal analysis device defined by the functional description here, its specific landing form can be inferred based on its corresponding functional description and the relevant content of the subsequent implementation methods.

[0065] Therefore, through the chip signal analysis device, the timing synchronization and protocol conversion process are completed, the circuit data is encapsulated into encapsulated data according to the preset target protocol, the data interaction and conversion are realized, the universality of the chip signal analysis device in the application scenarios is improved, and the efficiency of software interaction is improved, and the software resource occupancy in the chip signal analysis process is reduced, which solves the problem of low software interaction efficiency and large software resource occupancy in the post-silicon chip verification process of the processor chip signal analysis system under the POWER architecture.

[0066] The technical concept of the present application is to complete the data packaging and interaction through the bus protocol conversion device for protocol conversion. The system structure provided by the present application is mainly divided into four parts: software (software resource device), POWER Trace (chip data acquisition device), Trace to atb tranfer (bus protocol conversion device), DDR / Debugger (debugging device). The software can be software running on the chip driver core or third-party software. The third-party software needs to use the chip peripherals. POWER Trace is the original hardware structure in the IBM POWER architecture. It supports compression algorithms and can compress signals that do not change frequently over a period of time; it supports non-compression algorithms. When the storage medium is limited, the observed signal range is small; triggers can be set according to the observed signal to control the collection of several data on the target path. The bus protocol conversion device is the core of the present technical solution, which is used to solve the current technical problems. DDR is a large-capacity hardware storage device, and Debugger is a third-party software and hardware debugging box. According to the different actual application scenarios of the hardware system, the corresponding implementation method is selected to realize the software debugging function.

[0067] Specifically, the present application carries or calls software resources for chip signal analysis through a software resource device, carries or calls software resources for chip signal analysis through a software resource device, and reads software resources through a chip data acquisition device to obtain circuit data on a target line, and then transmits the circuit data to a bus protocol conversion device using the data transmission protocol of the server chip. The bus protocol conversion device completes the timing synchronization and protocol conversion process, encapsulates the circuit data into encapsulated data according to a preset target protocol, and transmits the data to a debugging device using the target protocol for chip signal analysis. This improves the universality of application scenarios, improves the efficiency of software interaction, reduces the occupancy of software resources during chip signal analysis, and solves the problems of low software interaction efficiency and large software resource occupancy in the post-silicon chip verification process of the processor chip signal analysis system under the POWER architecture.

[0068] See also Figure 2 , Figure 2 is a schematic diagram of the structure of another chip signal analysis system disclosed in an embodiment of the present invention. The system includes a chip signal analysis device. The chip signal analysis device is applied to a target chip under a POWER architecture. Specifically, Figure 2 As shown, the system includes:

[0069] The software resource device 11 , the chip data acquisition device 12 , the debugging device 14 and the chip signal analysis device in the aforementioned embodiment, the chip signal analysis device includes a bus protocol conversion device 13 .

[0070] The software resource device 11 is used to load or call software resources for chip signal analysis;

[0071] The software resource device is used to carry all software resources that may be involved in the chip signal analysis process. In the specific implementation method, it can be understood as a back-end database for storing software resources, which is called according to the corresponding instructions initiated by the front end. For the debugging device mentioned later, one implementation method can be that the software resources used for debugging are also obtained through the software resource device.

[0072] In addition, it should be noted that the software resource device can also be used to indicate the interface for obtaining external software resources, that is, the software resource device can not only be used to carry software resources, but also serve as a hardware and software interface for data interaction with third-party software data to realize the software resource acquisition function.

[0073] A chip data acquisition device 12, the chip data acquisition device 12 includes a storage medium, the chip data acquisition device 12 is used to acquire circuit data on the target routing line through software resources, and the storage medium is used to access the circuit data;

[0074] This part of the structure is used to implement the Trace process in the traditional server chip architecture, that is, the process of tracing the electronic devices on the target routing and obtaining the corresponding electrical parameters.

[0075] The bus protocol conversion device 13 is used to encapsulate the circuit data on the target line with the target protocol to obtain the encapsulated data and transmit it;

[0076] In the present application, compared with the traditional server chip signal analysis system architecture, the added bus protocol conversion device is mainly used for data encapsulation and protocol conversion. Specifically, the timing synchronization of hardware devices in different clock domains and the protocol conversion process of encapsulated data are executed in the bus protocol conversion device, and the circuit data is encapsulated into encapsulated data according to the preset target protocol, and transmitted to the debugging device with the target protocol for chip signal analysis.

[0077] The bus protocol conversion device 13 is a specific implementation of a chip signal analysis device provided by the present application. The chip signal analysis device is applied to a target chip under the POWER architecture. The chip signal analysis device includes the bus protocol conversion device 13.

[0078] The bus protocol conversion device 13 is used to obtain circuit data on a preset target routing line in the target chip, encapsulate it with the target protocol, obtain the encapsulated data and transmit it to a preset storage unit or debugging unit;

[0079] The target protocol includes an advanced tracking bus protocol ATB, and the encapsulated data is used to analyze the signal response of the target routing to obtain the working state information or fault information of the target routing.

[0080] A debugging device 14, used to obtain packaging data and perform signal analysis on the target routing according to the packaging data;

[0081] The software resource device 11 and the chip data analysis device realize data interaction through memory access;

[0082] The chip data analysis device is connected to the bus protocol conversion device 13 , and the bus protocol conversion device 13 is connected to the debugging device 14 .

[0083] The debugging device 14 is a hardware and software analysis device for post-silicon chip verification. The hardware part can be implemented by a large-capacity storage device, and the software part is installed on the storage device, or obtained by the software resource device as before.

[0084] Software resources for chip signal analysis are loaded or called through a software resource device, and the software resources are read through a chip data acquisition device to obtain circuit data on the target routing line. The circuit data is then transmitted to a bus protocol conversion device using the data transmission protocol of the server chip. The bus protocol conversion device completes the timing synchronization and protocol conversion process, encapsulates the circuit data into encapsulated data according to a preset target protocol, and transmits the data to a debugging device using the target protocol for chip signal analysis. This improves the universality of application scenarios, improves the efficiency of software interaction, reduces the occupancy of software resources during chip signal analysis, and solves the problems of low software interaction efficiency and large software resource occupancy in the post-silicon chip verification process of the processor chip signal analysis system under the POWER architecture.

[0085] See also Figure 3 , Figure 3 is a schematic diagram of the structure of another chip signal analysis system disclosed in an embodiment of the present invention, such as Figure 3 As shown, the bus protocol conversion device 13 includes a read-write control unit;

[0086] It should be noted that in Figure 3 The following concepts are consistent in the description and should be commonly understood in the specific description:

[0087] Read / write Control, read / write control unit; Trigger Send Control, trigger send control subunit; Active Send Control, dynamic send control subunit; Work Mode Control, mode control subunit; Flush Control, data flushing control subunit; SP, priority processing unit; ATB Master, protocol conversion unit;

[0088] and, in Figure 3 In the figure, the software resource device is the block with the word "software" in the upper left corner, which implements data interaction with the chip data acquisition device through memory access. The chip data acquisition device is the block marked with POWER8 Trace in the upper right corner, which interacts data with the bus protocol conversion device through the storage medium and the priority processing unit. The bus protocol conversion device is the block marked with Trace to atb in the lower right corner, which interacts data with the debugging device marked with DDR or Debugger in the lower left corner through the ATB bus.

[0089] Wherein, the read-write control unit is connected to the storage medium in the chip data acquisition device 12;

[0090] And, the read-write control unit is used to control the working parameters of the read-write circuit data, and read-write the circuit data according to the working parameters.

[0091] Through the read-write control unit, the working parameters of data interaction between the chip data acquisition device and the bus protocol conversion device 13 can be determined, as well as information such as the data interaction mode, and the process of reading and writing circuit data according to the determined working parameters can be executed. This improves the universality of application scenarios, improves the efficiency of software interaction, and reduces the occupancy of software resources during chip signal analysis.

[0092] In a feasible architecture, the software resource device 11 and the chip data acquisition device 12 constitute the entire technical solution. The software can configure the working mode of the chip data acquisition device 12 through the bus. After a chip failure occurs, the chip controls the target path to start and stop collecting data. The software needs to poll and wait during this process. When the target path data is collected, the software reads the data in the storage medium in sequence through the summary interface.

[0093] In contrast, the implementation provided in the present application further adds a Trace to atb device, which can encapsulate the data in the storage medium into a data packet in the ARM ATB protocol format, and then send the data to the DDR through the corresponding hardware structure, or directly to a dedicated Debugger.

[0094] As an optional implementation, the read-write control unit includes a trigger sending control subunit;

[0095] The trigger sending control subunit is used to control the chip data acquisition device 12 to generate a target information packet after completing the acquisition of the circuit data on the target routing, and drive the target information packet to be transmitted to the debugging device 14 .

[0096] Specifically, for the Trigger Send Control logic of the trigger send control subunit, after the Trace data collection is completed, the data is actively pushed to the outside. After the data is pushed, the debugger can be actively informed through interrupts and special packets, saving software overhead, and the software no longer needs to poll and wait.

[0097] By sending a control subunit through a trigger, data can be actively pushed to the outside after circuit data acquisition is completed, and the debugging device can be informed of the current data status through a preset target information packet, without the need for software to repeatedly poll and wait, thereby improving the efficiency of data interaction in the read-write control unit, improving the universality of application scenarios, and improving the efficiency of software interaction, reducing the occupancy of software resources during chip signal analysis.

[0098] As an optional implementation, the read-write control unit includes a dynamic sending control subunit;

[0099] The dynamic transmission control subunit is used to control the bus protocol conversion device 13 to transmit the package data to the debugging device 14 while acquiring the circuit data on the target routing line.

[0100] For the Active Send Control logic of the dynamic send control subunit, it can send data outward while collecting data. When the data rate does not change much, a longer observation period can be achieved through the compression algorithm. Ideally, information on the entire chip operation cycle can be observed.

[0101] By dynamically sending the control subunit, the read-write control unit can send data outward while collecting data. The compression algorithm can achieve data observation over a longer period of time, which improves the universality of application scenarios, improves the efficiency of software interaction, and reduces the occupancy of software resources during chip signal analysis.

[0102] As an optional implementation, the read-write control unit includes a mode control subunit;

[0103] The mode control subunit is used to control the data sending mode of the bus protocol conversion device 13 .

[0104] The Work Mode Control subunit not only maintains the operation of the work, but also coordinates the switching of various working modes.

[0105] The mode control subunit maintains the normal operation of the read-write control unit and coordinates the data sending mode of the bus protocol conversion device, thereby improving the efficiency of data interaction, improving the universality of application scenarios, and reducing the occupancy of software resources during chip signal analysis.

[0106] As an optional implementation, the read-write control unit includes a data drain control subunit;

[0107] The data draining control subunit is used to control the draining of data in the storage medium according to the clock domain of the circuit structure corresponding to each target routing, and send the data to the bus protocol conversion device 13 .

[0108] The logic related to the data flushing control subunit Flush Control mainly completes the flushing of data in the storage medium, ensuring that all devices working in different clock domains can effectively and accurately flush data and ensure that the software obtains enough data.

[0109] Through the data draining control subunit, the data in the storage medium can be drained, ensuring that devices working in different clock domains can effectively drain data, so that the software side can obtain sufficient data, improving the efficiency of data interaction, improving the universality of application scenarios, and reducing the occupancy of software resources during chip signal analysis.

[0110] As an optional implementation, the bus protocol conversion device 13 further includes a priority processing unit;

[0111] Wherein, the priority processing unit is connected to the read-write control unit and is connected to the storage medium in the chip data acquisition device 12;

[0112] And, the priority processing unit is used to process the data reading and writing request of the reading and writing control unit, and control the priority of data reading and writing.

[0113] The priority processing unit can be used to process data read and write requests from the read and write control unit and control the priority of data reading and writing, thereby improving the efficiency of data interaction, improving the universality of application scenarios, and reducing the occupancy of software resources during chip signal analysis.

[0114] As an optional implementation, the target protocol includes an Advanced Trace Bus protocol ATB;

[0115] The bus protocol conversion device 13 also includes a protocol conversion unit;

[0116] Wherein, the protocol conversion unit is connected to the read-write control unit, and is connected to the debugging device 14 via a bus based on the target protocol;

[0117] Furthermore, the protocol conversion unit is used to receive a data write request from the debugging device 14 through the bus, and send the encapsulated data to the debugging device 14 according to the data write request.

[0118] As for the related logic of the protocol conversion unit ATB Master, this unit is the unit that finally completes the protocol conversion, can send data downward, can receive downstream Flush requests, and complete related data draining.

[0119] According to the preset ATB bus protocol, the protocol conversion and data draining are completed through the protocol conversion unit, which improves the efficiency of data interaction, improves the universality of application scenarios, and reduces the occupation of software resources during chip signal analysis.

[0120] For the rest of the logic in the figure, such as the third-party read and write control interface, it is used to initiate corresponding read requests and receive read data according to the working mode; SP, the aforementioned priority processing unit, is used to control the timing of data reading and writing, and usually needs to ensure that the write priority is the highest; the data packaging logic part mainly inserts status and mark information; the AFIFO part is responsible for completing the asynchronous conversion of different clock domains.

[0121] In summary, the present application realizes data encapsulation, protocol conversion and data interaction through the design of the bus protocol conversion device 13, thereby improving the universality of the application scenario, improving the efficiency of software interaction, reducing the occupation of software resources in the chip signal analysis process, and solving the problem of low software interaction efficiency and large software resource occupation in the post-silicon chip verification process of the processor chip signal analysis system under the POWER architecture. For the above-mentioned various implementation methods, they can be implemented in combination. In a specific application scenario, the system structure of the entire technical solution is mainly divided into four parts: software, Power Trace, Trace to atb tranfer, DDR / Debugger, etc. The software can be software running on the Power Core or third-party software. The third-party software needs to rely on the peripherals of the chip. In general, the software resource can be loaded or externally interacted in the form of a software resource device. Power Trace is the original hardware structure in the IBM Power architecture. It supports compression algorithms and can compress signals that do not change frequently within a period of time; it supports non-compression algorithms. When the storage medium is limited, the observed signal range is small; trigger conditions and trigger signals can be set according to the observed signals to control the chip data acquisition device 12 to collect a number of data on the target line. The design of the bus protocol conversion device 13 is implemented with the hardware structure of Trace to atb shown in the figure, which realizes data encapsulation, protocol conversion and data interaction, thereby improving the universality of application scenarios, improving the efficiency of software interaction, reducing the occupation of software resources in the chip signal analysis process, and solving the problem of low software interaction efficiency and large software resource occupation in the post-silicon chip verification process of the processor chip signal analysis system under the POWER architecture. In addition, DDR is a large-capacity hardware storage device, and Debugger is a third-party software and hardware debugging box, which is the specific software and hardware implementation method of the debugging device 14. For details, please refer to the above-mentioned relevant specific description.

[0122] Specifically, the Trace to atb device includes the following logical units. The device name descriptions mentioned above remain consistent and can still be referred to in the previous descriptions. Figure 3 The corresponding description.

[0123] The software resource device 11 carries or obtains the software resources of a third party in real time through an interface, and realizes data communication connection with the built-in data tracking chip under the POWER architecture through a storage memory channel, that is, the aforementioned chip data acquisition device 12, which is directly used to obtain data on the target line to realize the subsequent post-silicon chip verification function. Among them, the Power8 Trace device realizes data interaction with the Trace to atb device provided by the present application through a storage medium, realizes data interaction with the software resource device through a serial register access interface, realizes software timing control through a data read and write control unit, and data operations such as data storage, data capture mode setting, and data compression, and integrates and packages data to initiate data read and write requests to the bus protocol conversion device 13.

[0124] The main units of the bus protocol conversion device 13 include the related structures of the read-write control unit and the protocol conversion unit. For the Trace to atb device shown in the figure, the data in the storage medium of the chip data acquisition device 12 can be encapsulated into encapsulated data in the ARM ATB protocol format, and then the data protocol conversion and timing matching processes are completed through the protocol conversion unit. The data is sent to the DDR through the ATB bus, and can also be directly sent to a dedicated debugger to realize the debugging function.

[0125] The read / write control unit may include the four sub-logic units mentioned above. These four sub-units may be implemented together, designed in the read / write control unit, and connected to a third-party read / write control interface, and further connected to external priority processing, data marking, protocol conversion and other functional units, to control the working mode or data interaction method of the corresponding unit in the post-silicon chip verification process.

[0126] Specifically, the Trigger Send Control logic unit can automatically transmit and push data after the data acquisition device completes the electronic data acquisition on the target routing. After the data is pushed, the debugger can be actively informed through the packaged data with interrupt function designed in the specific application scenario, saving software overhead, and thus no longer requiring the software to poll and wait, reducing the consumption of software resources. The Active Send Control logic unit can send data to external structures such as the bus protocol conversion device 13 while controlling the chip data acquisition device 12 to collect data, so as to realize the parallel execution of data reading and writing. In the case of little change in the data rate, a longer observation can be achieved through the compression algorithm. Ideally, the information of the entire chip operation cycle can be observed, which increases the amount of data observed during post-silicon chip verification, thereby improving the efficiency of data observation. The Work Mode Control unit not only maintains the operation of the work, but also coordinates the switching of various working modes. It is mainly used to acquire data from the target routing and control the data interaction process between various devices to ensure the efficiency and effectiveness of data interaction. The logic units related to Flush Control mainly complete the emptying of data in the storage medium, ensuring that all devices working in different clock domains can effectively and accurately empty the data, and ensuring that sufficient data can be obtained in the debugging device 14 for data debugging. The read-write control device improves the efficiency of software interaction and reduces the occupation of software resources by controlling the working mode and data interaction method.

[0127] Another important unit, the protocol conversion unit and its peripheral structures, can be used to improve the universality of application scenarios. The related logic unit of ATB Master is the unit that finally completes the protocol conversion. It can send data downward, receive downstream Flush requests, and complete related data draining.

[0128] For the remaining logic units of the bus protocol conversion device 13, the third-party read / write control interface initiates a read / write request to the upstream chip data acquisition device 12 and obtains data according to the working mode and data interaction mode determined by the read / write control unit; SP is an absolute priority processing device. In a specific application scenario, it is usually necessary to ensure that the write priority is the highest; the Package part mainly inserts status and mark information such as Flag and status to enrich the amount of information in the packaged data, so that other devices can obtain related data status according to the packaged data; the AFIFO part is used to complete the asynchronous conversion of different clock domains. Its conversion logic can be referred to below Figure 4 and Figure 5 Related description.

[0129] See also Figure 4 , Figure 4FIG. 1 is a flow chart of the operation logic of a chip signal analysis system disclosed in an embodiment of the present invention. Figure 4 As shown, when the data draining control subunit faces devices in different clock domains, its level conversion method and execution flow can refer to the conversion direction and text description shown in the figure.

[0130] Specifically, the illustrated operation logic is used to indicate the process of the clock domain of the processor chip core and the clock domain under the ATB protocol interacting and converting the signals of the hardware structure through software, so as to ultimately realize the conversion of the protocol.

[0131] The left side of the timing diagram indicates the core clock domain of the processor chip core itself, and the right side indicates the target clock domain atb clock domain under the ATB protocol. The flush request indicates the request information used in the software to control the data flow, and processes the data in the buffer to achieve the effect of obtaining or controlling the data flow on demand, that is, the data is drained in the diagram. flush_req and flush_ack are the indication signals initiated during the timing conversion process. According to the conversion method and conditions of these two signals, the logic for realizing the protocol conversion can be formed.

[0132] After receiving the flush request, the atb clock domain initiates a high-level flush_req to the core clock domain, i.e., pulls up the flush_req signal in the atb2core direction. The core clock domain detects the request from the atb clock domain and starts to read the data in the trace arrary until all flush data is read. When the data in the package is also drained, an ACK signal is pulled up, i.e., the core2atb_flush_ack signal is pulled high. The atb clock domain receives the ACK signal from the core clock domain and starts to wait for all data in the AFIFO and ATB master to drain in the downstream direction of the arrow. After the draining is completed, the flush_req is pulled low, i.e., the flush_req signal in the atb2core direction is pulled low. The core clock domain detects that the flush_req of the atb clock domain is pulled low and enters the IDLE state. At the same time, the ACK signal is pulled low, i.e., the flush_ack signal in the core2atb direction is pulled low. Finally, the atb clock domain detects that the ACK signal is pulled low and also enters the IDLE state.

[0133] Also, see Figure 5 , Figure 5FIG. 1 is a flow chart of another chip signal analysis system operation logic disclosed in an embodiment of the present invention, such as Figure 5 As shown, during the operation of the data draining control subunit, the conditions for level conversion and the corresponding program commands can refer to the relevant description shown in the figure.

[0134] Similarly, the left side of the timing diagram is used to indicate the clock domain of the processor chip core itself, and the right side is used to indicate the target clock domain under the ATB protocol. In one implementation, the core clock domain includes four flush-related data states in the process shown in the timing diagram, namely Flush_IDLE, Flush_ARR, FLUSH_PKT and ATB_FLUSH, and the atb clockdomain also includes four flush-related data states, namely IDLE, Trace_FLUSH, ATB_FLUSH and FLUSH_END.The process from IDLE to Trace_FLUSH is used to indicate that the atb clock domain has received a flush request. When the coresight_aflush_req||software_trig&trig_mode||trace_run_stop_trig&trig_mode command is satisfied, a high-level flush_req is initiated to the core clock domain, namely, the atb2core_flush_req_d3 command, triggering the core clock domain to switch from the IDLE state to the flush declaration state. The arr_has_rd_out command is used to trigger the packaging of flush-related data. When the pkt_flush_finish state appears, it is determined that the packaging is completed, and a signal is initiated to the atb clock domain side, namely, the aforementioned core clock domain detects the request of the atb clock domain and starts to read the data of the trace arrary until all the flush data are read. When the data in the package is also emptied, an ACK signal is pulled up and the core2atb_flush_ack signal is pulled high, namely, the core2atb_flush_ack_d3 command. The atb clock domain receives the core clock The ACK signal of the domain starts to wait for all the data in the AFIFO and ATB master to be emptied in the downstream direction of the arrow. After the emptying is completed, the atb_domain_empty command is initiated to trigger the action of pulling down the flush_req signal in the atb2core direction. The core clock domain detects that the flush_req of the atb clock domain is pulled low, that is! After the atb2core_flush_req_d3 command, it enters the IDLE state and pulls down the ACK signal at the same time, that is, pulls down the flush_ack signal in the core2atb direction. Finally, the atb clock domain detects that the ACK signal is pulled low, that is! After the core2atb_flush_ack_d3 command, it also enters the IDLE state.

[0135] Among them, the naming method, data command and declaration statement related to the flush request can be set by referring to the specific development language. Its logical function can be combined with Figure 4 To understand.

[0136] In summary, the implementation method provided by the present application can save software overhead. After the data is pushed, the debugger can be informed, so that the software no longer needs to poll and wait, and work efficiency can be improved. Data can be actively pushed through a dedicated ATB bus, with a higher operating frequency and a larger bus bandwidth. In scenarios where the storage medium remains unchanged and the data changes slowly, data can be collected over a longer time range. Ideally, data within the entire chip operation cycle can be observed.

[0137] Software resources for chip signal analysis are loaded or called through a software resource device, and the software resources are read through a chip data acquisition device to obtain circuit data on the target routing line. The circuit data is then transmitted to a bus protocol conversion device using the data transmission protocol of the server chip. The bus protocol conversion device completes the timing synchronization and protocol conversion process, encapsulates the circuit data into encapsulated data according to a preset target protocol, and transmits the data to a debugging device using the target protocol for chip signal analysis. This improves the universality of application scenarios, improves the efficiency of software interaction, reduces the occupancy of software resources during chip signal analysis, and solves the problems of low software interaction efficiency and large software resource occupancy in the post-silicon chip verification process of the processor chip signal analysis system under the POWER architecture.

[0138] In addition, the present application provides a processor chip, which includes a chip signal analysis system as described in any embodiment.

[0139] Furthermore, the present application provides an electronic device, which includes a processor chip as in any embodiment.

[0140] The device embodiments described above are merely illustrative, wherein the devices described as separate components may or may not be physically separated, and the components shown as devices may or may not be physical devices, that is, they may be located in one place or distributed on multiple network devices.

[0141] Some or all of the devices may be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person skilled in the art may understand and implement the solution without creative work.

[0142] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0143] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A chip signal analysis device, the chip signal analysis device is applied to a target chip under a POWER architecture, characterized in that: The chip signal analysis device is used to obtain circuit data on a preset target routing line in the target chip, encapsulate it with a target protocol, obtain encapsulated data and transmit it to a preset storage unit or debugging unit; The target protocol includes an advanced trace bus protocol ATB, and the encapsulated data is used to analyze the signal response of the target routing to obtain the working state information or fault information of the target routing.

2. A chip signal analysis system, characterized in that: The system comprises: A software resource device, a chip data acquisition device, a debugging device, and a chip signal analysis device as claimed in claim 1, wherein the chip signal analysis device comprises a bus protocol conversion device; Wherein, the software resource device is used to carry or call external software resources for chip signal analysis; The chip data acquisition device includes a storage medium, the chip data acquisition device is used to acquire the circuit data on the preset target routing line through the software resource, and the storage medium is used to access the circuit data; The debugging device is used to obtain the packaging data and perform signal analysis on the target routing according to the packaging data; Wherein, the software resource device and the chip data analysis device realize data interaction through memory access; The chip data analysis device is connected to the bus protocol conversion device, and the bus protocol conversion device is connected to the debugging device.

3. The system according to claim 2, characterized in that The bus protocol conversion device includes a read-write control unit; Wherein, the read-write control unit is connected to the storage medium in the chip data acquisition device; Furthermore, the read / write control unit is used to control the working parameters of reading and writing the circuit data, and read / write the circuit data according to the working parameters.

4. The system according to claim 3, characterized in that The read-write control unit includes a trigger sending control subunit; The trigger transmission control subunit is used to control the chip data acquisition device to generate a target information packet after completing the acquisition of the circuit data on the target routing line, and drive the target information packet to be transmitted to the debugging device.

5. The system according to claim 4, characterized in that The read-write control unit includes a dynamic transmission control subunit; The dynamic transmission control subunit is used to control the bus protocol conversion device to transmit the encapsulation data to the debugging device while acquiring the circuit data on the target routing line.

6. The system according to claim 5, characterized in that The read-write control unit includes a mode control subunit; The mode control subunit is used to control the data sending mode of the bus protocol conversion device.

7. The system according to claim 6, characterized in that The read-write control unit includes a data drain control subunit; The data draining control subunit is used to control the draining of data in the storage medium according to the clock domain of the circuit structure corresponding to each of the target routings, and send the data to the bus protocol conversion device.

8. The system according to any one of claims 3 to 7, characterized in that: The bus protocol conversion device also includes a priority processing unit; Wherein, the priority processing unit is connected to the read-write control unit and connected to the storage medium in the chip data acquisition device; And, the priority processing unit is used to process the data read and write request of the read and write control unit and control the priority of data read and write; And, the bus protocol conversion device also includes a protocol conversion unit; Wherein, the protocol conversion unit is connected to the read-write control unit, and is connected to the debugging device via a bus based on the target protocol; Furthermore, the protocol conversion unit is used to receive a data write request from the debugging device through the bus, and send the encapsulated data to the debugging device according to the data write request.

9. A processor chip, characterized in that: The processor chip includes the chip signal analysis system as described in any one of claims 2-8.

10. An electronic device, characterized in that: The electronic device comprises the processor chip as claimed in claim 9.

Citation Information

Patent Citations

  • USB communication system of field excitation controller based on DSP chip, and operation method thereof

    CN101315555A

  • Protocol converter for FlexRay bus and PC104 bus

    CN101969393A

  • Function verification method and platform for DDR3 SDRAM (double data rate 3 synchronous dynamic random access memory) controller

    CN105654993A

  • SRIO protocol-based data storage and rapid downloading method

    CN112562121A

  • Data processing system, method, equipment and medium

    CN115587058A