Verification method for chip design scheme and electronic equipment
By dividing the synchronization area in the storage area of the simulated chip and directly writing and reading verification data using backdoor operations, the problem of low simulation verification efficiency of complex chip design solutions is solved, and fast and accurate verification results are judged and transmitted independently from the communication interface. rate.
Patent Information
- Application Number
- CN202411270436.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-11-19
AI Technical Summary
For chip design schemes with complex scale and functions, the simulation verification efficiency in the prior art is low, mainly due to the slow transmission rate of the communication interface, which leads to a sharp increase in simulation verification time.
The synchronization area is divided into the storage area of the simulation chip, and the verification data is written and read through backdoor operations, avoiding dependence on the communication interface, and directly perform verification data in the C program of the simulation chip, generating and comparing the target status flags to determine the verification result.
It improves the verification efficiency of chip design solutions, reduces the time required for simulation verification, and can quickly and accurately complete the simulation verification of complex chip design solutions, independent of the transmission rate of the communication interface.
Smart Images

Figure CN118981990A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip verification technology, for example, to a verification method and electronic equipment for chip design solutions. Background Art
[0002] At present, in order to ensure the rationality of the design scheme of the SoC chip, the chip design scheme needs to be verified at the system level.
[0003] In the related technology, a verification platform built based on the TCL scripting language is usually used to verify the chip design solution. The verification platform needs to send instructions and data generated verification data (such as verification data for register reading and writing, and memory access) to the simulation chip generated based on RTL through the communication interface, and the microcontroller unit (MCU) in the simulation chip executes the corresponding C program code to respond to these verifications.
[0004] In the process of implementing the embodiments of the present disclosure, it is found that the related technology has at least the following problems: For chip designs with complex scale and functions, the scenarios that need to be verified are also extremely complex. In this case, the simulation verification efficiency of the chip design by the verification platform is extremely dependent on the transmission rate of the communication interface. If the transmission rate is slow, the simulation verification time of the chip design will increase dramatically. Therefore, there is an urgent need for a solution that can improve the verification efficiency of the chip design and reduce the simulation verification time.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0007] The embodiments of the present disclosure provide a verification method and electronic device for a chip design scheme, which can improve the verification efficiency of the chip design scheme and reduce the time required for simulation verification.
[0008] In some embodiments, a verification method for a chip design scheme is applied to an electronic device, in which a verification platform and a simulation file are deployed. The simulation file is a code file with a C program deployed internally that is simulated based on the chip design scheme. The verification method is implemented by running the verification platform. The verification method includes: receiving first configuration information, and dividing a synchronization area in a storage area of the simulation chip; receiving second configuration information, and generating verification data corresponding to the part to be verified based on the second configuration information; writing verification data to the synchronization area through a backdoor operation, so that the C program of the simulation chip recognizes the start digital flag in the synchronization area, reads and executes the verification data from the synchronization area, determines the target state flag, and writes the target state flag to the synchronization area; reads the target state flag from the synchronization area, and determines the verification result of the part to be verified of the chip design scheme.
[0009] Optionally, verification data is written to the synchronization area through a backdoor operation, including: detecting a digital mark in the synchronization area; when an initial digital mark or an end digital mark is identified in the synchronization area, the verification data is written to the synchronization area; after the writing of the verification data is completed, the start digital mark is written to the synchronization area, so that the C program of the simulation chip can determine the writing status of the verification data.
[0010] Optionally, the target status flag is read from the synchronization area to determine the verification result of the part to be verified of the chip design scheme, including: when the target status flag is a correct status flag, confirming that the part to be verified of the chip design scheme has passed the verification; when the target status flag is an error status flag, confirming that the part to be verified of the chip design scheme has not passed the verification.
[0011] Optionally, when it is confirmed that the part of the chip design scheme to be verified has not passed the verification, the verification method also includes: reading the actual response information generated when the C program of the simulated chip executes the verification data through a backdoor operation; comparing the actual response information with the expected response information in the verification data; when the actual response information is consistent with the expected response information, determining that the part of the chip design scheme to be verified has passed the verification.
[0012] Optionally, before writing verification data into the synchronization area through the backdoor operation, the verification method further includes: initializing a data flag and a status flag in the synchronization area.
[0013] In some embodiments, a verification method for a chip design scheme is applied to an electronic device, in which a verification platform and an analog chip are deployed. The analog chip is a code file with a C program deployed internally that is simulated based on the chip design scheme. A synchronization area is defined in the storage area of the analog chip. The verification method is implemented by running the C program of the analog chip. The verification method includes: detecting a digital flag in the synchronization area; when a start digital flag is detected, reading verification data for the part of the chip design scheme to be verified written by the verification platform from the synchronization area; executing the verification data to determine a target state flag; and writing the target state flag to the synchronization area so that the verification platform reads the target state flag from the synchronization area to determine the verification result of the part of the chip design scheme to be verified.
[0014] Optionally, executing the verification data to determine the target state flag includes: executing the verification data to generate actual response information; comparing the actual response information with expected response information in the verification data to determine the target state flag.
[0015] Optionally, the actual response information is compared with the expected response information in the verification data to determine the target state flag, including: when the actual response information is consistent with the expected response information, using the correct state flag as the target state flag; when the actual response information is inconsistent with the expected response information, using the error state flag as the target state flag.
[0016] Optionally, after writing the target status flag into the synchronization area, the verification method further includes: writing an end data flag into the synchronization area.
[0017] In some embodiments, a verification platform and a simulation chip are deployed in an electronic device. The simulation chip simulates a code file of a C program deployed internally based on a chip design scheme. The electronic device includes a processor and a memory storing program instructions. The processor is configured to execute the verification method for the chip design scheme as described above when running the program instructions.
[0018] The chip design verification method and electronic device provided by the embodiments of the present disclosure can achieve the following technical effects: In the disclosed embodiment, a synchronization area is divided in the storage area of the simulation chip. When verifying the chip design scheme, the verification platform can directly write the verification data of the part to be verified into the synchronization area through the backdoor operation. After the verification data is written into the synchronization area, the C program of the simulation chip can directly read and execute the verification data from the synchronization area, determine the target state flag used to indicate whether the part to be verified is correctly executed, and can write the target state flag to the synchronization area. After the simulation chip executes the verification data, the verification platform only needs to read the target state flag from the synchronization area to determine the verification result of the part to be verified of the chip design scheme. In this way, the simulation verification of the chip design scheme by the verification platform no longer depends on the transmission rate of the communication interface, and even for chip design schemes with complex scale and functions, the simulation verification can be completed quickly and accurately. Therefore, the disclosed embodiment can improve the verification efficiency of the chip design scheme and reduce the time required for simulation verification.
[0019] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein: Figure 1 It is a schematic diagram of a verification environment deployed inside an electronic device provided by an embodiment of the present disclosure; Figure 2 is a schematic diagram of a verification method for a chip design scheme provided by an embodiment of the present disclosure; Figure 3 is a schematic diagram of another verification method for a chip design solution provided by an embodiment of the present disclosure; Figure 4 is a schematic diagram of another verification method for a chip design solution provided by an embodiment of the present disclosure; Figure 5 is a schematic diagram of another verification method for a chip design solution provided by an embodiment of the present disclosure; Figure 6 It is a schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0021] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0022] The terms "first", "second", etc. in the specification and claims of the disclosed embodiments and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or precedence sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the disclosed embodiments described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0023] Unless otherwise stated, the term "plurality" of a feature means two or more.
[0024] In the embodiment of the present disclosure, the character " / " feature indicates that the preceding and following objects are in an "or" relationship. For example, the A / B feature indicates: A or B.
[0025] The term "and / or" is a description of the association relationship between objects, and the characteristic indicates that there can be three relationships. For example, A and / or B, the characteristic indicates: A or B, or, A and B.
[0026] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0027] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other.
[0028] In the embodiment of the present disclosure, the test method for the TrustZone function of the chip is run as follows: Figure 1 The electronic device shown is deployed in a verification environment. Figure 1 As shown, a verification platform and a simulation chip are deployed in the electronic device. The simulation chip is a code file with a C program deployed inside, which is simulated based on the chip design solution.
[0029] Specifically, the verification platform can receive the first configuration information and divide a synchronization area in the storage area (RAM) of the analog chip. The verification platform can generate verification data corresponding to the part to be verified in the chip design scheme based on the received second configuration information, and can write the verification data to the synchronization area through a backdoor operation, and after writing the verification data, the start digital flag will be written to the synchronization area. After the C program of the analog chip recognizes the start digital flag in the synchronization area, it can read and execute the verification data from the synchronization area, determine the target state flag, and write the target state flag to the synchronization area. The verification platform can determine the verification result of the part to be verified in the chip design scheme based on the target state flag written by the analog chip in the synchronization area.
[0030] Combination Figure 1 The verification environment deployed inside the electronic device shown in the figure, the embodiment of the present disclosure provides a verification method for a chip design solution, such as Figure 2 As shown, the verification method includes: S201, the verification platform receives first configuration information and divides a synchronization area in a storage area of the analog chip.
[0031] Specifically, the simulation chip is an RTL code file simulated based on the chip design solution, and an executable C program is deployed in the simulation file, and the C program is used to simulate various functions of the chip.
[0032] It is understandable that the storage area of the analog chip cannot be used entirely as a synchronization area, and part of the storage area needs to be reserved for the execution of various functions of the analog chip. The first configuration information is information that specifies which storage area in the analog chip is used as the synchronization area (for example, it specifies that address bits 0-4 in the RAM memory are used as the synchronization area). Therefore, before verifying the chip design solution, the verification platform needs to receive the first configuration information and divide the synchronization area in the storage area of the analog chip according to the first configuration information.
[0033] S202, the verification platform receives the second configuration information, and generates verification data corresponding to the part to be verified according to the second configuration information.
[0034] Specifically, the second configuration information is information for specifying which function in the chip design solution is to be verified. For example, the second configuration information may be configuration information for specifying which address bits in the register are to be read and written for verification.
[0035] It is understandable that if all functions in the chip design are verified by only one round of verification platform interaction with the analog chip, more verification data needs to be generated, and the analog chip side also needs a long time to execute these verification data, which will increase the simulation verification time of the chip design. Therefore, in the embodiment of the present disclosure, each round of interaction only receives the second configuration information of the part to be verified of the chip design, and then generates the verification data corresponding to the part to be verified according to the second configuration information to verify a part of the solution.
[0036] S203, the verification platform writes verification data to the synchronization area through a backdoor operation, so that the C program of the simulation chip recognizes the start digital mark in the synchronization area, reads and executes the verification data from the synchronization area, determines the target state mark, and writes the target state mark to the synchronization area.
[0037] Specifically, by writing verification data to the synchronization area through backdoor operations, the analog chip can obtain verification data without relying on the communication interface, thereby avoiding the problem that the analog chip needs a long time to obtain and execute verification data due to the low transmission efficiency of the communication interface.
[0038] Specifically, an address bit for storing a digital flag and a status flag is set in the synchronization area. The digital flag is used to identify whether the verification platform has completed writing the verification data into the synchronization area, and is used to identify whether the C program of the simulation chip has completed executing the verification data. The status flag is a flag used to identify whether the part to be verified of the chip design can be run correctly.
[0039] Specifically, the start digital mark indicates the digital mark written into the synchronization area by the verification platform after writing the verification data into the synchronization area. Therefore, if the C program of the analog chip recognizes the start digital mark in the synchronization area, it can be determined that the verification data of the part to be verified in this round has been written. Therefore, in this case, the C program of the analog chip can read and execute the verification data from the synchronization area.
[0040] Specifically, the target state flag indicates a state flag determined by comparing actual response information generated by the C program of the simulation chip with the expected response information when executing the verification data.
[0041] S204, the verification platform reads the target status flag from the synchronization area to determine the verification result of the to-be-verified part of the chip design solution.
[0042] Specifically, the verification platform can determine whether the part to be verified of the chip design can be correctly run by the C program of the simulated chip according to the target state flag. If it can be run correctly, it means that the part to be verified in this round of the chip design has passed the verification. Therefore, the verification platform can determine the verification result of the part to be verified of the chip design according to reading the target state flag from the synchronization area.
[0043] Optionally, the target status flag is read from the synchronization area to determine the verification result of the part to be verified of the chip design scheme, including: when the target status flag is an error status flag, confirming that the part to be verified of the chip design scheme has not passed the verification; when the target status flag is a correct status flag, confirming that the part to be verified of the chip design scheme has passed the verification.
[0044] Specifically, the state flag includes a correct state flag (eg, right_state) and an error state flag (eg, err_state).
[0045] Specifically, when the status flag is a correct status flag, it indicates that the part of the chip design to be verified can be correctly executed. Therefore, in this case, it can be confirmed that the part of the chip design to be verified has passed the verification.
[0046] Specifically, when the status flag is an error status flag, it indicates that the part of the chip design to be verified cannot be run correctly. Therefore, in this case, it can be confirmed that the part of the chip design to be verified has not passed the verification.
[0047] It should be noted that the above steps S202 to S204 are executed cyclically, that is, the verification platform and the simulation chip need to perform multiple rounds of interaction based on the synchronization area to complete the verification of all functions of the chip design solution.
[0048] In the disclosed embodiment, a synchronization area is divided in the storage area of the simulation chip. When verifying the chip design scheme, the verification platform can directly write the verification data of the part to be verified into the synchronization area through the backdoor operation. After the verification data is written into the synchronization area, the C program of the simulation chip can directly read and execute the verification data from the synchronization area, determine the target state flag used to indicate whether the part to be verified is correctly executed, and can write the target state flag to the synchronization area. After the simulation chip executes the verification data, the verification platform only needs to read the target state flag from the synchronization area to determine the verification result of the part to be verified of the chip design scheme. In this way, the simulation verification of the chip design scheme by the verification platform no longer depends on the transmission rate of the communication interface, and even for chip design schemes with complex scale and functions, the simulation verification can be completed quickly and accurately. Therefore, the disclosed embodiment can improve the verification efficiency of the chip design scheme and reduce the time required for simulation verification.
[0049] The present disclosure provides a method for verifying a chip design solution. Figure 3 As shown, the verification method includes: S301, the verification platform receives first configuration information and divides a synchronization area in a storage area of the simulation chip.
[0050] S302, the verification platform receives the second configuration information, and generates verification data corresponding to the part to be verified according to the second configuration information.
[0051] S303, the verification platform detects the digital mark in the synchronization area.
[0052] Specifically, the digital flag includes a start digital flag (e.g., start_label), an end digital flag (e.g., end_label), and an initial digital flag (e.g., init_label). The start digital flag is used to indicate that the verification platform has completed writing the verification data into the synchronization area, the end digital flag is used to simulate the chip's C program execution verification program data completion, and the initial digital flag is used to indicate that the digital flag is in the initial state before being updated.
[0053] S304: When the verification platform recognizes an initial digital mark or an end digital mark in the synchronization area, the verification platform writes the verification data into the synchronization area.
[0054] Specifically, if an initial digital sign or an end digital sign is identified in the synchronization area, it indicates that the verification data is written into the synchronization area for the first time or the C program of the analog chip has completed the execution of the verification program data of the previous round. In this case, the C program of the analog chip can continue to read and execute the verification data. Therefore, in this case, the verification platform can write the verification data to the synchronization area.
[0055] S305, after completing writing the verification data, the verification platform writes the start digital flag into the synchronization area, so that the C program of the simulation chip can determine the writing status of the verification data, so that the C program of the simulation chip can recognize the start digital flag in the synchronization area, read and execute the verification data from the synchronization area, determine the target state flag, and write the target state flag into the synchronization area.
[0056] Specifically, the start digital flag is written to the synchronization area to facilitate the C program of the analog chip to determine whether all the verification data has been written, thereby avoiding the analog chip reading the verification data when the verification data has not been completely written, resulting in incomplete verification data.
[0057] S306, the verification platform reads the target status flag from the synchronization area to determine the verification result of the to-be-verified part of the chip design solution.
[0058] In the disclosed embodiment, the verification platform will write the verification data generated according to the second configuration information into the synchronization area only when the initial digital mark or the end digital mark is identified in the synchronization area. In this way, it can be avoided that the C program of the analog chip writes new verification data into the synchronization area before the execution of the previous round of verification data is completed, which affects the judgment of the C program of the analog chip on the verification result of the part to be verified in the previous round, resulting in inaccurate verification results.
[0059] In some embodiments, when it is confirmed that the part to be verified of the chip design scheme has not passed the verification, the verification method also includes: reading the actual response information generated when the C program of the simulated chip executes the verification data through a backdoor operation; comparing the actual response information with the expected response information in the verification data; when the actual response information is consistent with the expected response information, determining that the part to be verified of the chip design scheme has passed the verification.
[0060] It is understandable that due to the limited computing power of the analog chip, after executing the verification data, there may be errors in the actual response information and the expected response information generated by the comparison of the execution, resulting in misjudgment. Therefore, when the verification platform confirms that the part to be verified of the chip design scheme has not passed the verification based on the read target status flag, it can also read the actual response information generated when the C program of the analog chip executes the verification data through the backdoor operation, and compare the actual response information with the expected response information in the verification data to perform a secondary verification on the verification result. In this way, the accuracy of the simulation verification of the chip design scheme is improved.
[0061] In some embodiments, before writing verification data into the synchronization area through a backdoor operation, the verification method further includes: initializing a data flag and a status flag in the synchronization area.
[0062] Specifically, before writing the verification data to the synchronization area through the backdoor operation, if the digital flag is the start digital flag, the C program of the analog chip will directly start reading the verification data, resulting in inaccurate verification data read in this round. Therefore, before writing the verification data to the synchronization area through the backdoor operation, the digital flag needs to be updated, specifically, it can be updated to the initial digital flag or the end digital flag, to ensure that the C program of the analog chip will not read and execute the verification data of this round before the verification platform completes writing the verification data.
[0063] Specifically, before writing the verification data to the synchronization area through the backdoor operation, if the status flag is an error status flag, the verification platform may directly enter the secondary verification step based on the status flag after completing writing the verification data to the synchronization area. Therefore, before writing the verification data to the synchronization area through the backdoor operation, the status flag needs to be updated, and specifically can be updated to a correct status flag.
[0064] In the disclosed embodiment, before writing verification data into the synchronization area through the backdoor operation, the data flag and the status flag in the synchronization area are initialized to ensure the accuracy of the steps executed by the verification platform and the simulation chip during the verification of the chip design solution.
[0065] Combination Figure 1 The verification environment deployed inside the electronic device shown in the figure, the embodiment of the present disclosure provides another verification method for chip design scheme, such as Figure 4 As shown, the verification method includes: S401, the analog chip detects the digital mark in the synchronization area.
[0066] Specifically, an address bit for storing a digital flag is provided in the synchronization area. The digital flag is a flag used to identify whether the verification platform has completed writing the verification data into the synchronization area, and to identify whether the C program of the analog chip has completed executing the verification data. After the verification platform writes the verification data into the synchronization area, a start digital flag is written in the synchronization area. Therefore, the analog chip needs to detect the digital flag in the synchronization area to determine whether it can start reading the verification data.
[0067] S402, when the analog chip detects the start digital mark, it reads the verification data of the to-be-verified part of the chip design written by the verification platform from the synchronization area.
[0068] Specifically, if the start digital mark is identified in the synchronization area, it can be determined that the verification platform has completed writing the verification data of the part to be verified in this round. Therefore, in this case, the analog chip can read the verification data from the synchronization area.
[0069] S403, the simulation chip executes the verification data to determine the target state flag.
[0070] Specifically, the status flag is a flag used to identify whether the part to be verified in the chip design can be run correctly. The simulation chip executes the verification data to generate response information, and according to the response information, it can be determined whether the part to be verified in this round in the chip design can be run correctly. Therefore, the simulation chip can execute the verification data to determine the target status flag.
[0071] Optionally, executing the verification data to determine the target state flag includes: executing the verification data to generate actual response information; comparing the actual response information with expected response information in the verification data to determine the target state flag.
[0072] Specifically, by comparing the expected response information in the actual response information verification data generated by executing the verification data, it can be determined whether the part to be verified in this round in the chip design solution can be run correctly. Therefore, the simulation chip can determine the target state flag.
[0073] Optionally, the actual response information is compared with the expected response information in the verification data to determine the target state flag, including: when the actual response information is consistent with the expected response information, using the correct state flag as the target state flag; when the actual response information is inconsistent with the expected response information, using the error state flag as the target state flag.
[0074] Specifically, if the actual response information is consistent with the expected response information, it indicates that the part to be verified of the chip design solution can be correctly executed. Therefore, in this case, the correct state flag needs to be used as the target state flag.
[0075] Specifically, if the actual response information is inconsistent with the expected response information, it indicates that the to-be-verified portion of the chip design cannot be correctly executed. Therefore, in this case, the error state flag needs to be used as the target state flag.
[0076] S404, the simulation chip writes the target state flag into the synchronization area, so that the verification platform reads the target state flag from the synchronization area to determine the verification result of the to-be-verified part of the chip design solution.
[0077] Specifically, by writing the target state flag into the synchronization area, the verification platform can determine the verification result of the to-be-verified part of the chip design solution based on the target state flag.
[0078] Optionally, after writing the target status flag into the synchronization area, the verification method further includes: writing an end data flag into the synchronization area.
[0079] Specifically, the end digital flag is used to indicate that the simulation chip has completed the verification of the data in this round, and has written the target state flag of this round into the synchronization area. Therefore, writing the end data flag into the synchronization area allows the verification platform to clearly know whether the verification of the part to be verified of the chip design scheme in this round is completed, and whether it is possible to prepare the verification data of other parts to be verified of the chip design scheme in the next round.
[0080] In the disclosed embodiment, a synchronization area is divided in the storage area of the analog chip. When verifying the chip design scheme, if the analog chip recognizes the start digital mark in the synchronization area, the verification data of the part to be verified written by the verification platform through the backdoor operation can be directly read and executed from the synchronization area, and a target state flag indicating whether the part to be verified is correctly executed can be generated according to the execution situation. After generating the target state flag, the analog chip can write the target state flag to the synchronization area, so that the verification platform only needs to read the target state flag from the synchronization area to determine the verification result of the part to be verified of the chip design scheme. In this way, the simulation verification of the chip design scheme by the verification platform no longer depends on the transmission rate of the communication interface, and even for chip design schemes with complex scale and functions, the simulation verification can be completed quickly and accurately. Therefore, the disclosed embodiment can improve the verification efficiency of the chip design scheme and reduce the time required for simulation verification.
[0081] Combination Figure 1 The verification environment deployed inside the electronic device shown in the figure, the embodiment of the present disclosure provides another verification method for chip design scheme, such as Figure 5 As shown, the verification method includes: S501, the verification platform receives first configuration information and divides a synchronization area in a storage area of the simulation chip.
[0082] S502, the verification platform receives the second configuration information, and generates verification data corresponding to the part to be verified according to the second configuration information.
[0083] S503, the verification platform writes verification data into the synchronization area through a backdoor operation, and after completing writing the verification data, writes a start digital mark into the synchronization area.
[0084] S504, the simulation chip detects the digital mark in the synchronization area, and when the start digital mark is detected, reads the verification data of the to-be-verified part of the chip design written by the verification platform from the synchronization area.
[0085] S505, the simulation chip executes the verification data to generate actual response information, and compares the actual response information with the expected response information in the verification data to determine the target state flag.
[0086] S506, the analog chip writes the target status flag into the synchronization area, and after completing writing the target status flag, writes the end digital address into the synchronization area.
[0087] S507, the verification platform detects the digital flag and the state flag in the synchronization area, and after detecting the end digital flag, reads the target state flag from the synchronization area to determine the verification result of the part to be verified of the chip design solution.
[0088] S508, the verification platform executes the step of receiving the second configuration information in the next round, and generating verification data corresponding to the part to be verified according to the second configuration information.
[0089] Combination Figure 6 As shown, an embodiment of the present disclosure provides an electronic device 600, in which a verification platform and a simulation chip are deployed, and the simulation chip is a code file with a C program deployed internally, which is simulated based on a chip design scheme. The electronic device 600 includes: a processor (processor) 601 and a memory (memory) 602. Optionally, the device may also include a communication interface (Communication Interface) 603 and a bus 604. Among them, the processor 601, the communication interface 603, and the memory 602 can communicate with each other through the bus 604. The communication interface 603 can be used for information transmission. The processor 601 can call the logic instructions in the memory 602 to execute the verification method for the chip design scheme applied to the electronic device 600 of the above embodiment.
[0090] In addition, the logic instructions in the memory 602 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0091] The memory 602 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 601 executes the functional application and data processing by running the program instructions / modules stored in the memory 602, that is, the verification method for the chip design scheme applied to the electronic device 600 in the above embodiment is implemented.
[0092] The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 602 may include a high-speed random access memory and may also include a non-volatile memory.
[0093] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned verification method for a chip design solution.
[0094] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, such as: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes.
[0095] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method or device including the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0096] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0097] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0098] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A verification method for a chip design scheme is applied to an electronic device, wherein a verification platform and a simulation chip are deployed in the electronic device, and the simulation chip is a code file with a C program deployed inside that is simulated based on the chip design scheme. It is characterized in that The verification method is implemented by running the verification platform, and the verification method includes: receiving first configuration information, and dividing a synchronization area in a storage area of the analog chip; receiving second configuration information, and generating verification data corresponding to the part to be verified according to the second configuration information; Writing verification data to the synchronization area through a backdoor operation, so that after the C program of the emulation chip recognizes the start digital mark in the synchronization area, it reads and executes the verification data from the synchronization area, determines the target state mark, and writes the target state mark to the synchronization area; The target status flag is read from the synchronization area to determine the verification result of the to-be-verified portion of the chip design solution.
2. The verification method according to claim 1, It is characterized in that Verification data is written to the synchronization area through backdoor operations, including: Detect digital markers in the synchronization area; When an initial digital mark or an end digital mark is identified in the synchronization area, the verification data is written into the synchronization area; After the verification data is written, a start digital flag is written into the synchronization area so that the C program of the simulation chip can determine the writing status of the verification data.
3. The verification method according to claim 1, It is characterized in that Read the target status flag from the synchronization area to determine the verification result of the part to be verified of the chip design solution, including: When the target state flag is a correct state flag, confirming that the to-be-verified portion of the chip design solution has passed the verification; When the target state flag is an error state flag, it is confirmed that the to-be-verified portion of the chip design solution has not passed the verification.
4. The verification method according to claim 3, It is characterized in that When it is confirmed that the to-be-verified portion of the chip design solution has not passed the verification, the verification method further includes: The actual response information generated when the C program of the simulated chip executes the verification data is read through the backdoor operation; Compare the actual response information with the expected response information in the verification data; When the actual response information is consistent with the expected response information, it is determined that the to-be-verified portion of the chip design solution has passed the verification.
5. The verification method according to any one of claims 1 to 4, It is characterized in that Before writing verification data to the synchronization area through the backdoor operation, the verification method also includes: Initialize the data flags and status flags in the synchronization area.
6. A verification method for a chip design scheme, applied to an electronic device, wherein a verification platform and a simulation chip are deployed in the electronic device, and the simulation chip is a code file with a C program deployed inside that is simulated based on the chip design scheme. It is characterized in that A synchronization area is defined in the storage area of the simulation chip. The verification method is implemented by running the C program of the simulation chip. The verification method includes: Detect digital markers in the synchronization area; When the start digital mark is detected, the verification data of the to-be-verified part of the chip design scheme written by the verification platform is read from the synchronization area; Execute verification data to determine target status flag; The target state flag is written into the synchronization area, so that the verification platform reads the target state flag from the synchronization area to determine the verification result of the part to be verified of the chip design solution.
7. The verification method according to claim 6, It is characterized in that Execute validation data to determine target status flags, including: Execute verification data to generate actual response information; Compare the actual response information with the expected response information in the verification data to determine the target status flag.
8. The verification method according to claim 5, It is characterized in that Compare the actual response information with the expected response information in the verification data to determine the target status flag, including: When the actual response information is consistent with the expected response information, the correct state flag is used as the target state flag; When the actual response information is inconsistent with the expected response information, the target status flag is marked with an error status.
9. The verification method according to any one of claims 6 to 8, It is characterized in that After writing the target status flag into the synchronization area, the verification method further includes: Write the end data marker to the synchronization area.
10. An electronic device, wherein a verification platform and a simulation chip are deployed in the electronic device, wherein the simulation chip is a code file with a C program deployed inside it, which is simulated based on a chip design scheme, and the electronic device includes a processor and a memory storing program instructions. It is characterized in that The processor is configured to execute the verification method for a chip design solution according to any one of claims 1 to 9 when running the program instructions.
