How IDS-AI SpecCheck Agent Improves Your Specifications

How IDS-AI SpecCheck Agent Improves Your Specifications

Recent blog posts have discussed how to make your system-on-chip (SoC) and IP specifications (specs) golden and how SpecCheck Agent in our IDesignSpec™-AI (IDS-AI) solution helps tremendously in this process. This is only one of several agents within IDS-AI, and we will be publishing a series of posts to discuss each in turn. This post provides more details on how SpecCheck Agent works; future posts will cover Extract Agent, Testbench Agent, Assertions Agent, and Integrate Agent.

What Needs to Be Checked

People sometimes use the term “spec” or “specification” in its singular form to refer to the entire functional description of an SoC or IP design. On actual projects, there are multiple types of specifications for different aspects of the design. The number of files involved also confuses the issue for some people. All your specifications may be compiled in one document, each specification may have its own document, or some documents may contain a few specifications. The number of documents or files does not matter at all. What is important is that the full set of specifications covers all key information needed to create a design meeting its technical and marketing requirements. The following table shows a typical list of specifications, what each defines, and which outputs are generated by hand or by generation tools.

Clearly, specifications cover a wide range of information required by various teams working on the project. For example, the architects needs to know the high-level functionality so that they can model system behavior to run code and predict performance. The programmers must understand the programmable registers in the hardware-software interface (HSI) and any additional application programming interfaces (APIs) required to access and control the hardware. The RTL designers and design verification team need most or all of the specifications in order to actually create the design and test that it operates as expected.

Which Formats Are Checked

Just a few years ago, natural language text was regarded as unsuitable as an executable golden format for design specification. Natural language is inherently ambiguous and imprecise. However, astounding progress in AI has made it possible to use text for golden specifications. One of the key benefits of SpecCheck Agent is its ability to improve such specifications by pointing out contradictions, inconsistencies, and missing information. IDS-AI accepts all common natural language formats, including plain text, Microsoft Word, Microsoft Excel, PDF, and Markdown. Design and project requirements may be included both in these documents and in a dedicated engineering requirements management format such as IBM Doors, Siemens Polarion, or Jama Connect. SpecCheck Agent supports all these options.

Even with support for natural language specifications, many projects continue to use more formally defined formats for some specifications. Sometimes it’s faster and easier to specify in a precise, unambiguous format rather than iterating on natural language to resolve issues. IDS-AI focuses on formal specifications for three aspects of design: the control and status registers (CSRs), programming sequences for these registers, and the connectivity between design blocks. You can define registers using the SystemRDL or IP-XCAT standards, listing them in Word, Excel, or comma-separated value (CSV) documents, or specifying them graphically in our IDS-NG graphical interface. Sequences can also be defined in Excel/CSV or IDS-NG, or they can use the Portable Stimulus Standard (PSS) language. Finally, inter-block connections can be specified using Python, Tcl, or Excel/CSV.

How the Checking Works

SpecCheck Agent reads in all the formats listed so far and performs a wide range of checks to spot issues and recommend fixes. Some of these checks are for individual specifications, while others look for consistency across multiple specifications. Especially when specifications are in separate documents managed by different teams, they tend to deviate over the course of the project. SpecCheck Agent ensures that such problems are caught quickly so that the many project files generated by our

IDesignSpec™ Suite (IDS) remain consistent across the project timeline. Categories check include:

  • Input and import problems
  • Missing and incomplete behavior
  • Register and field correctness
  • Contradictions and conflicts
  • Inconsistent structure, terminology, and references
  • Issues in timing, reset, and sequencing

As SpecCheck Agent flags each issue, its self-correcting loop guides you in resolving them. As the agent runs, it applies AI best practices such as monotonic information gain and continuous learning to build knowledge without repeating known mistakes. This is important because specifications change many times on every project, and SpecCheck Agent should be run after every change. Nothing is forgotten between runs; previous learnings and identified errors are retained and leveraged across subsequent runs. Thus, knowledge grows monotonically without ever losing established information. Each additional run enriches the contents of the unified knowledge base, which combines information from the specification, design, verification results, and previous errors.

An Example of Check Results

To show you how SpecCheck Agent reports its results, we chose the open-source OpenTitan UART design. The main function of this IP block is to transmit and receive data in serial format. As data comes in, it is assembled into words and stored in internal registers, Similarly, outbound data is read from the registers and serialized before being transmitted. The bank of CSRs includes both the data registers and control registers for various programmable aspects of its operation. Other features include parity generation, parity checking, and interrupt support. A portion of SpecCheck Agent output is shown in the screenshot below.

As you can see in the left column, the specifications read in include the textual theory of operation and programmer’s guide in Markdown format, the CSR specification in SystemRDL format, and the RTL design. SpecCheck Agent has checked all the specifications for internal correctness as well as consistency across them. It has identified several cases in which register fields mentioned in the theory of operation are not found in the SystemRDL register model. Finding and fixing such issues immediately is much more efficient than discovering them later via code review or simulation failures.

Conclusion

SoC and IP specifications come in a wide range of formats, from natural language to standard formats, and may span many files. It is very challenging for humans to absorb all this data to ensure accuracy and consistency. This is exactly the sort of thing that AI does exceptionally well. You can run our IDS-AI SpecCheck Agent to scrub your complete set of specifications quickly and even help you resolve any issues with minimal effort. Please ask your Agnisys representative or contact us to learn more.

Request Evaluation

Scroll to Top