# luanbalbino/axi_uvm architecture

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

- Interactive diagram: https://gitdiagram.com/luanbalbino/axi_uvm
- Repository: https://github.com/luanbalbino/axi_uvm

## Overview

This repository combines an AXI4-Lite slave and processing FSM with a UVM verification environment. The documented user flow is software writing input, configuration, and start registers, then reading status and the result. The graph also shows the verification components and directed/random test capabilities. Only the README was available as evidence; dashed links indicate relationships that are plausible from the documented architecture but are not confirmed by source excerpts.

Main entry points: [`env/axi_env.sv`](https://github.com/luanbalbino/axi_uvm/blob/master/env/axi_env.sv) (UVM environment), [`agent/axi_agent.sv`](https://github.com/luanbalbino/axi_uvm/blob/master/agent/axi_agent.sv) (AXI agent), [`RTL/axi4lite_slave.sv`](https://github.com/luanbalbino/axi_uvm/blob/master/RTL/axi4lite_slave.sv) (AXI4-Lite slave), [`top/tb_top.sv`](https://github.com/luanbalbino/axi_uvm/blob/master/top/tb_top.sv) (Testbench top)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_design["RTL design"]
  node_axi_slave["AXI4-Lite slave<br/>[axi4lite_slave.sv]"]
  node_core_fsm["Processing FSM<br/>[core_fsm.sv]"]
  node_rtl_top["RTL top<br/>[rtl_top.sv]"]
end

subgraph group_verification["UVM verification"]
  node_agent["AXI agent<br/>[axi_agent.sv]"]
  node_driver["AXI driver<br/>[axi_driver.sv]"]
  node_monitor["AXI monitor<br/>[axi_monitor.sv]"]
  node_sequencer["AXI sequencer<br/>[axi_sequencer.sv]"]
  node_transaction["AXI transaction<br/>[axi_transaction.sv]"]
  node_env["UVM environment<br/>[axi_env.sv]"]
  node_scoreboard["Scoreboard<br/>[axi_scoreboard.sv]"]
  node_virtual_seq["Virtual sequencer"]
end

subgraph group_stimulus["Sequences and tests"]
  node_write_readback["Write/readback sequence"]
  node_random_seq["Random sequence<br/>[axi_random_vseq.sv]"]
  node_error_seq["Error sequence<br/>[resp_error_seq.sv]"]
  node_directed_test["Directed tests"]
  node_random_test["Random tests<br/>[axi_random.sv]"]
  node_error_test["Error test<br/>[resp_error_test.sv]"]
end

subgraph group_bench["Testbench"]
  node_axi_if["AXI interface<br/>[axi4lite_if.sv]"]
  node_tb_top["Testbench top<br/>[tb_top.sv]"]
end

node_software(("Software"))

node_software -->|"accesses registers"| node_axi_slave
node_axi_slave -->|"starts core"| node_core_fsm
node_core_fsm -->|"returns result"| node_axi_slave
node_rtl_top -.->|"integrates DUT"| node_axi_slave
node_rtl_top -.->|"integrates DUT"| node_core_fsm
node_tb_top -->|"connects DUT"| node_rtl_top
node_tb_top -->|"connects environment"| node_env
node_tb_top -.->|"uses interface"| node_axi_if
node_agent -.->|"includes"| node_driver
node_agent -.->|"includes"| node_monitor
node_agent -.->|"includes"| node_sequencer
node_driver -.->|"drives"| node_transaction
node_monitor -.->|"observes"| node_transaction
node_env -.->|"uses agent"| node_agent
node_env -.->|"uses scoreboard"| node_scoreboard
node_env -.->|"uses sequencer"| node_virtual_seq
node_directed_test -.->|"runs sequence"| node_write_readback
node_random_test -.->|"runs sequence"| node_random_seq
node_error_test -.->|"runs sequence"| node_error_seq

click node_axi_slave "https://github.com/luanbalbino/axi_uvm/blob/master/RTL/axi4lite_slave.sv"
click node_core_fsm "https://github.com/luanbalbino/axi_uvm/blob/master/RTL/core_fsm.sv"
click node_rtl_top "https://github.com/luanbalbino/axi_uvm/blob/master/RTL/rtl_top.sv"
click node_axi_if "https://github.com/luanbalbino/axi_uvm/blob/master/if/axi4lite_if.sv"
click node_tb_top "https://github.com/luanbalbino/axi_uvm/blob/master/top/tb_top.sv"
click node_agent "https://github.com/luanbalbino/axi_uvm/blob/master/agent/axi_agent.sv"
click node_driver "https://github.com/luanbalbino/axi_uvm/blob/master/agent/axi_driver.sv"
click node_monitor "https://github.com/luanbalbino/axi_uvm/blob/master/agent/axi_monitor.sv"
click node_sequencer "https://github.com/luanbalbino/axi_uvm/blob/master/agent/axi_sequencer.sv"
click node_transaction "https://github.com/luanbalbino/axi_uvm/blob/master/agent/axi_transaction.sv"
click node_env "https://github.com/luanbalbino/axi_uvm/blob/master/env/axi_env.sv"
click node_scoreboard "https://github.com/luanbalbino/axi_uvm/blob/master/env/axi_scoreboard.sv"
click node_virtual_seq "https://github.com/luanbalbino/axi_uvm/blob/master/env/axi_virtual_sequencer.sv"
click node_write_readback "https://github.com/luanbalbino/axi_uvm/blob/master/sequences/write_readback_vseq.sv"
click node_random_seq "https://github.com/luanbalbino/axi_uvm/blob/master/sequences/axi_random_vseq.sv"
click node_error_seq "https://github.com/luanbalbino/axi_uvm/blob/master/sequences/resp_error_seq.sv"
click node_directed_test "https://github.com/luanbalbino/axi_uvm/blob/master/test/write_directed_test.sv"
click node_random_test "https://github.com/luanbalbino/axi_uvm/blob/master/test/axi_random.sv"
click node_error_test "https://github.com/luanbalbino/axi_uvm/blob/master/test/resp_error_test.sv"

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_axi_slave,node_core_fsm,node_rtl_top toneBlue
class node_agent,node_driver,node_monitor,node_sequencer,node_transaction,node_env,node_scoreboard,node_virtual_seq toneAmber
class node_write_readback,node_random_seq,node_error_seq,node_directed_test,node_random_test,node_error_test toneMint
class node_axi_if,node_tb_top toneRose
class node_software toneIndigo
```

## Components

### RTL design

- [AXI4-Lite slave](https://github.com/luanbalbino/axi_uvm/blob/master/RTL/axi4lite_slave.sv): `RTL/axi4lite_slave.sv`
- [Processing FSM](https://github.com/luanbalbino/axi_uvm/blob/master/RTL/core_fsm.sv): `RTL/core_fsm.sv`
- [RTL top](https://github.com/luanbalbino/axi_uvm/blob/master/RTL/rtl_top.sv): `RTL/rtl_top.sv`

### UVM verification

- [AXI agent](https://github.com/luanbalbino/axi_uvm/blob/master/agent/axi_agent.sv): `agent/axi_agent.sv`
- [AXI driver](https://github.com/luanbalbino/axi_uvm/blob/master/agent/axi_driver.sv): `agent/axi_driver.sv`
- [AXI monitor](https://github.com/luanbalbino/axi_uvm/blob/master/agent/axi_monitor.sv): `agent/axi_monitor.sv`
- [AXI sequencer](https://github.com/luanbalbino/axi_uvm/blob/master/agent/axi_sequencer.sv): `agent/axi_sequencer.sv`
- [AXI transaction](https://github.com/luanbalbino/axi_uvm/blob/master/agent/axi_transaction.sv): `agent/axi_transaction.sv`
- [UVM environment](https://github.com/luanbalbino/axi_uvm/blob/master/env/axi_env.sv): `env/axi_env.sv`
- [Scoreboard](https://github.com/luanbalbino/axi_uvm/blob/master/env/axi_scoreboard.sv): `env/axi_scoreboard.sv`
- [Virtual sequencer](https://github.com/luanbalbino/axi_uvm/blob/master/env/axi_virtual_sequencer.sv): `env/axi_virtual_sequencer.sv`

### Sequences and tests

- [Write/readback sequence](https://github.com/luanbalbino/axi_uvm/blob/master/sequences/write_readback_vseq.sv): `sequences/write_readback_vseq.sv`
- [Random sequence](https://github.com/luanbalbino/axi_uvm/blob/master/sequences/axi_random_vseq.sv): `sequences/axi_random_vseq.sv`
- [Error sequence](https://github.com/luanbalbino/axi_uvm/blob/master/sequences/resp_error_seq.sv): `sequences/resp_error_seq.sv`
- [Directed tests](https://github.com/luanbalbino/axi_uvm/blob/master/test/write_directed_test.sv): `test/write_directed_test.sv`
- [Random tests](https://github.com/luanbalbino/axi_uvm/blob/master/test/axi_random.sv): `test/axi_random.sv`
- [Error test](https://github.com/luanbalbino/axi_uvm/blob/master/test/resp_error_test.sv): `test/resp_error_test.sv`

### Testbench

- [AXI interface](https://github.com/luanbalbino/axi_uvm/blob/master/if/axi4lite_if.sv): `if/axi4lite_if.sv`
- [Testbench top](https://github.com/luanbalbino/axi_uvm/blob/master/top/tb_top.sv): `top/tb_top.sv`

### Other components

- **Software**

## Connections

- Software → AXI4-Lite slave: accesses registers (evidence: `README.md`)
- AXI4-Lite slave → Processing FSM: starts core (evidence: `README.md`)
- Processing FSM → AXI4-Lite slave: returns result (evidence: `README.md`)
- RTL top → AXI4-Lite slave: integrates DUT
- RTL top → Processing FSM: integrates DUT
- Testbench top → RTL top: connects DUT (evidence: `README.md`)
- Testbench top → UVM environment: connects environment (evidence: `README.md`)
- Testbench top → AXI interface: uses interface
- AXI agent → AXI driver: includes
- AXI agent → AXI monitor: includes
- AXI agent → AXI sequencer: includes
- AXI driver → AXI transaction: drives
- AXI monitor → AXI transaction: observes
- UVM environment → AXI agent: uses agent
- UVM environment → Scoreboard: uses scoreboard
- UVM environment → Virtual sequencer: uses sequencer
- Directed tests → Write/readback sequence: runs sequence
- Random tests → Random sequence: runs sequence
- Error test → Error sequence: runs sequence
