CN111859831A - Chip verification method and system, and storage medium - Google Patents

Chip verification method and system, and storage medium Download PDF

Info

Publication number
CN111859831A
CN111859831A CN202010684517.2A CN202010684517A CN111859831A CN 111859831 A CN111859831 A CN 111859831A CN 202010684517 A CN202010684517 A CN 202010684517A CN 111859831 A CN111859831 A CN 111859831A
Authority
CN
China
Prior art keywords
response
request
data packet
storage area
chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202010684517.2A
Other languages
Chinese (zh)
Inventor
彭方新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010684517.2A priority Critical patent/CN111859831A/en
Publication of CN111859831A publication Critical patent/CN111859831A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design
    • G06F30/32Circuit design at the digital level
    • G06F30/33Design verification, e.g. functional simulation or model checking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本申请实施例公开了一种芯片验证方法和系统、及存储介质,所述方法包括:响应于来自芯片的请求信息,根据请求信息生成请求数据包;将请求数据包缓存至第一存储区域;通过执行测试用例,从第一存储区域获取请求数据包,并经由预设访问接口访问第二存储区域,从第二存储区域获取请求数据包对应的应答数据包;其中,预设访问接口为全局接口;将应答数据包发送至芯片,以验证芯片的数据处理能力。

Figure 202010684517

The embodiment of the present application discloses a chip verification method and system, and a storage medium. The method includes: in response to request information from a chip, generating a request data packet according to the request information; buffering the request data packet in a first storage area; By executing the test case, the request data packet is obtained from the first storage area, and the second storage area is accessed via the preset access interface, and the response data packet corresponding to the request data packet is obtained from the second storage area; wherein, the preset access interface is global Interface; send the response data packet to the chip to verify the data processing capability of the chip.

Figure 202010684517

Description

芯片验证方法和系统,及存储介质Chip verification method and system, and storage medium

技术领域technical field

本发明涉及芯片测试技术领域,尤其涉及一种芯片验证方法和系统,及存储介质。The invention relates to the technical field of chip testing, in particular to a chip verification method and system, and a storage medium.

背景技术Background technique

随着集成电路的飞速发展,芯片规模的增大,芯片设计中的验证工作也变得更加艰巨,已成为流程中开销最大的工作,占整个设计周期的比例越来越大。验证的工作量已经占到整个集成电路(System-on-a-Chip,SOC)芯片研发的70%到80%。因此,如何有效的进行芯片测试验证已变得至关重要。With the rapid development of integrated circuits and the increase in chip scale, the verification work in chip design has become more difficult, and has become the most expensive work in the process, accounting for an increasing proportion of the entire design cycle. The workload of verification has accounted for 70% to 80% of the research and development of the entire integrated circuit (System-on-a-Chip, SOC). Therefore, how to effectively perform chip test verification has become critical.

目前,在人工智能技术领域,基于卷积神经网络(Convolutional NeuralNetworks,CNN)的人工智能芯片主要通过人工智能核心模块(AI Core)进行CNN运算,从而实现人工智能加速。具体的,人工智能核心模块需要主动从核外存储单元不断搬运特征,权重,偏移等数据。基于这样的人工智能核心模块设计,验证人员常采用一被动事务单元外挂在人工智能模块主动接口上的方式来进行人工智能芯片的验证处理,两者配合工作,相互验证。At present, in the field of artificial intelligence technology, artificial intelligence chips based on Convolutional Neural Networks (CNN) mainly perform CNN operations through the artificial intelligence core module (AI Core) to achieve artificial intelligence acceleration. Specifically, the artificial intelligence core module needs to actively transfer data such as features, weights, and offsets from the out-of-core storage unit. Based on such an artificial intelligence core module design, verifiers often use a passive transaction unit to be attached to the active interface of the artificial intelligence module to verify the artificial intelligence chip, and the two work together to verify each other.

然而,现有的芯片验证方式验证过程操作复杂,且可配置性及可重用性较低,难以实现高效的芯片验证。However, the verification process of the existing chip verification method is complicated in operation, and has low configurability and reusability, which makes it difficult to achieve efficient chip verification.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种芯片验证方法和系统,及存储介质,不仅验证过程操作简单,而且具有高度的可重用性和可配置性,进一步实现了芯片的高效验证。The embodiments of the present application provide a chip verification method and system, and a storage medium, which not only have simple operation in the verification process, but also have high reusability and configurability, further realizing efficient verification of chips.

本申请实施例的技术方案是这样实现的:The technical solutions of the embodiments of the present application are implemented as follows:

第一方面,本申请实施例提供了一种芯片验证方法,所述方法包括:In a first aspect, an embodiment of the present application provides a chip verification method, the method comprising:

响应于来自芯片的请求信息,根据所述请求信息生成请求数据包;In response to the request information from the chip, a request data packet is generated according to the request information;

将所述请求数据包缓存至第一存储区域;caching the request data packet to the first storage area;

通过执行测试用例,从所述第一存储区域获取所述请求数据包,并经由预设访问接口访问第二存储区域,从所述第二存储区域获取所述请求数据包对应的应答数据包;其中,所述预设访问接口为全局接口;By executing the test case, the request data packet is obtained from the first storage area, and the second storage area is accessed via a preset access interface, and the response data packet corresponding to the request data packet is obtained from the second storage area; Wherein, the preset access interface is a global interface;

将所述应答数据包发送至所述芯片,以验证所述芯片的数据处理能力。The response data packet is sent to the chip to verify the data processing capability of the chip.

第二方面,本申请实施例提供了一种芯片验证系统,所述芯片验证系统设置监控模块、业务传输通道、驱动模块以及响应模块,In a second aspect, an embodiment of the present application provides a chip verification system, wherein the chip verification system is provided with a monitoring module, a service transmission channel, a driver module, and a response module,

所述监控模块,用于在接收到芯片发送的请求信息之后,响应于所述请求信息,根据所述请求信息生成请求数据包,并将所述请求数据包发送至所述业务传输通道;The monitoring module is configured to, after receiving the request information sent by the chip, in response to the request information, generate a request data packet according to the request information, and send the request data packet to the service transmission channel;

所述业务传输通道,用于在接收到所述请求数据包之后,将所述请求数据包缓存至第一存储区域;the service transmission channel, for buffering the request data packet to the first storage area after receiving the request data packet;

所述响应模块,用于通过执行测试用例,从所述第一存储区域读取所述请求数据包,并经由预设访问接口访问第二存储区域,从所述第二存储区域获取所述请求数据包对应的应答数据包;其中,所述预设访问接口为全局接口;The response module is configured to read the request data packet from the first storage area by executing a test case, and access the second storage area via a preset access interface, and obtain the request from the second storage area The response data packet corresponding to the data packet; wherein, the preset access interface is a global interface;

所述业务传输通道,还用于在接收到所述应答数据包之后,将所述应答数据包发送至所述驱动模块;The service transmission channel is further configured to send the response data packet to the drive module after receiving the response data packet;

所述驱动模块,用于在接收到所述应答数据包之后,将所述应答数据包发送至所述芯片,以验证所述芯片的数据处理能力。The driving module is configured to send the response data packet to the chip after receiving the response data packet, so as to verify the data processing capability of the chip.

第三方面,本申请实施例提供了一种芯片验证系统,所述芯片验证系统包括生成单元,存储单元,读取单元,获取单元以及发送单元,In a third aspect, an embodiment of the present application provides a chip verification system, the chip verification system includes a generating unit, a storage unit, a reading unit, an obtaining unit, and a sending unit,

所述生成单元,用于响应于来自芯片的请求信息,根据所述请求信息生成请求数据包;The generating unit is configured to generate a request data packet according to the request information in response to the request information from the chip;

所述存储单元,用于将所述请求数据包缓存至第一存储区域;the storage unit, configured to cache the request data packet to the first storage area;

所述获取单元,用于通过执行测试用例,从所述第一存储区域获取所述请求数据包;以及经由预设访问接口访问第二存储区域,从所述第二存储区域获取所述请求数据包对应的应答数据包;其中,所述预设访问接口为全局接口;The obtaining unit is configured to obtain the request data packet from the first storage area by executing a test case; and access the second storage area via a preset access interface, and obtain the request data from the second storage area The response data packet corresponding to the packet; wherein, the preset access interface is a global interface;

所述发送单元,用于将所述应答数据包发送至所述芯片,以验证所述芯片的数据处理能力。The sending unit is configured to send the response data packet to the chip to verify the data processing capability of the chip.

本申请实施例提供了一种芯片验证方法和系统,及存储介质,芯片验证系统响应于来自芯片的请求信息,根据请求信息生成请求数据包;将请求数据包缓存至第一存储区域;通过执行测试用例,从第一存储区域获取请求数据包,并经由预设访问接口访问第二存储区域,从第二存储区域获取请求数据包对应的应答数据包;其中,预设访问接口为全局接口;将应答数据包发送至芯片,以验证芯片的数据处理能力。Embodiments of the present application provide a chip verification method and system, and a storage medium. The chip verification system, in response to request information from a chip, generates a request data packet according to the request information; caches the request data packet in a first storage area; In the test case, the request data packet is obtained from the first storage area, and the second storage area is accessed via a preset access interface, and the response data packet corresponding to the request data packet is obtained from the second storage area; wherein, the preset access interface is a global interface; Send the response data packet to the chip to verify the data processing capability of the chip.

具体地,在本申请的实施例中,芯片验证系统可以通过监控模块和驱动模块分别处理芯片发出的请求信息和返回给芯片的应答信息;同时,芯片验证系统也可以通过执行测试用例从第一存储区域中获取请求信息,并经由预设访问接口从第二存储区域中获取请求信息对应的应答信息;其中,该预设访问接口为全局接口,以实现验证组件间的数据更新共享。可见,在本申请提出的芯片验证方法和系统中,不同模块之间相互独立,以执行不同的验证功能,使得芯片验证系统具有高度的可重用性;同时,通过执行测试用例来完成请求信息和应答信息的交互过程,能够实现经由全局访问接口实现对第二存储区域的访问,以对第二存储区域中的数据进行更新,具有高度的可配置性,进一步实现了芯片的高效验证。Specifically, in the embodiment of the present application, the chip verification system can process the request information sent by the chip and the response information returned to the chip through the monitoring module and the driving module respectively; at the same time, the chip verification system can also execute the test case from the first The request information is obtained from the storage area, and the response information corresponding to the request information is obtained from the second storage area via a preset access interface; wherein, the preset access interface is a global interface to realize data update and sharing among verification components. It can be seen that in the chip verification method and system proposed in this application, different modules are independent of each other to perform different verification functions, so that the chip verification system is highly reusable; at the same time, the request information and The interaction process of the response information can realize the access to the second storage area through the global access interface to update the data in the second storage area, which has high configurability and further realizes the efficient verification of the chip.

附图说明Description of drawings

图1为相关技术中UVM验证平台的组成框架示意图;Fig. 1 is the composition frame schematic diagram of UVM verification platform in the related art;

图2为相关技术中被动事务单元的组成架构示意图;2 is a schematic diagram of the composition structure of a passive transaction unit in the related art;

图3为本申请提出的芯片验证方法的实现流程示意图一;FIG. 3 is a schematic diagram 1 of the implementation flow of the chip verification method proposed by the present application;

