Open side-bar Menu
 Agnisys Automation Review
Louie De Luna
Louie De Luna
Louie is the Director of Marketing and Sales at Agnisys, Inc. He has over 15 years of experience in FPGAs, ASICs and EDA industries. Louie was most recently the Director of Marketing for Aldec where he was instrumental in the development and execution of the strategy for the entire functional … More »

Automating Register Verification with 100% Functional Coverage

 
December 4th, 2018 by Louie De Luna

UVM has certainly improved reusability of verification environments for SoC projects, significantly lowering the verification costs throughout the electronics industry. Since Accellera’s release in 2011, UVM is now an IEEE standard published as IEEE 1800.2-2017 – IEEE Standard for Universal Verification Methodology Language Reference Manual.UVM has definitely gone a long way.

The UVM Register Layer classes have been quite useful for modeling memory-mapped registers and external memories in a DUT in which users are able to abstract the verification environment and standard tests from block to system level seamlessly with only minimum modifications. However, today’s average electronics consumer demand new use cases at ever-increasing speed and bandwidth – which certainly challenges SoC architects, designers and verification engineers, requiring them to be more creative in the implementation and modeling of the hardware/software interface (HSI). Modeling special registers is needed in order to meet special register behavior, which includes the popular types such as Shadow, Alias, Lock, Trigger-Buffer and Counter (only to name a few). Creating the RTL for these special registers may be easy to do for some experts but modeling them in UVM and manually creating the test environment with 100% functional coverage can be daunting.

Register Verification Challenges

Although full-blown in-house scripts are available in large international SoC companies capable of generating RTL, UVM register model and a working UVM verification environment, most lack in several key areas for verification and do not provide 100% functional coverage. On average the standard UVM sequences provided as part of the UVM give less than 50% functional coverage out of the box. The in-house scripts still need to address the following verification challenges:

  • There are interface points between the generated and the manually created RTL that need to be verified. For example, the interface between the hand crafted code (“external” register, memory instance, IP logic) and the auto-generated register code must also be verified.
  • The verification environment should include software side agents and hardware side agents. The hardware side agents are not fixed, they depend on the specification. If the engineer changes the hardware access for a bit field from read-only to read-writeable, a change to the hardware side agent is required.
  • The generated register models need to be integrated into the verification environment. The generated model must have the structural information about the registers, bit fields, their access and addresses. Additionally, it should be comprehensive, and should also have cover groups and cover points with illegal bins, otherwise the quality and completeness of the tests cannot be meaningfully ascertained.
  • Transactions from the software and the hardware logic should be created. Tests must be written to test a variety of special functionalities associated with the registers.
  • Running all these tests generates a lot of simulation data thus a dynamic test plan is needed. We say “dynamic” because a change in the specification needs to be reflected in the plan. For example, a new field added, or access changed may need additional tests. Such a test plan must be auto-updated once all the tests have been run, otherwise the project risks missing critical tests that could cause a bug to make its way into the chip.

How to Automate a Complete Register Verification Environment

The good news is that all this can be automated to a great extent so that verification teams do not have to spend the time manually developing the required verification environment, tests and test plan. The automatic register verification solution should employ the components and setup depicted in Figure 1.

Agnisys Components of Automatic Register Verification

Figure 1: Components of Automatic Register Verification

Mainly, you should be able to dynamically take in Address Map specification in the form of Word/Excel/FrameMaker or textual standards like SystemRDL, IP-XACT or RALF.  From the specification, you can auto-generate  the following  for a simulation-based environment:

  1. Generate the RTL (SystemVerilog/SystemC) and generate the UVM Reference model (SystemVerilog/SystemC)
  2. Take in additional information such as the register buses used for the address map, the least addressable unit, hdl_paths of each register, register group, memory or block.
  3. Generate agents for the register buses. These agents must include the corresponding drivers and monitors. Generate hardware side agents including the hardware side driver and monitor. The hardware-side driver helps simulate the transactions that are sent to the address map by the application logic. The hardware monitor is used to capture the same transactions used to update the UVM Regmodel with correct values.
  4. Generate a hardware side predictor which gets these transactions from hardware monitor and predicts the correct value in the UVM model according to the access policies of the Register fields.
  5. Generate a UVM environment class which contains all the above components.
  6. Generate sequences for each and every register according to their software access and additional special behaviors.
  7. Generate UVM Test class to run all the above sequences.
  8. Generate top level module connecting the generated RTL module and bus interfaces.
  9. Generate a “Makefile” to run the simulations and collect results from simulation database appropriate for the simulator being used.
  10. Generate a verification plan with ability to back-annotate these simulation results so that engineers can analyze the results.

If you’d like to see working examples of this automation and the generated results, feel free to contact us

I invite you to view our on demand webinar,  5 Special Registers Useful for Today’s SoCs – Use Cases, Examples and UVM Verification Best PracticesWe introduce to you 5 special registers that are widely adopted in the industry. We provide their benefits, use cases and examples (RTL, UVM model and C-Header Files). We also provide best-practices on how to verify them where you can achieve 100% functional coverage. In addition, we touch upon a subject that’s very important for large SoC developers, and that is performance of the register layer.

Tags: , , , , , , , ,

Category: Registers

Logged in as . Log out »




© 2024 Internet Business Systems, Inc.
670 Aberdeen Way, Milpitas, CA 95035
+1 (408) 882-6554 — Contact Us, or visit our other sites:
TechJobsCafe - Technical Jobs and Resumes EDACafe - Electronic Design Automation GISCafe - Geographical Information Services  MCADCafe - Mechanical Design and Engineering ShareCG - Share Computer Graphic (CG) Animation, 3D Art and 3D Models
  Privacy PolicyAdvertise