Verification system and method of vehicle gauge chip PSI5

By providing PSI5 verification system and methods in automotive specification chips, simulating data frames of different sensors and checking the correctness of data frames and the correctness of interrupt processing, the problem of incomplete data transmission verification in multiple scenarios of PSI5 modules connected to multiple sensors in automotive specification chips is solved, and an efficient verification process is achieved.

CN119620736APending Publication Date: 2025-03-14上海芯钛信息科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411853337.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

The prior art is difficult to achieve the completeness of data transmission verification in the PSI5 module connected to multiple sensors in automotive chips, affecting the safety performance of automobiles.

Method used

Provides a verification system and method for automotive chip PSI5, including top-level files, PSI5 test case base class, Apb bus interface, PSI5 interface and PSI5 module to be verified. Through the PSI5 environment configuration component and the PSI5 environment component, simulate data frames of different sensors to the PSI5 module, and check the correctness of data frames and the correctness of interrupt processing.

Benefits of technology

It realizes the completeness of data transmission verification of PSI5 module connected to multiple sensors in multiple scenarios, simplifies operations, supports parameter configurable functions, is compatible with different versions of PSI5 protocol, and checks data frames in real time, reducing simulation verification time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119620736A_ABST
    Figure CN119620736A_ABST
Patent Text Reader

Abstract

The invention relates to a verification system and method for a vehicle gauge chip PSI5, which is characterized in that a PSI5 module verification system is improved, and a PSI5 receiving driver is utilized to simulate different sensors to drive different data frames (including different sensor data frames and different error data frames) to a PSI5 module, so that random staggered transmission of data frames possibly transmitted by all the sensors connected with the PSI5 module is realized; data transmission of any number of sensors can be simulated, the operation method is simple and convenient, and the verification completeness of the PSI5 module is fully ensured; a parameter configurable function supported in the verification system effectively realizes compatibility of different versions of PSI5 protocols and a data frame transmission protocol similar to a PSI5 module, checks data frames of data sending / data receiving in real time, and can directly feed back and report errors when errors are generated, so that the simulation verification time of the PSI5 module is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of chip verification, and relates to a verification system and method for an automotive-grade chip PSI5. Background Art

[0002] As the integration and intelligence of automotive electronics become higher and higher, the number of sensors used to collect vehicle status is also increasing day by day. Among them, PSI5 (Peripheral Sensor Interface) is a data transmission protocol for automotive sensors, commonly used in the fields of automotive airbags and chassis control, and installed in automotive chips. PIS5 can connect to multiple sensors at the same time to transmit data. Compared with the LIN (Local Interconnect Network) bus, it has a faster transmission speed and a lower cost than the CAN (Controller Area Network) bus, so it is widely used. How to achieve the completeness of the data transmission verification of the PSI5 module in the automotive chip connecting multiple sensors in multiple scenarios is particularly important for the safety performance of automobile driving, and it is also one of the technical problems to be solved in this field. Summary of the invention

[0003] In response to the problems existing in the above-mentioned traditional technologies, the present invention proposes a verification system for an automotive-grade chip PSI5 and a verification method for an automotive-grade chip PSI5, which can realize the completeness of verification in terms of data transmission when the PSI5 module in the automotive-grade chip is connected to multiple sensors in multiple scenarios.