图4为本申请提出的基于UVM验证方法学实现的芯片验证系统的组成结构示意图;4 is a schematic diagram of the composition and structure of a chip verification system implemented based on the UVM verification methodology proposed by the application;

图5为本申请提出的芯片验证方法的实现流程示意图二;FIG. 5 is a second implementation flowchart of the chip verification method proposed by the present application;

图6为本申请提出的芯片验证系统的组成结构示意图一;FIG. 6 is a schematic diagram 1 of the composition structure of the chip verification system proposed by the present application;

图7为本申请提出的芯片验证系统的组成结构示意图二。FIG. 7 is a second schematic diagram of the composition and structure of the chip verification system proposed by the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。可以理解的是,此处所描述的具体实施例仅用于解释相关申请,而非对该申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关申请相关的部分。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It should be understood that the specific embodiments described herein are only used to explain the related application, but not to limit the application. In addition, it should be noted that, for the convenience of description, only the parts related to the relevant application are shown in the drawings.

对本发明实施例进行进一步详细说明之前,对本发明实施例中涉及的名词和术语进行说明,本发明实施例中涉及的名词和术语适用于如下的解释。Before further describing the embodiments of the present invention in detail, the terms and terms involved in the embodiments of the present invention are described. The terms and terms involved in the embodiments of the present invention are applicable to the following explanations.

1)待测模块(Design Under Test,DUT):在现代集成电路(Integrated CircuitChip,IC)设计流程中,当设计人员根据设计规格说明书完成寄存器传输级(RegisterTransfer Level,RTL)代码之后,验证人员开始验证这些代码,通常称其为待测模块,即DUT。1) Design Under Test (DUT): In the modern integrated circuit (Integrated CircuitChip, IC) design process, when the designer completes the Register Transfer Level (RTL) code according to the design specification, the verifier starts. Validate these codes, often referred to as the module under test, or DUT.

2)通用验证方法学(Universal Verification Methodology,UVM):是一个以SystemVerilog类库为主体的验证平台开发框架,可以利用其可重用组件构建具有标准化层次结构和接口的功能验证环境。通过将DUT放入一搭建好的UVM验证平台,来找出DUT中的bug。2) Universal Verification Methodology (UVM): It is a verification platform development framework with the SystemVerilog class library as the main body, and its reusable components can be used to build a functional verification environment with a standardized hierarchy and interface. Find bugs in the DUT by placing the DUT into a built UVM verification platform.

图1为相关技术中UVM验证平台的组成框架示意图,如图1所示,该UVM验证平台包括以下基本组件,如:(11)待测模块DUT;(12)事务单元agent:它是一个容器,将驱动器driver、监视器monitor以及序列发生器sequencer封装在其中,事务单元agent可实例化驱动器driver、监视器monitor以及序列发生器sequencer;其中,事务单元agent包括In_Agent主动事务单元(121)和Out_Agent被动事务单元(122);(13)监视器monitor:监测待测模块DUT的输入输出信号,并将收集到的DUT的端口数据转换成事务级信息transaction,以交给后续的参考模型reference model和记分板scoreboard组件进行处理;(14)驱动器driver:用于给待测模块DUT施加各种激励,负责驱动事务级信息transaction,它本身并不产生事务级信息transaction;(15)序列发生器sequencer:用于检测仲裁队列中是否有发送事务级信息transaction的请求,以及检测驱动器driver是否申请事务级信息transaction;(16)参考模型reference model:模拟待测模块DUT的功能行为,完成和待测模块DUT相同的功能,得到预期结果;且其输出被记分板scoreboard接收,用于和待测模块DUT实际输出相比较;(17)记分板scoreboard:根据待测模块DUT的输出来判断待测模块DUT的行为是否与预期相符合,实现将DUT的输出和参考模型reference model的输出进行比较。Figure 1 is a schematic diagram of the composition framework of the UVM verification platform in the related art. As shown in Figure 1, the UVM verification platform includes the following basic components, such as: (11) the module to be tested DUT; (12) transaction unit agent: it is a container , encapsulate the driver driver, monitor monitor and sequencer sequencer in it, the transaction unit agent can instantiate the driver driver, monitor monitor and sequencer sequencer; wherein, the transaction unit agent includes In_Agent active transaction unit (121) and Out_Agent Passive transaction unit (122); (13) Monitor monitor: monitors the input and output signals of the DUT of the module to be tested, and converts the collected DUT port data into transaction-level information transaction, which is handed over to the subsequent reference model reference model and The scoreboard component is processed; (14) Driver: used to apply various incentives to the DUT of the module under test, and is responsible for driving transaction-level information transactions, which itself does not generate transaction-level information transactions; (15) Sequencer sequencer: It is used to detect whether there is a request to send transaction-level information transaction in the arbitration queue, and to detect whether the driver applies for transaction-level information transaction; (16) reference model reference model: simulate the functional behavior of the DUT of the module to be tested, and complete the DUT of the module to be tested. The same function, the expected result is obtained; and its output is received by the scoreboard scoreboard, which is used to compare with the actual output of the DUT of the module to be tested; (17) scoreboard scoreboard: According to the output of the DUT of the module to be tested, the output of the DUT of the module to be tested is judged. Whether the behavior is as expected, the implementation compares the output of the DUT with the output of the reference model.

随着集成电路的飞速发展,芯片规模的增大,芯片设计中的验证工作也变得更加艰巨,已成为流程中开销最大的工作,占整个设计周期的比例越来越大。验证的工作量已经占到整个集成电路(System-on-a-Chip,SOC)芯片研发的70%到80%。因此,如何有效的进行芯片测试验证已变得至关重要。With the rapid development of integrated circuits and the increase in chip scale, the verification work in chip design has become more difficult, and has become the most expensive work in the process, accounting for an increasing proportion of the entire design cycle. The workload of verification has accounted for 70% to 80% of the research and development of the entire integrated circuit (System-on-a-Chip, SOC). Therefore, how to effectively perform chip test verification has become critical.

目前,在人工智能技术领域,基于CNN等网络的人工智能芯片主要通过人工智能核心模块(AI Core)进行CNN运算,从而实现人工智能加速。具体的,由于人工智能核心模块需要主动从核外存储单元不断搬运特征,权重,偏移等数据,因此,基于这样的人工智能核心模块设计,验证人员常采用一被动事务单元外挂在人工智能模块主动接口上的方式来进行人工智能芯片的验证处理,两者配合工作,相互验证。At present, in the field of artificial intelligence technology, artificial intelligence chips based on CNN and other networks mainly perform CNN operations through the artificial intelligence core module (AI Core), thereby realizing artificial intelligence acceleration. Specifically, since the artificial intelligence core module needs to actively transfer data such as features, weights, and offsets from the out-of-core storage unit, based on the design of such an artificial intelligence core module, verifiers often use a passive transaction unit to plug in the artificial intelligence module. The verification process of the artificial intelligence chip is carried out by means of the active interface, and the two work together to verify each other.

图2为相关技术中被动事务单元的组成架构示意图,如图2所示,在对人工智能核心模块进行功能验证时,被动事务单元agent(21)中,由于只是被动接收请求,并回馈给待测模块DUT(21)(如:人工智能核心模块),因而往往在被动事务单元(21)中只实现监视器monitor(22)从虚拟接口(23)接收请求,然后监视器monitor(22)中例化存储模块(24);具体的,监视器monitor(22)根据接收到的读写请求,更新或读取存储模块(24)的数据,进而产生应答数据,并将应答数据直接送给虚拟接口(23),以驱动给待测模块DUT(21)。FIG. 2 is a schematic diagram of the composition structure of the passive transaction unit in the related art. As shown in FIG. 2, when the function verification of the artificial intelligence core module is performed, the passive transaction unit agent (21) only passively receives the request and feeds it back to the waiting Therefore, in the passive transaction unit (21), only the monitor monitor (22) receives the request from the virtual interface (23), and then the monitor monitor (22) Instantiate the storage module (24); Concretely, the monitor monitor (22) updates or reads the data of the storage module (24) according to the read-write request received, and then generates the response data, and directly sends the response data to the virtual The interface (23) is used to drive the module under test DUT (21).

然而,由于高效的验证方案,需要高度的可重用性以及可配置性,因此,基于图2所示的验证系统存在以下缺陷:首先,在监视器monitor中例化了存储模块,且根据存储模块的数据驱动应答数据给待测模块DUT,兼有驱动器driver的任务,使得被动事务单元在被上层验证环境集成重用时,由于只有监控功能可以重用,而驱动响应的功能不可重用,因而导致验证环境可重用性较低。其次,被动事务单元中的存储模块往往需要在顶层环境中进行配置,由于监视器monitor并不会被上层环境直接调用,因而使得上层环境难以对于其中的存储模块进行操作。进一步地,由图2可知,监视器monitor与存储模块的交互都在监视器monitor中,从而导致了上层环境与测试用例无法对其进行控制(例如更改存储模块中的数据,或者按测试用例情景添加应答延时等等);可见,现有的芯片验证方式验证过程操作复杂,且可配置性及可重用性较低,难以实现高效的芯片验证。However, since an efficient verification scheme requires a high degree of reusability and configurability, the verification system based on Figure 2 has the following drawbacks: First, a storage module is instantiated in the monitor, and according to the storage module The data-driven response data is sent to the DUT of the module under test, and it also has the task of the driver driver, so that when the passive transaction unit is integrated and reused by the upper-level verification environment, only the monitoring function can be reused, and the function of driving the response cannot be reused, which leads to the verification environment. Less reusability. Secondly, the storage modules in the passive transaction unit often need to be configured in the top-level environment. Since the monitor is not directly called by the upper-level environment, it is difficult for the upper-level environment to operate the storage modules in it. Further, as can be seen from Figure 2, the interaction between the monitor monitor and the storage module is all in the monitor monitor, which leads to the inability of the upper-layer environment and test cases to control it (for example, changing the data in the storage module, or according to the test case scenario. Add response delay, etc.); it can be seen that the existing chip verification method has complicated verification process, low configurability and low reusability, and it is difficult to achieve efficient chip verification.

为了解决现有的芯片验证机制所存在的问题,本申请实施例提供了一种芯片验证方法和系统,及存储介质。具体地,在本申请提出的芯片验证系统中,该芯片验证系统可以通过监控模块和驱动模块分别处理芯片发出的请求信息和返回给芯片的应答信息;同时,芯片验证系统也可以通过执行测试用例从第一存储区域中获取请求信息,并经由预设访问接口从第二存储区域中获取请求信息对应的应答信息;其中,该预设访问接口为全局接口,以实现验证组件间的数据更新共享。可见,在本申请提出的芯片验证方法和系统中,不同模块之间相互独立,以执行不同的验证功能,使得芯片验证系统具有高度的可重用性;同时,通过执行测试用例来完成请求信息和应答信息的交互过程,能够实现经由全局访问接口实现对第二存储区域的访问,以对第二存储区域中的数据进行更新,具有高度的可配置性,进一步实现了芯片的高效验证。In order to solve the problems existing in the existing chip verification mechanism, the embodiments of the present application provide a chip verification method and system, and a storage medium. Specifically, in the chip verification system proposed in this application, the chip verification system can process the request information sent by the chip and the response information returned to the chip through the monitoring module and the driving module respectively; at the same time, the chip verification system can also be executed by executing the test case. The request information is obtained from the first storage area, and the response information corresponding to the request information is obtained from the second storage area via a preset access interface; wherein, the preset access interface is a global interface to realize data update and sharing between verification components . It can be seen that in the chip verification method and system proposed in this application, different modules are independent of each other to perform different verification functions, so that the chip verification system is highly reusable; at the same time, the request information and The interaction process of the response information can realize the access to the second storage area through the global access interface to update the data in the second storage area, which has high configurability and further realizes the efficient verification of the chip.

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.

