A Vertical Reuse Method for UVM-Based Multi-Unit Testbenches with LLM-Assisted Testbench Generation
(2026) EITM01 20261Department of Electrical and Information Technology
- Abstract
- As digital systems built on integrated circuits (ICs) increase in size and
complexity, the required verification effort increases to ensure functionality in
modern systems. To achieve sufficient granularity in verification infrastructures,
the system is commonly tested both as separate parts, on block/unit level, and
when the parts are connected, on integration level. With the goal of reducing
the verification effort required for multiple levels of testing, this study proposes
a structured method to create multi-unit testbenches based on the universal
verification methodology (UVM) that are capable of testing units on integration
level. The method employs active reuse of testbench components from unit
level testbenches, reducing... (More) - As digital systems built on integrated circuits (ICs) increase in size and
complexity, the required verification effort increases to ensure functionality in
modern systems. To achieve sufficient granularity in verification infrastructures,
the system is commonly tested both as separate parts, on block/unit level, and
when the parts are connected, on integration level. With the goal of reducing
the verification effort required for multiple levels of testing, this study proposes
a structured method to create multi-unit testbenches based on the universal
verification methodology (UVM) that are capable of testing units on integration
level. The method employs active reuse of testbench components from unit
level testbenches, reducing both required development and maintenance effort.
To further reduce development effort, this study also explores autonomously
generating multi-unit testbenches using Codex Command Line Interface (CLI)
based on the proposed method.
The proposed multi-unit testbench design method was applied with an
assortment of industry standard UVM-based unit level testbenches. The results
show that it was possible to create multi-unit testbenches by applying the
method, but that the complexity of the tests the multi-unit testbenches could run
was highly dependent on the structure of unit level testbenches. Autonomously
generating testbenches was also demonstrated following the proposed method
using Codex CLI, with the caveat that a specific flow for Codex CLI was required
to mitigate issues related to context pollution and context rot.
When applying the proposed method, several issues were identified that
prevented creating multi-unit testbenches capable of running more complex tests.
These issues were linked to the design of unit level testbenches, of which the
most critical issues related to adapting stimulus generation. Requirements the
proposed method asserts on unit level testbench design need to be satisfied to
enable efficient vertical reuse of active testbench components. Since the proposed
method exposes design patterns that make vertical reuse problematic, it should
be noted that the method is successful in exposing design patterns that are not
in line with the methodology aspect of UVM, where vertical reuse of testbench
components is a central aspect. (Less) - Popular Abstract
- Chips are the backbone of all modern digital systems, each potentially containing
hundreds of billions of transistors that manage all data on and across digital
devices we use daily. Each transistor has its purpose, and it is by connecting each
one into a digital circuit that our digital infrastructure can function as intended.
After deciding how a digital circuit should function, a hardware description
language (HDL) is used to represent the desired functionality using code. The
code can be likened to a blueprint of the circuit. Therefore, a pivotal part of
designing these systems is making sure that the code, the blueprint, represents
the intended design. To test for this, a software system referred to as a testbench
is... (More) - Chips are the backbone of all modern digital systems, each potentially containing
hundreds of billions of transistors that manage all data on and across digital
devices we use daily. Each transistor has its purpose, and it is by connecting each
one into a digital circuit that our digital infrastructure can function as intended.
After deciding how a digital circuit should function, a hardware description
language (HDL) is used to represent the desired functionality using code. The
code can be likened to a blueprint of the circuit. Therefore, a pivotal part of
designing these systems is making sure that the code, the blueprint, represents
the intended design. To test for this, a software system referred to as a testbench
is developed. The testbench evaluates the blueprint and confirms the blueprint
matches the intended design.
This thesis centers on how to build these testbenches. Specifically, a method
for building a certain type of testbench is described in this thesis. Because
modern digital systems are immensely complex, they are divided into several
parts which all have their own blueprint. This makes it easier to test each
blueprint individually, but this results in another issue. How do we confirm that
the blueprints conform to each other, and by extension, that the system works
when all parts are connected?
This thesis proposes a method to answer that question. Conceptually, the
method can be compared to planning a trip between the two Swedish cities Lund
and Visby. On this trip, one part is traveled by train, one by bus, and the final
one by ferry. Traveling with these modes of travel can represent data traveling
across a digital circuit divided into three parts. Each of these modes of travel has
its own app that provides the information that their specific part of the journey is
possible to travel. This is similar to each part of a circuit having its own testbench
that confirms that data can travel across it as expected. However, because it is
required to take the train, bus and ferry to travel from Lund to Visby, each one
of the three apps needs to be used together to confirm that you can travel the
whole distance. This is the essence of the method proposed in this study, where
multiple testbenches that test different parts of a system are combined to confirm
that the different parts still function when put together. (Less)
Please use this url to cite or link to this publication:
https://lup.lub.lu.se/student-papers/record/9244278
- author
- Näslund, Doris LU
- supervisor
-
- Liang Liu LU
- organization
- alternative title
- En metod för vertikal återanvändning i UVM-baserade testbänkar för flera submoduler med LLM-assisterad testbänksgenerering
- course
- EITM01 20261
- year
- 2026
- type
- H2 - Master's Degree (Two Years)
- subject
- keywords
- Universal Verification Methodology, UVM, Functional verification, Hardware Verification, SystemVerilog, Testbench reuse, Vertical reuse, Integration-level verification, Multi-unit testbench, Large language model, LLM, Code generation, Verification automation
- report number
- LU/LTH-EIT 2026-1178
- language
- English
- id
- 9244278
- date added to LUP
- 2026-06-26 09:04:42
- date last changed
- 2026-06-26 09:04:42
@misc{9244278,
abstract = {{As digital systems built on integrated circuits (ICs) increase in size and
complexity, the required verification effort increases to ensure functionality in
modern systems. To achieve sufficient granularity in verification infrastructures,
the system is commonly tested both as separate parts, on block/unit level, and
when the parts are connected, on integration level. With the goal of reducing
the verification effort required for multiple levels of testing, this study proposes
a structured method to create multi-unit testbenches based on the universal
verification methodology (UVM) that are capable of testing units on integration
level. The method employs active reuse of testbench components from unit
level testbenches, reducing both required development and maintenance effort.
To further reduce development effort, this study also explores autonomously
generating multi-unit testbenches using Codex Command Line Interface (CLI)
based on the proposed method.
The proposed multi-unit testbench design method was applied with an
assortment of industry standard UVM-based unit level testbenches. The results
show that it was possible to create multi-unit testbenches by applying the
method, but that the complexity of the tests the multi-unit testbenches could run
was highly dependent on the structure of unit level testbenches. Autonomously
generating testbenches was also demonstrated following the proposed method
using Codex CLI, with the caveat that a specific flow for Codex CLI was required
to mitigate issues related to context pollution and context rot.
When applying the proposed method, several issues were identified that
prevented creating multi-unit testbenches capable of running more complex tests.
These issues were linked to the design of unit level testbenches, of which the
most critical issues related to adapting stimulus generation. Requirements the
proposed method asserts on unit level testbench design need to be satisfied to
enable efficient vertical reuse of active testbench components. Since the proposed
method exposes design patterns that make vertical reuse problematic, it should
be noted that the method is successful in exposing design patterns that are not
in line with the methodology aspect of UVM, where vertical reuse of testbench
components is a central aspect.}},
author = {{Näslund, Doris}},
language = {{eng}},
note = {{Student Paper}},
title = {{A Vertical Reuse Method for UVM-Based Multi-Unit Testbenches with LLM-Assisted Testbench Generation}},
year = {{2026}},
}