[0004] In order to achieve the above objectives, the embodiments of the present invention adopt the following technical solutions: On the one hand, a verification system for a vehicle-regulatory chip PSI5 is provided, including a top-level file, the top-level file including a PSI5 test case base class, an instantiated Apb bus interface, a PSI5 interface, and a PSI5 module to be verified; Based on the PSI5 test case base class, PSI5 environment configuration component and PSI5 environment component are deployed. PSI5 environment component includes PSI5 scheduling component, PSI5 reference stimulus component, PSI5 interrupt processing component, PSI5 reference model component, PSI5 scoreboard, Apb environment component and PSI5 agent component. PSI5 environment configuration component is used to implement parameter configuration of protocol check in PSI5 environment component. Apb environment component is connected to PSI5 module through Apb bus interface. PSI5 agent component is connected to PSI5 module through PSI5 interface. The PSI5 scheduling component is used to execute verification scheduling and realize the overall verification system control; the verification system control includes controlling the PSI5 reference stimulus component to realize the register configuration of the PSI5 module, controlling the PSI5 interrupt processing component to realize the interrupt processing of the PSI5 module, and controlling the PSI5 receiving stimulus component in the PSI5 proxy component to realize the generation of each sensor data packet of the PSI5 module; The Apb environment component includes an Apb system configuration component and an Apb host agent component. The Apb system configuration component is used to perform system configuration of the Apb environment component. The Apb host agent component is used to configure the slave registers of the PSI5 module, enable the PSI5 module to work, and enable the function configuration of the PSI5 module. The PSI5 reference model component is used to save the register configuration of the PSI5 module. The PSI5 agent component is used to simulate different data frames from different sensors to the PSI5 module and check whether the data frames received and sent by the PSI5 module are correct, as well as collect the data on the PSI5 module's transceiver ports and send them to the PSI5 scoreboard. The PSI5 scoreboard is used to compare the consistency of the data on the PSI5 module's transceiver ports with the data configured in the register configuration of the PSI5 module.

[0005] On the other hand, a verification method for a vehicle-regulatory chip PSI5 is also provided, which is applied to the verification system for the vehicle-regulatory chip PSI5. The verification method for the vehicle-regulatory chip PSI5 comprises the following steps: Configure the top-level file and instantiate the Apb bus interface, PSI5 interface and the interfaces of the PSI5 module to be verified; Configure the PSI5 proxy component according to different sensor scenarios to simulate and generate data frames from different sensors to the PSI5 module; The register configuration of the PSI5 module is realized through the PSI5 reference model component according to different sensor scenarios; After the PSI5 agent component completes the data frame acquisition of the PSI5 module, it compares whether the data frame is correct and whether the interrupt processing of the PSI5 module is correct; If the data frame is correct and the interrupt processing is correct, the verification result of passing the verification is output and the simulation information is printed. Otherwise, the verification result of failing the verification is output and the simulation information is printed.

[0006] One of the above technical solutions has the following advantages and beneficial effects: The verification system and method of the above-mentioned automotive chip PSI5 improves the PSI5 module verification system, uses the PSI5 receiving driver to simulate different sensors to drive different data frames (including different sensor data frames and different error data frames) to the PSI5 module, and realizes the random interleaving transmission of data frames that may be transmitted by all sensors connected to the PSI5 module, and can simulate the transmission of data of any number of sensors. The operation method is simple and convenient, and fully guarantees the completeness of the PSI5 module verification; the parameter configurable function supported in the verification system effectively realizes compatibility with different versions of PSI5 protocols and data frame transmission protocols similar to PSI5 modules, and checks the data frames of data sending / data receiving in real time. When an error occurs, it can directly feedback the error, reducing the simulation verification time of the PSI5 module. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0008] Figure 1 It is a structural block diagram of a verification system of a vehicle-grade chip PSI5 in an embodiment; Figure 2 A schematic diagram of the workflow of a verification system for a vehicle-grade chip PSI5 in an embodiment; Figure 3 It is a structural block diagram of a verification system of a vehicle-grade chip PSI5 in another embodiment; Figure 4 A schematic diagram of a flow chart of a verification method for a vehicle-grade chip PSI5 in an embodiment; Figure 5 A schematic diagram of the workflow of a PSI5 receiving driver in one embodiment; Figure 6 The following is a schematic diagram of the workflow of a PSI5 sending monitor in one embodiment. DETAILED DESCRIPTION

[0009] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0010] It should be noted that the reference to "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The presentation of this phrase at various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It will be appreciated by those skilled in the art that the embodiments described herein may be combined with other embodiments. The term "and / or" used in the specification of the present invention and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0011] The following will describe the implementation of the present invention in detail with reference to the accompanying drawings in the embodiment diagram of the present invention.