可选的,本申请较佳的实施例中,芯片验证系统可以基于UVM验证方法学实现,验证工程师可以基于图1所示的UVM验证平台的组成架构示意图,以其中预定义的类为起点,建立起具有标准结构的芯片验证系统。下文中描述的驱动模块driver、监控模块monitor等等其他组件均可以由现有的UVM验证平台提供。验证人员可通过实例化不同的验证组件来构建本申请芯片验证系统。Optionally, in a preferred embodiment of the present application, the chip verification system can be implemented based on the UVM verification methodology, and the verification engineer can use the predefined classes as a starting point based on the schematic diagram of the composition and architecture of the UVM verification platform shown in FIG. 1 . A chip verification system with a standard structure is established. The driver module driver, monitoring module monitor and other components described below can be provided by the existing UVM verification platform. Verifiers can construct the chip verification system of the present application by instantiating different verification components.

本申请一实施例提供了一种芯片验证方法,图3为本申请提出的芯片验证方法的实现流程示意图一,如图3所示,在本申请的实施例中,芯片验证系统执行芯片验证方法可以包括以下步骤:An embodiment of the present application provides a chip verification method. FIG. 3 is a schematic diagram 1 of the implementation flow of the chip verification method proposed by the present application. As shown in FIG. 3 , in the embodiment of the present application, the chip verification system executes the chip verification method. The following steps can be included:

步骤101、响应于来自芯片的请求信息,根据请求信息生成请求数据包。Step 101: In response to the request information from the chip, generate a request data packet according to the request information.

在本申请的实施例中,芯片验证系统可以先接收待测芯片发送的请求信息,并响应该请求信息,进一步生成与该请求信息对应的请求数据包。In the embodiment of the present application, the chip verification system may first receive the request information sent by the chip to be tested, and in response to the request information, further generate a request data packet corresponding to the request information.

需要说明的是,在本申请的实施例中,芯片验证系统可以由至少一个设备构成。可选的,该至少一个设备可以为物理服务器、虚拟服务器(如云服务器)、平板电脑、个人计算机(PersonalComputer,PC)、笔记本电脑等这些具备计算功能和存储功能的设备,本申请实施例中对于应用芯片验证方法的设备不做具体限定。It should be noted that, in the embodiments of the present application, the chip verification system may be constituted by at least one device. Optionally, the at least one device may be a physical server, a virtual server (such as a cloud server), a tablet computer, a personal computer (Personal Computer, PC), a notebook computer, and other devices with computing functions and storage functions. There is no specific limitation on the device to which the chip verification method is applied.

进一步地,在具体的实施过程中,本申请实施例中的芯片验证系统的创建可以是基于至少一个设备完成的,也就是说,芯片验证方法可以是一个设备单独执行的,也可以是多个设备配合执行的。Further, in the specific implementation process, the creation of the chip verification system in the embodiment of the present application may be completed based on at least one device, that is, the chip verification method may be executed by one device alone, or may be performed by multiple devices. equipment cooperates.

可以理解的是,设计人员根据芯片的设计规格说明书完成对应的RTL代码的过程中,由于验证人员的理解偏差或者疏忽,得到的RTL代码并不一定能够反映芯片的所有特性,因此,验证人员常通过搭建一相应地验证环境对该芯片的基本功能进行测试。It is understandable that in the process of completing the corresponding RTL code according to the design specification of the chip, due to the understanding deviation or negligence of the verifier, the obtained RTL code may not reflect all the characteristics of the chip. Therefore, the verifier often The basic functions of the chip are tested by building a corresponding verification environment.

可选的,在本申请的实施例中,该芯片可以为具备数据搬运能力的核心模块,例如,基于CNN等网络的人工智能芯片;从而通过芯片验证系统实现对芯片的数据搬运能力的验证。Optionally, in the embodiment of the present application, the chip may be a core module with data handling capability, for example, an artificial intelligence chip based on a network such as CNN; thus, the data handling capability of the chip can be verified through a chip verification system.

具体地,在本申请的实施例中,芯片的数据搬运能力包括从核外存储单元读取数据的能力和向核外存储单元写入数据的能力,也就是说,芯片验证系统获取到的芯片的请求信息,包括读数据请求和写数据请求。当获取到的请求信息为读数据请求时,表明验证芯片的数据读取能力;当获取到的请求信息为写数据请求时,表明验证芯片的写数据能力。Specifically, in the embodiment of the present application, the data handling capability of the chip includes the capability of reading data from the out-of-core storage unit and the capability of writing data to the out-of-core storage unit, that is, the chip obtained by the chip verification system. request information, including read data requests and write data requests. When the acquired request information is a data read request, it indicates the data read capability of the verification chip; when the acquired request information is a write data request, it indicates the verification chip's data write capability.

需要说明的是,在本申请的实施例中,芯片验证系统接收到芯片的请求信息之后,由于芯片验证系统中数据都是以事务级信息进行传递,因此,芯片验证系统需要根据时序协议将请求信息对应的时序信息转换成事务级的信息。具体的,芯片验证系统在接收到芯片的请求信息之后,响应于该请求信息,对该请求信息进行事务级信息的封装处理,从而生成该请求信息对应的请求数据包。It should be noted that, in the embodiment of the present application, after the chip verification system receives the request information from the chip, since the data in the chip verification system is transmitted by transaction-level information, the chip verification system needs to send the request according to the timing protocol. The timing information corresponding to the information is converted into transaction-level information. Specifically, after receiving the request information from the chip, the chip verification system performs transaction-level information encapsulation processing on the request information in response to the request information, thereby generating a request data packet corresponding to the request information.

示例性的,在本申请的实施例中,在基于UVM验证方法学实现的芯片验证系统中,该芯片验证系统可以实例化监视器monitor组件,通过监视器monitor从虚拟接口(interface)接收来自芯片的请求信息,并将请求信息对应的时序信息转换为transaction事务级的信息,从而得到该请求信息对应的请求数据包。Exemplarily, in the embodiment of the present application, in the chip verification system implemented based on the UVM verification methodology, the chip verification system can instantiate the monitor monitor component, and the monitor monitor receives the data from the chip from the virtual interface (interface) through the monitor monitor. request information, and convert the timing information corresponding to the request information into transaction-level information, so as to obtain the request data packet corresponding to the request information.

进一步的,在本申请的实施例中,芯片验证系统在接收到芯片发送的请求信息,并响应于该请求信息,生成请求信息对应的请求数据包之后,芯片验证系统可以进一步对该请求数据包进行存储。Further, in the embodiment of the present application, after the chip verification system receives the request information sent by the chip, and in response to the request information, generates a request data packet corresponding to the request information, the chip verification system can further perform the request data packet. to store.

步骤102、将请求数据包缓存至第一存储区域。Step 102: Cache the request data packet in the first storage area.

在本申请的实施例中,芯片验证系统在响应于来自芯片的请求信息,生成请求信息对应的请求数据包之后,芯片验证系统可以进一步将该请求数据包缓存至第一存储区域。In the embodiment of the present application, after the chip verification system generates a request data packet corresponding to the request information in response to the request information from the chip, the chip verification system may further cache the request data packet in the first storage area.

需要说明的是,在本申请的实施例中,由于芯片能够通过发送请求信息,以实现对核外存储单元,如不同的随机存取存储器(Random Access Memory,RAM)或者只读存储器(Read-Only Memory,ROM)的访问,进而执行数据的读写操作。然而由于核外存储单元的带宽有限,持续发送的芯片的请求数据包不能直接发送至核外存储单元,因此,芯片验证系统设计一缓存空间,对请求数据包先进行缓存,外部存储单元可在满足一定条件时,从缓存空间中读取该请求数据包。It should be noted that, in the embodiments of the present application, since the chip can send request information to realize the control of the out-of-core storage unit, such as different random access memory (Random Access Memory, RAM) or read-only memory (Read- Only Memory, ROM) access, and then perform data read and write operations. However, due to the limited bandwidth of the out-of-core storage unit, the request data packets of the chip that are continuously sent cannot be directly sent to the out-of-core storage unit. Therefore, the chip verification system designs a buffer space to cache the request data packets first. When certain conditions are met, the request packet is read from the cache space.

具体的,本申请中的请求数据包的缓存处理是指根据“先进先出”的原则进行的存储操作。也就是说,芯片验证系统是按请求数据包发送的时间先后顺序,将请求数据包依次缓存至第一存储区域,后续的获取数据包过程也是按照该“先进先出”原则,依次从第一存储区域读取该请求数据包。Specifically, the cache processing of the request data packet in this application refers to the storage operation performed according to the principle of "first in, first out". That is to say, the chip verification system caches the request data packets in the first storage area in the order in which the request data packets are sent. The storage area reads the request packet.

示例性的,在本申请的实施例中,在基于UVM验证方法学实现的芯片验证系统中,该芯片验证系统可以实例化序列发生器sequencer组件,该序列发生器sequencer作为数据传输通道,可以通过TLM1传输单元层模型接口来接收监视器monitor发送的请求数据包,并进一步将请求数据包缓存至内置的先进先出(First Input First Output,FIFO)存储空间中,继而等待数据包的读取。Exemplarily, in the embodiments of the present application, in the chip verification system implemented based on the UVM verification methodology, the chip verification system can instantiate the sequencer sequencer component, the sequencer sequencer is used as a data transmission channel, which can be used as a data transmission channel. The TLM1 transmits the unit layer model interface to receive the request data packets sent by the monitor monitor, and further buffers the request data packets into the built-in First Input First Output (FIFO) storage space, and then waits for the data packets to be read.

进一步的,在本申请的实施例中,芯片验证系统将请求数据包缓存至第一存储区域之后,芯片验证系统可以进一步通过执行测试用例,从第一存储区域获取请求数据包,并进行应答处理。Further, in the embodiment of the present application, after the chip verification system caches the request data packet in the first storage area, the chip verification system can further obtain the request data packet from the first storage area by executing the test case, and perform response processing. .

步骤103、通过执行测试用例,从第一存储区域获取请求数据包,并经由预设访问接口访问第二存储区域,从第二存储区域获取请求数据包对应的应答数据包;其中,预设访问接口为全局接口。Step 103: Obtain the request data packet from the first storage area by executing the test case, and access the second storage area via the preset access interface, and obtain the response data packet corresponding to the request data packet from the second storage area; wherein, the preset access The interface is a global interface.

在本申请的实施例中,芯片验证系统将请求数据包缓存至第一存储区域之后,芯片验证系统可以通过执行测试用例,从第一存储区域获取该请求数据包,并通过预设访问接口访问第二存储区域,进而从第二存储区域中获取该请求数据包对应的应答数据包,其中,该预设访问接口为全局接口。In the embodiment of the present application, after the chip verification system caches the request data packet in the first storage area, the chip verification system can obtain the request data packet from the first storage area by executing the test case, and access the request data packet through the preset access interface The second storage area further acquires the response data packet corresponding to the request data packet from the second storage area, wherein the preset access interface is a global interface.

