CN117009185A - Bus monitoring method, device, system on chip and equipment - Google Patents
Bus monitoring method, device, system on chip and equipment Download PDFInfo
- Publication number
- CN117009185A CN117009185A CN202311181988.1A CN202311181988A CN117009185A CN 117009185 A CN117009185 A CN 117009185A CN 202311181988 A CN202311181988 A CN 202311181988A CN 117009185 A CN117009185 A CN 117009185A
- Authority
- CN
- China
- Prior art keywords
- bus
- target
- information
- monitoring
- chip
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 290
- 238000000034 method Methods 0.000 title claims abstract description 105
- 238000001914 filtration Methods 0.000 claims description 34
- 239000000284 extract Substances 0.000 claims description 27
- 230000001360 synchronised effect Effects 0.000 claims description 14
- 230000004044 response Effects 0.000 claims description 9
- 238000012545 processing Methods 0.000 claims description 7
- 238000005516 engineering process Methods 0.000 abstract description 16
- 230000006854 communication Effects 0.000 description 19
- 238000004891 communication Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000002093 peripheral effect Effects 0.000 description 4
- 238000013500 data storage Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 238000012216 screening Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000013024 troubleshooting Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3027—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/76—Architectures of general purpose stored program computers
- G06F15/78—Architectures of general purpose stored program computers comprising a single central processing unit
- G06F15/7807—System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Quality & Reliability (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Debugging And Monitoring (AREA)
Abstract
本申请提供一种总线监测方法、装置、片上系统及设备,应用于计算机技术领域,该方法应用于包括控制单元和总线监测单元的片上系统,控制单元输出选通指令,总线监测单元根据选通指令在多路总线中确定监测的一路目标总线并获取目标总线的目标总线信号,本方法只对多路总线中的一路目标总线进行监测,与现有技术中对芯片内部多路总线的所有总线信息进行监测的方法相比,可以有效降低总线信息的数据量,进而降低总线监测的逻辑开销以及总线监测单元的功耗,进而满足实际的总线监测需求。
This application provides a bus monitoring method, device, on-chip system and equipment, which are applied in the field of computer technology. The method is applied to an on-chip system including a control unit and a bus monitoring unit. The control unit outputs a gating instruction, and the bus monitoring unit outputs a gating instruction according to the gating. The instruction determines a target bus to be monitored in the multi-channel bus and obtains the target bus signal of the target bus. This method only monitors one target bus in the multi-channel bus, unlike the existing technology that monitors all buses of the multi-channel bus inside the chip. Compared with the method of monitoring information, it can effectively reduce the data volume of bus information, thereby reducing the logic overhead of bus monitoring and the power consumption of the bus monitoring unit, thereby meeting actual bus monitoring needs.
Description
技术领域Technical field
本申请涉及计算机技术领域,具体涉及一种总线监测方法、装置、片上系统及设备。This application relates to the field of computer technology, and specifically to a bus monitoring method, device, on-chip system and equipment.
背景技术Background technique
图1所示为现有技术中一种典型的SoC(System on Chip,片上系统)芯片的结构示意图,SoC芯片包括处理器101以及多个功能单元,比如存储控制器102、外设控制器103以及多媒体控制器104,各单元之间通过总线105连接。处理器101与各功能单元以及各功能单元相互之间均可通过总线105来实现通信。Figure 1 shows a schematic structural diagram of a typical SoC (System on Chip) chip in the prior art. The SoC chip includes a processor 101 and multiple functional units, such as a storage controller 102 and a peripheral controller 103. And the multimedia controller 104, each unit is connected through a bus 105. The processor 101 can communicate with each functional unit and each functional unit with each other through the bus 105 .
而随着SoC芯片集成度不断提高,对于芯片内总线进行监测的需求也越来越强烈,因此,如何获取芯片内总线通信过程中的总线信号以对总线进行监测,成为本领域技术人员亟需解决的技术问题。As the integration level of SoC chips continues to increase, the demand for monitoring the bus within the chip is becoming stronger and stronger. Therefore, how to obtain the bus signals during the bus communication process within the chip to monitor the bus has become an urgent need for those skilled in the field. Technical issues resolved.
发明内容Contents of the invention
有鉴于此,本申请致力于提供一种总线监测方法、装置、片上系统及设备,能够获取总线通信过程中的总线信号,进而实现对总线的监测。In view of this, this application is committed to providing a bus monitoring method, device, on-chip system and equipment, which can obtain the bus signal during the bus communication process, and thereby realize the monitoring of the bus.
第一方面,本申请提供一种总线监测方法,应用于片上系统,所述片上系统包括控制单元和总线监测单元,所述方法包括如下由所述总线监测单元执行的步骤:接收所述控制单元发送的选通指令,所述选通指令用于指示多路总线中需要监测的目标总线;根据所述选通指令在多路总线中确定监测的一路目标总线,并获取所述目标总线的目标总线信号。In a first aspect, this application provides a bus monitoring method, which is applied to a system-on-chip. The system-on-chip includes a control unit and a bus monitoring unit. The method includes the following steps performed by the bus monitoring unit: receiving the control unit The gating instruction is sent, and the gating instruction is used to indicate the target bus that needs to be monitored in the multi-channel bus; according to the gating instruction, a target bus to be monitored in the multi-channel bus is determined, and the target of the target bus is obtained. bus signal.
基于上述内容,通过本申请提供的总线监测方法,控制单元输出选通指令,总线监测单元根据选通指令在多路总线中确定监测的一路目标总线并获取目标总线的目标总线信号。本方法只对多路总线中的一路目标总线进行监测,与现有技术中对芯片内部多路总线的所有总线信息进行监测的方法相比,可以有效降低总线信息的数据量,进而降低总线监测的逻辑开销以及总线监测单元的功耗,进而满足实际的总线监测需求。Based on the above content, through the bus monitoring method provided by this application, the control unit outputs the gating instruction, and the bus monitoring unit determines a target bus to be monitored in the multi-channel bus according to the gating instruction and obtains the target bus signal of the target bus. This method only monitors one target bus in the multi-channel bus. Compared with the existing method of monitoring all bus information of the multi-channel bus inside the chip, this method can effectively reduce the data amount of bus information, thereby reducing bus monitoring. The logic overhead and the power consumption of the bus monitoring unit are reduced to meet the actual bus monitoring needs.
在一种可能的实施方式中,本发明第一方面提供的总线监测方法还包括:接收所述控制单元发送的监测使能指令;响应于所述监测使能指令,解析所述目标总线信号得到总线请求,并提取所述总线请求中的目标总线信息;按照预设追踪条件提取所述目标总线信息中的目标数据。In a possible implementation, the bus monitoring method provided by the first aspect of the present invention also includes: receiving a monitoring enable instruction sent by the control unit; in response to the monitoring enable instruction, parsing the target bus signal to obtain A bus request is made, and target bus information in the bus request is extracted; target data in the target bus information is extracted according to preset tracking conditions.
在本申请中,总线监测单元对总线请求进行初步提取,得到目标总线信息,在提取目标总线信息之后,基于预设追踪条件进一步提取总线监测所需的目标数据,经过上述两次的数据过滤选择,所得目标数据的数据量可以远小于总线请求的总数据量,与现有技术中获取全部总线信息进行监测的方法相比,可以有效降低总线信息的数据量,进而降低总线监测的逻辑开销,并且,目标总线信息的获取受监测使能指令的控制,并非时刻获取目标总线信息,通过监测使能指令可以控制总线监测单元的运行时长,有助于降低总线监测单元的功耗,进而满足实际的总线监测需求。In this application, the bus monitoring unit initially extracts the bus request and obtains the target bus information. After extracting the target bus information, it further extracts the target data required for bus monitoring based on the preset tracking conditions. After the above two data filtering selections , the data volume of the obtained target data can be much smaller than the total data volume requested by the bus. Compared with the method of obtaining all bus information for monitoring in the existing technology, the data volume of the bus information can be effectively reduced, thereby reducing the logic overhead of bus monitoring. In addition, the acquisition of target bus information is controlled by the monitoring enable command. The target bus information is not acquired at all times. The running time of the bus monitoring unit can be controlled through the monitoring enable command, which helps to reduce the power consumption of the bus monitoring unit and thus meets the actual needs. bus monitoring requirements.
在一种可能的实施方式中,提取所述总线请求中的目标总线信息,包括:确定所述总线请求是否符合所述目标总线所支持的总线协议;若所述总线请求符合所述目标总线所支持的总线协议,按照预设过滤条件提取所述总线请求中的目标总线信息;其中,所述预设过滤条件基于总线请求的数据量、总线请求对应的地址以及总线请求对应的识别标识中的至少一项设置。In a possible implementation, extracting the target bus information in the bus request includes: determining whether the bus request complies with the bus protocol supported by the target bus; if the bus request complies with the bus protocol supported by the target bus, The supported bus protocol extracts the target bus information in the bus request according to the preset filtering conditions; wherein the preset filtering conditions are based on the data volume of the bus request, the address corresponding to the bus request, and the identification mark corresponding to the bus request. At least one setting.
在本申请中,结合实际监测需求,提供预设过滤条件的可选设置方式,同时,在提取目标总线信息前,判断总线请求是否符合目标总线所支持的总线协议,只有在总线请求符合目标总线所支持的总线协议的情况下,才会进一步按照预设过滤条件提取目标总线信息,基于此,可以有效过滤不符合目标总线所支持的总线协议的总线请求,同时,结合预设过滤条件对符合目标总线所支持的总线协议的总线请求中的目标总线信息进行提取,使得最终得到的目标总线信息不仅有效而且数据量较少,可以有效降低总线信息的数据量,进而降低总线监测的逻辑开销。In this application, combined with the actual monitoring needs, an optional setting method of preset filtering conditions is provided. At the same time, before extracting the target bus information, it is judged whether the bus request conforms to the bus protocol supported by the target bus. Only when the bus request conforms to the target bus Only when the bus protocol is supported by the target bus, the target bus information will be further extracted according to the preset filtering conditions. Based on this, bus requests that do not comply with the bus protocol supported by the target bus can be effectively filtered. At the same time, combined with the preset filtering conditions, the target bus information will be extracted. The target bus information in the bus request of the bus protocol supported by the target bus is extracted, so that the final target bus information is not only effective but also has a small amount of data, which can effectively reduce the data amount of the bus information, thereby reducing the logic overhead of bus monitoring.
在一种可能的实施方式中,所述按照预设追踪条件提取所述目标总线信息中的目标数据,包括:确定所述目标总线信息中是否包括表征所述目标总线信息有效的指示信息;若包括所述指示信息,按照预设追踪条件提取所述目标总线信息中的目标数据。In a possible implementation, extracting target data in the target bus information according to preset tracking conditions includes: determining whether the target bus information includes indication information indicating that the target bus information is valid; if Including the instruction information, the target data in the target bus information is extracted according to the preset tracking conditions.
在本申请中,进一步对目标总线信息是否有效进行判断,只有在目标总线信息有效的情况下才会按照预设追踪条件提取目标数据,可以确保所提取的目标数据的有效性,进而提高总线监测结果的可信度。In this application, it is further judged whether the target bus information is valid. Only when the target bus information is valid, the target data will be extracted according to the preset tracking conditions, which can ensure the validity of the extracted target data and thereby improve bus monitoring. The credibility of the results.
在一种可能的实施方式中,在按照预设追踪条件提取所述目标总线信息中的目标数据之前,所述方法还包括:获取事务特征,并基于所述事务特征设置所述预设追踪条件;其中,所述事务特征包括总线请求的地址、总线请求的识别标识、总线信息中的数据内容以及总线请求的响应内容中的至少一项。In a possible implementation, before extracting the target data in the target bus information according to the preset tracking conditions, the method further includes: obtaining transaction characteristics, and setting the preset tracing conditions based on the transaction characteristics. ; Wherein, the transaction characteristics include at least one of the address of the bus request, the identification of the bus request, the data content in the bus information, and the response content of the bus request.
在本申请提供的监测方法中,可以根据实际监测需求选择事务特征,进而结合事务特征设置前述预设追踪条件,确保按照预设追踪条件提取的目标数据满足总线监测的实际需求,同时,还可以通过预设追踪条件实现对目标数据的筛选和过滤,有助于减少目标数据的数据量,进而降低总线监测的逻辑开销,提高监测效率。In the monitoring method provided by this application, transaction characteristics can be selected according to actual monitoring requirements, and then the aforementioned preset tracking conditions can be set based on the transaction characteristics to ensure that the target data extracted according to the preset tracking conditions meets the actual needs of bus monitoring. At the same time, it can also Screening and filtering target data through preset tracking conditions helps reduce the amount of target data, thereby reducing the logic overhead of bus monitoring and improving monitoring efficiency.
在一种可能的实施方式中,本发明第一方面提供的总线监测方法还包括:接收所述控制单元发送的存储指令;其中,所述存储指令用于指示将所述目标数据存储至目标存储空间,所述目标存储空间包括所述片上系统内部的存储空间或所述片上系统外部的存储空间;基于所述存储指令,将所述目标数据存储至所述目标存储空间。In a possible implementation, the bus monitoring method provided by the first aspect of the present invention further includes: receiving a storage instruction sent by the control unit; wherein the storage instruction is used to instruct the target data to be stored in the target storage. Space, the target storage space includes a storage space inside the system-on-chip or a storage space outside the system-on-chip; based on the storage instruction, the target data is stored in the target storage space.
在本申请中,提供多种存储选择,可以根据存储指令选择存储目标数据的存储空间,在目标数据的数据量较小的情况下,可以将目标数据存储于片上系统内部的存储空间,与现有技术中单纯将总线信息存储于片上系统外部存储空间的方式相比,由于片上系统的内部存储空间的时钟频率基本可以和目标总线的时钟频率保持同步,可以有效避免目标数据的溢出,确保数据的完整性;而在片上系统内部的存储空间用尽的情况下,还可以直接将目标数据存储于片上系统外部的存储空间,从而实现海量数据的存储,有效避免目标数据的丢失、遗漏。In this application, a variety of storage options are provided. The storage space to store the target data can be selected according to the storage instruction. When the amount of target data is small, the target data can be stored in the storage space inside the on-chip system, which is consistent with the current situation. Compared with the existing technology that simply stores bus information in the external storage space of the on-chip system, since the clock frequency of the internal storage space of the on-chip system can basically be synchronized with the clock frequency of the target bus, it can effectively avoid the overflow of target data and ensure that the data Integrity; when the internal storage space of the system-on-chip is exhausted, the target data can also be directly stored in the storage space outside the system-on-chip, thereby realizing the storage of massive data and effectively avoiding the loss and omission of target data.
在一种可能的实施方式中,获取所述目标总线的目标总线信号,包括:对各所述总线的总线信号分别进行时钟同步处理,得到相应的与所述总线监测单元的时钟频率同步的同步总线信号;获取所述选通指令指示的目标总线的同步总线信号,得到目标总线信号。In a possible implementation, obtaining the target bus signal of the target bus includes: performing clock synchronization processing on the bus signals of each of the buses to obtain corresponding synchronization synchronized with the clock frequency of the bus monitoring unit. Bus signal; obtain the synchronous bus signal of the target bus indicated by the strobe instruction to obtain the target bus signal.
在本申请提供的监测方法中,对各路总线的总线信号进行时钟同步处理,并根据选通指令在与总线监测单元的时钟频率同步的各同步总线信号中获取目标总线信号,能够及时、同步的采集到目标总线的总线信号的变化,避免总线信息丢失。In the monitoring method provided by this application, clock synchronization processing is performed on the bus signals of each bus, and the target bus signal is obtained from each synchronous bus signal synchronized with the clock frequency of the bus monitoring unit according to the gating instruction, which can be timely and synchronized. The changes of the bus signal of the target bus are collected to avoid the loss of bus information.
在一种可能的实施方式中,本发明第一方面提供的总线监测方法还包括:统计所述目标总线信息中用于表征所述目标总线运行性能的参考信息,所述参考信息包括各类型请求的数量和总线请求之间的延迟时长中的至少一种。In a possible implementation, the bus monitoring method provided by the first aspect of the present invention also includes: counting reference information used to characterize the operating performance of the target bus in the target bus information, where the reference information includes various types of requests At least one of the number of and the length of delay between bus requests.
在本申请提供的监测方法中,统计表征目标总线运行性能的参考信息,基于所得参考信息可以分析目标总线的运行性能,为改善目标总线的信息传输效率以及整个片上系统的运行性能提供参考依据。In the monitoring method provided by this application, the reference information that characterizes the operating performance of the target bus is statistically analyzed. Based on the obtained reference information, the operating performance of the target bus can be analyzed, providing a reference basis for improving the information transmission efficiency of the target bus and the operating performance of the entire on-chip system.
在一种可能的实施方式中,统计所述目标总线信息中用于表征所述目标总线运行性能的参考信息,包括:响应于统计使能指令,对预设时长内提取的多个目标总线信息中的参考信息进行统计。In a possible implementation, counting the reference information used to characterize the operating performance of the target bus in the target bus information includes: responding to a statistics enable instruction, collecting multiple target bus information extracted within a preset time period. Reference information in the statistics.
在本申请中,对参考信息的获取时长进行限定,通过设置预设时长可以选择参考信息的数据量,进而满足不同总线监测需求。In this application, the acquisition time of the reference information is limited, and the data amount of the reference information can be selected by setting the preset time to meet different bus monitoring needs.
在一种可能的实施方式中,所述对预设时长内提取的多个目标总线信息中的参考信息进行统计,包括:分别确定所述预设时长内提取的各所述目标总线信息中是否包括表征目标总线信息有效的指示信息;对包括所述指示信息的目标总线信息中的参考信息进行统计。In a possible implementation, the counting of reference information in a plurality of target bus information extracted within a preset time period includes: respectively determining whether each of the target bus information extracted within the preset time period is Including indication information indicating that the target bus information is valid; and performing statistics on reference information in the target bus information including the indication information.
在本申请中,在提取参考信息前,对目标总线信息是否有效进行判断,有效过滤无效的总线信息的干扰,确保所提取的参考信息均来自于有效的目标总线信息,参考信息的可信度高,有助于提高总线性能分析结果的准确度。In this application, before extracting reference information, it is judged whether the target bus information is valid, and the interference of invalid bus information is effectively filtered to ensure that the extracted reference information comes from valid target bus information, and the credibility of the reference information is High, which helps to improve the accuracy of bus performance analysis results.
第二方面,本发明提供一种总线监测方法,应用于片上系统,所述片上系统包括控制单元和总线监测单元,所述总线监测方法包括如下由所述控制单元执行的步骤:发送选通指令,所述选通指令用于指示所述总线监测单元在多路总线中确定监测的一路目标总线,并获取所述目标总线的目标总线信号。In a second aspect, the present invention provides a bus monitoring method, which is applied to an on-chip system. The on-chip system includes a control unit and a bus monitoring unit. The bus monitoring method includes the following steps performed by the control unit: sending a strobe instruction. , the strobe instruction is used to instruct the bus monitoring unit to determine a target bus to be monitored in the multi-channel bus, and obtain the target bus signal of the target bus.
在本申请中,控制单元输出选通指令,总线监测单元根据选通指令在多路总线中确定监测的一路目标总线并获取目标总线的目标总线信号,本方法只对多路总线中的一路目标总线进行监测,与现有技术中对芯片内部多路总线的所有总线信息进行监测的方法相比,可以有效降低总线信息的数据量,进而降低总线监测的逻辑开销以及总线监测单元的功耗,进而满足实际的总线监测需求。In this application, the control unit outputs the gating instruction, and the bus monitoring unit determines a target bus to be monitored in the multi-channel bus according to the gating instruction and obtains the target bus signal of the target bus. This method only detects one target bus in the multi-channel bus. Compared with the existing method of monitoring all the bus information of the multi-channel bus inside the chip, the data volume of the bus information can be effectively reduced, thereby reducing the logic overhead of bus monitoring and the power consumption of the bus monitoring unit. To meet actual bus monitoring needs.
在一种可能的实施方式中,本申请第二方面提供的总线监测方法还包括:发送监测使能指令,所述监测使能指令用于控制所述总线监测单元解析所述目标总线信号得到总线请求,提取所述总线请求中的目标总线信息,并按照预设追踪条件提取所述目标总线信息中的目标数据。In a possible implementation, the bus monitoring method provided in the second aspect of this application further includes: sending a monitoring enable instruction, the monitoring enable instruction being used to control the bus monitoring unit to parse the target bus signal to obtain the bus request, extract the target bus information in the bus request, and extract the target data in the target bus information according to the preset tracking conditions.
在本申请中,总线监测单元对总线请求进行初步提取,得到目标总线信息,在提取目标总线信息之后,基于预设追踪条件进一步提取总线监测所需的目标数据,经过上述两次的数据过滤选择,所得目标数据的数据量可以远小于总线请求的总数据量,与现有技术中获取全部总线信息进行监测的方法相比,可以有效降低总线信息的数据量,进而降低总线监测的逻辑开销。并且,通过监测使能指令控制总线监测单元提取目标数据的具体实现过程,并非时刻获取目标总线信息,可以控制总线监测单元的运行时长,有助于降低总线监测单元的功耗,进而满足实际的总线监测需求。In this application, the bus monitoring unit initially extracts the bus request and obtains the target bus information. After extracting the target bus information, it further extracts the target data required for bus monitoring based on the preset tracking conditions. After the above two data filtering selections , the data volume of the obtained target data can be much smaller than the total data volume requested by the bus. Compared with the method of obtaining all bus information for monitoring in the existing technology, the data volume of the bus information can be effectively reduced, thereby reducing the logic overhead of bus monitoring. In addition, the specific implementation process of controlling the bus monitoring unit to extract target data through the monitoring enable command is not to obtain the target bus information at all times. It can control the running time of the bus monitoring unit, which helps to reduce the power consumption of the bus monitoring unit and thus meets the actual requirements. Bus monitoring requirements.
在一种可能的实施方式中,本申请第二方面提供的总线监测方法还包括:发送事务特征,以使所述总线监测单元基于所述事务特征设置所述预设追踪条件;其中,所述事务特征包括请求的地址、请求的识别标识、总线信息中的数据内容以及请求的响应内容中的至少一项。In a possible implementation, the bus monitoring method provided in the second aspect of this application further includes: sending transaction characteristics so that the bus monitoring unit sets the preset tracking conditions based on the transaction characteristics; wherein, The transaction characteristics include at least one of the requested address, the requested identification, the data content in the bus information, and the requested response content.
在本申请提供的监测方法中,控制单元根据实际监测需求向总线监测单元发送事务特征,总线监测单元结合事务特征设置前述预设追踪条件,确保按照预设追踪条件提取的目标数据满足总线监测的实际需求,同时,还可以通过预设追踪条件实现对目标数据的筛选和过滤,有助于减少目标数据的数据量,进而降低总线监测的逻辑开销,提高监测效率。In the monitoring method provided by this application, the control unit sends transaction characteristics to the bus monitoring unit according to the actual monitoring requirements. The bus monitoring unit sets the aforementioned preset tracking conditions in combination with the transaction characteristics to ensure that the target data extracted according to the preset tracking conditions meets the bus monitoring requirements. According to actual needs, at the same time, target data can also be screened and filtered through preset tracking conditions, which helps to reduce the amount of target data, thereby reducing the logic overhead of bus monitoring and improving monitoring efficiency.
在一种可能的实施方式中,本申请第二方面提供的总线监测方法还包括:发送存储指令,所述存储指令用于指示所述总线监测单元将所述目标数据存储至所述片上系统内部的存储空间或所述片上系统外部的存储空间。In a possible implementation, the bus monitoring method provided in the second aspect of this application further includes: sending a storage instruction, the storage instruction being used to instruct the bus monitoring unit to store the target data into the on-chip system. storage space or storage space external to the system-on-chip.
在本申请中,控制单元通过存储指令实现目标数据的存储空间的选择,使得目标数据的存储更为灵活,能够满足不同的数据存储需求,在目标数据的数据量较小的情况下,可以将目标数据存储于片上系统内部的存储空间,与现有技术中单纯将总线信息存储于片上系统外部存储空间的方式相比,由于片上系统的内部存储空间的时钟频率基本可以和目标总线的时钟频率保持同步,可以有效避免目标数据的溢出,确保数据的完整性;而在目标数据的数据量较大的情况下,还可以直接将目标数据存储于片上系统外部的存储空间,从而实现海量数据的存储,有效避免目标数据的丢失、遗漏。In this application, the control unit realizes the selection of the storage space of the target data through storage instructions, making the storage of the target data more flexible and able to meet different data storage needs. When the amount of target data is small, the target data can be stored The target data is stored in the internal storage space of the on-chip system. Compared with the existing technology that simply stores bus information in the external storage space of the on-chip system, the clock frequency of the internal storage space of the on-chip system can basically be the same as the clock frequency of the target bus. Maintaining synchronization can effectively avoid overflow of target data and ensure data integrity; when the amount of target data is large, the target data can also be directly stored in the storage space outside the on-chip system, thereby realizing massive data storage. Storage, effectively avoiding the loss and omission of target data.
在一种可能的实施方式中,本申请第二方面提供的总线监测方法还包括:发送统计使能指令,所述统计使能指令用于控制所述总线监测单元统计所述目标总线信息中用于表征所述目标总线运行性能的参考信息。In a possible implementation, the bus monitoring method provided in the second aspect of the present application further includes: sending a statistics enable instruction, the statistics enable instruction being used to control the bus monitoring unit to count the target bus information. Reference information used to characterize the operating performance of the target bus.
在本申请中,控制单元通过统计使能指令对总线监测单元的运行进行控制,在需要分析总线运行性能时获取参考信息,为改善目标总线的信息传输效率以及整个片上系统的运行性能提供参考依据。In this application, the control unit controls the operation of the bus monitoring unit through statistical enable instructions, obtains reference information when it is necessary to analyze the bus operation performance, and provides a reference basis for improving the information transmission efficiency of the target bus and the operation performance of the entire on-chip system. .
在一种可能的实施方式中,所述总线监测单元中设置有用于控制时钟信号的时钟控制单元,本申请第二方面提供的总线监测方法,还包括:在未监测任何总线的情况下,控制所述时钟控制单元关闭所述总线监测单元的时钟信号。In a possible implementation, the bus monitoring unit is provided with a clock control unit for controlling clock signals. The bus monitoring method provided in the second aspect of this application also includes: when no bus is monitored, control The clock control unit turns off the clock signal of the bus monitoring unit.
在本申请中,控制单元控制总线监测单元中的时钟单元的运行状态,在不需要对任何总线进行监测的情况下,控制该时钟单元关闭,总线监测单元中的各构成单元均停止运行,进而可以有效降低总线监测单元的整体功耗。In this application, the control unit controls the operating status of the clock unit in the bus monitoring unit. When no bus is required to be monitored, the control unit controls the clock unit to be closed, and each component unit in the bus monitoring unit stops running, and then It can effectively reduce the overall power consumption of the bus monitoring unit.
第三方面,本发明提供一种总线监测单元,应用于片上系统,所述片上系统包括控制单元和所述总线监测单元,其中,所述总线监测单元执行如本发明第一方面任一项所述的总线监测方法。In a third aspect, the present invention provides a bus monitoring unit applied to an on-chip system. The on-chip system includes a control unit and the bus monitoring unit, wherein the bus monitoring unit executes any one of the steps of the first aspect of the present invention. The bus monitoring method described above.
第四方面,本发明提供一种控制单元,应用于片上系统,所述片上系统包括总线监测单元和所述控制单元,其中,所述控制单元执行如本发明第二方面任一项所述的总线监测方法。In a fourth aspect, the present invention provides a control unit applied to a system-on-chip. The system-on-chip includes a bus monitoring unit and the control unit, wherein the control unit executes any one of the steps described in the second aspect of the present invention. Bus monitoring methods.
第五方面,本发明提供一种片上系统,包括:处理器、总线、至少一个功能单元、如本发明第四方面所述的控制单元以及如本发明第三方面所述的总线监测单元,其中,所述处理器通过所述总线分别与各所述功能单元通信连接;所述总线监测单元分别与所述控制单元以及所述总线相连。In a fifth aspect, the present invention provides a system on a chip, including: a processor, a bus, at least one functional unit, a control unit as described in the fourth aspect of the present invention, and a bus monitoring unit as described in the third aspect of the present invention, wherein , the processor is communicatively connected to each of the functional units through the bus; the bus monitoring unit is connected to the control unit and the bus respectively.
第六方面,本发明提供一种计算机设备,包括如本发明第五方面所述的片上系统。In a sixth aspect, the present invention provides a computer device, including the system-on-chip according to the fifth aspect of the present invention.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are: For some embodiments of the present invention, those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts.
图1是现有技术中一种SoC芯片的结构示意图。Figure 1 is a schematic structural diagram of a SoC chip in the prior art.
图2是本发明实施例提供的一种片上系统的结构示意图。FIG. 2 is a schematic structural diagram of a system-on-chip provided by an embodiment of the present invention.
图3是本发明实施例提供的一种总线监测方法的流程示意图。Figure 3 is a schematic flow chart of a bus monitoring method provided by an embodiment of the present invention.
图4是本发明实施例提供的另一种总线监测方法的流程示意图。Figure 4 is a schematic flow chart of another bus monitoring method provided by an embodiment of the present invention.
图5是本发明实施例提供的再一种总线监测方法的流程示意图。FIG. 5 is a schematic flowchart of yet another bus monitoring method provided by an embodiment of the present invention.
图6是本发明实施例提供的又一种总线监测方法的流程示意图。FIG. 6 is a schematic flowchart of another bus monitoring method provided by an embodiment of the present invention.
图7是本发明实施例提供的另一种片上系统的结构示意图。FIG. 7 is a schematic structural diagram of another system-on-chip provided by an embodiment of the present invention.
图8是本发明实施例提供的再一种片上系统的结构示意图。FIG. 8 is a schematic structural diagram of yet another system-on-chip provided by an embodiment of the present invention.
图9是本发明实施例提供的又一种片上系统的结构示意图。FIG. 9 is a schematic structural diagram of another system-on-chip provided by an embodiment of the present invention.
图10是本发明实施例提供的又一种片上系统的结构示意图。FIG. 10 is a schematic structural diagram of another system-on-chip provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
片上系统(System on Chip,SoC)是指将一个完整的计算机系统集成在一块芯片上的集成电路。片上系统通常包含处理器、总线、输入输出接口以及多个功能模块,以实现一个独立的功能系统,其中,片上系统内的功能模块包括但不限于存储控制器、外设控制器以及多媒体控制器。System on Chip (SoC) refers to an integrated circuit that integrates a complete computer system on a chip. A system-on-chip usually includes a processor, bus, input and output interfaces, and multiple functional modules to implement an independent functional system. Among them, the functional modules in the system-on-chip include but are not limited to storage controllers, peripheral controllers, and multimedia controllers. .
图1所示为现有技术中一种典型的片上系统的结构示意图,系统中包括处理器101以及多个功能单元,比如存储控制器102、外设控制器103以及多媒体控制器104,各单元之间通过总线105连接。处理器101与各功能单元以及各功能单元相互之间均可通过总线105来实现通信。Figure 1 shows a schematic structural diagram of a typical system-on-chip in the prior art. The system includes a processor 101 and multiple functional units, such as a storage controller 102, a peripheral controller 103 and a multimedia controller 104. Each unit are connected via bus 105. The processor 101 can communicate with each functional unit and each functional unit with each other through the bus 105 .
片上系统的功能可以根据应用需求进行定制和扩展。不同的应用领域,如移动设备、嵌入式系统、物联网、网络设备等,对片上系统的功能和性能要求各不相同,因此片上系统可以根据应用需求进行个性化设计和优化,满足不同应用场景的需求,计算机技术的发展和实际应用需求共同推动片上系统的集成度不断提高,芯片内各构成单元之间通过总线传递的信息量迅速增多,并且,通过总线信号可以及时了解总线系统、各构成单元甚至整个片上系统的运行情况,对于优化片上系统设计、故障排除等实际工作都具有重要意义。System-on-chip functionality can be customized and expanded based on application needs. Different application fields, such as mobile devices, embedded systems, Internet of Things, network equipment, etc., have different functional and performance requirements for on-chip systems. Therefore, on-chip systems can be personalized and optimized according to application requirements to meet different application scenarios. The development of computer technology and practical application requirements have jointly promoted the continuous improvement of the integration of on-chip systems. The amount of information transmitted through the bus between the various components in the chip has increased rapidly, and the bus system and each component can be understood in time through the bus signals. The operation of the unit or even the entire system-on-chip is of great significance to practical work such as optimizing system-on-chip design and troubleshooting.
因此,如何获取芯片内总线通信过程中的总线信号以对总线进行监测,成为本领域技术人员亟需解决的技术问题。Therefore, how to obtain the bus signal during the bus communication process within the chip to monitor the bus has become an urgent technical problem that needs to be solved by those skilled in the art.
为解决这一问题,本发明提供一种片上系统,结合图2所示,本发明提供的片上系统包括:处理器101、总线105、至少一个功能单元(图中以存储控制器102、外设控制器103以及多媒体控制器104为例示出)、控制单元201以及总线监测单元202。处理器101通过总线105分别与各功能单元通信连接,并且,各功能单元之间还可以根据自身的通信需求通过总线105相互通信连接。To solve this problem, the present invention provides an on-chip system. As shown in FIG. 2 , the on-chip system provided by the present invention includes: a processor 101, a bus 105, and at least one functional unit (shown in the figure as a memory controller 102, a peripheral The controller 103 and the multimedia controller 104 are shown as examples), the control unit 201 and the bus monitoring unit 202 . The processor 101 communicates with each functional unit through the bus 105, and each functional unit can also communicate with each other through the bus 105 according to its own communication requirements.
需要说明的是,图2所示总线105仅为处理器101与各功能单元之间连接关系的简单示意,并非片上系统内部总线105的实际布置,在实际应用中,片上系统内部的总线包括多路,总线类型也可以包括多种,通过不同类型的多路总线搭建片上系统内部的通信网络,实现系统内部的信息传递。对于片上系统内部总线的具体布置,可以参照相关技术实现,此处不再复述。It should be noted that the bus 105 shown in Figure 2 is only a simple illustration of the connection relationship between the processor 101 and each functional unit, and is not the actual layout of the internal bus 105 of the on-chip system. In practical applications, the internal bus of the on-chip system includes multiple The bus type can also include multiple types. The internal communication network of the on-chip system is built through different types of multi-channel buses to realize the information transfer within the system. For the specific layout of the internal bus of the on-chip system, it can be implemented with reference to related technologies and will not be repeated here.
进一步的,总线监测单元202分别与控制单元201以及总线105连接,如前所述,总线105包括多路总线,因此,在实际应用中总线监测单元202分别与片上系统内部的各路总线连接。需要说明的是,本实施例以及后续各个实施例中述及的总线监测单元202与总线连接,主要指二者之间建立物理连接,至于总线监测单元202具体获取哪一路总线的总线信号,即对哪一路总线进行监测,需要结合实际监测需求确定。Further, the bus monitoring unit 202 is connected to the control unit 201 and the bus 105 respectively. As mentioned above, the bus 105 includes multiple buses. Therefore, in practical applications, the bus monitoring unit 202 is connected to each bus inside the on-chip system. It should be noted that the connection between the bus monitoring unit 202 and the bus mentioned in this embodiment and subsequent embodiments mainly refers to the establishment of a physical connection between the two. As for which bus signal the bus monitoring unit 202 specifically acquires, that is, Which bus to monitor needs to be determined based on actual monitoring requirements.
基于上述系统构成,控制单元201输出选通指令,总线监测单元202根据选通指令在多路总线中确定需要监测的一路目标总线并获取目标总线的目标总线信号。本系统只对多路总线中的一路目标总线进行监测,与现有技术中对芯片内部多路总线的所有总线信息进行监测的方法相比,可以有效降低总线信息的数据量,进而降低总线监测的逻辑开销以及总线监测单元的功耗,满足实际的总线监测需求。Based on the above system configuration, the control unit 201 outputs a gating instruction, and the bus monitoring unit 202 determines a target bus that needs to be monitored in the multi-channel bus according to the gating instruction and obtains the target bus signal of the target bus. This system only monitors one target bus in the multi-channel bus. Compared with the existing method of monitoring all bus information of the multi-channel bus inside the chip, this system can effectively reduce the data volume of the bus information, thereby reducing the bus monitoring The logic overhead and the power consumption of the bus monitoring unit meet the actual bus monitoring needs.
进一步的,本发明提供一种总线监测方法,应用于上述实施例提供的片上系统,结合图3所示,本实施例提供的总线监测方法的流程,可以包括如下步骤。Further, the present invention provides a bus monitoring method, which is applied to the system-on-chip provided in the above embodiment. As shown in FIG. 3 , the flow of the bus monitoring method provided in this embodiment may include the following steps.
S100、控制单元发送选通指令。S100. The control unit sends a strobe command.
如前所述,总线监测单元分别与片上系统内的各路总线连接,选通指令用于指示多路总线中需要监测的一路目标总线,目标总线可以是各路总线中的任意一路,本发明对于目标总线的选择不做限定,在实际应用中可结合实际的监测需求确定。As mentioned above, the bus monitoring unit is connected to each bus in the on-chip system, and the strobe instruction is used to indicate a target bus that needs to be monitored among the multiple buses. The target bus can be any one of the buses. The present invention There is no restriction on the selection of the target bus, and it can be determined in combination with actual monitoring requirements in actual applications.
在一种可能的实施方式中,控制单元设置有多个寄存器,各寄存器的输出信号线作为控制单元的通信接口与总线监测单元相连,控制单元通过配置各个寄存器即可实现选通指令等控制指令以及其他配置信息的输出。In a possible implementation, the control unit is provided with multiple registers, and the output signal line of each register is connected to the bus monitoring unit as a communication interface of the control unit. The control unit can implement control instructions such as strobe instructions by configuring each register. and the output of other configuration information.
S110、总线监测单元接收选通指令。S110. The bus monitoring unit receives the strobe instruction.
总线监测单元与控制单元的通信接口相连,按照与控制单元之间预定义的通信协议接收控制单元输出的选通指令。对于总线监测单元与控制单元之间通信协议的选取,可参照相关技术实现,本发明对此不做限定。The bus monitoring unit is connected to the communication interface of the control unit and receives the strobe instructions output by the control unit according to a predefined communication protocol with the control unit. The selection of the communication protocol between the bus monitoring unit and the control unit can be implemented with reference to related technologies, and the present invention does not limit this.
S120、总线监测单元根据选通指令在多路总线中确定监测的一路目标总线,并获取目标总线的目标总线信号。S120. The bus monitoring unit determines a target bus to be monitored in the multi-channel bus according to the strobe instruction, and obtains the target bus signal of the target bus.
在一种可能的实施方式中,总线监测单元包括选择同步单元,选择同步单元还可以进一步划分为选择单元和同步单元,其中,同步单元输入各路总线的总线信号,并将各路总线信号分别从各路总线信号所对应的时钟域同步到总线监测单元所在时钟域,得到同步总线信号,选择单元则根据选通指令在多路总线中确定需要监测的目标总线,并进一步选择目标总线的同步总线信号,得到目标总线信号。In a possible implementation, the bus monitoring unit includes a selection synchronization unit. The selection synchronization unit can be further divided into a selection unit and a synchronization unit. The synchronization unit inputs the bus signals of each bus and separates the bus signals from each bus. Synchronize the clock domain corresponding to each bus signal to the clock domain where the bus monitoring unit is located to obtain the synchronous bus signal. The selection unit determines the target bus that needs to be monitored in the multi-channel bus according to the gating instruction, and further selects the synchronization of the target bus. Bus signal to get the target bus signal.
具体的,同步单元在输入各路总线的总线信号后,对于任一路总线信号的跨时钟域同步处理可以分为两种情况:一种是总线所在时钟域和总线监测单元所在时钟域一致,即总线的时钟频率与总线监测单元的时钟频率一样,此种情况下,同步单元可以采用两级寄存器搭建,构成两级同步单元,将总线中的每一根总线信号输入到两级同步单元的数据输入端,最终由同步单元的输出端输出同步总线信号。另一种情况是总线所在时钟域时钟比和总线监测单元所在时钟域时钟慢,即总线的时钟频率小于总线监测单元的时钟频率,此种情况下,同步单元可以基于格雷码的异步先进先出缓存器(First In First Out,FIFO)来进行同步。至于上述内容中述及的两级同步单元以及基于格雷码的异步先进先出缓存器的具体实现,可参照相关技术,此处不再详述。Specifically, after the synchronization unit inputs the bus signals of each bus, the cross-clock domain synchronization processing of any bus signal can be divided into two situations: one is that the clock domain where the bus is located is consistent with the clock domain where the bus monitoring unit is located, that is, The clock frequency of the bus is the same as the clock frequency of the bus monitoring unit. In this case, the synchronization unit can be built with two-level registers to form a two-level synchronization unit, and each bus signal in the bus is input to the data of the two-level synchronization unit. At the input end, the synchronization bus signal is finally output from the output end of the synchronization unit. Another situation is that the clock domain clock where the bus is located is slower than the clock domain clock where the bus monitoring unit is located, that is, the clock frequency of the bus is lower than the clock frequency of the bus monitoring unit. In this case, the synchronization unit can be based on Gray code asynchronous first-in-first-out buffer (First In First Out, FIFO) for synchronization. As for the specific implementation of the two-level synchronization unit and the asynchronous first-in-first-out buffer based on Gray code mentioned in the above content, please refer to the relevant technology and will not be detailed here.
在实际应用中,总线监测单元的时钟频率应大于或等于片上系统内各总线的时钟频率,保证能够采样到总线信号的变化,确保总线信号不丢失。In practical applications, the clock frequency of the bus monitoring unit should be greater than or equal to the clock frequency of each bus in the on-chip system to ensure that changes in the bus signal can be sampled and that the bus signal is not lost.
选择单元包括多路信号输入端和一路信号输出端,在同一时刻,至多只有一路信号输入端与信号输出端连通。在实际应用中,选择单元的信号输入端连接同步单元的输出端,以实现接收各路总线的同步总线信号,当然,选择单元各信号输入端所接收的同步总线信号互不相同。选择单元在接收到选通指令之后,根据选通指令确定需要监测的一路目标总线,并控制目标总线所对应的信号收入端与信号输出端连通,从而实现目标总线的同步总线信号的采集,得到目标总线信号。当然,在未收到选通指令的情况下,任一信号输入端均不与信号输出端连通。The selection unit includes multiple signal input terminals and one signal output terminal. At most, only one signal input terminal is connected to the signal output terminal at the same time. In practical applications, the signal input end of the selection unit is connected to the output end of the synchronization unit to receive the synchronization bus signals of each bus. Of course, the synchronization bus signals received by each signal input end of the selection unit are different from each other. After receiving the gating instruction, the selection unit determines a target bus that needs to be monitored according to the gating instruction, and controls the signal input terminal corresponding to the target bus to connect with the signal output terminal, thereby realizing the collection of the synchronous bus signal of the target bus, and obtains Target bus signal. Of course, without receiving the strobe command, any signal input terminal is not connected to the signal output terminal.
在一种可能的实施方式中,选择单元可以基于多路选择器(Multiplexer,MUX)实现,片上系统内部的各路总线分别与MUX的各输入端相连,当然,各路总线所连接的MUX的输入端互不相同,MUX的输出端则与同步单元的输入端相连,MUX根据选通指令可以建立目标总线所连接的输入端与输出端之间的连通,从而与目标总线建立通信连接。In a possible implementation, the selection unit can be implemented based on a multiplexer (MUX). Each bus within the on-chip system is connected to each input terminal of the MUX. Of course, the MUX connected to each bus The input terminals are different from each other, and the output terminal of the MUX is connected to the input terminal of the synchronization unit. The MUX can establish a connection between the input terminal and the output terminal connected to the target bus according to the strobe instruction, thereby establishing a communication connection with the target bus.
综上所述,本实施例提供的总线监测方法,控制单元输出选通指令,总线监测单元根据选通指令在多路总线中确定监测的一路目标总线并获取目标总线的目标总线信号。本方法只对多路总线中的一路目标总线进行监测,与现有技术中对芯片内部多路总线的所有总线信息进行监测的方法相比,可以有效降低总线信息的数据量,进而降低总线监测的逻辑开销以及总线监测单元的功耗,进而满足实际的总线监测需求。To sum up, in the bus monitoring method provided by this embodiment, the control unit outputs the gating instruction, and the bus monitoring unit determines a target bus to be monitored in the multi-channel bus according to the gating instruction and obtains the target bus signal of the target bus. This method only monitors one target bus in the multi-channel bus. Compared with the existing method of monitoring all bus information of the multi-channel bus inside the chip, this method can effectively reduce the data amount of bus information, thereby reducing bus monitoring. The logic overhead and the power consumption of the bus monitoring unit are reduced to meet the actual bus monitoring needs.
并且,在实际应用中,可以通过选通指令对目标总线进行选择,有针对性的对某一路总线进行监测,从而实现对片上系统中重要总线的重点关注。Moreover, in practical applications, the target bus can be selected through strobe instructions and a certain bus can be monitored in a targeted manner, thereby focusing on important buses in the on-chip system.
进一步的,本发明实施例提供另一种总线监测方法,结合图4所示,本实施例提供的总线监测方法,在图3所示实施例的基础上还包括如下步骤。Furthermore, an embodiment of the present invention provides another bus monitoring method. As shown in FIG. 4 , the bus monitoring method provided by this embodiment also includes the following steps based on the embodiment shown in FIG. 3 .
S130、控制单元发送监测使能指令。S130. The control unit sends a monitoring enable command.
在本实施例中,监测使能指令主要用于控制总线监测单元执行后续S150以及S160步骤,即控制总线监测单元提取目标数据。监测使能指令的具体形式可参照相关技术实现,本发明对此不做限定,至于监测使能指令的具体发送过程,可参照图3所示实施例中S100发送选通指令的相关内容实现,此处不再复述。In this embodiment, the monitoring enable instruction is mainly used to control the bus monitoring unit to perform subsequent steps S150 and S160, that is, to control the bus monitoring unit to extract target data. The specific form of the monitoring enable command can be implemented with reference to related technologies. The present invention is not limited to this. As for the specific sending process of the monitoring enable command, it can be implemented with reference to the relevant content of S100 sending the strobe command in the embodiment shown in Figure 3. It will not be repeated here.
S140、总线监测单元接收监测使能指令。S140. The bus monitoring unit receives the monitoring enable command.
总线监测单元接收监测使能指令的具体实现可参照图3所示实施例中S110的相关内容实现,此处不再复述。The specific implementation of the bus monitoring unit receiving the monitoring enable command can be implemented with reference to the relevant content of S110 in the embodiment shown in FIG. 3, which will not be repeated here.
S150、总线监测单元解析目标总线信号得到总线请求,并提取总线请求中的目标总线信息。S150. The bus monitoring unit analyzes the target bus signal to obtain the bus request, and extracts the target bus information in the bus request.
结合片上系统内部总线传递总线信息的基本原理可知,总线监测单元获取得到的目标总线信号为按照目标总线的通信协议相关定义排布的数字信号,总线监测单元需要按照目标总线的通信协议对所得目标总线信号进行解析,才能得到相应的总线请求,对于解析目标总线信号得到总线请求的具体实现,可结合目标总线的通信协议的具体内容以及总线信号解析的相关技术实现,此处不再详述。Combined with the basic principle of transmitting bus information through the internal bus of the on-chip system, it can be seen that the target bus signal obtained by the bus monitoring unit is a digital signal arranged according to the relevant definitions of the communication protocol of the target bus. The bus monitoring unit needs to follow the communication protocol of the target bus to obtain the target. Only by parsing the bus signal can the corresponding bus request be obtained. The specific implementation of parsing the target bus signal to obtain the bus request can be combined with the specific content of the communication protocol of the target bus and the related technical implementation of bus signal parsing, which will not be described in detail here.
得到总线请求之后,总线监测单元进一步提取总线请求中的目标总线信息。具体的,总线监测单元首先确定总线请求是否符合目标总线所支持的总线协议,如果所得总线请求符合目标总线所支持的总线协议,则按照预设过滤条件提取总线请求中的目标总线信息,相反的,如果所得总线请求不符合目标总线所支持的总线协议,则舍弃该总线请求,不对其做进一步的处理。After getting the bus request, the bus monitoring unit further extracts the target bus information in the bus request. Specifically, the bus monitoring unit first determines whether the bus request conforms to the bus protocol supported by the target bus. If the resulting bus request conforms to the bus protocol supported by the target bus, it extracts the target bus information in the bus request according to the preset filtering conditions. On the contrary , if the resulting bus request does not comply with the bus protocol supported by the target bus, the bus request is discarded and no further processing is performed on it.
通过上述处理可以看出,实际应用中,可以结合实际监测需求,在提取目标总线信息前,判断总线请求是否符合目标总线所支持的总线协议,只有在总线请求符合目标总线所支持的总线协议的情况下,才会进一步按照预设过滤条件提取目标总线信息,基于此,可以有效过滤不符合目标总线所支持的总线协议的总线请求,同时,结合预设过滤条件对符合目标总线所支持的总线协议的总线请求中的目标总线信息进行提取,使得最终得到的目标总线信息不仅有效而且数据量较少,可以有效降低总线信息的数据量,进而降低总线监测的逻辑开销。It can be seen from the above processing that in actual applications, actual monitoring requirements can be combined to determine whether the bus request conforms to the bus protocol supported by the target bus before extracting the target bus information. Only when the bus request conforms to the bus protocol supported by the target bus, In this case, the target bus information will be further extracted according to the preset filtering conditions. Based on this, bus requests that do not comply with the bus protocols supported by the target bus can be effectively filtered. At the same time, combined with the preset filtering conditions, bus requests that meet the bus protocols supported by the target bus can be effectively filtered. The target bus information in the bus request of the protocol is extracted, so that the final target bus information is not only effective but also has a small amount of data, which can effectively reduce the data amount of the bus information, thereby reducing the logic overhead of bus monitoring.
在一种可能的实施方式中,预设过滤条件可以基于总线请求的数据量、总线请求对应的地址以及总线请求对应的识别标识(比如总线请求的编号)中的至少一项设置,在实际应用中,预设过滤条件可以是总线请求的数据量、总线请求对应的地址以及总线请求对应的识别标识中至少一项的单一指定值,也可以是基于总线请求的数据量、总线请求对应的地址以及总线请求对应的识别标识中至少一项设置的过滤范围。比如,设置总线请求对应的地址,在总线监测过程中,只对该地址的总线请求的总线信息进行提取,再比如,设置总线请求的数据量范围,提取数据量处于该数据量范围内的总线请求的总线信息。In a possible implementation, the preset filtering conditions can be set based on at least one of the data amount of the bus request, the address corresponding to the bus request, and the identification corresponding to the bus request (such as the number of the bus request). In practical applications , the preset filtering condition can be a single specified value of at least one of the data volume of the bus request, the address corresponding to the bus request, and the identification mark corresponding to the bus request, or it can be based on the data volume of the bus request, the address corresponding to the bus request and the filtering range set by at least one of the identification tags corresponding to the bus request. For example, set the address corresponding to the bus request. During the bus monitoring process, only the bus information requested by the bus request of this address is extracted. Another example is to set the data volume range of the bus request and extract the bus whose data volume is within this data volume range. Requested bus information.
基于预设过滤条件的设置可以看出,通过预设过滤条件,可以只获取总线监测所需的信息,对于总线监测不需要的其他信息则会予以过滤清除,因此,通常所得的目标总线信息必然少于总线请求所包括的全部总线信息,即通过预设过滤条件可以有效降低所得目标总线信息的数据量。Based on the settings of the preset filter conditions, it can be seen that through the preset filter conditions, only the information required for bus monitoring can be obtained, and other information not required for bus monitoring will be filtered and cleared. Therefore, usually the target bus information obtained must Less than all the bus information included in the bus request, that is, the data amount of the obtained target bus information can be effectively reduced by preset filtering conditions.
在一种可能的实施方式中,在图3所示实施例中总线监测单元的构成的基础上,本实施例提供的总线监测单元还包括解析过滤单元。由解析过滤单元响应控制单元发送的监测使能指令,解析目标总线信号得到总线请求并提取总线请求中的目标总线信息。In a possible implementation, based on the composition of the bus monitoring unit in the embodiment shown in FIG. 3 , the bus monitoring unit provided in this embodiment further includes an analysis and filtering unit. The parsing and filtering unit responds to the monitoring enable command sent by the control unit, parses the target bus signal to obtain the bus request, and extracts the target bus information in the bus request.
S160、总线监测单元按照预设追踪条件提取目标总线信息中的目标数据。S160. The bus monitoring unit extracts the target data in the target bus information according to the preset tracking conditions.
提取目标总线信息之后,总线监测单元进一步确定目标总线信息中是否包括表征目标总线信息有效的指示信息,如果目标总线信息中包括该指示信息,总线监测单元则按照预设追踪条件提取目标总线信息中的目标数据,相反的,如果目标总线信息中未包括该指示信息,总线监测单元则不对目标总线信息做进一步的处理。After extracting the target bus information, the bus monitoring unit further determines whether the target bus information includes indication information indicating that the target bus information is valid. If the target bus information includes the indication information, the bus monitoring unit extracts the target bus information according to the preset tracking conditions. The target data, on the contrary, if the target bus information does not include the indication information, the bus monitoring unit will not perform further processing on the target bus information.
通过对目标总线信息是否有效进行判断,只有在目标总线信息有效的情况下才会按照预设追踪条件提取目标数据,可以确保所提取的目标数据的有效性,进而提高总线监测结果的可信度。By judging whether the target bus information is valid, the target data will be extracted according to the preset tracking conditions only when the target bus information is valid, which can ensure the validity of the extracted target data and thereby improve the credibility of the bus monitoring results. .
在一种可能的实施方式中,预设追踪条件基于事务特征设置,其中,用于设置预设追踪条件的事务特征可以包括总线请求的地址、总线请求的识别标识、总线信息中的数据内容以及总线请求的响应内容中的至少一项。参照前述预设过滤条件的设置方式,预设追踪条件可以基于前述至少一项事务特征的单一指定值设置,也可以基于前述至少一项事务特征设置相应的追踪范围。比如,所选事务特征为写事务的地址,该写事务的地址为0x8000_0030,基于此,即可以设置预设追踪条件为该单一的地址,即获取0x8000_0030这一地址的目标数据,或者,也可以基于0x8000_0030设置地址范围,比如0x8000_0000~0x8000_1000,即地址处于该地址范围内的所有目标总线信息中的目标数据均会被提取。In a possible implementation, the preset tracing conditions are set based on transaction characteristics, where the transaction characteristics used to set the preset tracing conditions may include the address of the bus request, the identification of the bus request, the data content in the bus information, and At least one of the response contents of the bus request. Referring to the setting method of the aforementioned preset filtering conditions, the preset tracking conditions can be set based on a single specified value of the aforementioned at least one transaction characteristic, or a corresponding tracking range can be set based on the aforementioned at least one transaction characteristic. For example, the selected transaction characteristic is the address of a write transaction, and the address of the write transaction is 0x8000_0030. Based on this, you can set the preset tracking condition to this single address, that is, obtain the target data at the address 0x8000_0030, or you can Set the address range based on 0x8000_0030, such as 0x8000_0000~0x8000_1000, that is, the target data in all target bus information with addresses within this address range will be extracted.
进一步的,用于设置预设追踪条件的事务特征还可以根据实际监测需求配置。在一种可能的实施方式中,控制单元可以在总线监测单元按照预设追踪条件提取目标总线信息中的目标数据之前,向总线监测单元发送事务特征,总线监测单元获取相应的事务特征之后,按照上述方式基于所得事务特征设置预设追踪条件,并在设置完成后,执行S160步骤。在实际应用中,根据实际监测需求选择事务特征,进而结合事务特征设置前述预设追踪条件,可以确保按照预设追踪条件提取的目标数据满足总线监测的实际需求,同时,还可以通过预设追踪条件实现对目标数据的筛选和过滤,有助于减少目标数据的数据量,进而降低总线监测的逻辑开销,提高监测效率。Furthermore, the transaction characteristics used to set preset tracking conditions can also be configured according to actual monitoring requirements. In a possible implementation, the control unit can send the transaction characteristics to the bus monitoring unit before the bus monitoring unit extracts the target data in the target bus information according to the preset tracking conditions. After the bus monitoring unit obtains the corresponding transaction characteristics, it can The above method sets preset tracking conditions based on the obtained transaction characteristics, and after the setting is completed, step S160 is executed. In practical applications, selecting transaction characteristics according to actual monitoring requirements, and then setting the aforementioned preset tracking conditions in combination with transaction characteristics can ensure that the target data extracted according to the preset tracking conditions meets the actual needs of bus monitoring. At the same time, preset tracking can also be used Conditional implementation of screening and filtering of target data helps reduce the amount of target data, thereby reducing the logic overhead of bus monitoring and improving monitoring efficiency.
在一种可能的实施方式中,总线监测单元中可以设置事务追踪单元,事务追踪单元与前述实施例中述及的解析过滤单元相连,接收解析过滤单元输出的目标总线信息,并按照预设追踪条件提取目标总线信息中的目标数据。In a possible implementation, a transaction tracking unit can be provided in the bus monitoring unit. The transaction tracking unit is connected to the parsing and filtering unit mentioned in the previous embodiment, receives the target bus information output by the parsing and filtering unit, and tracks according to the preset Conditionally extract target data from target bus information.
综上所述,通过本实施例提供的总线监测方法,总线监测单元对总线请求进行初步提取,得到目标总线信息,在提取目标总线信息之后,基于预设追踪条件进一步提取总线监测所需的目标数据,经过上述两次的数据过滤选择,所得目标数据的数据量可以远小于总线请求的总数据量,与现有技术中获取全部总线信息进行监测的方法相比,可以有效降低总线信息的数据量,进而降低总线监测的逻辑开销,并且,目标总线信息的获取受监测使能指令的控制,并非时刻获取目标总线信息,通过监测使能指令可以控制总线监测单元的运行时长,有助于降低总线监测单元的功耗,进而满足实际的总线监测需求。To sum up, through the bus monitoring method provided in this embodiment, the bus monitoring unit initially extracts the bus request and obtains the target bus information. After extracting the target bus information, it further extracts the targets required for bus monitoring based on the preset tracking conditions. Data, after the above two data filtering selections, the data volume of the target data can be much smaller than the total data volume requested by the bus. Compared with the method of obtaining all bus information for monitoring in the existing technology, the data volume of the bus information can be effectively reduced. amount, thereby reducing the logic overhead of bus monitoring. Moreover, the acquisition of target bus information is controlled by the monitoring enable command. The target bus information is not obtained at all times. The running time of the bus monitoring unit can be controlled through the monitoring enable command, which helps reduce The power consumption of the bus monitoring unit can be used to meet the actual bus monitoring needs.
进一步的,通过目标数据,还可以分析片上系统内部总线的工作情况,对于系统运行异常溯源以及优化系统设计都有着重要的作用。Furthermore, through the target data, the working conditions of the internal bus of the on-chip system can also be analyzed, which plays an important role in tracing the source of system operation abnormalities and optimizing system design.
在图4所示实施例的基础上,本发明提供另一种总线监测方法,参照图5所示的流程图,本实施例提供的总线监测方法,在图4所示实施例提供的监测方法的基础上,还包括如下步骤。On the basis of the embodiment shown in Figure 4, the present invention provides another bus monitoring method. Referring to the flow chart shown in Figure 5, the bus monitoring method provided by this embodiment is the same as the monitoring method provided by the embodiment shown in Figure 4. On the basis of, it also includes the following steps.
S170、控制单元发送存储指令。S170. The control unit sends a storage instruction.
在一种可能的实施方式中,片上系统设置有两种存储空间,其一是片上系统内部的存储空间,其二是片上系统外部的存储空间,其中,片上系统内部的存储空间的时钟频率基本可以和目标总线的时钟频率保持同步,而片上系统外部的存储空间的时钟频率通常低于目标总线的时钟频率。In a possible implementation, the system-on-chip is provided with two storage spaces, one is a storage space inside the system-on-chip, and the other is a storage space outside the system-on-chip, where the clock frequency of the storage space inside the system-on-chip is basically It can be synchronized with the clock frequency of the target bus, while the clock frequency of the memory space outside the system-on-chip is usually lower than the clock frequency of the target bus.
基于上述情况,控制单元通过存储指令指示将目标数据存储至目标存储空间,该目标存储空间可以是片上系统内部的存储空间或片上系统外部的存储空间。Based on the above situation, the control unit instructs through the storage instruction to store the target data into the target storage space. The target storage space may be a storage space inside the system-on-chip or a storage space outside the system-on-chip.
S180、总线监测单元接收存储指令。S180. The bus monitoring unit receives the storage instruction.
总线监测单元接收存储指令的具体实现可参照图3所示实施例中S110的相关内容实现,此处不再复述。The specific implementation of the bus monitoring unit receiving the storage instruction can be implemented with reference to the relevant content of S110 in the embodiment shown in FIG. 3, which will not be repeated here.
S190、总线监测单元基于存储指令,将目标数据存储至目标存储空间。S190. The bus monitoring unit stores the target data into the target storage space based on the storage instruction.
总线监测单元根据存储指令的指示,将目标数据存储至片上系统的内部存储空间,或者,将目标数据存储至片上系统的外部存储空间。基于前述内容可以理解的是,片上系统内部的存储空间的时钟频率基本可以和目标总线的时钟频率保持同步,将目标数据存储至片上系统内部的存储空间可以有效避免因为时钟频率差异而导致的数据溢出,因此,通常可以优先将目标数据存储至片上系统内部的存储空间,待内部存储空间全部占用后,再将目标数据存储至片上系统外部的存储空间。The bus monitoring unit stores the target data into the internal storage space of the system-on-chip according to the instruction of the storage instruction, or stores the target data into the external storage space of the system-on-chip. Based on the foregoing, it can be understood that the clock frequency of the internal storage space of the on-chip system can basically be synchronized with the clock frequency of the target bus. Storing target data to the internal storage space of the on-chip system can effectively avoid data corruption caused by clock frequency differences. overflow, therefore, the target data can usually be stored in the storage space inside the system-on-chip first. After the internal storage space is fully occupied, the target data can be stored in the storage space outside the system-on-chip.
在一种可能的实施方式中,基于存储指令将目标数据存储至目标存储空间可以有前述内容述及的事务追踪单元实现。In a possible implementation, storing the target data into the target storage space based on the storage instruction can be implemented by the transaction tracking unit mentioned above.
在图4所示实施例中,控制单元向总线监测单元发送存储指令,总线监测单元根据存储指令确定存储目标数据的时机以及目标存储空间,这一控制方式可以使得控制单元可以在任一次总线信息获取过程中对目标数据的存储进行控制,实现对目标数据存储的灵活控制,但也会在一定程度上增加控制单元的逻辑开销,为此,作为另一种可选的实施方式,还可以将存储指令固化于总线监测单元中,使得总线监测单元在每一次获取目标数据之后即执行自身存储的存储指令,按照存储指令将目标数据存储至目标存储空间。可以理解的是,在将存储指令固化于总线监测单元的情况下,在需要进行目标存储空间变更时,控制单元可以对总线监测单元存储的存储指令进行更新。In the embodiment shown in Figure 4, the control unit sends a storage instruction to the bus monitoring unit, and the bus monitoring unit determines the timing and target storage space to store the target data according to the storage instruction. This control method allows the control unit to obtain bus information at any time. During the process, the storage of target data is controlled to achieve flexible control of target data storage, but it will also increase the logic overhead of the control unit to a certain extent. For this reason, as another optional implementation method, the storage can also be The instructions are solidified in the bus monitoring unit, so that the bus monitoring unit executes the storage instructions stored by itself after each acquisition of target data, and stores the target data into the target storage space according to the storage instructions. It can be understood that when the storage instruction is fixed in the bus monitoring unit, when the target storage space needs to be changed, the control unit can update the storage instruction stored in the bus monitoring unit.
在将目标数据存储至系统外部的存储空间的情况下,总线监测单元还包括数据导出单元。数据导出单元的输入侧与事务追踪单元相连,接收事务追踪单元输出的目标数据,进一步的,数据导出单元的输出侧与片上系统外部的存储空间相连,并将所得目标数据存储至片上系统外部的存储空间之中。When the target data is stored in a storage space outside the system, the bus monitoring unit further includes a data export unit. The input side of the data export unit is connected to the transaction tracking unit, and receives the target data output by the transaction tracking unit. Further, the output side of the data export unit is connected to the storage space outside the on-chip system, and stores the obtained target data in the storage space outside the on-chip system. in storage space.
综上所述,在前述实施例的基础上,本实施例提供的总线监测方法对所得目标数据进行存储,并提供多种存储选择,可以根据存储指令选择存储目标数据的存储空间,在目标数据的数据量较小的情况下,可以将目标数据存储于片上系统内部的存储空间,与现有技术中单纯将总线信息存储于片上系统外部存储空间的方式相比,由于片上系统的内部存储空间的时钟频率基本可以和目标总线的时钟频率保持同步,弥补高速的目标总线和低速的信息存储之间的速度差,进而有效避免目标数据的溢出,确保数据的完整性;而在片内存储空间用尽的情况下,还可以直接将目标数据存储于片上系统外部的存储空间,从而实现海量数据的存储,有效避免目标数据的丢失、遗漏。To sum up, on the basis of the foregoing embodiments, the bus monitoring method provided by this embodiment stores the obtained target data and provides a variety of storage options. The storage space for storing the target data can be selected according to the storage instructions. In the target data When the amount of data is small, the target data can be stored in the internal storage space of the on-chip system. Compared with the existing technology that simply stores bus information in the external storage space of the on-chip system, due to the internal storage space of the on-chip system, The clock frequency can basically be synchronized with the clock frequency of the target bus, making up for the speed difference between the high-speed target bus and low-speed information storage, thereby effectively avoiding the overflow of target data and ensuring the integrity of the data; while in the on-chip storage space When exhausted, the target data can also be directly stored in the storage space outside the on-chip system, thereby realizing the storage of massive data and effectively avoiding the loss and omission of target data.
进一步的,在上述任一实施例的基础上,本发明还提供另一种总线监测方法,通过本实施例提供的总线监测方法可以实现对目标总线运行性能的监测。参见图6,本实施例提供的总线监测方法的流程可以包括如下步骤。Furthermore, based on any of the above embodiments, the present invention also provides another bus monitoring method. Through the bus monitoring method provided in this embodiment, the operating performance of the target bus can be monitored. Referring to Figure 6, the flow of the bus monitoring method provided in this embodiment may include the following steps.
S200、控制单元发送选通指令。S200. The control unit sends a strobe command.
S200的具体实现可参照前述实施例中S100步骤的相关内容实现,此处不再复述。The specific implementation of S200 can be implemented with reference to the relevant content of step S100 in the previous embodiment, and will not be repeated here.
S210、总线监测单元接收选通指令。S210. The bus monitoring unit receives the strobe instruction.
S210的具体实现可参照前述实施例中S110步骤的相关内容实现,此处不再复述。The specific implementation of S210 can be implemented with reference to the relevant content of step S110 in the previous embodiment, and will not be repeated here.
S220、总线监测单元根据选通指令在多路总线中确定监测的一路目标总线,并获取目标总线的目标总线信号。S220. The bus monitoring unit determines a target bus to be monitored in the multi-channel bus according to the strobe instruction, and obtains the target bus signal of the target bus.
S220的具体实现可参照前述实施例中S120步骤的相关内容实现,此处不再复述。The specific implementation of S220 can be implemented with reference to the relevant content of step S120 in the previous embodiment, and will not be repeated here.
S230、控制单元发送监测使能指令。S230. The control unit sends a monitoring enable command.
S230的具体实现可参照前述实施例中S130步骤的相关内容实现,此处不再复述。The specific implementation of S230 can be implemented with reference to the relevant content of step S130 in the previous embodiment, and will not be repeated here.
S240、总线监测单元接收监测使能指令。S240. The bus monitoring unit receives the monitoring enable command.
S240的具体实现可参照前述实施例中S140步骤的相关内容实现,此处不再复述。The specific implementation of S240 can be implemented with reference to the relevant content of step S140 in the previous embodiment, and will not be repeated here.
S250、总线监测单元解析目标总线信号得到总线请求,并提取总线请求中的目标总线信息。S250: The bus monitoring unit analyzes the target bus signal to obtain the bus request, and extracts the target bus information in the bus request.
S250的具体实现可参照前述实施例中S150步骤的相关内容实现,此处不再复述。The specific implementation of S250 can be implemented with reference to the relevant content of step S150 in the previous embodiment, and will not be repeated here.
S260、控制单元发送统计使能指令。S260. The control unit sends a statistics enable command.
控制单元通过统计使能指令对总线监测单元的运行进行控制,只有在需要对目标总线的运行性能进行分析时才会输出该指令,相应的,在不需要对目标总线进行分析时,控制单元不会控制总线监测单元执行后续步骤,如此设置,可以避免总线监测单元长时间、高负荷运行,有助于降低总线监测单元的运行功耗。The control unit controls the operation of the bus monitoring unit through the statistical enable command. This command will only be output when the operating performance of the target bus needs to be analyzed. Correspondingly, when the target bus does not need to be analyzed, the control unit will not The bus monitoring unit will be controlled to perform subsequent steps. Such a setting can avoid long-term, high-load operation of the bus monitoring unit and help reduce the operating power consumption of the bus monitoring unit.
S270、总线监测单元接收统计使能指令。S270. The bus monitoring unit receives the statistics enable command.
总线监测单元与控制单元的通信接口相连,按照与控制单元之间预定义的通信协议接收控制单元输出的统计使能指令。对于总线监测单元与控制单元之间通信协议的选取,可参照相关技术实现,本发明对此不做限定。The bus monitoring unit is connected to the communication interface of the control unit and receives the statistical enable instructions output by the control unit according to a predefined communication protocol with the control unit. The selection of the communication protocol between the bus monitoring unit and the control unit can be implemented with reference to related technologies, and the present invention does not limit this.
S280、总线监测单元统计目标总线信息中用于表征目标总线运行性能的参考信息。S280: The bus monitoring unit counts the reference information used to characterize the operating performance of the target bus in the target bus information.
在一种可能的实施方式中,控制单元向总线监测单元发送预设时长,该预设时长为统计参考信息的累计时长,总线监测单元在得到该预设时长后,只对预设时长内提取的多个目标总线信息中的参考信息进行统计。可以理解的是,通过合理的设置预设时长,既可以保证参考信息数据量足以较为全面的评估目标总线的运行性能,同时,还可以避免过量的统计参考信息,造成需要分析的数据量过大,进而加重总线监测单元的逻辑开销。In a possible implementation, the control unit sends a preset duration to the bus monitoring unit. The preset duration is the cumulative duration of the statistical reference information. After obtaining the preset duration, the bus monitoring unit only extracts data within the preset duration. Statistics are performed on the reference information in multiple target bus information. It is understandable that by setting the preset duration reasonably, it can not only ensure that the amount of reference information data is sufficient to comprehensively evaluate the operating performance of the target bus, but also avoid excessive statistical reference information, resulting in excessive amounts of data that need to be analyzed. , thereby increasing the logic overhead of the bus monitoring unit.
进一步的,总线监测单元分别确定预设时长内提取的各目标总线信息中是否包括表征目标总线信息有效的指示信息,并对包括该指示信息的目标总线信息中的参考信息进行统计,对于未包括该指示信息的目标总线信息不做进一步处理。在提取参考信息前,对目标总线信息是否有效进行判断,有效过滤无效的总线信息的干扰,确保所提取的参考信息均来自于有效的目标总线信息,参考信息的可信度高,有助于提高总线性能分析结果的准确度。Further, the bus monitoring unit determines whether each target bus information extracted within the preset time period includes indication information indicating that the target bus information is valid, and counts the reference information in the target bus information that includes the indication information. For those that do not include The target bus information of this indication message is not processed further. Before extracting reference information, it is judged whether the target bus information is valid, and the interference of invalid bus information is effectively filtered to ensure that the extracted reference information comes from valid target bus information. The credibility of the reference information is high, which helps Improve the accuracy of bus performance analysis results.
在一种可能的实施方式中,参考信息包括各类型请求的数量和总线请求之间的延迟时长中的至少一种。总线监测单元将所得统计结果反馈给控制单元,控制单元根据各类型请求的数量的统计结果,可以确定总线的繁忙程度以及总线通信双方之间的通信效率是否满足要求,根据总线请求之间的延迟时长的统计,控制单元可以确定当前影响目标总线传输性能的瓶颈出现在通信双方的哪一方,因此,总监监测单元的统计结果对于分析目标总线性能具有重要的作用。当然,在实际应用中,还可以根据分析需求,将其他能够表征目标总线运行性能的指标作为参考信息,此处不再一一列举,在未超出本发明核心思想范围的前提下,同样属于本发明保护的范围内。In a possible implementation, the reference information includes at least one of the number of requests of each type and the delay length between bus requests. The bus monitoring unit feeds back the obtained statistical results to the control unit. Based on the statistical results of the number of various types of requests, the control unit can determine the business of the bus and whether the communication efficiency between the two parties of the bus communication meets the requirements. According to the delay between bus requests Based on the statistics of the duration, the control unit can determine which side of the communication side has the current bottleneck affecting the transmission performance of the target bus. Therefore, the statistical results of the director monitoring unit play an important role in analyzing the performance of the target bus. Of course, in practical applications, other indicators that can characterize the operating performance of the target bus can also be used as reference information according to analysis requirements. They are not listed here one by one. They also belong to this article without exceeding the scope of the core idea of the present invention. within the scope of invention protection.
综上所述,在本实施例提供的监测方法中,统计表征目标总线运行性能的参考信息,基于所得参考信息可以分析目标总线的运行性能,为改善目标总线的信息传输效率以及整个片上系统的运行性能提供参考依据。To sum up, in the monitoring method provided in this embodiment, the reference information that characterizes the operating performance of the target bus is statistically analyzed. Based on the obtained reference information, the operating performance of the target bus can be analyzed to improve the information transmission efficiency of the target bus and the overall on-chip system. Provide reference basis for operational performance.
在一种可能的实施方式中,总线监测单元中设置有时钟控制单元,时钟控制单元分别与片上系统内提供统一时钟信号的时钟单元以及总线监测单元内的各构成单元相连,对输出至各构成单元的时钟信号进行控制。基于此,在未对片上系统内任何总线进行监测的情况下,控制单元可控制该时钟控制单元关闭总线监测单元的时钟信号,进而控制总线监测单元停止运行,有效降低总线监测单元的整体功耗。In a possible implementation, the bus monitoring unit is provided with a clock control unit. The clock control unit is connected to the clock unit that provides a unified clock signal in the on-chip system and each component unit in the bus monitoring unit, and controls the output to each component. controlled by the unit's clock signal. Based on this, when no bus in the on-chip system is monitored, the control unit can control the clock control unit to turn off the clock signal of the bus monitoring unit, and then control the bus monitoring unit to stop running, effectively reducing the overall power consumption of the bus monitoring unit. .
需要说明的是,在上述各个实施例中,特别是图4至图6所示的各个实施例中,控制单元需要发送多个不同的控制指令,同时,还可能需要向总线监测单元发送不同的配置信息,比如事务特征、预设时长等,上述实施例仅是示例性的给出控制单元发送控制指令以及配置信息的时机,不作为对控制单元与总线监测单元之间信息交互过程唯一限制。以图5所示实施例为例,控制单元可以同步向总线监测单元发送监测使能指令和存储指令,总线监测单元首先响应监测使能指令,提取目标总线的目标数据,得到目标数据之后,才会响应存储指令,将所得目标数据存储至目标存储空间。显然,这种控制指令发送时机的调整,并不会影响总线监测的整体过程,因此,同样属于本发明保护的范围内。而在总线监测单元固化存储指令的情况下,控制单元可仅向总线监测单元发送监测使能指令,总线监测单元在响应总线监测指令获取目标数据后,进一步执行自身存储的存储指令,将目标数据存储至目标存储空间。It should be noted that in the above-mentioned embodiments, especially in the embodiments shown in FIGS. 4 to 6 , the control unit needs to send multiple different control instructions. At the same time, it may also need to send different control instructions to the bus monitoring unit. Configuration information, such as transaction characteristics, preset duration, etc., the above embodiment is only an example of the timing for the control unit to send control instructions and configuration information, and is not the only limitation on the information interaction process between the control unit and the bus monitoring unit. Taking the embodiment shown in Figure 5 as an example, the control unit can synchronously send monitoring enable instructions and storage instructions to the bus monitoring unit. The bus monitoring unit first responds to the monitoring enable command, extracts the target data of the target bus, and only after obtaining the target data It will respond to the storage command and store the obtained target data into the target storage space. Obviously, this adjustment of the control instruction sending timing will not affect the overall bus monitoring process, and therefore, it also falls within the scope of protection of the present invention. In the case where the bus monitoring unit solidifies the storage instruction, the control unit can only send the monitoring enable instruction to the bus monitoring unit. After the bus monitoring unit obtains the target data in response to the bus monitoring instruction, it further executes the storage instruction stored by itself and transfers the target data. Save to target storage space.
下面对本发明提供的总线监测单元以及控制单元进行介绍,本发明提供的总线监测单元以及控制单元,与本申请实施例所提供的总线监测方法属于同一申请构思,可执行本申请任意实施例所提供的总线监测方法,具备执行总线监测方法相应的功能单元和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例提供的总线监测方法,此处不再加以赘述。The bus monitoring unit and control unit provided by the present invention are introduced below. The bus monitoring unit and control unit provided by the present invention belong to the same application concept as the bus monitoring method provided by the embodiments of the present application, and can execute the methods provided by any embodiment of the present application. The bus monitoring method has corresponding functional units and beneficial effects for executing the bus monitoring method. For technical details that are not described in detail in this embodiment, please refer to the bus monitoring method provided by the embodiment of this application, and will not be described again here.
为更为直观的体现本发明提供的总线监测单元以及控制单元的应用,在后续内容对应的附图中,均以片上系统为基础示出总线监测单元和控制单元,并示出控制单元与总线监测单元内部各构成单元之间的连接关系,同时,为了凸显本发明提供的总线监测单元以及控制单元,对于片上系统内的其他构成部分,比如处理器、各功能单元等均不再示出,仅示出与总线监测单元相连的片内总线。In order to more intuitively reflect the application of the bus monitoring unit and the control unit provided by the present invention, in the accompanying drawings corresponding to the subsequent content, the bus monitoring unit and the control unit are shown based on the on-chip system, and the control unit and the bus are shown. The connection relationship between the various components within the monitoring unit. At the same time, in order to highlight the bus monitoring unit and control unit provided by the present invention, other components in the on-chip system, such as the processor, each functional unit, etc. are no longer shown. Only the on-chip bus connected to the bus monitoring unit is shown.
参见图7,图7所示本发明实施例提供的一种片上系统,本实施例提供的片上系统包括片内总线、总线监测单元以及控制单元60。Referring to FIG. 7 , FIG. 7 shows an on-chip system provided by an embodiment of the present invention. The on-chip system provided by this embodiment includes an on-chip bus, a bus monitoring unit, and a control unit 60 .
本实施例提供的总线监测单元包括选择同步单元10,选择同步单元10分别与控制单元60以及片内总线相连。The bus monitoring unit provided in this embodiment includes a selective synchronization unit 10, which is connected to the control unit 60 and the on-chip bus respectively.
控制单元60用于发送选通指令,选择同步单元10用于接收该选通指令,选通指令用于指示多路总线中需要监测的目标总线;根据选通指令在多路总线中确定监测的一路目标总线,并获取目标总线的目标总线信号。The control unit 60 is used to send a gating instruction, and the selection synchronization unit 10 is used to receive the gating instruction. The gating instruction is used to indicate the target bus that needs to be monitored in the multi-channel bus; according to the gating instruction, the monitored target bus is determined in the multi-channel bus. One target bus, and obtain the target bus signal of the target bus.
进一步的,在图7所示实施例的基础上,本发明实施例提供另一种片上系统,其构成可参见图8所示。Furthermore, on the basis of the embodiment shown in FIG. 7 , this embodiment of the present invention provides another system-on-chip, the structure of which can be seen in FIG. 8 .
在图8所示实施例中,总线监测单元包括依次连接的选择同步单元10、解析过滤单元20以及事务追踪单元30,控制单元60分别与选择同步单元10、解析过滤单元20以及事务追踪单元30相连。In the embodiment shown in FIG. 8 , the bus monitoring unit includes a selection synchronization unit 10 , an analysis and filtering unit 20 and a transaction tracking unit 30 which are connected in sequence. The control unit 60 is connected to the selection synchronization unit 10 , the analysis and filtering unit 20 and the transaction tracking unit 30 respectively. connected.
在前述实施例的基础上,控制单元60还用于发送监测使能指令。解析过滤单元20用于接收监测使能指令,响应于监测使能指令,解析目标总线信号得到总线请求,并提取总线请求中的目标总线信息。事务追踪单元30用于按照预设追踪条件提取目标总线信息中的目标数据。Based on the foregoing embodiments, the control unit 60 is also configured to send a monitoring enable instruction. The parsing and filtering unit 20 is configured to receive the monitoring enable command, respond to the monitor enable command, parse the target bus signal to obtain the bus request, and extract the target bus information in the bus request. The transaction tracking unit 30 is used to extract target data in the target bus information according to preset tracking conditions.
在一种可能的实施方式中,控制单元60还用于发送事务特征,解析过滤单元20用于基于所得事务特征设置预设追踪条件。In a possible implementation, the control unit 60 is also configured to send transaction characteristics, and the parsing and filtering unit 20 is configured to set preset tracking conditions based on the obtained transaction characteristics.
在一种可能的实施方式中,控制单元60还可以控制事务追踪单元30的运行,比如,可以向事务追踪单元30发送追踪使能指令,通过该指令控制事务追踪单元30按照预设追踪条件提取目标总线信息中的目标数据。In a possible implementation, the control unit 60 can also control the operation of the transaction tracking unit 30. For example, it can send a tracking enable instruction to the transaction tracking unit 30, and use the instruction to control the transaction tracking unit 30 to extract data according to the preset tracking conditions. Target data in target bus information.
进一步的,在图8所示实施例的基础上,本发明实施例提供另一种片上系统,其构成可参见图9所示。Furthermore, based on the embodiment shown in FIG. 8 , this embodiment of the present invention provides another system-on-chip, the structure of which can be seen in FIG. 9 .
在图9所示实施例中,总线监测单元包括依次相连的选择同步单元10、解析过滤单元20、事务追踪单元30以及数据导出单元40。事务追踪单元30还与片上系统内部的存储空间(图9中以片内存储简称)相连,相应的,数据导出单元40与片上系统外部的存储空间(图9中以片外存储简称)相连。控制单元60分别与总线监测单元内部的选择同步单元10、解析过滤单元20、事务追踪单元30以及数据导出单元40相连。In the embodiment shown in FIG. 9 , the bus monitoring unit includes a selection synchronization unit 10 , an analysis and filtering unit 20 , a transaction tracking unit 30 and a data export unit 40 which are connected in sequence. The transaction tracking unit 30 is also connected to the storage space inside the system-on-chip (abbreviated as on-chip storage in Figure 9). Correspondingly, the data export unit 40 is connected to the storage space outside the system-on-chip (abbreviated as off-chip storage in Figure 9). The control unit 60 is respectively connected to the selection synchronization unit 10, the analysis and filtering unit 20, the transaction tracking unit 30 and the data export unit 40 inside the bus monitoring unit.
在前述实施例的基础上,控制单元60还用于发送存储指令。存储指令用于指示将目标数据存储至目标存储空间,目标存储空间包括片上系统内部的存储空间或片上系统外部的存储空间;事务追踪单元30还用于接收控制单元60发送的存储指令,并基于存储指令,将目标数据存储至目标存储空间。Based on the foregoing embodiments, the control unit 60 is also used to send storage instructions. The storage instruction is used to instruct the target data to be stored in the target storage space, and the target storage space includes a storage space inside the system-on-chip or a storage space outside the system-on-chip; the transaction tracking unit 30 is also used to receive the storage instruction sent by the control unit 60, and based on Store instructions to store target data into the target storage space.
在目标存储空间为图9所示的片外存储的情况下,数据导出单元40用于接收事务追踪单元30输出的目标数据,并将所得目标数据存储于片外存储之中。When the target storage space is off-chip storage as shown in FIG. 9 , the data export unit 40 is configured to receive the target data output by the transaction tracking unit 30 and store the obtained target data in the off-chip storage.
进一步的,本发明实施例提供另一种片上系统,如图10所示,本实施例提供的片上系统包括片内总线、控制单元60以及总线监测单元,其中,总线监测单元包括依次相连的选择同步单元10、解析过滤单元20以及性能统计单元50。选择同步单元10与片上系统内部的片内总线相连,控制单元60分别与选择同步单元10、解析过滤单元20以及性能统计单元50相连。Further, an embodiment of the present invention provides another on-chip system. As shown in Figure 10, the on-chip system provided by this embodiment includes an on-chip bus, a control unit 60 and a bus monitoring unit. The bus monitoring unit includes selectors connected in sequence. Synchronization unit 10, analysis and filtering unit 20 and performance statistics unit 50. The selection synchronization unit 10 is connected to the on-chip bus inside the on-chip system, and the control unit 60 is connected to the selection synchronization unit 10, the analysis and filtering unit 20, and the performance statistics unit 50 respectively.
在前述实施例的基础上,控制单元60还用于发送统计使能指令,性能统计单元50用于统计目标总线信息中用于表征目标总线运行性能的参考信息,参考信息包括各类型请求的数量和总线请求之间的延迟时长中的至少一种。On the basis of the foregoing embodiments, the control unit 60 is also used to send statistics enable instructions, and the performance statistics unit 50 is used to count the reference information used to characterize the operating performance of the target bus in the target bus information. The reference information includes the number of various types of requests. and at least one of the delay lengths between bus requests.
可以理解的是,本实施例提供的性能统计单元50还可以与图9所示实施例结合,即性能统计单元50与图9所示实施例中的解析过滤单元20相连,同样可以接收解析过滤单元20的目标总线信息,并统计目标总线信息中用于表征目标总线运行性能的参考信息,在此情况下,可以组合得到另外一种片上系统。It can be understood that the performance statistics unit 50 provided in this embodiment can also be combined with the embodiment shown in Figure 9, that is, the performance statistics unit 50 is connected to the analysis and filtering unit 20 in the embodiment shown in Figure 9, and can also receive analysis and filtering The target bus information of the unit 20 is collected, and the reference information used to characterize the target bus operating performance in the target bus information is collected. In this case, another on-chip system can be obtained by combination.
进一步的,对于上述任一实施例提供的片上系统,总线监测单元中设置有用于控制时钟信号的时钟控制单元(图中未示出),在未监测任何总线的情况下,控制单元60还用于控制时钟控制单元关闭总线监测单元的时钟信号。Further, for the on-chip system provided in any of the above embodiments, the bus monitoring unit is provided with a clock control unit (not shown in the figure) for controlling the clock signal. When no bus is monitored, the control unit 60 also uses The clock control unit is controlled to turn off the clock signal of the bus monitoring unit.
本发明还提供一种计算机设备,包括上述任一实施例提供的片上系统。The present invention also provides a computer device, including the system-on-chip provided in any of the above embodiments.
在一些实施例中,本实施例还提供了一种计算机可读存储介质,如软盘、光盘、硬盘、闪存、U盘、SD(Secure Digital Memory Card,安全数码卡)卡、MMC(Multimedia Card,多媒体卡)卡等,在该计算机可读存储介质中存储有实现上述各个步骤的一个或者多个指令,这一个或者多个指令被一个或者多个处理器执行时,使得所述处理器执行前文描述的总线监测方法。相关具体实现请参考前述描述,此处不过多赘述。In some embodiments, this embodiment also provides a computer-readable storage medium, such as a floppy disk, an optical disk, a hard disk, a flash memory, a USB flash drive, an SD (Secure Digital Memory Card) card, or an MMC (Multimedia Card). Multimedia card) card, etc., one or more instructions to implement the above steps are stored in the computer-readable storage medium. When this one or more instructions are executed by one or more processors, the processor will execute the preceding steps. Describes bus monitoring methods. Please refer to the above description for the relevant specific implementation, and will not be elaborated here.
除了上述方法和设备以外,本申请的实施例还可以是计算机程序产品,其包括计算机程序指令,计算机程序指令在被处理器运行时使得处理器执行本说明书上述内容中描述的根据本申请各种实施例的总线监测方法中的步骤。In addition to the above-mentioned methods and devices, embodiments of the present application may also be computer program products, which include computer program instructions. When run by a processor, the computer program instructions cause the processor to execute various methods described in the above contents of this specification according to the present application. Steps in the bus monitoring method of the embodiment.
计算机程序产品可以以一种或多种程序设计语言的任意组合来编写用于执行本申请实施例操作的程序代码,程序设计语言包括面向对象的程序设计语言,诸如Java、C++等,还包括常规的过程式程序设计语言,诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。The computer program product can be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application. The programming languages include object-oriented programming languages, such as Java, C++, etc., and also include conventional programming languages. A procedural programming language such as "C" or a similar programming language. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on.
本领域技术人员能够理解,本公开所披露的内容可以出现多种变型和改进。例如,以上所描述的各种设备或组件可以通过硬件实现,也可以通过软件、固件、或者三者中的一些或全部的组合实现。Those skilled in the art can understand that various modifications and improvements may occur to the content disclosed in this disclosure. For example, the various devices or components described above can be implemented by hardware, software, firmware, or a combination of some or all of the three.
此外,虽然本公开对根据本公开的实施例的系统中的某些单元做出了各种引用,然而,任何数量的不同单元可以被使用并运行在客户端和/或服务器上。单元仅是说明性的,并且系统和方法的不同方面可以使用不同单元。Furthermore, although this disclosure makes various references to certain elements in systems according to embodiments of the disclosure, any number of different elements may be used and run on the client and/or server. The units are illustrative only, and different units may be used with different aspects of the system and methods.
本公开中使用了流程图用来说明根据本公开的实施例的方法的步骤。应当理解的是,前面或后面的步骤不一定按照顺序来精确的进行。相反,可以按照倒序或同时处理各种步骤。同时,也可以将其他操作添加到这些过程中。Flowcharts are used in this disclosure to illustrate the steps of methods according to embodiments of the disclosure. It should be understood that the preceding or following steps are not necessarily performed in exact order. Instead, the various steps can be processed in reverse order or simultaneously. At the same time, other operations can be added to these processes.
本领域普通技术人员可以理解上述方法中的全部或部分的步骤可通过计算机程序来指令相关硬件完成,程序可以存储于计算机可读存储介质中,如只读存储器等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各单元/单元可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。本公开并不限制于任何特定形式的硬件和软件的结合。Those of ordinary skill in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, such as a read-only memory. Optionally, all or part of the steps of the above embodiments can also be implemented using one or more integrated circuits. Correspondingly, each unit/unit in the above embodiments can be implemented in the form of hardware or in the form of software functional units. The present disclosure is not limited to any particular form of combination of hardware and software.
除非另有定义,这里使用的所有术语具有与本公开所属领域的普通技术人员共同理解的相同含义。还应当理解,诸如在通常字典里定义的那些术语应当被解释为具有与它们在相关技术的上下文中的含义相一致的含义,而不应用理想化或极度形式化的意义来解释,除非这里明确地这样定义。Unless otherwise defined, all terms used herein have the same meanings commonly understood by one of ordinary skill in the art to which this disclosure belongs. It should also be understood that terms such as those defined in ordinary dictionaries should be construed to have meanings consistent with their meanings in the context of the relevant technology and should not be interpreted in an idealized or highly formalized sense unless expressly stated herein Ground is defined this way.
以上是对本公开的说明,而不应被认为是对其的限制。尽管描述了本公开的若干示例性实施例,但本领域技术人员将容易地理解,在不背离本公开的新颖教学和优点的前提下可以对示例性实施例进行许多修改。因此,所有这些修改都意图包含在权利要求书所限定的本公开范围内。应当理解,上面是对本公开的说明,而不应被认为是限于所公开的特定实施例,并且对所公开的实施例以及其他实施例的修改意图包含在所附权利要求书的范围内。本公开由权利要求书及其等效物限定。The above is a description of the present disclosure and should not be considered as a limitation thereof. Although several exemplary embodiments of the present disclosure have been described, those skilled in the art will readily appreciate that many modifications are possible in the exemplary embodiments without departing from the novel teachings and advantages of the disclosure. Accordingly, all such modifications are intended to be included within the scope of the disclosure as defined by the claims. It is to be understood that the above is a description of the present disclosure and should not be construed as limited to the particular embodiments disclosed, and that modifications to the disclosed embodiments as well as other embodiments are intended to be included within the scope of the appended claims. The disclosure is defined by the claims and their equivalents.
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311181988.1A CN117009185A (en) | 2023-09-14 | 2023-09-14 | Bus monitoring method, device, system on chip and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311181988.1A CN117009185A (en) | 2023-09-14 | 2023-09-14 | Bus monitoring method, device, system on chip and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117009185A true CN117009185A (en) | 2023-11-07 |
Family
ID=88567405
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311181988.1A Pending CN117009185A (en) | 2023-09-14 | 2023-09-14 | Bus monitoring method, device, system on chip and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117009185A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117311246A (en) * | 2023-11-29 | 2023-12-29 | 天津凯普林光电科技有限公司 | Laser control method, system, device, electronic equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101639816A (en) * | 2009-05-21 | 2010-02-03 | 北京中星微电子有限公司 | Real-time tracking system of bus and corresponding tracking and debugging method |
CN101989242A (en) * | 2010-11-12 | 2011-03-23 | 深圳国微技术有限公司 | Bus monitor for improving safety of SOC (System on a Chip) as well as realizing method thereof |
CN102360329A (en) * | 2011-09-29 | 2012-02-22 | 西北工业大学 | Bus monitoring and debugging control device and methods for monitoring and debugging bus |
CN103856364A (en) * | 2012-12-04 | 2014-06-11 | 鸿富锦精密工业(深圳)有限公司 | Bus signal monitoring device and method |
CN106130859A (en) * | 2016-06-23 | 2016-11-16 | 北京东土科技股份有限公司 | A kind of industry internet field layer wideband bus configuration management implementation method |
CN108427629A (en) * | 2018-03-12 | 2018-08-21 | 杭州朔天科技有限公司 | A kind of the SoC chip tracking of information device and performance optimization method of data compression |
CN111078492A (en) * | 2019-10-25 | 2020-04-28 | 芯创智(北京)微电子有限公司 | System and method for monitoring state of SoC internal bus |
CN111367223A (en) * | 2020-03-23 | 2020-07-03 | 北京润科通用技术有限公司 | Bus monitoring equipment and method |
CN115391132A (en) * | 2022-06-14 | 2022-11-25 | 北京中科昊芯科技有限公司 | Monitoring and diagnosing device and chip |
-
2023
- 2023-09-14 CN CN202311181988.1A patent/CN117009185A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101639816A (en) * | 2009-05-21 | 2010-02-03 | 北京中星微电子有限公司 | Real-time tracking system of bus and corresponding tracking and debugging method |
CN101989242A (en) * | 2010-11-12 | 2011-03-23 | 深圳国微技术有限公司 | Bus monitor for improving safety of SOC (System on a Chip) as well as realizing method thereof |
CN102360329A (en) * | 2011-09-29 | 2012-02-22 | 西北工业大学 | Bus monitoring and debugging control device and methods for monitoring and debugging bus |
CN103856364A (en) * | 2012-12-04 | 2014-06-11 | 鸿富锦精密工业(深圳)有限公司 | Bus signal monitoring device and method |
CN106130859A (en) * | 2016-06-23 | 2016-11-16 | 北京东土科技股份有限公司 | A kind of industry internet field layer wideband bus configuration management implementation method |
CN108427629A (en) * | 2018-03-12 | 2018-08-21 | 杭州朔天科技有限公司 | A kind of the SoC chip tracking of information device and performance optimization method of data compression |
CN111078492A (en) * | 2019-10-25 | 2020-04-28 | 芯创智(北京)微电子有限公司 | System and method for monitoring state of SoC internal bus |
CN111367223A (en) * | 2020-03-23 | 2020-07-03 | 北京润科通用技术有限公司 | Bus monitoring equipment and method |
CN115391132A (en) * | 2022-06-14 | 2022-11-25 | 北京中科昊芯科技有限公司 | Monitoring and diagnosing device and chip |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117311246A (en) * | 2023-11-29 | 2023-12-29 | 天津凯普林光电科技有限公司 | Laser control method, system, device, electronic equipment and storage medium |
CN117311246B (en) * | 2023-11-29 | 2024-02-20 | 天津凯普林光电科技有限公司 | Laser control method, system, device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7003699B2 (en) | Generation of trace signals within a data processing apparatus | |
CN106951379B (en) | A high-performance DDR controller and data transmission method based on AXI protocol | |
CN103914424B (en) | LPC peripheral expansion method based on GPIO interface and device | |
CN111611187B (en) | Universal protocol conversion bridge and SoC for CHI bus | |
CN106933760A (en) | A kind of dma controller and data uploading method based on AXI protocol | |
CN114546913A (en) | Method and device for high-speed data interaction among multiple hosts based on PCIE interface | |
CN117009185A (en) | Bus monitoring method, device, system on chip and equipment | |
CN102841871A (en) | Pipeline read-write method of direct memory access (DMA) structure based on high-speed serial bus | |
CN108337286A (en) | One kind cutting packet method and device | |
US9116881B2 (en) | Routing switch apparatus, network switch system, and routing switching method | |
CN116225995B (en) | Bus system and chip | |
CN115129645B (en) | Transaction processing method, system, storage medium and device based on bus | |
CN118349286A (en) | Processor, instruction processing device, electronic equipment and instruction processing method | |
CN107992439B (en) | Extensible data interaction method and system | |
CN116431558B (en) | AXI protocol-based request response method, device, system and medium | |
CN112306628B (en) | Virtual network function resource management system based on multi-core server | |
CN103838694A (en) | FPGA high-speed USB interface data reading method | |
CN107168902B (en) | Method for realizing automatic identification of high-speed CAN baud rate by using DMA | |
CN116938451B (en) | Password operation method, device, system on chip and equipment | |
CN115687012A (en) | Bus monitoring module, monitoring method and related equipment | |
CN116795760A (en) | A screening system and method for 1553B bus MT monitoring data | |
CN114338808A (en) | Data management method and device and server | |
CN116627495A (en) | Information interaction method, system, device, equipment and medium | |
CN106909526A (en) | The expansion method and device of a kind of Installed System Memory | |
CN114579505A (en) | Chip and inter-core communication method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20231107 |