[0012] In one embodiment, Figure 1 As shown, a verification system for a vehicle-grade chip PSI5 is provided, including a top-level file, which includes a PSI5 test case base class, an instantiated Apb bus interface, a PSI5 interface, and a PSI5 module to be verified. Based on the PSI5 test case base class, a PSI5 environment configuration component and a PSI5 environment component are deployed. The PSI5 environment component includes a PSI5 scheduling component, a PSI5 reference stimulus component, a PSI5 interrupt processing component, a PSI5 reference model component, a PSI5 scoreboard, an Apb environment component, and a PSI5 agent component. The PSI5 environment configuration component is used to implement the parameter configuration of the protocol check in the PSI5 environment component. The Apb environment component is connected to the PSI5 module through the Apb bus interface, and the PSI5 agent component is connected to the PSI5 module through the PSI5 interface.

[0013] The PSI5 scheduling component is used to execute verification scheduling and realize the overall verification system control; the verification system control includes controlling the PSI5 reference stimulus component to realize the register configuration of the PSI5 module, controlling the PSI5 interrupt processing component to realize the interrupt processing of the PSI5 module, and controlling the PSI5 receiving stimulus component in the PSI5 agent component to realize the generation of each sensor data packet of the PSI5 module. The Apb environment component includes the Apb system configuration component and the Apb host agent component. The Apb system configuration component is used to execute the system configuration of the Apb environment component, and the Apb host agent component is used to configure the slave registers of the PSI5 module, enable the PSI5 module to work, and enable the functional configuration of the PSI5 module.

[0014] The PSI5 reference model component is used to save the register configuration of the PSI5 module. The PSI5 proxy component is used to simulate different data frames from different sensors to the PSI5 module and check whether the data frames sent and received by the PSI5 module are correct, and collect the data on the PSI5 module transceiver port and send it to the PSI5 scoreboard. The PSI5 scoreboard is used to compare the consistency of the data on the PSI5 module transceiver port with the data configured in the register configuration of the PSI5 module.

[0015] It can be understood that the design of each component in the verification system of the above-mentioned automotive chip PSI5 follows the existing UVM verification methodology. According to the detailed verification requirements of the PSI5 protocol and various sensor error acquisition signal processing, the verification system is built based on the UVM verification platform to configure components of corresponding functions, and complete basic operations such as connection and connectivity testing between components to ensure normal data flow between components during the verification process, and to perform detailed verification of the PSI5 module used in the automotive chip.

[0016] The verification system of the above-mentioned automotive chip PSI5 improves the PSI5 module verification system and uses the PSI5 receiving driver to simulate different sensors driving different data frames (including different sensor data frames and different error data frames) to the PSI5 module, thereby realizing random interleaving transmission of data frames that may be transmitted by all sensors connected to the PSI5 module, and can simulate the transmission of data by any number of sensors. The operation method is simple and convenient, fully ensuring the completeness of the PSI5 module verification; the parameter configurable functions supported in the verification system effectively realize compatibility with different versions of PSI5 protocols and data frame transmission protocols similar to PSI5 modules, and check the data frames of data sending / data receiving in real time. When an error occurs, it can directly feedback the error, reducing the simulation verification time of the PSI5 module.

[0017] More specifically, the platform architecture of the verification system provided in this embodiment is as follows: Figure 1 As shown in the figure, the top-level file (Testbench) created in the verification system includes the entire PSI5 verification system, the PSI5 module (i.e., the DUT to be tested) code, and the top-level interface file; the top-level interface file includes the instantiated Apb bus interface (i.e., Apb_if) and the PSI5 interface (i.e., Psi5_if).