需要说明的是,在本申请的实施例中,测试用例为针对芯片的请求信息,设置的具有多种预定条件参数的一响应测试任务。可选的,该预定条件参数可以是针对请求信息设置的多种预设应答条件。具体的,该预设应答条件可以是周期性响应请求信息;也可以是特定条件下响应该请求信息。It should be noted that, in the embodiment of the present application, the test case is a response test task with multiple predetermined condition parameters set for the request information of the chip. Optionally, the predetermined condition parameter may be a variety of preset response conditions set for the request information. Specifically, the preset response condition may be a periodic response to the request information; or a response to the request information under a specific condition.

进一步的,芯片验证系统可以通过执行测试用例,实现对缓存在第一存储区域的请求数据包的应答处理。具体的,芯片验证系统执行测试用例时,可以判断当前是否满足测试用例中的预设应答条件,若判定满足该预设应答条件,芯片验证系统则可以从第一存储区域获取相应的请求数据包,并从第二存储区域获取该请求数据包对应的应答数据包。Further, the chip verification system can implement the response processing to the request data packet buffered in the first storage area by executing the test case. Specifically, when the chip verification system executes the test case, it can determine whether the preset response condition in the test case is currently satisfied. If it is determined that the preset response condition is satisfied, the chip verification system can obtain the corresponding request data packet from the first storage area. , and obtain the response data packet corresponding to the request data packet from the second storage area.

可选的,当测试用例中的预设应答条件为周期性响应请求信息时,芯片验证系统可以周期性的从第一存储区域读取请求数据包并响应;当测试用例中的预设应答条件为特定条件下响应该请求信息时,芯片验证系统也可以在满足特定条件时,从第一存储区域读取请求数据包并响应。具体的,芯片验证系统从第一存储区域中以“先进先出”原则依次读取请求数据包,且依次响应。Optionally, when the preset response condition in the test case is the periodic response request information, the chip verification system can periodically read the request data packet from the first storage area and respond; when the preset response condition in the test case is When responding to the request information under specific conditions, the chip verification system can also read the request data packet from the first storage area and respond when the specific conditions are met. Specifically, the chip verification system sequentially reads the request data packets from the first storage area according to the "first-in, first-out" principle, and responds sequentially.

需要说明的是,在本申请的实施例中,第二存储区域对应于存放数据的核外存储单元,芯片通过访问第二存储区域,可以实现对该核外存储单元中的数据进行读写操作。It should be noted that, in the embodiments of the present application, the second storage area corresponds to an out-of-core storage unit that stores data, and the chip can perform read and write operations on data in the out-of-core storage unit by accessing the second storage area. .

进一步地,在本申请的实施例中,芯片验证系统可以经由预设访问接口访问第二存储区域,进而从第二存储区域中获取上述请求数据包对应的应答数据包,其中,该应答数据包中包含上述请求信息对应的应答信息。具体地,芯片验证系统可以根据不同类型的请求信息,以不同的方式获取应答信息。Further, in the embodiment of the present application, the chip verification system can access the second storage area via the preset access interface, and then obtain the response data packet corresponding to the above-mentioned request data packet from the second storage area, wherein the response data packet contains the response information corresponding to the above request information. Specifically, the chip verification system can acquire response information in different ways according to different types of request information.

需要说明的是,在本申请的实施例中,预设访问接口为全局接口,可以理解的是,全局接口遵循“一处定义,处处可用”原则,也就是说,在芯片验证系统中,各验证组件均可以通过预设访问接口实现对第二存储区域的全局访问。可选的,芯片验证系统可以在执行测试用例时通过预设访问接口访问第二存储区域,另外,芯片验证系统也可以通过系统上层环境或者其他验证组件经由预设访问接口访问第二存储区域。It should be noted that, in the embodiments of the present application, the preset access interface is a global interface. It can be understood that the global interface follows the principle of "defined in one place, available everywhere", that is, in the chip verification system, each All verification components can implement global access to the second storage area through a preset access interface. Optionally, the chip verification system can access the second storage area through a preset access interface when executing the test case, and the chip verification system can also access the second storage area through the preset access interface through the system upper environment or other verification components.

具体的,芯片验证系统在执行芯片的验证处理过程中,既可以是上层环境通过预设访问接口访问第二存储区域,实现核外存储单元的“后门”访问,以进行数据的配置并更新;也可以是在执行测试用例时,通过预设访问接口访问第二存储区域,实现核外存储单元的“前门”访问,以进行数据的配置更新;且无论通过何种方式、何种验证组件进行核外存储单元数据的配置及更新,更新后的数据在各个组件中都是能够共享的。Specifically, when the chip verification system executes the verification process of the chip, the upper-layer environment may access the second storage area through the preset access interface, so as to realize the "backdoor" access of the out-of-core storage unit, so as to configure and update the data; It can also be that when the test case is executed, the second storage area is accessed through the preset access interface, so as to realize the "front door" access of the out-of-core storage unit, so as to carry out the configuration update of the data; The configuration and update of the data of the out-of-core storage unit, the updated data can be shared among all components.

示例性地,在本申请的实施例中,在基于UVM验证方法学实现的芯片验证系统中,该芯片验证系统可以实例化响应序列sequence组件,通过执行测试用例,使得该响应序列sequence在满足预设应答条件时,能够读取缓存在内置的FIFO存储空间中的请求数据包,并按照该请求数据包以“前门”访问的方式,经由预设访问接口访问第二存储区域,从第二存储区域中获取到请求信息对应的应答数据包。在芯片验证处理过程中,如果需要对第二存储区域中的数据进行配置更新,也可以通过上层环境以“后门”访问的方式,经由预设访问接口访问第二存储区域,以进行数据的配置并更新。Exemplarily, in the embodiments of the present application, in the chip verification system implemented based on the UVM verification methodology, the chip verification system can instantiate the response sequence sequence component, and by executing the test case, the response sequence sequence can be made to meet the pre-determined conditions. When the response condition is set, the request data packet cached in the built-in FIFO storage space can be read, and the second storage area can be accessed through the preset access interface in the way of “front door” access according to the request data packet, and the second storage area can be accessed from the second storage area. The response data packet corresponding to the request information is obtained in the area. During the chip verification process, if you need to update the configuration of the data in the second storage area, you can also access the second storage area through the preset access interface through the upper-layer environment in the way of "backdoor" access to configure the data. and update.

进一步地,在本申请的实施例中,芯片验证系统通过执行测试用例,从第一存储地区域中读取请求数据包,并经由预设访问接口访问第二存储区域,从从第二存储区域中获取请求数据包对应的应答数据包之后,芯片验证系统可以进一步将该应答数据包发送给芯片,从而实现对芯片的数据处理能力的验证。Further, in the embodiment of the present application, the chip verification system reads the request data packet from the first storage area by executing the test case, and accesses the second storage area via the preset access interface, and starts from the second storage area. After obtaining the response data packet corresponding to the request data packet in the system, the chip verification system can further send the response data packet to the chip, so as to realize the verification of the data processing capability of the chip.

步骤104、将应答数据包发送至芯片,以验证芯片的数据处理能力。Step 104: Send the response data packet to the chip to verify the data processing capability of the chip.

在本申请的实施例中,芯片验证系统通过执行测试用例,从第一存储区域读取请求数据包,并从第二存储区域中获取请求数据包对应的应答数据包之后,芯片验证系统可以将该应答数据包发送至芯片,从而实现了对芯片的数据处理能力的验证。In the embodiment of the present application, after the chip verification system reads the request data packet from the first storage area by executing the test case, and obtains the response data packet corresponding to the request data packet from the second storage area, the chip verification system can The response data packet is sent to the chip, thereby realizing the verification of the data processing capability of the chip.

需要说明的是,在本申请的实施例中,由于芯片验证系统中数据都是以事务级信息进行传递,因此,在进行应答数据包与芯片之间的传递时,需要先根据时序协议将应答数据包对应的事务级的信息转换成时序信息,进而将请求应答对应的时序信息发送至芯片。It should be noted that, in the embodiments of the present application, since the data in the chip verification system is transmitted by transaction-level information, when transmitting the response data packet and the chip, it is necessary to first transmit the response according to the timing protocol. The transaction-level information corresponding to the data packet is converted into timing information, and then the timing information corresponding to the request response is sent to the chip.

进一步地,通过对芯片是否发送请求信息,以及芯片是否能接收到该请求信息对应的应答信息进行测试,实现了对芯片的数据处理能力,即从核外存储单元搬运数据的能力的验证。Further, by testing whether the chip sends the request information and whether the chip can receive the response information corresponding to the request information, the verification of the data processing capability of the chip, that is, the capability of transferring data from the out-of-core storage unit, is realized.

示例性地,在本申请的实施例中,在基于UVM验证方法学实现的芯片验证系统中,响应序列sequence在满足预设应答条件,经由预设访问接口访问第二存储区域,从第二存储区域中获取到请求数据包对应的应答数据包之后,可以先将应答数据包发送至业务传输通道sequencer,进而通道业务传输通道的TLM1传输单元层模型将该应答数据包传递给驱动器driver,也就是说,应答数据包需要通过业务传输通道完成其在响应序列以及驱动器之间的传递,进一步地,驱动器driver在接收到应答数据包之后,将应答数据包对应的事务级信息转化为时序信息,并通过调用虚拟接口interface将该时序信息传递到芯片之中,从而实现了对芯片的数据处理能力的验证。Exemplarily, in the embodiment of the present application, in the chip verification system implemented based on the UVM verification methodology, the response sequence sequence meets the preset response condition, accesses the second storage area via the preset access interface, and accesses the second storage area from the second storage area. After the response packet corresponding to the request packet is obtained in the area, the response packet can be sent to the service transmission channel sequencer first, and then the TLM1 transmission unit layer model of the channel service transmission channel passes the response packet to the driver driver, that is It is said that the response data packet needs to complete its transmission between the response sequence and the driver through the service transmission channel. Further, after receiving the response data packet, the driver driver converts the transaction-level information corresponding to the response data packet into timing information, and The timing information is transmitted to the chip by calling the virtual interface, thereby realizing the verification of the data processing capability of the chip.

