Functional simulation method and system for back-voltage overshoot based on general verification methodology
Through the back-voltage overshoot functional simulation method based on the general verification methodology and using the UVM verification platform to verify the function of the back-voltage overshoot circuit model, it solves the high cost and complex process problems caused by hardware implementation, and achieves flexible verification and verification of functions. Expected compliance checks to support efficient data exchange.
Patent Information
- Application Number
- CN202410523983.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-04-29
AI Technical Summary
The existing technology uses hardware to implement the back-pressure function, resulting in high costs and complex processes, making it difficult to flexibly verify.
The back-voltage overshoot function simulation method based on general verification methodology is adopted. Through the pre-verified back-voltage overshoot circuit model and logic function verification model, UVM is used to build a verification platform to verify whether the back-voltage overshoot function of the circuit model meets expectations.
It realizes flexible verification of the backpressure and overshoot function, reduces costs, simplifies the process flow, can know in advance whether the function meets expectations, and supports non-blocking and low-latency data exchange.
Smart Images

Figure CN118095155B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of functional simulation testing, and in particular relates to a method and system for functional simulation of back-voltage overshoot based on general verification methodology. Background Art
[0002] UVM model verification is closer to hardware implementation, has the concept of cycle, and can abstract transaction-level modeling, making it easier to add various delay parameters, and can also be expanded into a register-accurate functional model or a timing-accurate performance model; the UVM model uses processes to simulate the concurrent behavior between modules, and can use UVM to implement various complex model algorithms;
[0003] The DUT corresponding to the UVM verification platform is the SDI4820 switching subsystem; SDI4820 is a software-defined interconnect chip that supports the interconnection and intercommunication of four heterogeneous protocols: PCIe Gen4, 200GE, 32G Fiber Channel, and RapidIO Gen4. The protocol of each high-speed serial data interface can be software-defined into any of the above four protocols, and can achieve non-blocking, low-latency, high-reliability, and flexible switching between any two protocols;
[0004] The prior art has the problem that the back pressure function is realized by hardware, which results in a relatively high cost and a relatively complicated process. Summary of the invention
[0005] The present invention provides a method and system for simulating the function of back pressure overshoot based on a general verification methodology, so as to solve the problem that the prior art in the above-mentioned background technology uses hardware to realize the back pressure function, which results in a relatively high cost and a relatively complicated process.
[0006] The technical problem solved by the present invention is achieved by adopting the following technical solution: a functional simulation method of back pressure overshoot based on general verification methodology, comprising:
[0007] Based on the pre-verified back-voltage overshoot circuit model and the logic function verification model built by the universal verification methodology UVM, the corresponding back-voltage overshoot verification method is used to verify whether the back-voltage overshoot function of the circuit model meets the expected function.
[0008] further:
[0009] The reverse voltage overshoot circuit model includes a reverse voltage overshoot circuit;
[0010] The reverse voltage overshoot circuit includes a relay A001. When the relay A001 obtains a power-on signal, it triggers the contactor A002 switch to close. The contactor A002 controls the operation of the compressor C001. The compressor C001 is electrically connected in series to the current sensor B001. The compressor C001 is compressed to the pressure switch and the overvoltage protection circuit B002.
[0011] further:
[0012] The logic function verification model includes:
[0013] Through the exchange packet processing and arbitration scheduling processing, the basic logical function of the corresponding circuit model is determined by the input and output judgment of the data packet.
[0014] further:
[0015] The logic function verification model includes: a transmitting device TX and a receiving device RX;
[0016] Based on the excitation source GEN of the transmitting device TX, different excitations are generated and output to the device under test DUT through the driver DRV. The tested data processed by the device under test DUT is sent to the monitor MON of the receiving device RX. The driver DRV sends the excitation data to the inspection device SCB, and the monitor MON forwards the tested data to the inspection device SCB.
[0017] further:
[0018] The packet exchange process includes:
[0019] Based on the test data packet with routing information, the test data packet is sent to the corresponding port under test;
[0020] Based on the test data packet received by the port under test, sending the test data packet to the allocated data buffer;
[0021] If there is a protocol that is the same across clock domains, clock diversion is performed across clock domains;
[0022] Otherwise: based on the test data packet in the data buffer, send the test data packet to the shared buffer area;
[0023] Based on the test data packet in the shared cache area, the routing results transmitted together or the routing results output by the subsequent global routing and the priority routing information data are synchronized according to the test data packet message;
[0024] Based on the routing information data, a virtual output queue is established.
[0025] further:
[0026] The arbitration scheduling process includes:
[0027] Based on the test data packets in the shared buffer area, through the data bus cross matrix, according to the routing information data, a four-dimensional routing expectation queue including routing information, priority, unicast and multicast packet type information, and maintenance packet type information is established;
[0028] Based on the four-dimensional routing expectation queue, the routing scheduling result is output through the core arbitration algorithm;
[0029] Based on the routing scheduling result, the final scheduling result is generated through routing distribution arbitration.
[0030] further:
[0031] The core arbitration algorithm includes:
[0032] Based on the source port and the destination port, the routing scheduling result between them is determined and output.
[0033] further:
[0034] The data packet input and output determination includes:
[0035] The data packets of the virtual output queue are compared with the data packets of the expected input queue. If they are equal, the basic logic functions including the shared buffer, core switching and output buffer are normal.
[0036] further:
[0037] The back-voltage overshoot verification method comprises:
[0038] Based on the virtual output queue, the required number of back pressure signals 0 are pushed into the queue to form an event output queue;
[0039] Based on the event output queue, a back pressure signal 0 is popped out from the event output queue at intervals of the event clock cycle, and an event is triggered. If the event is triggered, the non-back pressure signal 1 of the device under test is pushed into the queue to form a back pressure output queue;
[0040] Based on the back pressure output queue, at interval event clock cycles, if the back pressure output queue outputs a pop-up non-back pressure signal 1, the back pressure overshoot beat count is determined.
[0041] At the same time, the present invention also provides a back pressure overshoot functional simulation system based on a general verification methodology, including: the functional simulation system implements any of the above-mentioned functional simulation methods, and the functional simulation system includes:
[0042] Pre-verification circuit module: used to establish a pre-verified reverse voltage overshoot circuit model;
[0043] Functional verification module: used to build a logical function verification model through the universal verification methodology UVM;
[0044] Circuit verification module: used to verify whether the reverse voltage overshoot function of the circuit model meets the expected function through the corresponding reverse voltage overshoot verification method.
[0045] Beneficial technical effects:
[0046] This solution adopts a pre-verified back-voltage overshoot circuit model, and then a logic function verification model built by the universal verification methodology UVM, and then a corresponding back-voltage overshoot verification method is used to finally verify whether the back-voltage overshoot function of the circuit model meets the expected function. Since the existing technical solution requires hardware to implement functional debugging, it cannot be flexibly verified. The DUT corresponding to the UVM verification platform is a switching subsystem. The system supports online software definition and configuration management working modes through the configuration management platform. The software-defined interconnect chip exchange generally adopts a distributed shared cache structure, which includes software-defined serial transceivers (SDTR), software-defined protocol controllers (SDPC), software-defined switching (SDSW), software-defined protocol conversion (SDPMT), etc. The switching module of the system is used to realize non-blocking, low-latency data exchange between up to 58 switching ports. Through UVM simulation, simulation debugging of back-voltage overshoot can be realized, and functional verification of back-voltage overshoot can be realized, so that it can be known in advance whether the function meets expectations. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is the overall flow chart of the function simulation method of the present invention;
[0048] Figure 2 It is a specific flow chart of the function simulation method of the present invention;
[0049] Figure 3 It is a work flow chart of the function simulation method of the present invention;
[0050] Figure 4 It is an electrical schematic diagram of the overvoltage protection circuit B002 of the functional simulation method of the present invention;
[0051] Figure 5 It is a functional module diagram of the functional simulation system of the present invention;
[0052] Figure 6 It is a system structure diagram of the functional simulation system of the present invention. DETAILED DESCRIPTION
[0053] The present invention is further described below in conjunction with the accompanying drawings:
[0054] In the figure:
[0055] S101-based on pre-verified reverse voltage overshoot circuit model;
[0056] S102-Logical function verification model built by universal verification methodology UVM;
[0057] S103-through the corresponding back pressure overshoot verification method;
[0058] S104-Verify whether the reverse voltage overshoot function of the circuit model meets the expected function;
[0059] S201-Based on the virtual output queue, push the required number of back pressure signals 0 into the queue to form an event output queue;
[0060] S202-Based on the event output queue, at intervals of event clock cycles, a back pressure signal 0 is popped out from the event output queue and an event is triggered. If the event is triggered, the non-back pressure signal 1 of the device under test is pushed into the queue to form a back pressure output queue;
[0061] S203-based on the back pressure output queue, the interval event clock cycle, if the back pressure output queue outputs a pop-up non-back pressure signal 1, then determine the back pressure overshoot beat number; Example
[0062] like Figure 1 As shown in the figure, the functional simulation method of back voltage overshoot based on the general verification methodology includes:
[0063] Based on the pre-verified back-voltage overshoot circuit model S101, a logic function verification model S102 is constructed using the universal verification methodology UVM, and through the corresponding back-voltage overshoot verification method S103, it is verified whether the back-voltage overshoot function of the circuit model meets the expected function S104.
[0064] This scheme adopts a pre-verified back-voltage overshoot circuit model, and then uses a logic function verification model built by the universal verification methodology UVM, and then uses the corresponding back-voltage overshoot verification method to finally verify whether the back-voltage overshoot function of the circuit model meets the expected function. Since the existing technical scheme requires hardware to implement functional debugging, it cannot be flexibly verified. The DUT corresponding to the UVM verification platform is a switching subsystem. The system supports online software definition and configuration management working modes through the configuration management platform. The software-defined interconnect chip exchange generally adopts a distributed shared cache structure, such as Figure 6 As shown, it includes software-defined serial transceiver (SDTR), software-defined protocol controller (SDPC), software-defined switch (SDSW), software-defined protocol conversion (SDPMT), etc. The switching module of the system is used to realize non-blocking, low-latency data exchange between up to 58 switching ports. Through UVM simulation, simulation debugging of back-voltage overshoot can be realized, and functional verification of back-voltage overshoot can be realized, so as to know in advance whether the function meets expectations.
[0065] like Figure 4 As shown, the reverse voltage overshoot circuit model includes a reverse voltage overshoot circuit;
[0066] The reverse voltage overshoot circuit includes a relay A001. When the relay A001 obtains a power-on signal, it triggers the contactor A002 switch to close. The contactor A002 controls the operation of the compressor C001. The compressor C001 is electrically connected in series to the current sensor B001. The compressor C001 is compressed to the pressure switch and the overvoltage protection circuit B002.
[0067] This scheme adopts a reverse voltage overshoot circuit, which includes an overvoltage protection circuit, as well as relays, contactors, current sensors, pressure switches and other devices. This scheme provides an overvoltage protection circuit, an overvoltage protection method and an overvoltage protection device, wherein the overvoltage protection circuit is applied to a compressor, including a relay, a contactor switch and a pressure switch connected in series, and the relay triggers the contactor switch to close when obtaining a power-on signal to control the compression operation; a current sensor, connected to the contactor switch, for detecting the current value flowing through the compressor; a control module, connected to the relay, the pressure switch and the current sensor, when the pressure switch detects that the working pressure is less than the preset pressure, the pressure switch closes and merges to generate a corresponding closing signal; after the controller module obtains the closing signal, it determines whether to generate a power-on signal according to the duration of the current value being 0. Through the technical scheme of the present invention, the overvoltage protection circuit is used to detect the working pressure and starting frequency of the compressor, thereby controlling the opening and closing of the compressor, solving the problem of excessive working pressure and frequent starting of the compressor.
[0068] like Figure 6 As shown, the logic function verification model includes:
[0069] Through the exchange packet processing and arbitration scheduling processing, the basic logical function of the corresponding circuit model is determined by the input and output judgment of the data packet.
[0070] This solution adopts the switching packet processing and arbitration scheduling processing, and determines the basic logic function of the corresponding circuit model through the input and output judgment of the data packet. Since the switching packet is forwarded to the corresponding port of the DUT through the routing information carried in the packet, the core arbitration module determines which source portgroup and which destination portgroup corresponds to which destination port, and the distributed arbitration module determines which source port is selected. The purpose of building this verification platform is to verify the basic logic functions in the DUT, mainly including the input shared cache, core switching and output cache, to ensure the normal communication and forwarding of data packets.
[0071] The logic function verification model includes: a transmitting device TX and a receiving device RX;
[0072] Based on the excitation source GEN of the transmitting device TX, different excitations are generated and output to the device under test DUT through the driver DRV. The tested data processed by the device under test DUT is sent to the monitor MON of the receiving device RX. The driver DRV sends the excitation data to the inspection device SCB, and the monitor MON forwards the tested data to the inspection device SCB.
[0073] The logic function verification model adopted in this scheme includes: a transmitter TX and a receiver RX; different stimuli are generated based on the stimulus source GEN of the transmitter TX, and the device under test DUT is output through the driver DRV. The test data processed by the device under test DUT is sent to the monitor MON of the receiving device RX. The driver DRV sends the stimulus data to the inspection device SCB, and the monitor MON forwards the test data to the inspection device SCB. Since (1) fc_tx_agent is used to generate fc messages received by the shared cache and send the packets to the exchanged rm at the same time, the transaction driven in the driver is sent to the reference_model through analysis_fifo at the same time, and the DUT function is implemented in rm. Then the messages collected with the rx monitor are sent to the scoreboard to implement the inspection function. The platform requires 54 drivers, 54 monitors, 54 inputs, and 54 outputs; the inspector (Scoreboard): placed in the rm, used for the rm to implement the messages sent by the DUT function and the messages received by the DUT to complete the inspection.
[0074] like Figure 5 As shown, the exchange packet sending process includes:
[0075] Based on the test data packet with routing information, the test data packet is sent to the corresponding port under test;
[0076] Based on the test data packet received by the port under test, sending the test data packet to the allocated data buffer;
[0077] If there is a protocol that is the same across clock domains, clock diversion is performed across clock domains;
[0078] Otherwise: based on the test data packet in the data buffer, send the test data packet to the shared buffer area;
[0079] Based on the test data packet in the shared cache area, the routing results transmitted together or the routing results output by the subsequent global routing and the priority routing information data are synchronized according to the test data packet message;
[0080] Based on the routing information data, a virtual output queue is established.
[0081] This solution uses exchange packet processing, which includes the packet first entering the Ingress async fifo, and bypassing the cross-clock domain module for protocols such as RapidIO and Ethernet whose working clock is the same as the exchange working clock. Ingress will store the data packets processed by the cross-clock domain into the shared cache, and synchronously establish a virtual output queue based on the routing results transmitted together with the data packets or the routing results output by the subsequent global routing module and priority information.
[0082] The arbitration scheduling process includes:
[0083] Based on the test data packets in the shared buffer area, through the data bus cross matrix, according to the routing information data, a four-dimensional routing expectation queue including routing information, priority, unicast and multicast packet type information, and maintenance packet type information is established;
[0084] Based on the four-dimensional routing expectation queue, the routing scheduling result is output through the core arbitration algorithm;
[0085] Based on the routing scheduling result, the final scheduling result is generated through routing distribution arbitration.
[0086] This solution adopts arbitration scheduling. Since there is an arbitration scheduling module in Ingress, it performs further distributed arbitration based on the scheduling results output by the subsequent central arbitration module to generate the final scheduling results, and transmits the data packets in the shared cache to Egress through the 8x8 Crossbar data bus cross matrix; the platform will establish a 4-dimensional expected queue based on the routing information, priority, and packet type (unicast, multicast, maintenance packet) information carried in the packet.
[0087] The core arbitration algorithm includes:
[0088] Based on the source port and the destination port, the routing scheduling result between them is determined and output.
[0089] This solution adopts the core arbitration algorithm. Since the core arbitration module determines which source portgroup and which destination portgroup corresponds to which destination port, the distributed arbitration module determines which source port is selected. The purpose of building this verification platform is to verify the basic logical functions in the DUT, mainly including input shared cache, core switching and output cache, to ensure normal data packet communication and forwarding.
[0090] The data packet input and output determination includes:
[0091] The data packets of the virtual output queue are compared with the data packets of the expected input queue. If they are equal, the basic logic functions including the shared buffer, core switching and output buffer are normal.
[0092] This solution compares the data packets of the virtual output queue with the data packets of the expected input queue. If they are equal, the basic logical functions including shared cache, core switching and output cache are normal. The output data packets are compared with the packets of the expected queue, ultimately achieving the effect of verifying the system function.
[0093] like Figure 2 , 3 As shown, the back-voltage overshoot verification method includes:
[0094] Based on the virtual output queue, a required number of back pressure signals 0 are pushed into the queue to form an event output queue S201;
[0095] Based on the event output queue, at intervals of event clock cycles, a back pressure signal 0 is popped out from the event output queue and an event is triggered. If the event triggering is completed, the non-back pressure signal 1 of the device under test is pushed into the queue to form a back pressure output queue S202;
[0096] Based on the back pressure output queue, at intervals of event clock cycles, if the back pressure output queue outputs a pop-up non-back pressure signal 1, then the back pressure overshoot beat count is determined S203.
[0097] This solution adopts the back pressure overshoot verification method, forms an event output queue, forms a back pressure output queue, and determines the number of back pressure overshoot beats. The steps of UVM to implement back pressure overshoot are as follows: (1) Create a queue, and then push a certain number of 0s into the queue; (2) A data pops out of the queue in each clock cycle, and then triggers an event; (3) In each clock cycle, when the event is triggered, the corresponding back pressure signal output by the DUT is pushed into the queue; (4) The back pressure signal output by the DUT is 0 for back pressure, and 1 for no back pressure; (5) In this way, when 1 is popped out of the queue in each clock cycle, there is a fixed number of 0s in front, which can achieve the effect of back pressure overshoot.
[0098] At the same time, the present invention also provides a back pressure overshoot functional simulation system based on a general verification methodology, including: the functional simulation system implements any of the above-mentioned functional simulation methods, and the functional simulation system includes:
[0099] Pre-verification circuit module: used to establish a pre-verified reverse voltage overshoot circuit model;
[0100] Functional verification module: used to build a logical function verification model through the universal verification methodology UVM;
[0101] Circuit verification module: used to verify whether the reverse voltage overshoot function of the circuit model meets the expected function S104 through the corresponding reverse voltage overshoot verification method S103.
[0102] like Figure 3As shown, this solution also provides a functional simulation system for back pressure overshoot based on general verification methodology, which includes a pre-verification circuit module, a functional verification module, and a circuit verification module. The more specific method of implementing this solution includes: (1) first inject a certain number of 0s into the queue of each bank. There are 8 banks in total, and 75 0s are injected into each bank, buffering 75 beats; (2) then pop out a data from the queue every clock cycle, and then trigger an event; (3) after waiting for the data to pop out, inject the back pressure signal output by the DUT. If there is no back pressure, it will be 1, and if there is back pressure, it will be 0; (4) when the DUT outputs 1, it will be 75 beats late. The simulation system provided in this case implements the simulation method proposed in this solution and has system practicality.
[0103] Working principle:
[0104] This scheme adopts a pre-verified back-voltage overshoot circuit model, then a logic function verification model built by the universal verification methodology UVM, and then a corresponding back-voltage overshoot verification method to finally verify whether the back-voltage overshoot function of the circuit model meets the expected function. Since the existing technical scheme requires hardware to implement functional debugging and cannot be flexibly verified, the DUT corresponding to the UVM verification platform is a switching subsystem. The system supports online software definition and configuration management working modes through the configuration management platform. The software-defined interconnect chip exchange generally adopts a distributed shared cache structure, such as Figure 6 As shown, it includes a software-defined serial transceiver (SDTR), a software-defined protocol controller (SDPC), a software-defined switch (SDSW), a software-defined protocol conversion (SDPMT) (default module before protocol switching), etc. The switching module of the system is used to realize non-blocking, low-latency data exchange between a maximum of 58 switching ports. Through UVM simulation, simulation debugging of back pressure overshoot can be realized, and functional verification of back pressure overshoot can be realized, so that it can be known in advance whether the function meets expectations. The present invention solves the problem that the prior art uses hardware to realize the back pressure function, which leads to the need for high cost and relatively complicated processes. It has the technical effect that simulation debugging of back pressure overshoot can be realized through UVM simulation, and functional verification of back pressure overshoot can be realized, so that it can be known in advance whether the function meets expectations.
[0105] Utilizing the technical solution of the present invention, or those skilled in the art designing a similar technical solution inspired by the technical solution of the present invention to achieve the above-mentioned technical effects are deemed to fall within the protection scope of the present invention.
Claims
1. Functional simulation method of back-voltage overshoot based on general verification methodology, It is characterized in that include: Based on the pre-verified back-voltage overshoot circuit model, the logic function verification model built by the universal verification methodology UVM is used to verify whether the back-voltage overshoot function of the circuit model meets the expected function through the corresponding back-voltage overshoot verification method; The structure of the logic function verification model includes: A transmitting device TX and a receiving device RX; Based on the excitation source GEN of the transmitting device TX, different excitations are generated and output to the device under test DUT through the driver DRV. The tested data processed by the device under test DUT is sent to the monitor MON of the receiving device RX. The driver DRV sends the excitation data to the inspection device SCB, and the monitor MON forwards the tested data to the inspection device SCB. The logic function verification model includes: Through exchange packet processing and arbitration scheduling processing, the basic logic function of the corresponding circuit model is determined by data packet input and output judgment; The packet exchange process includes: Based on the test data packet with routing information, the test data packet is sent to the corresponding port under test; Based on the test data packet received by the port under test, sending the test data packet to the allocated data buffer; Based on the test data packet in the data buffer, the test data packet is sent to the shared buffer area; Based on the test data packet in the shared cache area, the routing results transmitted together or the routing results output by the subsequent global routing and the priority routing information data are synchronized according to the test data packet message; Based on the routing information data, a virtual output queue is established; The data packet input and output determination includes: The data packets in the virtual output queue are compared with the data packets in the expected input queue. If they are equal, the basic logical functions including the shared cache, core switching and output cache are normal; The back-voltage overshoot verification method comprises: Based on the virtual output queue, the required number of back pressure signals 0 are pushed into the queue to form an event output queue; Based on the event output queue, a back pressure signal 0 is popped out from the event output queue at intervals of the event clock cycle, and an event is triggered. If the event is triggered, the non-back pressure signal 1 of the device under test is pushed into the queue to form a back pressure output queue; Based on the back pressure output queue, at interval event clock cycles, if the back pressure output queue outputs a pop-up non-back pressure signal 1, the back pressure overshoot beat count is determined.
2. According to the functional simulation method of claim 1, It is characterized in that include: The reverse voltage overshoot circuit model includes a reverse voltage overshoot circuit; The reverse voltage overshoot circuit includes a relay A001. When the relay A001 obtains a power-on signal, it triggers the contactor A002 switch to close. The contactor A002 controls the operation of the compressor C001. The compressor C001 is electrically connected in series to the current sensor B001. The compressor C001 is compressed to the pressure switch and the overvoltage protection circuit B002.
3. According to the functional simulation method of claim 1, It is characterized in that include: The packet exchange process also includes: If there is a protocol that is the same across clock domains, clock diversion is performed across clock domains; Otherwise: based on the test data packet in the data buffer, the test data packet is sent to the shared buffer area.
4. The functional simulation method according to claim 1, It is characterized in that include: The arbitration scheduling process includes: Based on the test data packets in the shared buffer area, through the data bus cross matrix, according to the routing information data, a four-dimensional routing expectation queue including routing information, priority, unicast and multicast packet type information, and maintenance packet type information is established; Based on the four-dimensional routing expectation queue, the routing scheduling result is output through the core arbitration algorithm; Based on the routing scheduling result, the final scheduling result is generated through routing distribution arbitration.
5. The functional simulation method according to claim 4, It is characterized in that include: The core arbitration algorithm includes: Based on the source port and the destination port, the routing scheduling result between them is determined and output.
6. Functional simulation system of back pressure overshoot based on general verification methodology, It is characterized in that include: The functional simulation system implements the functional simulation method according to any one of claims 1 to 5, and the functional simulation system comprises: Pre-verification circuit module: used to establish a pre-verified reverse voltage overshoot circuit model; Functional verification module: used to build a logical function verification model through the universal verification methodology UVM; Circuit verification module: used to verify whether the reverse voltage overshoot function of the circuit model meets the expected function through the corresponding reverse voltage overshoot verification method.