[0018] The entire PSI5 verification system creates a PSI5 test case base class (i.e., Psi5_base_test) file, which includes a PSI5 environment configuration component (i.e., Psi5_env_configuration) and a PSI5 environment component (i.e., Psi5_env). Among them, the PSI5 environment configuration component is used to implement the parameter configuration of the protocol check in the PSI5 environment component, which is convenient for checking PSI5 protocol data frames of different specifications. The PSI5 environment component is used to verify the instantiation and connection of each component of the PSI5 module.

[0019] Based on the PSI5 environment component, the PSI5 scheduling component (i.e., Psi5_vsqr) is used to execute verification scheduling and realize the overall verification system control, including controlling the PSI5 reference stimulus component (i.e., Psi5_reg_sqr) to realize the register configuration of the PSI5 module, such as configuring the mode selection of the PSI5 module (synchronous mode or asynchronous mode), the number of sensors, whether it is a continuous data frame, the type of data frame sent (to meet different version protocols), the data frame length of the received and sent data frames, etc.; controlling the PSI5 interrupt processing component (i.e., Psi5_inter_sqr) to realize the interrupt processing of the PSI5 module, check whether the interrupt trigger of the PSI5 module is correct, and perform post-interruption processing to complete the interrupt processing process; controlling the PSI5 receiving stimulus component (i.e., Psi5_rx_sqr) to realize various situations of the sensor data frame collected by the PSI5 module connected to the PSI5 module, so as to facilitate detailed verification of the PSI5 module processing of various sensor data frames.

[0020] The Apb environment component (i.e., Apb_env) in the PSI5 environment component is used to implement the register configuration of the PSI5 module. The Apb environment component includes the Apb system configuration component (i.e., Apb_sys_cfg) and the Apb host agent component (i.e., Apb_master_agt). The Apb system configuration component is used to perform the system configuration implementation of the Apb environment component, and the Apb host agent component is used to configure the slave registers of the PSI5 module (relative to the Apb host agent component, the registers of the PSI5 module are slaves), enable the PSI5 module to work, and enable the functional configuration of the PSI5 module. Among them, the Apb host agent component includes the sequencer, the Apb monitor (Apb_mon, and the Apb driver (Apb_drv)).

[0021] The PSI5 reference model component (i.e., Psi5_reg_model) in the PSI5 environment component is used to save the register configuration of the PSI5 module, so that the system can check whether the PSI5 module works correctly based on the register configuration. The PSI5 agent component (i.e., Psi5_agent) is used to simulate the sensor sending different data frames and check whether the data frames sent by the PSI5 module are correct.

[0022] In one embodiment, the PSI5 proxy component includes a PSI5 sending monitor, a PSI5 receiving excitation component, a PSI5 receiving monitor and a PSI5 receiving driver. The PSI5 sending monitor is used to check whether the data frame header and each bit data pulse width of the data signal on the data sending port of the PSI5 module are correct, and check whether the data frame CRC check is correct. If it is not correct, an error is reported. The PSI5 sending monitor is also used to collect the data signal of the data sending port of the PSI5 module and parse it into data and then transmit it to the PSI5 scoreboard. The PSI5 receiving excitation component is used to generate different sensor data packets to the PSI5 receiving driver. The PSI5 receiving driver is used to simulate the data frames of different sensors and drive them to the data receiving port of the PSI5 module. The PSI5 receiving monitor is used to collect the data signal on the data receiving port of the PSI5 module and parse it into data, and check in real time whether the data frame header, each bit data pulse width of the data frame, Manchester encoding and data frame CRC check of the data on the data receiving port of the PSI5 module are correct, and an error is reported if any of the check items is incorrect. The PSI5 receiving monitor is also used to transmit the data of the PSI5 module collected and parsed to the PSI5 scoreboard.