示例性地,图4为本申请实施例提出的基于UVM验证方法学实现的芯片验证系统(30)的组成结构示意图,如图4所示,具体的,芯片验证系统通过监视模块monitor(31)从虚拟接口(32)接收来自芯片DUT(40)发送的请求信息,并生成该请求信息对应的请求数据包,然后通过TLM2传输单元层模型(33),将请求数据包传递至业务传输通道sequencer(34);业务传输通道(34)在接收到监视模块(31)传递的请求数据包之后,将该请求数据包缓存至内置的FIFO存储空间中,等待响应模块response sequence(35)拿取;进一步地,通过执行测试用例,响应模块(35)通过传输单元(36)开始从业务传输通道(34)的FIFO存储空间中获取监视模块(32)传递的请求数据包,并访问第二存储区域(37),以从第二存储区域(37)中获取请求应答,从而进一步将应答数据包通过业务传输通道的TLM1传输单元层模型(38)送给驱动模块driver(39),并通过虚拟接口(32)发送至芯片DUT(40),以响应芯片DUT(40)的请求。Exemplarily, FIG. 4 is a schematic diagram of the composition of the chip verification system (30) based on the UVM verification methodology proposed by the embodiment of the application, as shown in FIG. 4, specifically, the chip verification system passes the monitoring module monitor (31) The request information sent from the chip DUT (40) is received from the virtual interface (32), and the request data packet corresponding to the request information is generated, and then the request data packet is transmitted to the service transmission channel sequencer through the TLM2 transmission unit layer model (33). (34); After receiving the request data packet transmitted by the monitoring module (31), the service transmission channel (34) buffers the request data packet in the built-in FIFO storage space, and waits for the response module response sequence (35) to take it; Further, by executing the test case, the response module (35) starts to obtain the request data packet transmitted by the monitoring module (32) from the FIFO storage space of the service transmission channel (34) through the transmission unit (36), and accesses the second storage area (37), to obtain the request response from the second storage area (37), thereby further sending the response data packet to the driver module driver (39) through the TLM1 transmission unit layer model (38) of the service transmission channel, and through the virtual interface (32) Sent to chip DUT (40) in response to a request from chip DUT (40).

其中,监视模块(31)、业务传输通道(34)以及驱动器(39)都封装在被动事务单元(310)中,传输单元(36)和第二存储区域(37)封装在响应序模块(35)中;同时上层环境也可以在被动事务单元(310)中通过预设访问接口访问第二存储区域,实现对其核外存储单元中的数据进行配置更新。也就是说,芯片验证系统中,上层环境可以经由预设访问接口访问第二存储区域,对第二存储区域进行数据更新处理;也可以在执行测试用例时,通过预设访问接口访问第二存储区域,通过对第二存储区域中的数据的读写操作,实现对第二存储区域的数据更新处理。The monitoring module (31), the service transmission channel (34) and the driver (39) are all encapsulated in the passive transaction unit (310), and the transmission unit (36) and the second storage area (37) are encapsulated in the response sequence module (35). ); at the same time, the upper-layer environment can also access the second storage area through a preset access interface in the passive transaction unit (310), so as to implement configuration update of the data in the out-of-core storage unit. That is to say, in the chip verification system, the upper-layer environment can access the second storage area via the preset access interface, and perform data update processing on the second storage area; it is also possible to access the second storage area through the preset access interface when executing the test case The data update processing of the second storage area is implemented through the read and write operations on the data in the second storage area.

本申请实施例提供了一种芯片验证方法,芯片验证系统响应于来自芯片的请求信息,根据请求信息生成请求数据包;将请求数据包缓存至第一存储区域;通过执行测试用例,从第一存储区域获取请求数据包,并经由预设访问接口访问第二存储区域,从第二存储区域获取请求数据包对应的应答数据包;其中,预设访问接口为全局接口;将应答数据包发送至芯片,以验证芯片的数据处理能力。具体地,在本申请的实施例中,芯片验证系统可以通过监控模块和驱动模块分别处理芯片发出的请求信息和返回给芯片的应答信息;同时,芯片验证系统也可以通过执行测试用例从第一存储区域中获取请求信息,并经由预设访问接口从第二存储区域中获取请求信息对应的应答信息;其中,该预设访问接口为全局接口,以实现验证组件间的数据更新共享。可见,在本申请提出的芯片验证方法和系统中,不同模块之间相互独立,以执行不同的验证功能,使得芯片验证系统具有高度的可重用性;同时,通过执行测试用例来完成请求信息和应答信息的交互过程,能够实现经由全局访问接口实现对第二存储区域的访问,以对第二存储区域中的数据进行更新,具有高度的可配置性,进一步实现了芯片的高效验证。The embodiment of the present application provides a chip verification method. The chip verification system, in response to request information from the chip, generates a request data packet according to the request information; caches the request data packet in a first storage area; The storage area obtains the request data packet, and accesses the second storage area via the preset access interface, and obtains the response data packet corresponding to the request data packet from the second storage area; wherein, the preset access interface is a global interface; The response data packet is sent to chip to verify the data processing capability of the chip. Specifically, in the embodiment of the present application, the chip verification system can process the request information sent by the chip and the response information returned to the chip through the monitoring module and the driving module respectively; at the same time, the chip verification system can also execute the test case from the first The request information is obtained from the storage area, and the response information corresponding to the request information is obtained from the second storage area via a preset access interface; wherein, the preset access interface is a global interface to realize data update and sharing among verification components. It can be seen that in the chip verification method and system proposed in this application, different modules are independent of each other to perform different verification functions, so that the chip verification system is highly reusable; at the same time, the request information and The interaction process of the response information can realize the access to the second storage area through the global access interface to update the data in the second storage area, which has high configurability and further realizes the efficient verification of the chip.

基于上述实施例,在本申请的另一实施例中,图5为本申请提出的芯片验证方法的实现流程示意图二,如图5所示,在本申请的实施例中,芯片验证系统经由预设访问接口访问第二存储区域,从第二存储区域获取请求数据包对应的应答数据包的方法可以包括以下步骤:Based on the above-mentioned embodiment, in another embodiment of the present application, FIG. 5 is a second schematic diagram of the implementation flow of the chip verification method proposed by the present application. As shown in FIG. 5 , in the embodiment of the present application, the chip verification system is pre- Assuming that the access interface accesses the second storage area, the method for obtaining the response data packet corresponding to the request data packet from the second storage area may include the following steps:

步骤201、对请求数据包进行解析,获取请求信息。Step 201: Parse the request data packet to obtain request information.

在本申请的实施例中,芯片验证系统在通过执行测试用例,从第一存储区域读取到请求数据包之后,芯片验证系统可以先对该请求数据包进行解析,并从中获取对应的请求信息。In the embodiment of the present application, after the chip verification system reads the request data packet from the first storage area by executing the test case, the chip verification system may first parse the request data packet, and obtain corresponding request information therefrom. .

需要说明的是,在本申请的实施例中,芯片验证系统中数据都是以事务级信息进行传递,即按照时序协议对时序信息进行了封装处理,转换为事务级信息在芯片验证系统中进行信息传递,因而,芯片验证系统在按照请求数据包执行响应处理时,需要对请求数据包进行解封装,进而从请求数据包中解析出对应的请求信息。It should be noted that, in the embodiments of the present application, the data in the chip verification system is transmitted by transaction-level information, that is, the timing information is packaged and processed according to the timing protocol, and converted into transaction-level information in the chip verification system. Therefore, when the chip verification system performs response processing according to the request data packet, it needs to decapsulate the request data packet, and then parse the corresponding request information from the request data packet.

示例性地,在基于UVM验证方法学实现的芯片验证系统中,响应序列sequence从第一存储区域获取到请求数据包之后,可以先对请求数据包进行解析处理,从而获取到请求数据包对应的请求信息。Exemplarily, in the chip verification system implemented based on the UVM verification methodology, after the response sequence sequence obtains the request data packet from the first storage area, the request data packet can be parsed and processed to obtain the corresponding data packet of the request data packet. Request information.

进一步地,在本申请的实施例中,芯片验证系统在通过请求数据包的解析处理,获取到请求数据包之后,可以进一步从第二存储区域获取该请求信息对应的应答信息。Further, in the embodiment of the present application, after obtaining the request data packet through parsing processing of the request data packet, the chip verification system may further obtain the response information corresponding to the request information from the second storage area.

步骤202、经由预设访问接口访问第二存储区域,从第二存储区域中获取请求信息对应的应答信息。Step 202: Access the second storage area via a preset access interface, and acquire response information corresponding to the request information from the second storage area.

在本申请的实施例中,芯片验证系统在通过请求数据包的解析处理,获取到请求数据包之后,可以进一步经由预设访问接口访问第二存储区域,进而从第二存储区域中获取请求信息对应的应答信息。In the embodiment of the present application, after obtaining the request data packet through the parsing process of the request data packet, the chip verification system can further access the second storage area through the preset access interface, and then obtain the request information from the second storage area corresponding response information.

可以理解的是,在本申请的实施例中,芯片的数据搬运能力包括从核外存储单元读取数据的能力,和向核外存储单元写入数据的能力,也就是说,芯片验证系统获取到的芯片的请求信息,包括读数据请求和写数据请求。It can be understood that, in the embodiment of the present application, the data handling capability of the chip includes the capability of reading data from the out-of-core storage unit and the capability of writing data to the out-of-core storage unit, that is, the chip verification system obtains the data. The request information to the chip, including read data request and write data request.

具体地,当获取到的请求信息为读数据请求时,芯片验证系统可以经由预设访问接口访问第二存储区域,并按照该读数据请求从第二存储区域中读取出与该读数据请求对应的第一目标数据,从而将第一目标数据确定为读数据请求对应的应答信息。Specifically, when the acquired request information is a read data request, the chip verification system can access the second storage area via the preset access interface, and read the data from the second storage area according to the read data request and the read data request corresponding first target data, thereby determining the first target data as response information corresponding to the read data request.

具体地,具体地,当获取到的请求信息为写数据请求时,其中,写数据请求中携带第二目标数据,芯片验证系统可以经由预设访问接口访问第二存储区域,并按照该写数据请求,将写数据请求中携带的第二目标数据写入第二存储区域中。进一步地,在写操作时,芯片验证系统会生成一反馈信息,以通过该反馈信息来表示写操作完成结果,芯片验证系统可以将该反馈信息作为写数据请求对应的应答信息。Specifically, when the acquired request information is a write data request, wherein the write data request carries the second target data, the chip verification system can access the second storage area via the preset access interface, and according to the write data request, and write the second target data carried in the write data request into the second storage area. Further, during the write operation, the chip verification system will generate feedback information to indicate the completion result of the write operation through the feedback information, and the chip verification system can use the feedback information as the response information corresponding to the write data request.

进一步地,在本申请的实施例中,将写数据请求携带的第二目标数据写入第二存储区域时,实现了对第二存储区域对应的核外存储单元中的数据进行配置并更新,且更新后的数据在各个组件中都是能够共享的。Further, in the embodiment of the present application, when the second target data carried by the write data request is written into the second storage area, the data in the out-of-core storage unit corresponding to the second storage area is configured and updated, And the updated data can be shared among all components.

示例性地,在本申请的实施例中,在基于UVM验证方法学实现的芯片验证系统中,响应序列sequence不仅从业务传输通道内置的FIFO存储空间中读取请求数据包,并解析出请求信息,而且在访问第二存储区域获取应答信息时时,根据不同类型的请求信息执行对应的数据读/写操作,从而获取请求信息对应的应答信息。Exemplarily, in the embodiment of the present application, in the chip verification system based on the UVM verification methodology, the response sequence sequence not only reads the request data packet from the built-in FIFO storage space of the service transmission channel, but also parses out the request information. , and when accessing the second storage area to obtain response information, corresponding data read/write operations are performed according to different types of request information, so as to obtain response information corresponding to the request information.

进一步地,在本申请的实施例中,芯片验证系统在获取到请求信息对应的应答信息之后,芯片验证系统可以进一步生成该应答信息对应的应答数据包。Further, in the embodiment of the present application, after the chip verification system acquires the response information corresponding to the request information, the chip verification system may further generate a response data packet corresponding to the response information.

