LLM-assisted Generation of Hardware Assertions

06/24/2023
by   Rahul Kande, et al.
0

The security of computer systems typically relies on a hardware root of trust. As vulnerabilities in hardware can have severe implications on a system, there is a need for techniques to support security verification activities. Assertion-based verification is a popular verification technique that involves capturing design intent in a set of assertions that can be used in formal verification or testing-based checking. However, writing security-centric assertions is a challenging task. In this work, we investigate the use of emerging large language models (LLMs) for code generation in hardware assertion generation for security, where primarily natural language prompts, such as those one would see as code comments in assertion files, are used to produce SystemVerilog assertions. We focus our attention on a popular LLM and characterize its ability to write assertions out of the box, given varying levels of detail in the prompt. We design an evaluation framework that generates a variety of prompts, and we create a benchmark suite comprising real-world hardware designs and corresponding golden reference assertions that we want to generate with the LLM.

READ FULL TEXT

page 9

page 10

research
04/12/2023

Information Flow Coverage Metrics for Hardware Security Verification

Security graphs model attacks, defenses, mitigations, and vulnerabilitie...
research
12/13/2022

Benchmarking Large Language Models for Automated Verilog RTL Code Generation

Automating hardware design could obviate a significant amount of human e...
research
09/18/2023

From RTL to SVA: LLM-assisted generation of Formal Verification Testbenches

Formal property verification (FPV) has existed for decades and has been ...
research
09/01/2023

Security Verification of Low-Trust Architectures

Low-trust architectures work on, from the viewpoint of software, always-...
research
09/02/2022

Don't CWEAT It: Toward CWE Analysis Techniques in Early Stages of Hardware Design

To help prevent hardware security vulnerabilities from propagating to la...
research
02/10/2023

Large Language Models for Code: Security Hardening and Adversarial Testing

Large language models (LMs) are increasingly pretrained on massive codeb...
research
06/07/2021

Towards Formal Verification of Password Generation Algorithms used in Password Managers

Password managers are important tools that enable us to use stronger pas...

Please sign up or login with your details

Forgot password? Click here to reset