[0023] It can be understood that the PSI5 transmission monitor (i.e., Psi5_tx_monitor) in the PSI5 agent component is used to check the data transmission (tx) port of the PSI5 module, such as checking in real time whether the frame header of the data frame sent by the PSI5 module and the pulse width of each bit of data are correct; checking whether the CRC check of the data frame is correct, and reporting an error if it is not correct; collecting the data signal of the data transmission port and parsing it into data, and transmitting it to the PSI5 scoreboard (i.e., Psi5_scb) to check whether the parsed data is correct compared with the actually configured transmission data (such as in synchronous mode, the PSI5 reference stimulus component will configure the transmission data. At this time, check whether the transmission data frame data of the PSI5 module is consistent with the configured transmission data to determine whether the transmission is correct; correspondingly, when receiving data frames, check whether the data frames received by the PSI5 module are compared with the data collected by the PSI5 receiving monitor (psi5_rx_monitor) to determine whether the reception is correct), check whether the data signal of the data transmission port complies with the PSI5 protocol, and report an error if it is incorrect or not. In this way, the data frame sent by the data sending port of the PSI5 module can also be checked and verified to ensure that the data signal pulse sent by the PSI5 module is correct and the data CRC check is correct. If it is not correct, an error will be reported to indicate a data sending error.

[0024] The PSI5 receiving monitor (i.e., Psi5_rx_monitor) is used to collect the data signal from the analog sensor on the data receiving port and parse it into data, and check in real time whether the data frame header, the pulse width of each bit of the data frame, the Manchester encoding, and the CRC check of the data frame are correct. If any of the check items is incorrect, an error will be reported. At the same time, the PSI5 receiving monitor will also transmit the parsed data to the PSI5 scoreboard to check whether the parsed data is correct compared with the data received by the PSI5 module (i.e., the sensor data simulated by the PSI5 receiving driver), and check whether the data signal of the data receiving port complies with the PSI5 protocol. If it is incorrect or not, an error will be reported. The PSI5 receiving driver (i.e., Psi5_rx_driver) is used to receive data packets from the PSI5 receiving stimulus component (Psi5_rx_sqr), simulate the data of each sensor, and drive it to the data receiving port of the PSI5 module, to achieve different transmission modes (such as synchronous mode or asynchronous mode) for each sensor, different numbers of sensors (such as 1 to 6), and different data frames (such as synchronous data frames, asynchronous data frames, continuous data frames, and various error data frames). The PSI5 receiving stimulus component is used to generate data packets and send them to the PSI5 receiving driver to achieve data driving.

[0025] The PSI5 scoreboard (Psi5_scb) is used to receive data from the data transmission port of the PSI5 module collected by the PSI5 transmission monitor, and check whether the data is consistent with the transmission data configured in the register (if consistent, the data should be the transmission data configured in the register). If inconsistent, it indicates that the PSI5 module has a data transmission error. The PSI5 scoreboard is also used to receive data from the data reception port of the PSI5 module collected by the PSI5 reception monitor, and check whether the data is consistent with the register read reception data of the PSI5 module (that is, the data that the PSI5 module parses according to the reception pulse and stores in the register). If inconsistent, it indicates that the PSI5 module has a data reception error.

[0026] Finally, check whether the verification system has any error prompts, output the corresponding verification results to realize the verification of the PSI5 module.

[0027] In order to achieve the completeness of the PSI5 module verification, different sensor data packets can be sent to the PSI5 receiving driver through the PSI5 receiving stimulus component to drive the data frames of different sensors to the data receiving port of the PSI5 module, thereby realizing data frame driving in different sensor scenarios. Different error data can also be randomly inserted into the data packet during the verification process to ensure that the corresponding error interrupt on the PSI5 module is correctly triggered and processed, and does not affect the normal reception of the next data frame. Figure 2 As shown in FIG. 1 , it is a schematic diagram of the verification workflow of the system, where case represents a test case and each case corresponds to a sensor scenario.

[0028] In one embodiment, Figure 3 As shown, the verification system of the above-mentioned automotive chip PSI5 also includes a coverage collection component, which collects all working modes, all interrupt signals and alarm signals of the PSI5 module.