步骤203、根据应答信息生成应答数据包。Step 203: Generate a response data packet according to the response information.

需要说明的是,在本申请的实施例中,芯片验证系统获取到与芯片的请求信息对应的应答信息之后,由于芯片验证系统中数据都是以事务级信息进行传递,因此,芯片验证系统需要根据时序协议将应答信息对应的时序信息转换成事务级的信息。具体的,芯片验证系统在获取到芯片的应答信息之后,对该应答信息进行事务级信息的封装处理,从而生成该应答信息对应的应答数据包。It should be noted that, in the embodiment of the present application, after the chip verification system obtains the response information corresponding to the request information of the chip, since the data in the chip verification system is transmitted by transaction-level information, the chip verification system needs to The timing information corresponding to the response information is converted into transaction-level information according to the timing protocol. Specifically, after acquiring the response information of the chip, the chip verification system performs encapsulation processing of transaction-level information on the response information, thereby generating a response data packet corresponding to the response information.

本申请实施例提供了一种芯片验证方法,在芯片验证系统中,通过执行测试用例,使得响应模块不仅能够读取第一存储区域中的请求数据包并进行解析,而且可以经由全局访问接口访问第二存储区域,并按照获取到的请求信息的类型,以不同的方式执行应答处理,验证过程操作简单,且具有高度的可重用性和可配置性,进一步实现了芯片的高效验证。The embodiment of the present application provides a chip verification method. In the chip verification system, by executing the test case, the response module can not only read and parse the request data packet in the first storage area, but also can access via the global access interface The second storage area performs response processing in different ways according to the type of the obtained request information. The verification process is simple and highly reusable and configurable, further realizing the efficient verification of the chip.

在本申请的另一实施例中,基于图4所示的芯片验证系统的组成结构示意图,图6为本申请提出的芯片验证系统的组成结构图一,如图6所示,本申请实施例提出的芯片验证系统30设置监控模块31、业务传输通道34、驱动模块39,和响应模块35,其中,所述监控模块31、所述业务传输通道34以及所述驱动模块39封装与被动事务单元310中,In another embodiment of the present application, based on the schematic diagram of the composition and structure of the chip verification system shown in FIG. 4 , FIG. 6 is a compositional structure diagram 1 of the chip verification system proposed by the present application. As shown in FIG. 6 , the embodiment of the present application The proposed chip verification system 30 is provided with a monitoring module 31, a service transmission channel 34, a driving module 39, and a response module 35, wherein the monitoring module 31, the service transmission channel 34 and the driving module 39 are packaged with a passive transaction unit 310,

所述监控模块31,用于在接收到芯片发送的请求信息之后,响应于所述请求信息,根据所述请求信息生成请求数据包,并将所述请求数据包发送至所述业务传输通道;The monitoring module 31 is configured to, after receiving the request information sent by the chip, in response to the request information, generate a request data packet according to the request information, and send the request data packet to the service transmission channel;

所述业务传输通道34,用于在接收到请求数据包之后,将请求数据包缓存至第一存储区域;The service transmission channel 34 is used for buffering the request data packet to the first storage area after receiving the request data packet;

所述响应模块35,用于通过执行测试用例,从第一存储区域获取请求数据包,并经由预设访问接口访问第二存储区域,从第二存储区域获取请求数据包对应的应答数据包;其中,预设访问接口为全局接口;The response module 35 is configured to obtain the request data packet from the first storage area by executing the test case, and access the second storage area via the preset access interface, and obtain the response data packet corresponding to the request data packet from the second storage area; The preset access interface is a global interface;

所述业务传输通道34,还用于在接收到应答数据包之后,将应答数据包发送至驱动模块;The service transmission channel 34 is also used to send the response data packet to the driver module after receiving the response data packet;

所述驱动模块39,用于在接收到所述应答数据包之后,将所述应答数据包发送至所述芯片,以验证所述芯片的数据处理能力。The driving module 39 is configured to, after receiving the response data packet, send the response data packet to the chip to verify the data processing capability of the chip.

进一步地,在本申请的实施例中,所述响应模块35,具体用于对所述请求数据包进行解析,获取所述请求信息;以及经由预设访问接口访问第二存储区域,从所述第二存储区域中获取所述请求信息对应的应答信息;以及根据所述应答信息生成所述应答数据包。Further, in the embodiment of the present application, the response module 35 is specifically configured to parse the request data packet to obtain the request information; and to access the second storage area via a preset access interface, from the Acquire response information corresponding to the request information in the second storage area; and generate the response data packet according to the response information.

进一步地,在本申请的实施例中,所述响应模块35,还具体用于从所述第二存储区域中读取所述读数据请求对应的第一目标数据;以及将所述第一目标数据确定为所述应答信息。Further, in the embodiment of the present application, the response module 35 is further specifically configured to read the first target data corresponding to the read data request from the second storage area; Data is determined as the response information.

进一步地,在本申请的实施例中,所述响应模块35,还具体用于将所述写数据请求携带的第二目标数据,存储至所述第二存储区域,并获取反馈信息;以及将所述反馈信息确定为所述应答信息。Further, in the embodiment of the present application, the response module 35 is further specifically configured to store the second target data carried by the write data request in the second storage area, and obtain feedback information; and The feedback information is determined as the response information.

进一步地,在本申请的实施例中,所述响应模块35,还具体用于在执行测试用例时,若判定满足预设应答条件,则从所述第一存储区域获取所述请求数据包。Further, in the embodiment of the present application, the response module 35 is further specifically configured to acquire the request data packet from the first storage area if it is determined that a preset response condition is satisfied when the test case is executed.

需要说明的是,在本申请的实施例中,芯片验证系统不在将接收芯片的请求信息,以及发送应答信息给芯片两个过程集中配置在监控模块中,监控模块不在兼有驱动响应功能;而是将请求信息的接收和应答信息的发送分别通过监控模块和驱动模块来执行。It should be noted that, in the embodiment of the present application, the chip verification system does not centrally configure the two processes of receiving the request information of the chip and sending the response information to the chip in the monitoring module, and the monitoring module does not have the function of driving response; It is to perform the receiving of the request information and the sending of the reply information through the monitoring module and the driving module respectively.

具体的,芯片验证系统通过监控模块接收芯片的请求信息,并将请求信息对应的时序信息转化为事务级信息,即生成请求信息对应的请求数据包,进一步地,芯片验证系统通过监控模块将该请求数据包发送至业务传输通道。Specifically, the chip verification system receives the request information of the chip through the monitoring module, and converts the timing information corresponding to the request information into transaction-level information, that is, generates a request data packet corresponding to the request information. The request packet is sent to the service transmission channel.

具体的,芯片验证系统通过驱动模块接收业务传输通道传递来的请求数据包对应的应答数据包,并将该应答数据包对应的事务级信息转换成时序信息,进一步地,芯片验证系统通过驱动模块将应答信息发送至芯片,以实现对芯片的数据处理能力的验证。Specifically, the chip verification system receives the response data packet corresponding to the request data packet transmitted by the service transmission channel through the driver module, and converts the transaction-level information corresponding to the response data packet into timing information. Further, the chip verification system passes the driver module. The response information is sent to the chip to verify the data processing capability of the chip.

可见,在本申请的实施例中,芯片验证系统将各组件功能进行区分,使得各个模块之间独立的执行不同的功能,从而方便了各验证组件在上层环境中的重用。It can be seen that, in the embodiment of the present application, the chip verification system differentiates the functions of each component, so that each module independently performs different functions, thereby facilitating the reuse of each verification component in the upper-layer environment.

需要说明的是,在本申请的实施例中,芯片验证系统不再将读取请求信息,以及通过与存储单元交互以获取应答信息等过程置于被动事务单元中的监控模块,而是设置独立的被动事务单元和响应模块,以通过被动事务单元中的监控模块接收请求信息和业务传输通道缓存请求信息,以及通过响应模块响应请求信息,即通过执行测试用例,将请求信息和应答信息的交互过程置于响应模块,并通过配置打通各组件,以实现请求信息和应答信息在被动事务单元和响应模块之间的传递。It should be noted that, in the embodiment of the present application, the chip verification system no longer places the process of reading the request information and obtaining the response information by interacting with the storage unit in the monitoring module in the passive transaction unit, but sets up an independent monitoring module. The passive transaction unit and response module in the passive transaction unit receive the request information and the business transmission channel cache request information through the monitoring module in the passive transaction unit, and respond to the request information through the response module, that is, by executing the test case, the interaction between the request information and the response information The process is placed in the response module, and each component is connected through configuration to realize the transfer of request information and response information between the passive transaction unit and the response module.

具体地,芯片验证系统先通过业务传输通道将接收到的监控模块发送的请求数据包缓存至第一存储区域,并等待响应模块拿取。进而通过执行测试用例,使得响应模块从业务传输通道中的第一存储区域获取请求数据包,并经由预设访问接口访问第二存储区域对应的核外存储单元,以按照请求数据包从第二存储区域中获取对应的应答数据包,进而响应模块再将获取到的应答数据宝返回至业务传输通道。Specifically, the chip verification system first buffers the received request data packet sent by the monitoring module into the first storage area through the service transmission channel, and waits for the response module to take it. Then, by executing the test case, the response module obtains the request data packet from the first storage area in the service transmission channel, and accesses the out-of-core storage unit corresponding to the second storage area through the preset access interface, so as to obtain the request data packet from the second storage area according to the request data packet. The corresponding response data packets are obtained in the storage area, and then the response module returns the obtained response data packets to the service transmission channel.

进一步地,在本申请的实施例中,预设访问接口为全局接口,可以理解的是,全局接口遵循“一处定义,处处可用”原则,也就是说,在芯片验证系统中,各验证组件均可以通过预设访问接口实现对第二存储区域的全局访问。可选的,芯片验证系统可以在执行测试用例时通过预设访问接口访问第二存储区域,另外,芯片验证系统也可以通过系统上层环境或者其他验证组件经由预设访问接口访问第二存储区域。Further, in the embodiment of the present application, the preset access interface is a global interface. It can be understood that the global interface follows the principle of "defined in one place, available everywhere", that is, in the chip verification system, each verification component Both can realize global access to the second storage area through a preset access interface. Optionally, the chip verification system can access the second storage area through a preset access interface when executing the test case, and the chip verification system can also access the second storage area through the preset access interface through the system upper environment or other verification components.

具体的,芯片验证系统在执行芯片的验证处理过程中,既可以是上层环境通过预设访问接口访问第二存储区域,实现核外存储单元的“后门”访问,以进行数据的配置并更新;也可以是在执行测试用例时,通过预设访问接口访问第二存储区域,实现核外存储单元的“前门”访问,以进行数据的配置更新;且无论通过何种方式、何种验证组件进行核外存储单元数据的配置及更新,更新后的数据在各个组件中都是能够共享的。Specifically, when the chip verification system executes the verification process of the chip, the upper-layer environment may access the second storage area through the preset access interface, so as to realize the "backdoor" access of the out-of-core storage unit, so as to configure and update the data; It can also be that when the test case is executed, the second storage area is accessed through the preset access interface, so as to realize the "front door" access of the out-of-core storage unit, so as to carry out the configuration update of the data; Configuration and update of out-of-core storage unit data, and the updated data can be shared among all components.

