Access address verification method and device, storage medium and electronic equipment
By establishing a two-way communication channel on the chip test platform, sending network access requests to multiple on-chip networks and verifying the response results, the problem of low efficiency of on-chip network access address segment verification in the existing technology is solved, and efficient address segment verification is achieved. .
Patent Information
- Application Number
- CN202410706397.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-10-01
AI Technical Summary
Existing chip testing methods cannot efficiently verify the access address segments of multiple on-chip networks, and every time the tested on-chip network is changed, the simulation case needs to be modified, resulting in low verification efficiency.
By establishing a bidirectional communication channel between the access verification circuit and the control center on the chip test platform, as well as bidirectional communication channels with multiple on-chip networks, network access requests are sent to multiple on-chip networks, and the access address is determined based on the response results. The normality of the segments enables simultaneous verification of multiple on-chip network access address segments.
It improves the verification efficiency of on-chip network access address segments during chip testing, enables simultaneous verification of multiple on-chip network access address segments, detects access anomalies in a timely manner, and reduces the time for testers to eliminate anomalies.
Smart Images

Figure CN118733518A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of chip testing, and more specifically, to a method, device, storage medium and electronic device for verifying an access address. Background Art
[0002] Currently, chips used for high-performance data exchange usually integrate on-chip networks in the chip. As the scale of chip design becomes larger and larger, the access address of a single on-chip network is difficult to carry the routing requirements of large-scale chips, so multiple on-chip networks need to be cascaded. The existing chip testing method usually develops simulation cases corresponding to a single on-chip network in a simulation environment to verify the access address segment of a single on-chip network. However, this method cannot verify the access address segments of multiple on-chip networks at the same time, and each time the on-chip network to be tested is changed, the simulation case must be modified, and the verification efficiency is too low.
[0003] Therefore, in the related art, there is a problem of low efficiency in verifying the access address segment of the on-chip network.
[0004] In view of the low efficiency of verifying the access address segment of the on-chip network in the related art, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present application provide a method, device, storage medium and electronic device for verifying an access address, so as to at least solve the problem of low efficiency in verifying the access address segment of the on-chip network in the related art.
[0006] According to one embodiment of the present application, a method for verifying an access address is applied to a chip testing platform, wherein the chip testing platform includes a control center and multiple on-chip networks, wherein an access verification circuit is connected between the control center and the multiple on-chip networks, and comprises: determining a first communication channel between the access verification circuit and the control center, and determining a second communication channel between the access verification circuit and the multiple on-chip networks, wherein the first communication channel and the second communication channel are both bidirectional channels, and the second communication channel includes multiple sub-communication channels, and one sub-communication channel represents a communication channel between an on-chip network and the access verification circuit; sending a network access request to the multiple on-chip networks based on the second communication channel; and determining a verification result according to a response result of the multiple on-chip networks to the network access request, wherein the verification result is used to indicate whether the access address segments of the multiple on-chip networks are accessed normally.
[0007] In an exemplary embodiment, sending a network access request to the multiple on-chip networks based on the second communication channel includes: for a first on-chip network among the multiple on-chip networks, obtaining an access address segment corresponding to the first on-chip network; determining the number of access addresses in the access address segment corresponding to the first on-chip network; determining a first sub-communication channel corresponding to the first on-chip network from the multiple sub-communication channels; and sending multiple network access requests to the first on-chip network based on the first sub-communication channel, wherein one network access request corresponds to one access address, and the number of the multiple network access requests is the same as the number of the access addresses.
[0008] In an exemplary embodiment, determining a verification result according to the response results of the multiple on-chip networks to the network access request includes: sending multiple network access requests to the first on-chip network based on the first sub-communication channel, including: sending a network access request to the first on-chip network in sequence based on the first sub-communication channel until the multiple network access requests are sent; for each case of sending a network access request to the first on-chip network, starting from the time when the one network request is sent, if after a preset time period, a response message of the first on-chip network is received, obtaining a first response result of the first on-chip network to the one network access request from the response message, and the first response The result indicates that the access address corresponding to the one network access request is accessed normally; if no response information is received from the first on-chip network after the preset time period, a second response result of the first on-chip network to the one network access request is determined, and the second response result indicates that the access address corresponding to the one network access request is accessed abnormally; after sending the multiple network access requests to the first on-chip network, all response results corresponding to the multiple network access requests are obtained, and all first response results are obtained from the all response results; when it is determined that the number of all first response results is equal to the number of the multiple network access requests, the verification result of the first on-chip network is determined as the access address segment is normal.
[0009] In an exemplary embodiment, after obtaining all response results corresponding to the multiple network access requests, the method further includes: obtaining all second response results from the all response results; when it is determined that the number of all second response results is less than the number of the multiple network access requests and greater than a preset value, determining the verification result of the first on-chip network as a partial abnormality in the access address segment; when it is determined that the number of the second response results is equal to the number of the multiple network access requests, determining the verification result of the first on-chip network as a complete abnormality in the access address segment.
[0010] In an exemplary embodiment, the method further includes: when it is determined that the number of all second response results is greater than a preset value, determining that there are addresses with access exceptions in the access address segment corresponding to the first on-chip network; and updating the addresses with access exceptions in the access address segment corresponding to the first on-chip network.
[0011] In an exemplary embodiment, determining that an address with access exception exists in an access address segment corresponding to the first on-chip network includes: determining a network access request corresponding to the second response result, and determining a network access address corresponding to the second response result based on the network access request corresponding to the second response result; and determining the network access addresses corresponding to all the second response results as addresses with access exception in the access address segment corresponding to the first on-chip network.
[0012] In an exemplary embodiment, updating the address with access exception in the access address segment corresponding to the first on-chip network includes: resetting the address with access exception in the access address segment corresponding to the first on-chip network to obtain a reset address; and allocating the reset address to the first on-chip network.
[0013] According to another embodiment of the present application, an access address verification device is provided, comprising: a first determination module, used to determine a first communication channel between the access verification circuit and the control center, and to determine a second communication channel between the access verification circuit and the multiple on-chip networks, wherein the first communication channel and the second communication channel are both bidirectional channels, and the second communication channel includes multiple sub-communication channels, and one sub-communication channel represents a communication channel between an on-chip network and the access verification circuit; a request sending module, used to send a network access request to the multiple on-chip networks based on the second communication channel; and a second determination module, used to determine a verification result according to a response result of the multiple on-chip networks to the network access request, and the verification result is used to indicate whether the access address segments of the multiple on-chip networks are accessed normally.
[0014] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0015] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0016] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiment are implemented.
[0017] Through the present application, a first communication channel between the access verification circuit and the control center, and a second communication channel between the access verification circuit and multiple on-chip networks can be established through the access verification circuit. The control center can send network access requests to multiple on-chip networks through the first communication channel and the second communication channel, and then determine whether the access address segments of multiple on-chip networks are normally accessed according to the response results of the multiple on-chip networks to the network access requests. Therefore, the problem of low efficiency in verifying the access address segments of the on-chip networks in the related art can be solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a hardware structure block diagram of a server device of an access address verification method according to an embodiment of the present application;
[0019] Figure 2 is a flowchart of a method for verifying an access address according to an embodiment of the present application;
[0020] Figure 3 is a schematic flow chart of a method for verifying an access address according to an embodiment of the present application;
[0021] Figure 4 It is a structural block diagram of an access address verification device according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0024] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of an access address verification method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0025] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the access address verification method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the method for verifying the access address is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0026] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0027] In this embodiment, a method for verifying an access address is provided. Figure 2 is a flow chart of a method for verifying an access address according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:
[0028] Step S202, determining a first communication channel between the access verification circuit and the control center, and determining a second communication channel between the access verification circuit and the multiple on-chip networks, wherein the first communication channel and the second communication channel are both bidirectional channels, and the second communication channel includes multiple sub-communication channels, and one sub-communication channel represents a communication channel between one on-chip network and the access verification circuit.
[0029] Optionally, in the above step S202, the connection channel between the access verification circuit and the control center is the first communication channel, and the access circuit can also be connected to the access port of the on-chip network. The channel formed by the connection between the access circuit and the access port of the on-chip network is the second communication channel. Since there are multiple on-chip networks, the connection channel formed by the access port of each on-chip network and the access circuit is a sub-communication channel.
[0030] Step S204, sending a network access request to the plurality of on-chip networks based on the second communication channel;
[0031] Optionally, in the above step S204, the network access request is initiated by the control center, and the control center can send network access requests to multiple on-chip networks at the same time, and can send multiple network access requests to one on-chip network at the same time.
[0032] Step S206: determining a verification result according to the response results of the multiple on-chip networks to the network access request, wherein the verification result is used to indicate whether the access address segments of the multiple on-chip networks are normally accessed.
[0033] Through the above steps, a first communication channel between the access verification circuit and the control center, and a second communication channel between the access verification circuit and multiple on-chip networks can be established through the access verification circuit. The control center can send network access requests to multiple on-chip networks through the first communication channel and the second communication channel, and then determine whether the access address segments of multiple on-chip networks are normally accessed according to the response results of the multiple on-chip networks to the network access requests. Therefore, the problem of low efficiency in verifying the access address segments of the on-chip networks in the related art can be solved.
[0034] In an exemplary embodiment, the specific execution process of sending network access requests to the multiple on-chip networks based on the second communication channel in the above-mentioned step S204 includes: for a first on-chip network among the multiple on-chip networks, obtaining an access address segment corresponding to the first on-chip network; determining the number of access addresses in the access address segment corresponding to the first on-chip network; determining a first sub-communication channel corresponding to the first on-chip network from the multiple sub-communication channels; and sending multiple network access requests to the first on-chip network based on the first sub-communication channel, wherein one network access request corresponds to one access address, and the number of the multiple network access requests is the same as the number of the access addresses.
[0035] Optionally, in the above embodiment, the first on-chip network represents any one of the above-mentioned multiple on-chip networks, wherein each of the multiple on-chip networks has a different access address segment, and the access address segment includes multiple access addresses. When verifying the access address segment, an independent network access request can be sent to each access address to determine whether the access address can be accessed normally.
[0036] In an exemplary embodiment, the above-mentioned step S206 of determining the verification result according to the response results of the multiple on-chip networks to the network access request can be performed in the following manner, specifically including: sending multiple network access requests to the first on-chip network based on the first sub-communication channel, including: sending a network access request to the first on-chip network in sequence based on the first sub-communication channel until the multiple network access requests are sent; for each case of sending a network access request to the first on-chip network, starting from the time when the one network request is sent, if after a preset time period, a response message of the first on-chip network is received, then obtaining the first time of the first on-chip network to the one network access request from the response message; response result, the first response result indicating that the access address corresponding to the one network access request is accessed normally; if after the preset time period, no response information of the first on-chip network is received, a second response result of the first on-chip network to the one network access request is determined, the second response result indicating that the access address corresponding to the one network access request is accessed abnormally; after sending the multiple network access requests to the first on-chip network, all response results corresponding to the multiple network access requests are obtained, and all first response results are obtained from the all response results; when it is determined that the number of all first response results is equal to the number of the multiple network access requests, the verification result of the first on-chip network is determined as the access address segment is normal.
[0037] Optionally, in the above embodiment, sending multiple network access requests to the first network on chip based on the first sub-communication channel may also be sending multiple network access requests to the first network on chip simultaneously based on the first sub-communication channel.
[0038] Optionally, in the above embodiment, if after a network access request is sent to the target access address of the first network on chip, response information of the first network on chip is received within a preset time, it means that the target access address of the first network on chip can be accessed normally, and the response result of this network access request is determined as the first response result; if after a network access request is sent to the target access address of the first network on chip, no response information of the first network on chip is received within a preset time, it means that the target access address of the first network on chip cannot be accessed normally and there is an access abnormality, and therefore, the response result of this network access request is determined as the second response result.
[0039] Optionally, through the above embodiment, there is no need to configure a separate verification environment for different on-chip networks, and the access address segments of multiple on-chip networks can be verified at the same time, thereby promptly discovering the existence of abnormal access addresses in the access address segments corresponding to the on-chip networks, greatly speeding up the access address verification speed of the on-chip networks.
[0040] In an exemplary embodiment, after executing the above-mentioned process of obtaining all response results corresponding to the multiple network access requests, the method also includes: obtaining all second response results from the all response results; when it is determined that the number of all second response results is less than the number of the multiple network access requests and greater than a preset value, determining the verification result of the first on-chip network as a partial abnormality in the access address segment; when it is determined that the number of the second response results is equal to the number of the multiple network access requests, determining the verification result of the first on-chip network as a complete abnormality in the access address segment.
[0041] Optionally, in the above embodiment, the verification result of verifying the access address segment of the first network on chip may be as follows:
[0042] The access address segment is normal: All addresses in the access address segment can be accessed normally;
[0043] Part of the access address segment is abnormal: there are some inaccessible addresses in the access address segment;
[0044] All access address segments are abnormal: All addresses in the access address segment are inaccessible.
[0045] Optionally, the situation in which all the above-mentioned access address segments are abnormal may be due to the control center being unable to communicate normally with the on-chip network. Therefore, the parameters of the simulation environment may be checked to determine whether there are any simulation parameter errors, or the connection of the access verification circuit may be checked to determine whether the first communication channel and the second communication channel can communicate normally.
[0046] In an exemplary embodiment, the method further includes: when it is determined that the number of all second response results is greater than a preset value, determining that there are addresses with access exceptions in the access address segment corresponding to the first on-chip network; and updating the addresses with access exceptions in the access address segment corresponding to the first on-chip network.
[0047] In an exemplary embodiment, the address with access exception in the access address segment corresponding to the first on-chip network can be determined in the following manner, specifically including: determining the network access request corresponding to the second response result, and determining the network access address corresponding to the second response result according to the network access request corresponding to the second response result; and determining the network access addresses corresponding to all the second response results as the address with access exception in the access address segment corresponding to the first on-chip network.
[0048] Optionally, through the above embodiment, the specific address with access exception can be obtained, and then the address of the access exception can be fed back to the chip tester, reducing the time for the tester to troubleshoot the exception and achieving the effect of improving the efficiency of verifying the access address of the on-chip network in the chip.
[0049] In an exemplary embodiment, the execution process of updating the address with access exception in the access address segment corresponding to the first on-chip network specifically includes: resetting the address with access exception in the access address segment corresponding to the first on-chip network to obtain the reset address; and allocating the reset address to the first on-chip network.
[0050] Optionally, after obtaining the address with access abnormality in the access address segment corresponding to the first on-chip network, the access port of the first on-chip network can be reconfigured. During the configuration process, the network address with the abnormality can be reset first, and then the reset address can be allocated to the first on-chip again.
[0051] Optionally, after the access address segments of the first network on chip are updated, access verification may continue to be performed on the updated access address segments until all the access address segments of the first network on chip are normally accessible.
[0052] Obviously, the embodiments described above are only some embodiments of the present application, not all embodiments. In order to better understand the verification method of the above test case, the above process is described below in conjunction with the embodiments, but it is not intended to limit the technical solutions of the embodiments of the present application, specifically:
[0053] In an alternative embodiment, Figure 3 It is a schematic flow chart of a method for verifying a test case according to an embodiment of the present application, which specifically includes the following steps:
[0054] Step S301: start the verification process;
[0055] Step S302: separating the network on chip and the CPU (Central Processing Unit) from the SOC (System on a Chip) system, wherein the CPU is equivalent to the control center in the above embodiment;
[0056] Optionally, in the above step S302, since the present solution focuses on verifying the access address segment of the on-chip network, in order to simplify the verification process, the parts of the chip design other than the on-chip network and the CPU may be removed to construct a minimum system of the on-chip cascaded network.
[0057] Step S303: connecting an access check RTL (Register Transfer Level) circuit (equivalent to an access verification circuit);
[0058] Optionally, in the connection process of the above step S303, the access check RTL circuit may be connected to the access port of the on-chip network originally used for connecting IP and peripherals.
[0059] Step S304: synthesis and implementation of the on-chip network cascade minimum system;
[0060] The synthesis of the on-chip network cascade minimum system in the above step S304 refers to the process of describing the digital circuit of the on-chip network cascade minimum system at a high abstraction level, and then converting it into a circuit connection netlist at the logic gate level after simplifying and optimizing it through Boolean functions.
[0061] Step S305: the CPU sends an access verification request (equivalent to a network access request);
[0062] Optionally, in the above step S305, the CPU may send verification requests to multiple on-chip networks at the same time, or may send verification requests to multiple addresses of one on-chip network at the same time.
[0063] Step S306: Determine whether the access address segment of the on-chip network has passed the verification, if the verification has passed, execute step S308, otherwise execute step S307;
[0064] Optionally, in the above step S306, after receiving the access verification request initiated by the CPU through the access verification circuit, the on-chip network will respond and feedback whether the access address is valid. If all the accessed addresses are valid, it will respond to each access verification request. If only some of the accessed addresses are valid, it will only respond to the access verification request of the valid address. For invalid addresses, the on-chip network cannot provide feedback on the access verification request, so a preset time can be set. If the CPU does not receive a response within the preset time, the address is determined as an address with abnormal access.
[0065] Step S307: for a network on chip with an abnormal access address, the access address segment of the network on chip may be reconfigured;
[0066] Step S308: End the verification process.
[0067] Through the above embodiments, a minimum system of CPU and on-chip network cascade can be constructed in a chip simulation test platform, and each access port of multiple on-chip network cascade environments is connected through an access verification circuit to perform a collaborative check with the CPU in the minimum system. The CPU initiates an access address segment request, and the on-chip network responds to the access address segment request through the access address segment check circuit on each access port. Whether the access address segment of the on-chip network is valid is determined based on the response result, thereby solving the problem of low efficiency in verifying the access address segment of the on-chip network in the related art.
[0068] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0069] In the present embodiment, a verification device for access address is also provided, and the system is used to implement the above-mentioned embodiment and preferred implementation mode, and the descriptions that have been made are not repeated here. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.
[0070] Figure 4 is a structural block diagram of an access address verification device according to an embodiment of the present application, such as Figure 4 As shown, the device comprises:
[0071] A first determining module 42 is used to determine a first communication channel between the access verification circuit and the control center, and to determine a second communication channel between the access verification circuit and the plurality of on-chip networks, wherein the first communication channel and the second communication channel are both bidirectional channels, and the second communication channel includes a plurality of sub-communication channels, and one sub-communication channel represents a communication channel between one on-chip network and the access verification circuit;
[0072] A request sending module 44, configured to send a network access request to the plurality of on-chip networks based on the second communication channel;
[0073] The second determination module 46 is used to determine a verification result according to the response results of the multiple on-chip networks to the network access request, and the verification result is used to indicate whether the access address segments of the multiple on-chip networks are normally accessed.
[0074] Through the above device, a first communication channel between the access verification circuit and the control center, and a second communication channel between the access verification circuit and multiple on-chip networks can be established through the access verification circuit. The control center can send network access requests to multiple on-chip networks through the first communication channel and the second communication channel, and then determine whether the access address segments of multiple on-chip networks are normally accessed according to the response results of the multiple on-chip networks to the network access requests. Therefore, the problem of low efficiency in verifying the access address segments of the on-chip networks in the related art can be solved.
[0075] In an exemplary embodiment, the request sending module 44 is also used to obtain an access address segment corresponding to a first network on chip among the multiple networks on chip; determine the number of access addresses in the access address segment corresponding to the first network on chip; determine a first sub-communication channel corresponding to the first network on chip from the multiple sub-communication channels; and send multiple network access requests to the first network on chip based on the first sub-communication channel, wherein one network access request corresponds to one access address, and the number of the multiple network access requests is the same as the number of the access addresses.
[0076] In an exemplary embodiment, the second determination module 46 is further used to sequentially send a network access request to the first network on chip based on the first sub-communication channel until the multiple network access requests are sent; for each case of sending a network access request to the first network on chip, timing is started from the time when the network request is sent, and if response information of the first network on chip is received after a preset time period, a first response result of the first network on chip to the network access request is obtained from the response information, and the first response result indicates that the access address corresponding to the network access request is normally accessed; if no response information of the first network on chip is received after the preset time period, a second response result of the first network on chip to the network access request is determined, and the second response result indicates that the access address corresponding to the network access request is abnormally accessed; after sending the multiple network access requests to the first network on chip, all response results corresponding to the multiple network access requests are obtained, and all first response results are obtained from the all response results; when it is determined that the number of all first response results is equal to the number of the multiple network access requests, the verification result of the first network on chip is determined as the access address segment is normal.
[0077] In an exemplary embodiment, the second determination module 46 is further used to: obtain all second response results from the total response results; when it is determined that the number of all second response results is less than the number of the multiple network access requests and greater than a preset value, determine the verification result of the first on-chip network as a partial abnormality in the access address segment; when it is determined that the number of the second response results is equal to the number of the multiple network access requests, determine the verification result of the first on-chip network as a complete abnormality in the access address segment.
[0078] In an exemplary embodiment, the second determination module 46 is further used to determine that there are addresses with access exceptions in the access address segment corresponding to the first on-chip network when it is determined that the number of all second response results is greater than a preset value; and update the addresses with access exceptions in the access address segment corresponding to the first on-chip network.
[0079] In an exemplary embodiment, the second determination module 46 is further used to determine the network access request corresponding to the second response result, and determine the network access address corresponding to the second response result according to the network access request corresponding to the second response result; and determine the network access addresses corresponding to all the second response results as the addresses with access exceptions in the access address segment corresponding to the first on-chip network.
[0080] In an exemplary embodiment, the second determining module 46 is further configured to reset the address with access exception in the access address segment corresponding to the first network on chip to obtain a reset address; and allocate the reset address to the first network on chip.
[0081] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0082] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0083] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:
[0084] S1, determining a first communication channel between the access verification circuit and the control center, and determining a second communication channel between the access verification circuit and the multiple on-chip networks, wherein the first communication channel and the second communication channel are both bidirectional channels, and the second communication channel includes multiple sub-communication channels, and one sub-communication channel represents a communication channel between one on-chip network and the access verification circuit;
[0085] S2, sending a network access request to the plurality of on-chip networks based on the second communication channel;
[0086] S3, determining a verification result according to the response results of the multiple on-chip networks to the network access request, wherein the verification result is used to indicate whether the access address segments of the multiple on-chip networks are normally accessed.
[0087] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0088] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0089] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0090] S1, determining a first communication channel between the access verification circuit and the control center, and determining a second communication channel between the access verification circuit and the multiple on-chip networks, wherein the first communication channel and the second communication channel are both bidirectional channels, and the second communication channel includes multiple sub-communication channels, and one sub-communication channel represents a communication channel between one on-chip network and the access verification circuit;
[0091] S2, sending a network access request to the plurality of on-chip networks based on the second communication channel;
[0092] S3, determining a verification result according to the response results of the multiple on-chip networks to the network access request, wherein the verification result is used to indicate whether the access address segments of the multiple on-chip networks are normally accessed.
[0093] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0094] Optionally, in this embodiment, the computer program may be configured to perform the following steps by means of the computer program:
[0095] S1, determining a first communication channel between the access verification circuit and the control center, and determining a second communication channel between the access verification circuit and the multiple on-chip networks, wherein the first communication channel and the second communication channel are both bidirectional channels, and the second communication channel includes multiple sub-communication channels, and one sub-communication channel represents a communication channel between one on-chip network and the access verification circuit;
[0096] S2, sending a network access request to the plurality of on-chip networks based on the second communication channel;
[0097] S3, determining a verification result according to the response results of the multiple on-chip networks to the network access request, wherein the verification result is used to indicate whether the access address segments of the multiple on-chip networks are normally accessed.
[0098] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0099] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0100] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A verification method for accessing an address segment, It is characterized in that Applied to a chip test platform, the chip test platform includes a control center and multiple on-chip networks, an access verification circuit is connected between the control center and the multiple on-chip networks, including: Determine a first communication channel between the access verification circuit and the control center, and determine a second communication channel between the access verification circuit and the plurality of on-chip networks, wherein the first communication channel and the second communication channel are both bidirectional channels, and the second communication channel includes a plurality of sub-communication channels, and one sub-communication channel represents a communication channel between one on-chip network and the access verification circuit; Sending a network access request to the plurality of on-chip networks based on the second communication channel; A verification result is determined according to the response results of the multiple on-chip networks to the network access request, and the verification result is used to indicate whether the access address segments of the multiple on-chip networks are normally accessed.
2. The method according to claim 1, It is characterized in that Sending a network access request to the plurality of on-chip networks based on the second communication channel includes: For a first network on chip among the multiple networks on chip, obtaining an access address segment corresponding to the first network on chip; Determining the number of access addresses in the access address segment corresponding to the first network on chip; Determine a first sub-communication channel corresponding to the first network on chip from the plurality of sub-communication channels; Based on the first sub-communication channel, multiple network access requests are sent to the first on-chip network, wherein one network access request corresponds to one access address, and the number of the multiple network access requests is the same as the number of the access addresses.
3. The method according to claim 2, It is characterized in that Determining a verification result according to the response results of the multiple on-chip networks to the network access request includes: Sending a plurality of network access requests to the first network on chip based on the first sub-communication channel includes: Sending a network access request to the first network on chip in sequence based on the first sub-communication channel until the sending of the multiple network access requests is completed; For each case where a network access request is sent to the first network on chip, timing is started from the time when the network request is sent, and if response information of the first network on chip is received after a preset time period, a first response result of the first network on chip to the network access request is obtained from the response information, wherein the first response result indicates that access to the access address corresponding to the network access request is normal; If no response information from the first network on chip is received after the preset time period, a second response result of the first network on chip to the one network access request is determined, and the second response result indicates that an access address corresponding to the one network access request is accessed abnormally; After sending the multiple network access requests to the first network on chip, obtaining all response results corresponding to the multiple network access requests, and obtaining all first response results from the all response results; In a case where it is determined that the number of all the first response results is equal to the number of the plurality of network access requests, the verification result of the first network on chip is determined as that the access address segment is normal.
4. The method according to claim 3, It is characterized in that After obtaining all response results corresponding to the multiple network access requests, the method further includes: Acquire all second response results from all response results; When it is determined that the number of all the second response results is less than the number of the plurality of network access requests and greater than a preset value, determining the verification result of the first network on chip as a partial abnormality of the access address segment; When it is determined that the number of the second response results is equal to the number of the plurality of network access requests, the verification result of the first network on chip is determined as all access address segments are abnormal.
5. The method according to claim 4, It is characterized in that The method further comprises: When it is determined that the number of all the second response results is greater than a preset value, determining that an address with access abnormality exists in the access address segment corresponding to the first network on chip; The addresses with access exceptions in the access address segment corresponding to the first network on chip are updated.
6. The method according to claim 5, It is characterized in that Determining that there is an address with access abnormality in the access address segment corresponding to the first network on chip includes: Determine a network access request corresponding to the second response result, and determine a network access address corresponding to the second response result according to the network access request corresponding to the second response result; The network access addresses corresponding to all the second response results are determined as addresses with access exceptions in the access address segment corresponding to the first on-chip network.
7. The method according to claim 5, It is characterized in that Updating the address with access exception in the access address segment corresponding to the first network on chip, including: Resetting the address with access exception in the access address segment corresponding to the first network on chip to obtain a reset address; The reset address is assigned to the first network on chip.
8. A verification device for an access address, It is characterized in that include: A first determining module is used to determine a first communication channel between the access verification circuit and the control center, and to determine a second communication channel between the access verification circuit and the plurality of on-chip networks, wherein the first communication channel and the second communication channel are both bidirectional channels, and the second communication channel includes a plurality of sub-communication channels, and one sub-communication channel represents a communication channel between one on-chip network and the access verification circuit; a request sending module, configured to send a network access request to the plurality of on-chip networks based on the second communication channel; The second determination module is used to determine the verification result according to the response results of the multiple on-chip networks to the network access request, and the verification result is used to indicate whether the access address segments of the multiple on-chip networks are normally accessed.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.
