# nitronis/uvm architecture

> Architecture diagram of the GitHub repository nitronis/uvm, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nitronis/uvm
- Repository: https://github.com/nitronis/uvm

## Overview

This repository distributes several versions of the Universal Verification Methodology (UVM), a SystemVerilog framework for constructing and running hardware-verification environments. The principal workflow is test and sequence stimulus, transaction-level communication, DUT interaction and observation, then checking/reporting results; register modeling and simulation synchronization support that workflow. The tree and reference documentation establish these capabilities, but most implementation files were not sampled, so subsystem links below are dashed where runtime calls could not be verified. Sampled DPI sources show simulator-facing HDL access and shared DPI functionality.

Main entry points: [`1800.2-2020/src/comps`](https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/comps) (Tests and environments), [`1800.2-2020/src/dpi/uvm_hdl_vcs.c`](https://github.com/nitronis/uvm/blob/main/1800.2-2020/src/dpi/uvm_hdl_vcs.c) (HDL access), [`1800.2-2020/src/dpi`](https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/dpi) (DPI support), [`1800.2-2020/src/seq`](https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/seq) (Sequences and items)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_env["Verification environment"]
  node_tests["Tests and environments<br/>[comps]"]
  node_agents["Agents, drivers, monitors<br/>[comps]"]
  node_scoreboard["Scoreboards and comparators<br/>[comps]"]
end

subgraph group_transaction["Stimulus and transport"]
  node_sequences["Sequences and items<br/>[seq]"]
  node_sequencer["Sequencers<br/>[seq]"]
  node_tlm1["TLM 1<br/>[tlm1]"]
  node_tlm2["TLM 2<br/>[tlm2]"]
  node_registers["Register model<br/>[reg]"]
end

subgraph group_services["UVM services"]
  node_phases["Phasing and components<br/>[base]"]
  node_factory["Factory and registry<br/>[base]"]
  node_config["Configuration and resources<br/>[base]"]
  node_reporting["Reporting<br/>[base]"]
  node_synchronization["Events and objections<br/>[base]"]
end

subgraph group_interop["Simulator interoperability"]
  node_dpi["DPI support<br/>[dpi]"]
  node_hdl["HDL access<br/>[uvm_hdl_vcs.c]"]
  node_regex["Regex support<br/>[uvm_regex.cc]"]
end

node_engineer(("Verification engineer"))
node_versions["UVM versions"]
node_simulator(("HDL simulator"))

node_engineer -.->|"defines tests"| node_tests
node_tests -.->|"starts sequences"| node_sequences
node_sequences -.->|"provides items"| node_sequencer
node_sequencer -.->|"dispatches stimulus"| node_agents
node_agents -.->|"drives DUT"| node_simulator
node_simulator -.->|"returns observations"| node_agents
node_agents -.->|"publishes transactions"| node_scoreboard
node_scoreboard -.->|"reports results"| node_reporting
node_tests -.->|"runs through"| node_phases
node_tests -.->|"creates components"| node_factory
node_tests -.->|"configures components"| node_config
node_tests -.->|"coordinates run"| node_synchronization
node_agents -.->|"connects ports"| node_tlm1
node_agents -.->|"uses sockets"| node_tlm2
node_tests -.->|"uses register model"| node_registers
node_registers -.->|"accesses HDL"| node_hdl
node_dpi -->|"provides access"| node_hdl
node_dpi -->|"provides matching"| node_regex
node_hdl -.->|"uses simulator API"| node_simulator
node_engineer -->|"chooses release"| node_versions

click node_tests "https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/comps"
click node_agents "https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/comps"
click node_scoreboard "https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/comps"
click node_sequences "https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/seq"
click node_sequencer "https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/seq"
click node_tlm1 "https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/tlm1"
click node_tlm2 "https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/tlm2"
click node_registers "https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/reg"
click node_phases "https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/base"
click node_factory "https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/base"
click node_config "https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/base"
click node_reporting "https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/base"
click node_synchronization "https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/base"
click node_dpi "https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/dpi"
click node_hdl "https://github.com/nitronis/uvm/blob/main/1800.2-2020/src/dpi/uvm_hdl_vcs.c"
click node_regex "https://github.com/nitronis/uvm/blob/main/1800.2-2020/src/dpi/uvm_regex.cc"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_tests,node_agents,node_scoreboard toneBlue
class node_sequences,node_sequencer,node_tlm1,node_tlm2,node_registers toneAmber
class node_phases,node_factory,node_config,node_reporting,node_synchronization toneMint
class node_dpi,node_hdl,node_regex toneRose
class node_engineer,node_versions,node_simulator toneIndigo
```

## Components

### Verification environment

- [Tests and environments](https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/comps): `1800.2-2020/src/comps`
- [Agents, drivers, monitors](https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/comps): `1800.2-2020/src/comps`
- [Scoreboards and comparators](https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/comps): `1800.2-2020/src/comps`

### Stimulus and transport

- [Sequences and items](https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/seq): `1800.2-2020/src/seq`
- [Sequencers](https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/seq): `1800.2-2020/src/seq`
- [TLM 1](https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/tlm1): `1800.2-2020/src/tlm1`
- [TLM 2](https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/tlm2): `1800.2-2020/src/tlm2`
- [Register model](https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/reg): `1800.2-2020/src/reg`

### UVM services

- [Phasing and components](https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/base): `1800.2-2020/src/base`
- [Factory and registry](https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/base): `1800.2-2020/src/base`
- [Configuration and resources](https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/base): `1800.2-2020/src/base`
- [Reporting](https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/base): `1800.2-2020/src/base`
- [Events and objections](https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/base): `1800.2-2020/src/base`

### Simulator interoperability

- [DPI support](https://github.com/nitronis/uvm/tree/main/1800.2-2020/src/dpi): `1800.2-2020/src/dpi`
- [HDL access](https://github.com/nitronis/uvm/blob/main/1800.2-2020/src/dpi/uvm_hdl_vcs.c): `1800.2-2020/src/dpi/uvm_hdl_vcs.c`
- [Regex support](https://github.com/nitronis/uvm/blob/main/1800.2-2020/src/dpi/uvm_regex.cc): `1800.2-2020/src/dpi/uvm_regex.cc`

### Other components

- **Verification engineer**
- **UVM versions**
- **HDL simulator**

## Connections

- Verification engineer → Tests and environments: defines tests
- Tests and environments → Sequences and items: starts sequences
- Sequences and items → Sequencers: provides items
- Sequencers → Agents, drivers, monitors: dispatches stimulus
- Agents, drivers, monitors → HDL simulator: drives DUT
- HDL simulator → Agents, drivers, monitors: returns observations
- Agents, drivers, monitors → Scoreboards and comparators: publishes transactions
- Scoreboards and comparators → Reporting: reports results
- Tests and environments → Phasing and components: runs through
- Tests and environments → Factory and registry: creates components
- Tests and environments → Configuration and resources: configures components
- Tests and environments → Events and objections: coordinates run
- Agents, drivers, monitors → TLM 1: connects ports
- Agents, drivers, monitors → TLM 2: uses sockets
- Tests and environments → Register model: uses register model
- Register model → HDL access: accesses HDL
- DPI support → HDL access: provides access (evidence: `1800.2-2020/src/dpi/uvm_dpi.cc`)
- DPI support → Regex support: provides matching (evidence: `1800.2-2020/src/dpi/uvm_dpi.cc`)
- HDL access → HDL simulator: uses simulator API
- Verification engineer → UVM versions: chooses release