[0029] It can be understood that the coverage collection component (i.e., Psi5_cov) is used to ensure the completeness of PSI5 module verification, collect all working modes of PSI5 module, and collect all interrupt signals and alarm signals of PSI5 module. In this way, the coverage collection component can be used to collect different error interrupts to further ensure the completeness of PSI5 module verification.

[0030] Each component in the verification system of the above-mentioned automotive chip PSI5 can be fully or partially implemented by software, hardware and their combination. The above-mentioned components can be embedded in or independent of a device with data processing functions in the form of hardware, or can be stored in the memory of the above-mentioned device in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules. The above-mentioned device can be, but is not limited to, various types of chip verification computers already available in the art.

[0031] In one embodiment, a verification method for a vehicle-regulatory chip PSI5 is provided, which is applied to the verification system for the vehicle-regulatory chip PSI5, such as Figure 4 As shown, the verification method of the automotive chip PSI5 includes the following steps S10 to S18: S10, configure the top-level file and instantiate the Apb bus interface, PSI5 interface and each interface of the PSI5 module to be verified; S12, configuring the PSI5 proxy component according to different sensor scenarios to simulate and generate data frames of different sensors to the PSI5 module; S14, implementing register configuration of the PSI5 module through the PSI5 reference model component according to different sensor scenarios; S16, after waiting for the PSI5 agent component to complete the data frame acquisition of the PSI5 module, compare whether the data frame is correct and whether the interrupt processing of the PSI5 module is correct; S18, if the data frame is correct and the interrupt processing is correct, the verification result of passing the verification is output and the simulation information is printed, otherwise the verification result of failing the verification is output and the simulation information is printed.

[0032] The verification method of the above-mentioned automotive chip PSI5 improves the PSI5 module verification system and uses the PSI5 receiving driver to simulate different sensors driving different data frames (including different sensor data frames and different error data frames) to the PSI5 module, so as to realize the random interleaving transmission of data frames that may be transmitted by all sensors connected to the PSI5 module, and can simulate the transmission of data of any number of sensors. The operation method is simple and convenient, which fully guarantees the completeness of the PSI5 module verification. The parameter configurable function supported in the verification system effectively realizes compatibility with different versions of PSI5 protocols and data frame transmission protocols similar to PSI5 modules, and checks the data frames of data sending / data receiving in real time. When an error occurs, it can directly feedback the error, reducing the simulation verification time of the PSI5 module.

[0033] In one embodiment, Figure 5 As shown, the workflow of the PSI5 receiving driver in the PSI5 agent component may include: Receive data packets generated by the PSI5 receiving stimulus component; Determine whether the data frame in the data packet is in synchronous drive mode. If it is in synchronous drive mode, wait for the PSI5 module to send a synchronous pulse signal and then determine whether the data frame is a continuous data frame; If it is a continuous data frame, determine whether the data frame is an error data frame; if it is an error data frame, drive different modes of error continuous data frames to the PSI5 module according to different error signals; if it is not an error data frame, drive the continuous data frame to the PSI5 module; If it is not a continuous data frame, determine whether the data frame is an error data frame; if it is an error data frame, drive different modes of error discontinuous data frames to the PSI5 module according to different error signals; if it is not an error data frame, drive the discontinuous data frame to the PSI5 module; If it is not the synchronous driving mode, the process jumps to the step of determining whether the data frame is a continuous data frame.

