# nvdla/hw architecture

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

- Interactive diagram: https://gitdiagram.com/nvdla/hw
- Repository: https://github.com/nvdla/hw

## Overview

This repository contains the SystemC C-model of NVIDIA’s NVDLA inference accelerator. Its top-level core brings together configurable compute, data-movement, memory-interface, and control blocks; the blocks process programmed inference work and communicate through hardware-style interfaces. The graph includes the major engine stages and external memory boundary. Several internal connections are not visible in the excerpts, so unverified links are omitted rather than inferred as a pipeline.

Main entry points: [`cmod/nvdla_core/NV_NVDLA_core.cpp`](https://github.com/nvdla/hw/blob/nvdlav1/cmod/nvdla_core/NV_NVDLA_core.cpp) (Accelerator core), [`cmod/sdp/NV_NVDLA_sdp.cpp`](https://github.com/nvdla/hw/blob/nvdlav1/cmod/sdp/NV_NVDLA_sdp.cpp) (Scale and activate), [`cmod/nvdla_top/NV_nvdla.cpp`](https://github.com/nvdla/hw/blob/nvdlav1/cmod/nvdla_top/NV_nvdla.cpp) (NVDLA top), [`cmod/cacc/NV_NVDLA_cacc.cpp`](https://github.com/nvdla/hw/blob/nvdlav1/cmod/cacc/NV_NVDLA_cacc.cpp) (Accumulator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_integration["Integration and control"]
  node_top["NVDLA top<br/>[NV_nvdla.cpp]"]
  node_core["Accelerator core<br/>[NV_NVDLA_core.cpp]"]
  node_csb["CSB master"]
  node_global["Global control<br/>[NV_NVDLA_glb.cpp]"]
end

subgraph group_memory["Memory and data movement"]
  node_bdma["Block DMA<br/>[BdmaCore.cpp]"]
  node_cdma["Convolution DMA<br/>[NV_NVDLA_cdma.cpp]"]
  node_cbuf[("Convolution buffer<br/>[NV_NVDLA_cbuf.cpp]")]
  node_mcif["Memory interface<br/>[NV_NVDLA_mcif.cpp]"]
  node_cvif["Coherent interface<br/>[NV_NVDLA_cvif.cpp]"]
end

subgraph group_compute["Convolution compute"]
  node_csc["Convolution sequencer<br/>[NV_NVDLA_csc.cpp]"]
  node_cmac["MAC array<br/>[NV_NVDLA_cmac.h]"]
  node_cacc["Accumulator<br/>[NV_NVDLA_cacc.cpp]"]
end

subgraph group_post["Post-processing"]
  node_sdp["Scale and activate<br/>[NV_NVDLA_sdp.cpp]"]
  node_pdp["Pooling<br/>[NV_NVDLA_pdp.cpp]"]
  node_cdp["Data processing<br/>[NV_NVDLA_cdp.cpp]"]
  node_rubik["Data reshape<br/>[NV_NVDLA_rbk.cpp]"]
end

node_software(("Host software"))
node_external_memory[("External memory")]

node_top -->|"integrates"| node_core
node_core -->|"connects"| node_csb
node_core -->|"connects"| node_global
node_core -->|"connects"| node_bdma
node_core -->|"connects"| node_cdma
node_core -->|"connects"| node_cbuf
node_core -->|"connects"| node_mcif
node_core -->|"connects"| node_cvif
node_core -->|"connects"| node_csc
node_core -->|"connects"| node_cmac
node_core -->|"connects"| node_cacc
node_core -->|"connects"| node_sdp
node_core -->|"connects"| node_pdp
node_core -->|"connects"| node_cdp
node_core -->|"connects"| node_rubik
node_software -.->|"configures"| node_top
node_external_memory -.->|"transfers data"| node_mcif
node_external_memory -.->|"transfers data"| node_cvif
node_cacc -->|"sends accumulations"| node_sdp
node_sdp -->|"sends output"| node_pdp

click node_top "https://github.com/nvdla/hw/blob/nvdlav1/cmod/nvdla_top/NV_nvdla.cpp"
click node_core "https://github.com/nvdla/hw/blob/nvdlav1/cmod/nvdla_core/NV_NVDLA_core.cpp"
click node_csb "https://github.com/nvdla/hw/blob/nvdlav1/cmod/csb_master/gen/NV_NVDLA_csb_master.cpp"
click node_global "https://github.com/nvdla/hw/blob/nvdlav1/cmod/glb/NV_NVDLA_glb.cpp"
click node_bdma "https://github.com/nvdla/hw/blob/nvdlav1/cmod/bdma/BdmaCore.cpp"
click node_cdma "https://github.com/nvdla/hw/blob/nvdlav1/cmod/cdma/NV_NVDLA_cdma.cpp"
click node_cbuf "https://github.com/nvdla/hw/blob/nvdlav1/cmod/cbuf/NV_NVDLA_cbuf.cpp"
click node_mcif "https://github.com/nvdla/hw/blob/nvdlav1/cmod/mcif/gen/NV_NVDLA_mcif.cpp"
click node_cvif "https://github.com/nvdla/hw/blob/nvdlav1/cmod/cvif/gen/NV_NVDLA_cvif.cpp"
click node_csc "https://github.com/nvdla/hw/blob/nvdlav1/cmod/csc/NV_NVDLA_csc.cpp"
click node_cmac "https://github.com/nvdla/hw/blob/nvdlav1/cmod/cmac/NV_NVDLA_cmac.h"
click node_cacc "https://github.com/nvdla/hw/blob/nvdlav1/cmod/cacc/NV_NVDLA_cacc.cpp"
click node_sdp "https://github.com/nvdla/hw/blob/nvdlav1/cmod/sdp/NV_NVDLA_sdp.cpp"
click node_pdp "https://github.com/nvdla/hw/blob/nvdlav1/cmod/pdp/NV_NVDLA_pdp.cpp"
click node_cdp "https://github.com/nvdla/hw/blob/nvdlav1/cmod/cdp/NV_NVDLA_cdp.cpp"
click node_rubik "https://github.com/nvdla/hw/blob/nvdlav1/cmod/rubik/NV_NVDLA_rbk.cpp"

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_top,node_core,node_csb,node_global toneBlue
class node_bdma,node_cdma,node_cbuf,node_mcif,node_cvif,node_external_memory toneAmber
class node_csc,node_cmac,node_cacc toneMint
class node_sdp,node_pdp,node_cdp,node_rubik toneRose
class node_software toneIndigo
```

## Components

### Integration and control

- [NVDLA top](https://github.com/nvdla/hw/blob/nvdlav1/cmod/nvdla_top/NV_nvdla.cpp): `cmod/nvdla_top/NV_nvdla.cpp`
- [Accelerator core](https://github.com/nvdla/hw/blob/nvdlav1/cmod/nvdla_core/NV_NVDLA_core.cpp): `cmod/nvdla_core/NV_NVDLA_core.cpp`
- [CSB master](https://github.com/nvdla/hw/blob/nvdlav1/cmod/csb_master/gen/NV_NVDLA_csb_master.cpp): `cmod/csb_master/gen/NV_NVDLA_csb_master.cpp`
- [Global control](https://github.com/nvdla/hw/blob/nvdlav1/cmod/glb/NV_NVDLA_glb.cpp): `cmod/glb/NV_NVDLA_glb.cpp`

### Memory and data movement

- [Block DMA](https://github.com/nvdla/hw/blob/nvdlav1/cmod/bdma/BdmaCore.cpp): `cmod/bdma/BdmaCore.cpp`
- [Convolution DMA](https://github.com/nvdla/hw/blob/nvdlav1/cmod/cdma/NV_NVDLA_cdma.cpp): `cmod/cdma/NV_NVDLA_cdma.cpp`
- [Convolution buffer](https://github.com/nvdla/hw/blob/nvdlav1/cmod/cbuf/NV_NVDLA_cbuf.cpp): `cmod/cbuf/NV_NVDLA_cbuf.cpp`
- [Memory interface](https://github.com/nvdla/hw/blob/nvdlav1/cmod/mcif/gen/NV_NVDLA_mcif.cpp): `cmod/mcif/gen/NV_NVDLA_mcif.cpp`
- [Coherent interface](https://github.com/nvdla/hw/blob/nvdlav1/cmod/cvif/gen/NV_NVDLA_cvif.cpp): `cmod/cvif/gen/NV_NVDLA_cvif.cpp`

### Convolution compute

- [Convolution sequencer](https://github.com/nvdla/hw/blob/nvdlav1/cmod/csc/NV_NVDLA_csc.cpp): `cmod/csc/NV_NVDLA_csc.cpp`
- [MAC array](https://github.com/nvdla/hw/blob/nvdlav1/cmod/cmac/NV_NVDLA_cmac.h): `cmod/cmac/NV_NVDLA_cmac.h`
- [Accumulator](https://github.com/nvdla/hw/blob/nvdlav1/cmod/cacc/NV_NVDLA_cacc.cpp): `cmod/cacc/NV_NVDLA_cacc.cpp`

### Post-processing

- [Scale and activate](https://github.com/nvdla/hw/blob/nvdlav1/cmod/sdp/NV_NVDLA_sdp.cpp): `cmod/sdp/NV_NVDLA_sdp.cpp`
- [Pooling](https://github.com/nvdla/hw/blob/nvdlav1/cmod/pdp/NV_NVDLA_pdp.cpp): `cmod/pdp/NV_NVDLA_pdp.cpp`
- [Data processing](https://github.com/nvdla/hw/blob/nvdlav1/cmod/cdp/NV_NVDLA_cdp.cpp): `cmod/cdp/NV_NVDLA_cdp.cpp`
- [Data reshape](https://github.com/nvdla/hw/blob/nvdlav1/cmod/rubik/NV_NVDLA_rbk.cpp): `cmod/rubik/NV_NVDLA_rbk.cpp`

### Other components

- **Host software**
- **External memory**

## Connections

- NVDLA top → Accelerator core: integrates
- Accelerator core → CSB master: connects
- Accelerator core → Global control: connects
- Accelerator core → Block DMA: connects
- Accelerator core → Convolution DMA: connects
- Accelerator core → Convolution buffer: connects
- Accelerator core → Memory interface: connects
- Accelerator core → Coherent interface: connects
- Accelerator core → Convolution sequencer: connects
- Accelerator core → MAC array: connects
- Accelerator core → Accumulator: connects
- Accelerator core → Scale and activate: connects
- Accelerator core → Pooling: connects
- Accelerator core → Data processing: connects
- Accelerator core → Data reshape: connects
- Host software → NVDLA top: configures
- External memory → Memory interface: transfers data
- External memory → Coherent interface: transfers data
- Accumulator → Scale and activate: sends accumulations (evidence: `cmod/sdp/NV_NVDLA_sdp.cpp`)
- Scale and activate → Pooling: sends output (evidence: `cmod/pdp/NV_NVDLA_pdp.cpp`)
