Verification system for registers in RCD chips
Through the combination of the design verification environment layer and the design module to be tested, multi-channel access verification of the RCD chip registers is achieved, which solves the problems of low automation and poor protocol mode compatibility in the existing technology, and improves verification efficiency and security.
Patent Information
- Application Number
- CN202411043480.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-07-31
AI Technical Summary
The existing chip EDA verification platform has a low degree of automation when verifying the registers in the RCD chip, requiring a large number of manual debugging use cases, and is not compatible with the multi-channel access features and integrated circuit bus protocol modes in the RCD chip, resulting in low verification efficiency and The risk is high.
A verification system including a verification environment layer and a design module to be tested is designed. Through components such as the register abstraction layer, register access module, sideband command agent module and DRAM command agent module, multi-channel access verification of RCD chip registers is realized. Use test case sets for automated verification, supporting data mode conversion and cross-validation of I2C and I3C protocol modes.
It achieves unified verification of multi-channel access characteristics of RCD chips, reduces verification workload and risk of test omissions, improves verification efficiency and automation, and can flexibly switch different configuration channels for cross-validation.
Smart Images

Figure CN118569161B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of chip testing, and in particular to a verification system for registers in an RCD chip. Background Art
[0002] The Registering Clock Driver (RCD) chip is a supporting chip for dual in-line memory modules. It provides multi-channel clock and read / write command caching or forwarding for double-rate synchronous dynamic random access memory storage particles, as well as a mechanism to improve signal quality.
[0003] The digital circuits in the RCD chip contain a large number of registers for the implementation of logic functions, including initialization process, parameter training, voltage, current and impedance adjustment of output signals, phase adjustment of output clocks, phase-locked loop locking, status of related analog circuits, alarms, interrupt signal reporting, etc.
[0004] In the electronic design automation (EDA) verification work of the chip development process, register verification is an important part of logic function verification, and the verification platform and method for register verification are the core of the verification work.
[0005] Currently, common chip EDA verification platforms are generally built based on a set of open source codes defined by the Universal Verification Method (UVM). Based on this methodology, developers of the verification platform can write corresponding test cases to complete corresponding functional verification according to the specifications and characteristics of the design module to be tested (Design Under Test, DUT).
[0006] Specifically, the verification of registers in the RCD chip is mainly aimed at ensuring the correctness of the logic of all access paths to the registers, the correctness of the logic implemented by the registers inside the RCD chip, and the correctness of the coordination relationship between the registers and the corresponding related logical functions.
[0007] In the prior art, the verification schemes for registers mainly include: (1) based on the verification module, mainly direct access of the proxy module, completing the interface command issuance through read / write operations or combined operations, sampling the interface signal through the monitor in the proxy module and encapsulating it into an interface data transmission package object, and directly judging or comparing the content carried in the transmission package object in the test case to verify the logical correctness of the register; (2) after associating the register abstract layer (RAL) with the configuration interface in the verification platform through the adapter and mapping module, the read, write, predict, mirror and other operations of the register abstract layer itself are used to check whether the model value of a register is consistent with the actual read value, etc., to complete the relevant verification of register attributes, initial values and functions.
[0008] For the first verification scheme, the design module to be tested is accessed through read / write operations. Not only does the verification personnel need to write debugging and test cases, complete the traversal of all registers in the chip and various tests, but they also need to identify the different attributes of each register and execute the corresponding test vectors. In addition, they need to manually identify whether the processing behavior of the design module to be tested for related signals is reasonable and make judgments. This verification method has a low degree of automation, requires manual writing of many verification cases for debugging, and has low verification efficiency.
[0009] For the second verification scheme, the register abstraction layer is associated with a stimulus sequencer in an access interface proxy module through an adapter for read / write access. This method can solve the problem of a large amount of manual test case workload, but it is not compatible with the three access methods associated with the two-way access interface in the RCD chip. In addition, the adapter and the stimulus sequencer association method transmit data for a single data entity defined by them, but the read / write operations in the Inter-Integrated Circuit (I2C) protocol mode and the Improved Inter Integrated (I3C) protocol mode in the RCD chip involve multiple data entities, which cannot be achieved by the existing adapter connection integration method.
[0010] Based on this, a register verification scheme in the RCD chip that reduces the verification workload and the risk of test omissions, enables cross-verification between different configuration paths, and can cover the multi-path access characteristics of the RCD chip is urgently needed in this field. Summary of the invention
[0011] In order to alleviate or partially alleviate the above technical problems, the solution of the present invention is as follows:
[0012] A verification system for registers in an RCD chip comprises at least a verification environment layer and a design module to be tested, wherein the verification environment layer comprises at least a register abstraction layer, a register access module, a sideband command proxy module, a CAB command proxy module and a DRAM command proxy module; the design module to be tested comprises a sideband interface, a CAB interface and a DRAM interface; the sideband command proxy module establishes a connection with the sideband interface, the CAB command proxy module establishes a connection with the CAB interface, and the DRAM command proxy module establishes a connection with the DRAM interface; and the register access module establishes a data path with the register abstraction layer, and the register access module also receives MRW commands collected and transmitted back by a monitor in the DRAM command proxy module from the DRAM interface.
[0013] Furthermore, the verification system for registers in the RCD chip also includes: test cases; the test cases operate the register abstraction layer to initiate read operation commands and write operation commands to the sideband interface and CAB interface of the design module to be tested.
[0014] Furthermore, the verification environment layer also includes an adapter; the adapter is used to implement data mode conversion between the register abstraction layer and the register access module, and to establish a data path.
[0015] Furthermore, the register access module is provided with configuration items, and the selection control of specific operation behaviors is executed through the configuration items to realize the access control to the registers in the RCD chip.
[0016] Furthermore, the register access module includes a read-write access control module, an MRW write control module, an MRW read control module, an MRW command management module, and a sideband command management module.
[0017] Furthermore, the MRW write control module and the MRW read control module are used to perform data interaction with the MRW command management module; the MRW read control module is also used to process a read data request sent by the DRAM command proxy module.
[0018] Furthermore, the MRW write control module and the MRW read control module selectively send data to the MRW command management module through a multiplexer.
[0019] Furthermore, the read-write access control module exchanges data with the adapter and the sideband command management module.
[0020] Further, register scan verification of the same access path or register scan verification of different access paths is performed by using a test case set, wherein the test case set includes a plurality of test cases.
[0021] Furthermore, in the register abstraction layer, different access modes of the RCD chip are encapsulated.
[0022] The technical solution of the present invention has one or more of the following beneficial technical effects:
[0023] (1) The present invention can cover the multi-channel access characteristics of the RCD chip, and unify the different interface protocols of the RCD chip with the register abstraction layer, thereby solving the problem that the adapter can only be bound to one access interface when applying the traditional register abstraction layer.
[0024] (2) Multiple paths can be flexibly switched in the verification environment layer, and cross-verification between different configuration paths can be achieved.
[0025] (3) The automated test case set helps to complete register testing and cross-verification coverage between different paths more quickly. Compared with the traditional verification method that requires manual writing of multiple test cases, it reduces the workload of the verification personnel and reduces the risk of missing combination tests in the verification work.
[0026] In addition, other beneficial effects of the present invention will be mentioned in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is the interface signal and interface relationship diagram involving the register operation in the RCD chip;
[0028] Figure 2 is a block diagram of a verification system of the present invention;
[0029] Figure 3 This is a schematic diagram of the specific structure of the register access module. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order.
[0032] In the drawings of the present invention, dotted lines represent data interaction between different modules, and solid lines generally represent data interaction within a module. One-way arrows represent one-way data connections, and two-way arrows represent two-way data connections. In addition, the drawings represent only a preferred embodiment of the present invention and do not constitute a limitation on all embodiments of the present invention.
[0033] First, the present invention first introduces the communication interface and method related to the register in the RCD chip. Figure 1 The interface signals and interface relationship diagrams involved in register operations in the RCD chip are shown.
[0034] The interface signals and interfaces related to register operations in the RCD chip are: access command signals input from the host side, sideband configuration signals input or output from the host side, and dynamic random access memory (DRAM) interface and data bus (DB) interface. Among them, data through the DRAM interface is forwarded to the memory chip, and data through the DB interface is forwarded to the DB chip.
[0035] There are two interfaces for the RCD chip to access registers, namely: Command Address Bus (CAB) interface and sideband interface. Among them, the CAB interface implements register access in the RCD chip through the Mode Register Write (MRW) command. The MRW command reuses the access path to the memory particle chip and distinguishes it through the address signal bit to implement the write operation of the register in the RCD chip; the sideband interface uses independent signals, uses the I3C protocol mode and the I2C protocol mode, and shares the same physical interface bus. In addition, the CAB interface receives the aforementioned access command signal, and the sideband interface receives the aforementioned sideband configuration signal.
[0036] The registers in the RCD chip contain a special page register. The address encoding of the page register consists of two parts: the page address and the register address. To perform a write operation through the MRW command, you need to complete the writing of the page address first, and then access the register address through the MRW command. When accessing the page register through the sideband interface, the page information can be directly transmitted in the interface data format.
[0037] The MRW command can directly write to the registers in the RCD chip, while the read operation needs to be implemented through a special operation sequence. This special operation sequence can transfer the data in the registers in the RCD chip to the DRAM interface, and indirectly implement the read operation of the registers in the RCD chip. The special operation sequence is: first initiate an MRW write command for the first specific address to the RCD chip, and the operand value contained in the MRW write command is the target address of the RCD chip that needs to be accessed; then initiate an MRW write command to the second specific address to the RCD chip, and then the MRW write command is forwarded to the DRAM interface by the RCD chip, and the operand value in the MRW write command is replaced with the register value of the target address, thereby indirectly reading the register value in the RCD chip. Register value refers to the value stored in the register.
[0038] Common register verification items in RCD chips mainly include: register access configuration interface function verification, register initial value verification, register read and write attribute verification, register adhesion verification, and coordination verification between registers and related chip functions.
[0039] Figure 2 The block diagram of the verification system of the present invention is shown. The verification system of the register in the RCD chip of the present invention at least includes a test case, a verification environment layer and a design module to be tested. Among them, the design module to be tested includes a DRAM interface, a sideband interface and a CAB interface. The design module to be tested of the present invention refers to the RCD chip, and the RCD chip includes the register in the RCD chip.
[0040] The verification environment layer includes several verification modules, including: register abstraction layer, adapter, register access component (RAC), verification environment configuration module, DRAM command agent module, sideband command agent module and CAB command agent module. Among them, the adapter is located between the register abstraction layer and the register access module, and is used to convert data modes. The verification environment configuration module is used to provide configuration information for each verification module. The DRAM command agent module, the sideband command agent module and the CAB command agent module interact or establish connections with the DRAM interface, the sideband interface and the CAB interface in the design module to be tested respectively.
[0041] Further, the sideband command proxy module establishes a connection with the sideband interface, the CAB command proxy module establishes a connection with the CAB interface, and the DRAM command proxy module establishes a connection with the DRAM interface.
[0042] Preferably, the connection established between the sideband command proxy module and the sideband interface is a bidirectional connection, the CAB command proxy module is unidirectionally connected to the CAB interface, and the DRAM interface is unidirectionally connected to the DRAM command proxy module. In addition, the register access module is unidirectionally connected to the CAB command proxy module, and the DRAM command proxy module is unidirectionally connected to the register access module.
[0043] Furthermore, the connections established in sequence among the register abstraction layer, the adapter, the register access module, the sideband command proxy module, and the sideband interface are all bidirectional connections.
[0044] The test cases of the present invention can be distinguished and implemented in different verification scenarios to test the design module to be tested. The test cases can operate the register abstraction layer in the verification environment layer to further implement the initiation of read operation commands and write operation commands to the two access interfaces (sideband interface and CAB interface) of the design module to be tested. For the MRW command, after the MRW command is forwarded to the DRAM interface, it is collected and returned to the register access module through the monitor in the DRAM command proxy module for processing. For the sideband command, it is collected and returned to the register access module for processing through the same set of buses, such as the I3C protocol mode or the I2C protocol mode.
[0045] Furthermore, test cases are sent unidirectionally to the register abstraction layer.
[0046] The register abstraction layer of the present invention is used to realize the packaging integration of two access modes of the RCD chip in the verification environment layer. The register abstraction layer performs read / write operations on the design module to be tested, and realizes the simulation and testing of the digital logic code based on the test case.
[0047] In the present invention, the term "read / write operation" refers to executing a read operation command or a write operation command, but does not imply that the relevant technical features can only execute read operation commands or write operation commands. The read operation and write operation in the present invention can occur simultaneously or successively.
[0048] The register abstraction layer models the design module to be tested and is configured to directly initiate write operation commands to the registers in the RCD chip, and also to obtain the return value according to the read operation command. Based on the comparison between the return value and the model value, refresh, prediction, judgment and other operations are performed to verify the correctness of the design module to be tested.
[0049] The present invention particularly includes a register access module for uniformly managing the configuration interface of the RCD chip.
[0050] The register access module is associated with the register abstraction layer, CAB command proxy module, DRAM command proxy module, and sideband command proxy module, and has a data exchange path. The register access module is provided with configuration items, which can perform the selection control of specific operation behaviors and realize the access control of registers in the RCD chip.
[0051] In addition, the register access module contains a series of configuration variables, which can select different ways to access the registers in the RCD chip. In the test case, the selection of these different methods is determined according to different verification scenarios.
[0052] For the test cases described in the present invention, a set of common functional coverage groups are defined to measure whether the verification work has covered the feature details that the verifier is concerned about, such as: access address boundaries, read and write data value boundaries, read and write data packet formats, switching sequence combinations of different access paths, etc.
[0053] Furthermore, register scan verification of the same access path or register scan verification of different access paths is performed by using a set of automated test case sets, wherein the test case set includes a plurality of test cases.
[0054] In the present invention, register scanning verification for the same access path is specifically: fixing an access path and access mode, traversing or randomly executing initial value test, write test, read test, and abnormal test.
[0055] In the present invention, register scanning verification for different access paths is specifically: randomly using different access paths and access methods, traversing or randomly performing initial value testing, writing testing, reading testing, and abnormal testing to achieve the purpose of cross-verification.
[0056] Furthermore, when executing the test cases to verify other functions of the RCD chip, if it is necessary to access the registers, according to different verification characteristics, for example, when implementing different chip link training scenarios, it is necessary to select the MRW command or the sideband interface method for access; at the test case level, it is possible to flexibly configure the required access method for configuration delivery and readback to complete the simulation verification of the corresponding logic functions.
[0057] Figure 3 The specific structure diagram of the register access module is shown. The register access module includes a read-write access control module, an MRW write control module, an MRW read control module, an MRW command management module, a sideband command management module, etc. Among them, the MRW write control module and the MRW read control module are used to establish a data connection to the MRW command management module, and the MRW read control module is also used to process the read data request sent by the DRAM command proxy module.
[0058] Furthermore, the MRW write control module and the MRW read control module selectively send data to the MRW command management module through the multiplexer. The read-write access control module performs bidirectional data interaction with the adapter and the sideband command management module and the MRW read control module, and the read-write access control module sends control commands to the MRW write control module.
[0059] The register access module includes an MRW command management module, which is specifically configured to perform one or more of the following functions: (a) parsing and converting the address and operand fields in the MRW data packet; (b) including a page control module for managing page addresses; (c) for indirect read operations, controlling the special address fields written by two MRW commands respectively, so that the design module to be tested can forward the register value to the DRAM interface; (d) matching and managing the write and readback data packets.
[0060] In addition, the MRW command management module manages addresses and operand values. The addresses and operand values managed by the MRW command management module are sent to the CAB command proxy module, or received from the CAB command proxy module.
[0061] The register access module includes a sideband command management module, which is specifically configured to have one or more of the following functions: (a) control the start of the read / write operation, and repeat the start and end commands; (b) include I2C interface data and I3C interface data object generators; (c) include a send and readback data object queue manager; in other words, the sequence item analysis module is responsible for managing the sequence item queue, and the sequence item queue is used to send or receive sequence items to the sideband command agent module; (d) configure the optional domain segment of the data packet. For example, the enable and disable control of the parity bit, data packet error coding, etc. in the data packet; (e) control the selection of the I2C protocol mode or the I3C protocol mode. Since the I2C protocol mode and the I3C protocol mode physically share a set of buses, when the I2C protocol mode or the I3C protocol mode changes due to user selection, it is necessary to implement mode switching by sending a general control code command before accessing the register in the RCD chip. The present invention implements an automatic judgment mechanism to determine whether it is necessary to send a general control code command required for switching the I2C protocol mode or the I3C mode before sending the read and write commands.
[0062] In addition, the register access module also includes a path selection module for selecting or configuring register scan verification of one access path or register scan verification of multiple access paths. The MRW command option is used to provide options for the MRW command. The I2C and I3C configuration modules are used to configure the I2C protocol mode and the I3C protocol mode.
[0063] In addition, for protocol formats that require multiple data individual sequences to complete a read / write operation, such as read operations in the I3C protocol mode, secondary encapsulation is performed in the component and uniformly presented in the adapter to solve the problem that the adapter can only associate with a single data individual. The secondary encapsulation here means that for multiple data individual sequences, when completing an access, multiple data individual sequences are encapsulated into a data packet, and then the adapter data is interacted with.
[0064] The present invention realizes the encapsulation and integration of two different access modes of RCD chip in the verification environment layer based on the register abstraction layer model, and can perform read / write access to the design module to be tested through the register abstraction layer, and perform simulation test of digital logic code through standard test cases.
[0065] The specific workflow for the above verification system is: first build the verification environment layer, instantiate the register model, instantiate the design module to be tested and each interface component. Then, connect the verification interface component and the register access module, build the test case, and complete the power-on initialization process.
[0066] Then start running the register scan test cases to verify the register reset value as well as the read test and write test, and verify the single-channel interface access, and then verify the multi-channel interface access to achieve cross-validation.
[0067] Next, the sticking test is performed on the register address in the RCD chip. Finally, regression verification is performed, coverage is collected, and coverage data results are checked to end the verification process.
[0068] Optionally, before the regression verification, availability verification of the register entity in the RCD chip is also performed for the functional logic.
[0069] In order to better illustrate the present invention, numerous specific details are provided in the above specific embodiments. It should be understood by those skilled in the art that the present invention can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present invention.
[0070] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A verification system for registers in an RCD chip, comprising at least a verification environment layer and a design module to be tested, characterized in that: The verification environment layer at least includes a register abstraction layer, a register access module, a sideband command agent module, a CAB command agent module and a DRAM command agent module; The design module to be tested includes a sideband interface, a CAB interface and a DRAM interface; The sideband command proxy module is connected to the sideband interface, the CAB command proxy module is connected to the CAB interface, and the DRAM command proxy module is connected to the DRAM interface; and The register access module establishes a data path with the register abstraction layer, and the register access module also receives the MRW command collected and returned by the monitor in the DRAM command proxy module from the DRAM interface; and, The register abstraction layer can be used to read / write the design module to be tested, and the digital logic code can be simulated and tested through standard test cases; The specific workflow of the verification system for registers in the RCD chip is: first build a verification environment layer, instantiate a register model, instantiate a design module to be tested and various interface components; Then connect the verification interface component and the register access module, and build test cases to complete the power-on initialization process; Then, the register scan test cases are run to verify the register reset value, read test, and write test, and verify the single-channel interface access, and then verify the multi-channel interface access to achieve cross-validation; Then, a sticky test is performed on the register address in the RCD chip, and finally regression verification is performed, coverage is collected, and coverage data results are checked to end the verification process.
2. The verification system for registers in an RCD chip according to claim 1, characterized in that: The verification system for registers in the RCD chip also includes: test cases; The test case operates the register abstraction layer to initiate a read operation command and a write operation command to the sideband interface and the CAB interface of the design module to be tested.
3. The verification system for registers in an RCD chip according to claim 2, characterized in that: The verification environment layer also includes an adapter; The adapter is used to implement data mode conversion between the register abstraction layer and the register access module, and to establish a data path.
4. The verification system for registers in an RCD chip according to claim 3, characterized in that: The register access module is provided with configuration items, and the selection control of specific operation behaviors is executed through the configuration items to realize the access control to the registers in the RCD chip.
5. The verification system for registers in an RCD chip according to claim 4, characterized in that: The register access module includes a read-write access control module, an MRW write control module, an MRW read control module, an MRW command management module, and a sideband command management module.
6. The verification system for registers in an RCD chip according to claim 5, characterized in that: The MRW write control module and the MRW read control module are used to perform data interaction with the MRW command management module; The MRW read control module is also used to process the read data request sent by the DRAM command agent module.
7. The verification system for registers in an RCD chip according to claim 6, characterized in that: The MRW write control module and the MRW read control module selectively send data to the MRW command management module through a multiplexer.
8. The verification system for registers in an RCD chip according to claim 7, characterized in that: The read-write access control module exchanges data with the adapter and the sideband command management module.
9. The verification system for registers in an RCD chip according to claim 8, characterized in that: Register scan verification of the same access path or register scan verification of different access paths is performed by using a test case set, wherein the test case set includes a plurality of test cases.