[0034] In one embodiment, Figure 6 As shown, the workflow of the PSI5 send monitor in the PSI5 agent component may include: After waiting for the rising edge of the sending pulse to be triggered, analyze the sending pulse bit signal; Determine whether the pulse width of the transmitted pulse bit signal is correct; If the pulse width of the transmitted pulse bit signal is correct, it is determined whether the data conforms to the frame header; if the pulse width of the transmitted pulse bit signal is incorrect, an error is reported and recorded, and then it is determined whether the data conforms to the frame header; If the data conforms to the frame header, wait for the next sending pulse to parse the pulse bit signal; if the data does not conform to the frame header, jump back to the step of parsing the sending pulse bit signal; Determine whether the pulse width of the next transmitted pulse bit signal is correct; If the pulse width of the next transmitted pulse bit signal is correct, it is determined whether the data length reaches the configured length value; if the pulse width of the next transmitted pulse bit signal is incorrect, an error is reported and recorded, and then it is determined whether the data length reaches the configured length value; If the data length reaches the configured length value, determine whether the data CRC check passes; if the data length does not reach the configured length value, jump back to the step of waiting for the next sending pulse to parse the pulse bit signal; If the data CRC check passes, the data frame is sent to the PSI5 scoreboard; if the data CRC check fails, an error is reported and recorded before sending the data frame to the PSI5 scoreboard.

[0035] For the specific limitations of the verification method of the automotive-grade chip PSI5, please refer to the corresponding limitations of the verification system of the automotive-grade chip PSI5 mentioned above, which will not be repeated here.

[0036] It should be understood that although Figure 4 The steps in the method are shown in sequence as indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps can be executed in other orders. Figure 4At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequentially, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0037] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus dynamic random access memory (RambusDRAM, referred to as RDRAM) and interface dynamic random access memory (DRDRAM).

[0038] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0039] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of protection of the invention. It should be pointed out that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the attached claims.

Claims

1. A verification system for automotive chip PSI5, characterized in that: The top-level file includes a PSI5 test case base class, an instantiated Apb bus interface, a PSI5 interface, and a PSI5 module to be verified; A PSI5 environment configuration component and a PSI5 environment component are deployed based on the PSI5 test case base class. The PSI5 environment component includes a PSI5 scheduling component, a PSI5 reference stimulus component, a PSI5 interrupt processing component, a PSI5 reference model component, a PSI5 scoreboard, an Apb environment component and a PSI5 agent component. The PSI5 environment configuration component is used to implement parameter configuration of protocol checking in the PSI5 environment component. The Apb environment component is connected to the PSI5 module via the Apb bus interface, and the PSI5 agent component is connected to the PSI5 module via the PSI5 interface. The PSI5 scheduling component is used to execute verification scheduling to realize overall verification system control; the verification system control includes controlling the PSI5 reference excitation component to realize register configuration of the PSI5 module, controlling the PSI5 interrupt processing component to realize interrupt processing of the PSI5 module, and controlling the PSI5 receiving excitation component in the PSI5 proxy component to realize the generation of each sensor data packet of the PSI5 module; The Apb environment component includes an Apb system configuration component and an Apb host agent component, wherein the Apb system configuration component is used to perform system configuration of the Apb environment component, and the Apb host agent component is used to configure the slave register of the PSI5 module, enable the PSI5 module to work, and enable the functional configuration of the PSI5 module; The PSI5 reference model component is used to save the register configuration of the PSI5 module, the PSI5 proxy component is used to simulate different data frames of different sensors to the PSI5 module and check whether the data frames received and sent by the PSI5 module are correct, and collect the data on the transceiver port of the PSI5 module and send it to the PSI5 scoreboard. The PSI5 scoreboard is used to compare the consistency of the data on the transceiver port of the PSI5 module with the data configured in the register configuration of the PSI5 module.

2. The verification system of the automotive chip PSI5 according to claim 1 is characterized in that: The PSI5 agent component includes a PSI5 send monitor, the PSI5 receive excitation component, a PSI5 receive monitor and a PSI5 receive driver; The PSI5 transmission monitor is used to check whether the data frame header and each bit data pulse width of the data signal on the data transmission port of the PSI5 module are correct, and check whether the data frame CRC check is correct. If not, an error is reported; the PSI5 transmission monitor is also used to collect the data signal of the data transmission port of the PSI5 module and parse it into data and then transmit it to the PSI5 scoreboard; The PSI5 receiving excitation component is used to generate different sensor data packets to the PSI5 receiving driver, the PSI5 receiving driver is used to simulate data frames of different sensors and drive them to the data receiving port of the PSI5 module, the PSI5 receiving monitor is used to collect the data signal on the data receiving port of the PSI5 module and parse it into data, and check in real time whether the data frame header, each bit data pulse width of the data frame, Manchester encoding and data frame CRC check of the data on the data receiving port of the PSI5 module are correct, and if any check item is incorrect, an error is reported. The PSI5 receiving monitor is also used to transmit the collected and parsed data of the PSI5 module to the PSI5 scoreboard.

