# amith-0911/apb-master architecture

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

- Interactive diagram: https://gitdiagram.com/amith-0911/apb-master
- Repository: https://github.com/amith-0911/apb-master

## Overview

This is a small Verilog learning project: an APB master performs a write transfer, and a testbench drives reset, transfer inputs, and readiness so the behavior can be observed in Vivado. The documented FSM phases are shown as stages of the design; the testbench is the simulation entry point. The XDC records an assumed clock for timing analysis, not a board configuration. No source excerpts were provided, so relationships below rely on the README rather than inspected implementation details.

Main entry points: [`APB Master.v`](https://github.com/amith-0911/apb-master/blob/main/APB%20Master.v) (APB master), [`APB_tb.v`](https://github.com/amith-0911/apb-master/blob/main/APB_tb.v) (APB testbench), [`apb_constraints.xdc`](https://github.com/amith-0911/apb-master/blob/main/apb_constraints.xdc) (Clock constraint)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_design["APB Design"]
  node_master["APB master<br/>[APB Master.v]"]
  node_idle["Idle phase<br/>[APB Master.v]"]
  node_setup["Setup phase<br/>[APB Master.v]"]
  node_access["Access phase<br/>[APB Master.v]"]
  node_constraints["Clock constraint"]
end

subgraph group_simulation["Simulation"]
  node_testbench["APB testbench<br/>[APB_tb.v]"]
end

node_user(("Project user"))
node_vivado["Vivado"]

node_user -->|"runs simulation"| node_vivado
node_vivado -->|"runs as top"| node_testbench
node_testbench -->|"drives transfer"| node_master
node_master -->|"controls"| node_idle
node_master -->|"controls"| node_setup
node_master -->|"controls"| node_access
node_idle -->|"advances to"| node_setup
node_setup -->|"advances to"| node_access
node_constraints -->|"sets timing"| node_vivado

click node_master "https://github.com/amith-0911/apb-master/blob/main/APB%20Master.v"
click node_idle "https://github.com/amith-0911/apb-master/blob/main/APB%20Master.v"
click node_setup "https://github.com/amith-0911/apb-master/blob/main/APB%20Master.v"
click node_access "https://github.com/amith-0911/apb-master/blob/main/APB%20Master.v"
click node_testbench "https://github.com/amith-0911/apb-master/blob/main/APB_tb.v"
click node_constraints "https://github.com/amith-0911/apb-master/blob/main/apb_constraints.xdc"

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_master,node_idle,node_setup,node_access,node_constraints,node_user toneBlue
class node_testbench toneAmber
class node_vivado toneIndigo
```

## Components

### APB Design

- [APB master](https://github.com/amith-0911/apb-master/blob/main/APB%20Master.v): `APB Master.v`
- [Idle phase](https://github.com/amith-0911/apb-master/blob/main/APB%20Master.v): `APB Master.v`
- [Setup phase](https://github.com/amith-0911/apb-master/blob/main/APB%20Master.v): `APB Master.v`
- [Access phase](https://github.com/amith-0911/apb-master/blob/main/APB%20Master.v): `APB Master.v`
- [Clock constraint](https://github.com/amith-0911/apb-master/blob/main/apb_constraints.xdc): `apb_constraints.xdc`

### Simulation

- [APB testbench](https://github.com/amith-0911/apb-master/blob/main/APB_tb.v): `APB_tb.v`

### Other components

- **Project user**
- **Vivado**

## Connections

- Project user → Vivado: runs simulation (evidence: `README.md`)
- Vivado → APB testbench: runs as top (evidence: `README.md`)
- APB testbench → APB master: drives transfer (evidence: `README.md`)
- APB master → Idle phase: controls (evidence: `README.md`)
- APB master → Setup phase: controls (evidence: `README.md`)
- APB master → Access phase: controls (evidence: `README.md`)
- Idle phase → Setup phase: advances to (evidence: `README.md`)
- Setup phase → Access phase: advances to (evidence: `README.md`)
- Clock constraint → Vivado: sets timing (evidence: `README.md`)