可见,在本申请的实施例中,芯片验证系统通过执行测试用例,将请求信息和应答信息的交互过程置于响应模块,并且可以经由全局接口实现对第二存储地址的访问,以对第二存储区域中的数据进行控制,提高了芯片验证系统的可配置性。It can be seen that, in the embodiment of the present application, the chip verification system places the interaction process of the request information and the response information in the response module by executing the test case, and can access the second storage address via the global interface, so that the second storage address can be accessed through the global interface. The data in the storage area is controlled, which improves the configurability of the chip verification system.

可选的,芯片验证系统中,上层环境可以在被动事务单元中通过预设访问接口访问第二存储区域,实现对其核外存储单元中的数据进行配置更新;也可以在被动事务单元中的业务传输通道中,通过预设访问接口访问第二存储区域,实现对其核外存储单元中的数据进行配置更新。Optionally, in the chip verification system, the upper-layer environment can access the second storage area through a preset access interface in the passive transaction unit, so as to configure and update the data in the out-of-core storage unit; In the service transmission channel, the second storage area is accessed through a preset access interface, so as to implement configuration update of the data in the out-of-core storage unit.

本申请实施例提供了一种芯片验证系统,该芯片验证系统可以通过监控模块和驱动模块分别处理芯片发出的请求信息和返回给芯片的应答信息;同时,芯片验证系统也可以通过执行测试用例从第一存储区域中获取请求信息,并经由预设访问接口从第二存储区域中获取请求信息对应的应答信息;其中,该预设访问接口为全局接口,以实现验证组件间的数据更新共享。可见,在本申请提出的芯片验证方法和系统中,不同模块之间相互独立,以执行不同的验证功能,使得芯片验证系统具有高度的可重用性;同时,通过执行测试用例来完成请求信息和应答信息的交互过程,能够实现经由预设访问接口实现对第二存储区域的全局访问,以对第二存储区域中的数据进行更新,具有高度的可配置性,进一步实现了芯片的高效验证。The embodiment of the present application provides a chip verification system, the chip verification system can process the request information sent by the chip and the response information returned to the chip through the monitoring module and the driving module respectively; The request information is obtained from the first storage area, and the response information corresponding to the request information is obtained from the second storage area via a preset access interface; wherein, the preset access interface is a global interface to realize data update sharing among verification components. It can be seen that in the chip verification method and system proposed in this application, different modules are independent of each other to perform different verification functions, so that the chip verification system is highly reusable; at the same time, the request information and The interaction process of the response information can realize the global access to the second storage area through the preset access interface to update the data in the second storage area, and has a high degree of configurability, which further realizes the efficient verification of the chip.

基于上述实施例,在本申请的另一实施例中,图7为本申请提出的芯片验证系统的组成结构示意图二,如图7所示,本申请实施例提出的芯片验证系统30可以包括生成单元311,存储单元312,获取单元313以及发送单元314。Based on the above-mentioned embodiment, in another embodiment of the present application, FIG. 7 is a second schematic diagram of the composition and structure of the chip verification system proposed by the present application. As shown in FIG. 7 , the chip verification system 30 proposed by the embodiment of the present application may include generating unit 311 , storage unit 312 , obtaining unit 313 and sending unit 314 .

所述生成单元311,用于响应于来自芯片的请求信息,根据所述请求信息生成请求数据包;The generating unit 311 is configured to, in response to the request information from the chip, generate a request data packet according to the request information;

所述存储单元312,用于将所述请求数据包缓存至第一存储区域;the storage unit 312, configured to cache the request data packet to the first storage area;

所述获取单元313,用于通过执行测试用例,从所述第一存储区域获取所述请求数据包;以及经由预设访问接口访问第二存储区域,从所述第二存储区域获取所述请求数据包对应的应答数据包;其中,所述预设访问接口为全局接口;The obtaining unit 313 is configured to obtain the request data packet from the first storage area by executing a test case; and access the second storage area via a preset access interface, and obtain the request from the second storage area The response data packet corresponding to the data packet; wherein, the preset access interface is a global interface;

所述发送单元314,用于将所述应答数据包发送至所述芯片,以验证所述芯片的数据处理能力。The sending unit 314 is configured to send the response data packet to the chip to verify the data processing capability of the chip.

进一步地,在本申请的实施例中,所述获取单元313,具体用于对所述请求数据包进行解析,获取所述请求信息;以及经由预设访问接口访问第二存储区域,从所述第二存储区域中获取所述请求信息对应的应答信息;以及根据所述应答信息生成所述应答数据包。Further, in the embodiment of the present application, the obtaining unit 313 is specifically configured to parse the request data packet to obtain the request information; and to access the second storage area via a preset access interface, from the Acquire response information corresponding to the request information in the second storage area; and generate the response data packet according to the response information.

进一步地,在本申请的实施例中,所述获取单元313,还具体用于从所述第二存储区域中读取所述读数据请求对应的第一目标数据;以及将所述第一目标数据确定为所述应答信息。Further, in the embodiment of the present application, the obtaining unit 313 is further specifically configured to read the first target data corresponding to the read data request from the second storage area; Data is determined as the response information.

进一步地,在本申请的实施例中,所述获取单元313,还具体用于将所述写数据请求携带的第二目标数据,存储至所述第二存储区域,并获取反馈信息;以及将所述反馈信息确定为所述应答信息。Further, in the embodiment of the present application, the obtaining unit 313 is further specifically configured to store the second target data carried by the write data request in the second storage area, and obtain feedback information; and The feedback information is determined as the response information.

进一步地,在本申请的实施例中,所述获取单元313,还具体用于在执行测试用例时,若判定满足所述测试用例中的预设应答条件,则从所述第一存储区域获取所述请求数据包。Further, in the embodiment of the present application, the obtaining unit 313 is further specifically configured to obtain from the first storage area if it is determined that the preset response condition in the test case is satisfied when the test case is executed the request packet.

本申请实施例提供了一种芯片验证系统,该芯片验证系统中不同模块之间相互独立,以执行不同的验证功能,使得芯片验证系统具有高度的可重用性;同时,通过执行测试用例来完成请求信息和应答信息的交互过程,能够实现经由全局访问接口实现对第二存储区域的访问,以对第二存储区域中的数据进行更新,具有高度的可配置性,进一步实现了芯片的高效验证。The embodiments of the present application provide a chip verification system, wherein different modules in the chip verification system are independent of each other to perform different verification functions, so that the chip verification system has a high degree of reusability; at the same time, it is completed by executing test cases. The interaction process of the request information and the response information can realize the access to the second storage area through the global access interface to update the data in the second storage area, which is highly configurable and further realizes the efficient verification of the chip. .

本申请实施例提供一种计算机可读存储介质,其上存储有程序,应用于芯片验证系统中,所述芯片验证系统设置监控模块、业务传输通道、驱动模块和响应模块,该程序被处理器执行时实现如上所述的芯片验证方法。An embodiment of the present application provides a computer-readable storage medium, on which a program is stored, and is applied to a chip verification system. The chip verification system is provided with a monitoring module, a service transmission channel, a driver module, and a response module, and the program is processed by a processor. When executed, the chip verification method as described above is implemented.

具体来讲,本实施例中的一种芯片验证方法对应的程序指令可以被存储在光盘,硬盘,U盘等存储介质上,当存储介质中的与一种芯片验证方法对应的程序指令被一电子设备读取或被执行时,包括如下步骤:Specifically, a program instruction corresponding to a chip verification method in this embodiment may be stored on a storage medium such as an optical disk, a hard disk, a U disk, etc. When the program instruction corresponding to a chip verification method in the storage medium is stored in a storage medium When the electronic device reads or is executed, it includes the following steps:

响应于来自芯片的请求信息,根据所述请求信息生成请求数据包;In response to the request information from the chip, a request data packet is generated according to the request information;

将所述请求数据包缓存至第一存储区域;caching the request data packet to the first storage area;

通过执行测试用例,从所述第一存储区域获取所述请求数据包,并经由预设访问接口访问第二存储区域,从所述第二存储区域获取所述请求数据包对应的应答数据包;其中,所述预设访问接口为全局接口;By executing the test case, the request data packet is obtained from the first storage area, and the second storage area is accessed via a preset access interface, and the response data packet corresponding to the request data packet is obtained from the second storage area; Wherein, the preset access interface is a global interface;

将所述应答数据包发送至所述芯片,以验证所述芯片的数据处理能力。The response data packet is sent to the chip to verify the data processing capability of the chip.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including but not limited to disk storage, optical storage, and the like.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的实现流程示意图和/或方框图来描述的。应理解可由计算机程序指令实现流程示意图和/或方框图中的每一流程和/或方框、以及实现流程示意图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to schematic flowcharts and/or block diagrams of implementations of methods, apparatuses (systems), and computer program products according to embodiments of the present application. It will be understood that each process and/or block in the schematic flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the schematic flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a process or processes and/or a block or blocks in the block diagrams.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions An apparatus implements the functions specified in a flow or flows of the implementation flow diagram and/or a block or blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在实现流程示意图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the implementing flow diagram and/or the block or blocks of the block diagram.

以上所述,仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the protection scope of the present application.

Claims (12)

