# pradeepchangal/apb-protocol-verification-using-uvm architecture

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

- Interactive diagram: https://gitdiagram.com/pradeepchangal/apb-protocol-verification-using-uvm
- Repository: https://github.com/pradeepchangal/apb-protocol-verification-using-uvm

## Overview

This repository is an APB verification testbench, with a design file and named testbench components for stimulus, bus activity, observation, checking, and coverage. The likely workflow is to run a test, generate APB transactions, exercise the design, and observe/check results. The README gives no architectural details and no source excerpts were provided, so the relationships below are dashed and unverified; they reflect component roles suggested by filenames, not inspected calls.

Main entry points: [`apb_sequencer.sv`](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_sequencer.sv) (APB Sequencer), [`apb_env.sv`](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_env.sv) (APB Environment), [`apb_rmonitor.sv`](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_rmonitor.sv) (Read Monitor), [`apb_if.sv`](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_if.sv) (APB Interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_design["APB Design"]
  node_design["APB Design<br/>[Design.v]"]
  node_interface["APB Interface<br/>[apb_if.sv]"]
end

subgraph group_control["Testbench Control"]
  node_top["Testbench Top<br/>[apb_top.sv]"]
  node_environment["APB Environment<br/>[apb_env.sv]"]
  node_base_test["Base Test<br/>[apb_base_test.sv]"]
end

subgraph group_stimulus["Stimulus"]
  node_transaction["APB Transaction<br/>[apb_transaction.sv]"]
  node_sequencer["APB Sequencer<br/>[apb_sequencer.sv]"]
  node_sequence_basic["Write Read Sequence"]
  node_sequence_b2b["Back To Back Sequence"]
  node_sequence_burst["Burst Read Write"]
  node_sequence_diff["Burst Diff Data"]
  node_sequence_max_burst["Max Burst Sequence"]
  node_sequence_max_addr["Max Write Address"]
  node_sequence_error_addr["Error Address Sequence"]
  node_sequence_error_data["Error Data Sequence"]
  node_sequence_error_read["Error Read Sequence"]
  node_sequence_error_write["Error Write Sequence"]
  node_write_agent["Write Agent<br/>[apb_wagent.sv]"]
  node_write_driver["Write Driver<br/>[apb_wdriver.sv]"]
end

subgraph group_observation["Observation And Results"]
  node_read_agent["Read Agent<br/>[apb_ragent.sv]"]
  node_write_monitor["Write Monitor<br/>[apb_wmonitor.sv]"]
  node_read_monitor["Read Monitor<br/>[apb_rmonitor.sv]"]
  node_scoreboard["Scoreboard<br/>[apb_sb.sv]"]
  node_coverage["Coverage Model"]
end

node_simulator(("Simulator"))

node_simulator -.->|"runs"| node_top
node_top -.->|"likely configures"| node_environment
node_environment -.->|"likely hosts"| node_base_test
node_environment -.->|"likely configures"| node_write_agent
node_environment -.->|"likely configures"| node_read_agent
node_base_test -.->|"likely starts"| node_sequencer
node_sequencer -.->|"likely emits"| node_transaction
node_sequence_basic -.->|"likely uses"| node_sequencer
node_sequence_b2b -.->|"likely uses"| node_sequencer
node_sequence_burst -.->|"likely uses"| node_sequencer
node_sequence_diff -.->|"likely uses"| node_sequencer
node_sequence_max_burst -.->|"likely uses"| node_sequencer
node_sequence_max_addr -.->|"likely uses"| node_sequencer
node_sequence_error_addr -.->|"likely uses"| node_sequencer
node_sequence_error_data -.->|"likely uses"| node_sequencer
node_sequence_error_read -.->|"likely uses"| node_sequencer
node_sequence_error_write -.->|"likely uses"| node_sequencer
node_write_agent -.->|"likely drives"| node_write_driver
node_write_driver -.->|"likely drives"| node_interface
node_design -.->|"likely connects through"| node_interface
node_write_monitor -.->|"likely observes"| node_interface
node_read_monitor -.->|"likely observes"| node_interface
node_read_agent -.->|"likely contains"| node_read_monitor
node_environment -.->|"likely configures"| node_scoreboard
node_environment -.->|"likely configures"| node_coverage
node_write_monitor -.->|"likely reports"| node_scoreboard
node_read_monitor -.->|"likely reports"| node_scoreboard
node_write_monitor -.->|"likely reports"| node_coverage
node_read_monitor -.->|"likely reports"| node_coverage

click node_design "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/Design.v"
click node_interface "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_if.sv"
click node_top "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_top.sv"
click node_environment "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_env.sv"
click node_base_test "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_base_test.sv"
click node_transaction "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_transaction.sv"
click node_sequencer "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_sequencer.sv"
click node_sequence_basic "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_write_read_sequence.sv"
click node_sequence_b2b "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_write_read_b2b_sequence.sv"
click node_sequence_burst "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_burst_write_read_sequence.sv"
click node_sequence_diff "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_burst_diff_data_sequence.sv"
click node_sequence_max_burst "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_max_burst_sequence.sv"
click node_sequence_max_addr "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_max_wr_addr_sequence.sv"
click node_sequence_error_addr "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_error_addr_sequence.sv"
click node_sequence_error_data "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_error_data_sequence.sv"
click node_sequence_error_read "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_error_read_sequence.sv"
click node_sequence_error_write "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_error_write_sequence.sv"
click node_write_agent "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_wagent.sv"
click node_write_driver "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_wdriver.sv"
click node_read_agent "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_ragent.sv"
click node_write_monitor "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_wmonitor.sv"
click node_read_monitor "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_rmonitor.sv"
click node_scoreboard "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_sb.sv"
click node_coverage "https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_coverage_model.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_design,node_interface toneBlue
class node_top,node_environment,node_base_test toneAmber
class node_transaction,node_sequencer,node_sequence_basic,node_sequence_b2b,node_sequence_burst,node_sequence_diff,node_sequence_max_burst,node_sequence_max_addr,node_sequence_error_addr,node_sequence_error_data,node_sequence_error_read,node_sequence_error_write,node_write_agent,node_write_driver toneMint
class node_read_agent,node_write_monitor,node_read_monitor,node_scoreboard,node_coverage toneRose
class node_simulator toneIndigo
```

## Components

### APB Design

- [APB Design](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/Design.v): `Design.v`
- [APB Interface](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_if.sv): `apb_if.sv`

### Testbench Control

- [Testbench Top](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_top.sv): `apb_top.sv`
- [APB Environment](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_env.sv): `apb_env.sv`
- [Base Test](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_base_test.sv): `apb_base_test.sv`

### Stimulus

- [APB Transaction](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_transaction.sv): `apb_transaction.sv`
- [APB Sequencer](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_sequencer.sv): `apb_sequencer.sv`
- [Write Read Sequence](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_write_read_sequence.sv): `apb_write_read_sequence.sv`
- [Back To Back Sequence](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_write_read_b2b_sequence.sv): `apb_write_read_b2b_sequence.sv`
- [Burst Read Write](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_burst_write_read_sequence.sv): `apb_burst_write_read_sequence.sv`
- [Burst Diff Data](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_burst_diff_data_sequence.sv): `apb_burst_diff_data_sequence.sv`
- [Max Burst Sequence](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_max_burst_sequence.sv): `apb_max_burst_sequence.sv`
- [Max Write Address](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_max_wr_addr_sequence.sv): `apb_max_wr_addr_sequence.sv`
- [Error Address Sequence](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_error_addr_sequence.sv): `apb_error_addr_sequence.sv`
- [Error Data Sequence](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_error_data_sequence.sv): `apb_error_data_sequence.sv`
- [Error Read Sequence](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_error_read_sequence.sv): `apb_error_read_sequence.sv`
- [Error Write Sequence](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_error_write_sequence.sv): `apb_error_write_sequence.sv`
- [Write Agent](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_wagent.sv): `apb_wagent.sv`
- [Write Driver](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_wdriver.sv): `apb_wdriver.sv`

### Observation And Results

- [Read Agent](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_ragent.sv): `apb_ragent.sv`
- [Write Monitor](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_wmonitor.sv): `apb_wmonitor.sv`
- [Read Monitor](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_rmonitor.sv): `apb_rmonitor.sv`
- [Scoreboard](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_sb.sv): `apb_sb.sv`
- [Coverage Model](https://github.com/pradeepchangal/apb-protocol-verification-using-uvm/blob/main/apb_coverage_model.sv): `apb_coverage_model.sv`

### Other components

- **Simulator**

## Connections

- Simulator → Testbench Top: runs
- Testbench Top → APB Environment: likely configures
- APB Environment → Base Test: likely hosts
- APB Environment → Write Agent: likely configures
- APB Environment → Read Agent: likely configures
- Base Test → APB Sequencer: likely starts
- APB Sequencer → APB Transaction: likely emits
- Write Read Sequence → APB Sequencer: likely uses
- Back To Back Sequence → APB Sequencer: likely uses
- Burst Read Write → APB Sequencer: likely uses
- Burst Diff Data → APB Sequencer: likely uses
- Max Burst Sequence → APB Sequencer: likely uses
- Max Write Address → APB Sequencer: likely uses
- Error Address Sequence → APB Sequencer: likely uses
- Error Data Sequence → APB Sequencer: likely uses
- Error Read Sequence → APB Sequencer: likely uses
- Error Write Sequence → APB Sequencer: likely uses
- Write Agent → Write Driver: likely drives
- Write Driver → APB Interface: likely drives
- APB Design → APB Interface: likely connects through
- Write Monitor → APB Interface: likely observes
- Read Monitor → APB Interface: likely observes
- Read Agent → Read Monitor: likely contains
- APB Environment → Scoreboard: likely configures
- APB Environment → Coverage Model: likely configures
- Write Monitor → Scoreboard: likely reports
- Read Monitor → Scoreboard: likely reports
- Write Monitor → Coverage Model: likely reports
- Read Monitor → Coverage Model: likely reports