3. The verification system of the automotive chip PSI5 according to claim 1 or 2, characterized in that: It also includes a coverage collection component, which collects all working modes, all interrupt signals and alarm signals of the PSI5 module.

4. A verification method for automotive chip PSI5, characterized in that: The verification system for the automotive chip PSI5 according to any one of claims 1 to 3, wherein the verification method for the automotive chip PSI5 comprises the steps of: Configure the top-level file and instantiate the Apb bus interface, PSI5 interface and the interfaces of the PSI5 module to be verified; According to different sensor scenarios, configure the PSI5 proxy component to simulate and generate data frames of different sensors to the PSI5 module; Implement register configuration of the PSI5 module through the PSI5 reference model component according to different sensor scenarios; After waiting for the PSI5 proxy component to complete the data frame acquisition of the PSI5 module, compare whether the data frame is correct and whether the interrupt processing of the PSI5 module is correct; If the data frame is correct and the interrupt processing is correct, the verification result of passing the verification is output and the simulation information is printed. Otherwise, the verification result of failing the verification is output and the simulation information is printed.

5. The verification method of the automotive chip PSI5 according to claim 4 is characterized in that: The workflow of the PSI5 receiving driver in the PSI5 agent component includes: Receive data packets generated by the PSI5 receiving stimulus component; Determine whether the data frame in the data packet is in synchronous drive mode, and if it is in synchronous drive mode, wait for the PSI5 module to send a synchronous pulse signal and then determine whether the data frame is a continuous data frame; If it is a continuous data frame, determine whether the data frame is an error data frame; if it is an error data frame, drive different modes of error continuous data frames to the PSI5 module according to different error signals; if it is not an error data frame, drive the continuous data frame to the PSI5 module; If it is not a continuous data frame, determine whether the data frame is an error data frame; if it is an error data frame, drive different modes of error discontinuous data frames to the PSI5 module according to different error signals; if it is not an error data frame, drive the discontinuous data frame to the PSI5 module; If it is not the synchronous driving mode, the process jumps to the step of determining whether the data frame is a continuous data frame.

6. The verification method of the automotive chip PSI5 according to claim 4 is characterized in that: The workflow of the PSI5 send monitor in the PSI5 agent component includes: After waiting for the rising edge of the sending pulse to be triggered, analyze the sending pulse bit signal; Determine whether the pulse width of the transmitted pulse bit signal is correct; If the pulse width of the transmitted pulse bit signal is correct, it is determined whether the data conforms to the frame header; if the pulse width of the transmitted pulse bit signal is incorrect, an error is reported and recorded, and then it is determined whether the data conforms to the frame header; If the data conforms to the frame header, then wait for the next sending pulse to parse the pulse bit signal; if the data conforms to the frame header, then jump back to the step of parsing the sending pulse bit signal; Determine whether the pulse width of the next transmitted pulse bit signal is correct; If the pulse width of the next transmitted pulse bit signal is correct, it is determined whether the data length reaches the configured length value; if the pulse width of the next transmitted pulse bit signal is incorrect, an error is reported and recorded, and then it is determined whether the data length reaches the configured length value; If the data length reaches the configured length value, determine whether the data CRC check passes; if the data length does not reach the configured length value, jump back to the step of waiting for the next sending pulse to analyze the pulse bit signal; If the data CRC check passes, the data frame is sent to the PSI5 scoreboard; if the data CRC check fails, an error is reported and recorded before sending the data frame to the PSI5 scoreboard.