1.一种芯片验证方法,其特征在于,所述方法包括:1. a chip verification method, is characterized in that, described method comprises: 响应于来自芯片的请求信息,根据所述请求信息生成请求数据包;In response to the request information from the chip, a request data packet is generated according to the request information; 将所述请求数据包缓存至第一存储区域;caching the request data packet to the first storage area; 通过执行测试用例,从所述第一存储区域获取所述请求数据包,并经由预设访问接口访问第二存储区域,从所述第二存储区域获取所述请求数据包对应的应答数据包;其中,所述预设访问接口为全局接口;By executing the test case, the request data packet is obtained from the first storage area, and the second storage area is accessed via a preset access interface, and the response data packet corresponding to the request data packet is obtained from the second storage area; Wherein, the preset access interface is a global interface; 将所述应答数据包发送至所述芯片,以验证所述芯片的数据处理能力。The response data packet is sent to the chip to verify the data processing capability of the chip. 2.根据权利要求1所述的方法,其特征在于,所述经由预设访问接口访问第二存储区域,从所述第二存储区域获取所述请求数据包对应的应答数据包,包括:2. The method according to claim 1, wherein the accessing the second storage area via a preset access interface, and acquiring the response data packet corresponding to the request data packet from the second storage area, comprises: 对所述请求数据包进行解析,获取所述请求信息;Parsing the request data packet to obtain the request information; 经由预设访问接口访问第二存储区域,从所述第二存储区域中获取所述请求信息对应的应答信息;accessing the second storage area via a preset access interface, and acquiring response information corresponding to the request information from the second storage area; 根据所述应答信息生成所述应答数据包。The response data packet is generated according to the response information. 3.根据权利要求2所述的方法,其特征在于,当所述请求信息为读数据请求时,所述从所述第二存储区域中获取所述请求信息对应的应答信息,包括:3. The method according to claim 2, wherein, when the request information is a data read request, the acquiring response information corresponding to the request information from the second storage area comprises: 从所述第二存储区域中读取所述读数据请求对应的第一目标数据;Read the first target data corresponding to the read data request from the second storage area; 将所述第一目标数据确定为所述应答信息。The first target data is determined as the response information. 4.根据权利要求2所述的方法,其特征在于,当所述请求信息为写数据请求时,所述从所述第二存储区域中获取所述请求信息对应的应答信息,包括:4. The method according to claim 2, wherein when the request information is a data write request, the acquiring response information corresponding to the request information from the second storage area comprises: 将所述写数据请求携带的第二目标数据,存储至所述第二存储区域,并获取反馈信息;storing the second target data carried by the write data request in the second storage area, and obtaining feedback information; 将所述反馈信息确定为所述应答信息。The feedback information is determined as the response information. 5.根据权利要求1所述的方法,其特征在于,所述通过执行测试用例,从所述第一存储区域获取所述请求数据包,包括:5. The method according to claim 1, wherein the obtaining the request data packet from the first storage area by executing a test case comprises: 在执行测试用例时,若判定满足所述测试用例中的预设应答条件,则从所述第一存储区域获取所述请求数据包。When executing the test case, if it is determined that the preset response condition in the test case is satisfied, the request data packet is acquired from the first storage area. 6.一种芯片验证系统,其特征在于,所述芯片验证系统设置监控模块、业务传输通道、驱动模块以及响应模块,6. A chip verification system, wherein the chip verification system is provided with a monitoring module, a service transmission channel, a driver module and a response module, 所述监控模块,用于在接收到芯片发送的请求信息之后,响应于所述请求信息,根据所述请求信息生成请求数据包,并将所述请求数据包发送至所述业务传输通道;The monitoring module is configured to, after receiving the request information sent by the chip, in response to the request information, generate a request data packet according to the request information, and send the request data packet to the service transmission channel; 所述业务传输通道,用于在接收到所述请求数据包之后,将所述请求数据包缓存至第一存储区域;the service transmission channel, for buffering the request data packet to the first storage area after receiving the request data packet; 所述响应模块,用于通过执行测试用例,从所述第一存储区域获取所述请求数据包,并经由预设访问接口访问第二存储区域,从所述第二存储区域获取所述请求数据包对应的应答数据包;其中,所述预设访问接口为全局接口;The response module is configured to obtain the request data packet from the first storage area by executing a test case, access the second storage area via a preset access interface, and obtain the request data from the second storage area The response data packet corresponding to the packet; wherein, the preset access interface is a global interface; 所述业务传输通道,还用于在接收到所述应答数据包之后,将所述应答数据包发送至所述驱动模块;The service transmission channel is further configured to send the response data packet to the drive module after receiving the response data packet; 所述驱动模块,用于在接收到所述应答数据包之后,将所述应答数据包发送至所述芯片,以验证所述芯片的数据处理能力。The driving module is configured to send the response data packet to the chip after receiving the response data packet, so as to verify the data processing capability of the chip. 7.根据权利要求6所述的芯片验证系统,其特征在于,7. The chip verification system according to claim 6, wherein, 所述响应模块,具体用于对所述请求数据包进行解析,获取所述请求信息;以及经由预设访问接口访问第二存储区域,从所述第二存储区域中获取所述请求信息对应的应答信息;以及根据所述应答信息生成所述应答数据包。The response module is specifically configured to parse the request data packet and obtain the request information; and access the second storage area via a preset access interface, and obtain the corresponding request information from the second storage area. response information; and generating the response data packet according to the response information. 8.根据权利要求7所述的芯片验证系统,其特征在于,8. The chip verification system according to claim 7, wherein, 所述响应模块,还具体用于从所述第二存储区域中读取所述读数据请求对应的第一目标数据;以及将所述第一目标数据确定为所述应答信息。The response module is further specifically configured to read the first target data corresponding to the read data request from the second storage area; and determine the first target data as the response information. 9.根据权利要求7所述的芯片验证系统,其特征在于,9. The chip verification system according to claim 7, wherein, 所述响应模块,还具体用于将所述写数据请求携带的第二目标数据,存储至所述第二存储区域,并获取反馈信息;以及将所述反馈信息确定为所述应答信息。The response module is further configured to store the second target data carried by the write data request in the second storage area, and obtain feedback information; and determine the feedback information as the response information. 10.根据权利要求6所述的芯片验证系统,其特征在于,10. The chip verification system according to claim 6, wherein, 所述响应模块,还具体用于在执行测试用例时,若判定满足预设应答条件,则从所述第一存储区域获取所述请求数据包。The response module is further specifically configured to acquire the request data packet from the first storage area if it is determined that a preset response condition is satisfied when the test case is executed. 11.一种芯片验证系统,其特征在于,所述芯片验证系统包括生成单元,存储单元,读取单元,获取单元以及发送单元,11. A chip verification system, characterized in that the chip verification system comprises a generation unit, a storage unit, a reading unit, an acquisition unit and a sending unit, 所述生成单元,用于响应于来自芯片的请求信息,根据所述请求信息生成请求数据包;The generating unit is configured to generate a request data packet according to the request information in response to the request information from the chip; 所述存储单元,用于将所述请求数据包缓存至第一存储区域;the storage unit, configured to cache the request data packet to the first storage area; 所述获取单元,用于通过执行测试用例,从所述第一存储区域获取所述请求数据包;以及经由预设访问接口访问第二存储区域,从所述第二存储区域获取所述请求数据包对应的应答数据包;其中,所述预设访问接口为全局接口;The obtaining unit is configured to obtain the request data packet from the first storage area by executing a test case; and access the second storage area via a preset access interface, and obtain the request data from the second storage area The response data packet corresponding to the packet; wherein, the preset access interface is a global interface; 所述发送单元,用于将所述应答数据包发送至所述芯片,以验证所述芯片的数据处理能力。The sending unit is configured to send the response data packet to the chip to verify the data processing capability of the chip. 12.一种计算机可读存储介质,其上存储有程序,应用于芯片验证系统中,所述芯片验证系统设置监控模块、业务传输通道、驱动模块以及响应模块,其特征在于,所述程序被处理器执行时,实现如权利要求1-5任一项所述的方法。12. A computer-readable storage medium on which a program is stored, applied in a chip verification system, wherein the chip verification system is provided with a monitoring module, a service transmission channel, a driver module and a response module, wherein the program is When executed by the processor, the method according to any one of claims 1-5 is implemented.
CN202010684517.2A 2020-07-16 2020-07-16 Chip verification method and system, and storage medium Withdrawn CN111859831A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010684517.2A CN111859831A (en) 2020-07-16 2020-07-16 Chip verification method and system, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010684517.2A CN111859831A (en) 2020-07-16 2020-07-16 Chip verification method and system, and storage medium

Publications (1)

Publication Number Publication Date
CN111859831A true CN111859831A (en) 2020-10-30

Family

ID=72984631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010684517.2A Withdrawn CN111859831A (en) 2020-07-16 2020-07-16 Chip verification method and system, and storage medium

Country Status (1)

Country Link
CN (1) CN111859831A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112731117A (en) * 2021-01-11 2021-04-30 Oppo广东移动通信有限公司 Automatic verification method and system for chip, and storage medium
CN119203627A (en) * 2024-12-02 2024-12-27 沐曦集成电路(上海)有限公司 Data acquisition method, device, equipment, storage medium and program product

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152216A (en) * 2011-12-07 2013-06-12 北京新媒传信科技有限公司 System test method and device in internet
CN103378989A (en) * 2012-04-11 2013-10-30 百度在线网络技术(北京)有限公司 Method and device for obtaining performance test data
CN105450476A (en) * 2015-12-07 2016-03-30 北京先进数通信息技术股份公司 Regression test system and test method
CN108255727A (en) * 2018-01-18 2018-07-06 网易(杭州)网络有限公司 Data receiver, sending method and device test system, storage medium
CN109726507A (en) * 2019-01-17 2019-05-07 湖南进芯电子科技有限公司 A kind of efficiently multi-functional verification platform and method
US20190286771A1 (en) * 2018-03-13 2019-09-19 Hcl Technologies Limited System and method for interactively controlling the course of a functional simulation
CN111400150A (en) * 2020-02-20 2020-07-10 苏州浪潮智能科技有限公司 Chip performance verification method, system, equipment and computer storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152216A (en) * 2011-12-07 2013-06-12 北京新媒传信科技有限公司 System test method and device in internet
CN103378989A (en) * 2012-04-11 2013-10-30 百度在线网络技术(北京)有限公司 Method and device for obtaining performance test data
CN105450476A (en) * 2015-12-07 2016-03-30 北京先进数通信息技术股份公司 Regression test system and test method
CN108255727A (en) * 2018-01-18 2018-07-06 网易(杭州)网络有限公司 Data receiver, sending method and device test system, storage medium
US20190286771A1 (en) * 2018-03-13 2019-09-19 Hcl Technologies Limited System and method for interactively controlling the course of a functional simulation
CN109726507A (en) * 2019-01-17 2019-05-07 湖南进芯电子科技有限公司 A kind of efficiently multi-functional verification platform and method
CN111400150A (en) * 2020-02-20 2020-07-10 苏州浪潮智能科技有限公司 Chip performance verification method, system, equipment and computer storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112731117A (en) * 2021-01-11 2021-04-30 Oppo广东移动通信有限公司 Automatic verification method and system for chip, and storage medium
CN119203627A (en) * 2024-12-02 2024-12-27 沐曦集成电路(上海)有限公司 Data acquisition method, device, equipment, storage medium and program product

Similar Documents

Publication Publication Date Title
US5493672A (en) Concurrent simulation of host system at instruction level and input/output system at logic level with two-way communication deadlock resolution
US10628548B2 (en) Flow control in networking system-on-chip verification
US20170337309A1 (en) Target Capture And Replay In Emulation
CN112286746B (en) Universal verification platform and method for AXI slave device interface
US7835897B2 (en) Apparatus and method for connecting hardware to a circuit simulation
CN115146568B (en) Chip verification system and verification method based on UVM
CN112861468B (en) Software and hardware collaborative simulation verification method, device and medium
US9501408B2 (en) Efficient validation of coherency between processor cores and accelerators in computer systems
US20030225560A1 (en) Method and system for deterministic control of an emulation
CN113342583A (en) Chip verification system, method, device, equipment and storage medium
CN103198001A (en) Storage system capable of self-testing peripheral component interface express (PCIE) interface and test method
CN111859831A (en) Chip verification method and system, and storage medium
CN113778328B (en) Directing control data between semiconductor packages
CN117806892A (en) Memory chip model test method, device, communication equipment and storage medium
US20030225561A1 (en) Method and system for deterministic control of an emulation
US10664637B2 (en) Testbench restoration based on capture and replay
CN105592492A (en) Platform and method for testing high-layer protocol stack consistency
US9898563B2 (en) Modeling memory in emulation based on cache
CN115658413B (en) Excitation generator and excitation generating method
CN113176861B (en) A method, device and memory for implementing memory access
Thomas et al. Left-shifter: A pre-silicon framework for usage model based performance verification of the PCIe interface in server processor system on chips
CN115297169B (en) Data processing method, device, electronic equipment and medium
US20220197852A1 (en) Circuits And Methods For Coherent Writing To Host Systems
CN119442983A (en) Verification method and device of data transmission module, storage medium and computer equipment
USRE42227E1 (en) Apparatus and method for connecting hardware to a circuit simulation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20201030

WW01 Invention patent application withdrawn after publication