How nvdla/hw works
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: NV_NVDLA_core.cpp Accelerator core · NV_NVDLA_sdp.cpp Scale and activate · NV_nvdla.cpp NVDLA top · NV_NVDLA_cacc.cpp Accumulator
Components 18
Integration and control
- NVDLA top
cmod/nvdla_top/NV_nvdla.cpp - Accelerator core
cmod/nvdla_core/NV_NVDLA_core.cpp - CSB master
cmod/csb_master/gen/NV_NVDLA_csb_master.cpp - Global control
cmod/glb/NV_NVDLA_glb.cpp
Memory and data movement
- Block DMA
cmod/bdma/BdmaCore.cpp - Convolution DMA
cmod/cdma/NV_NVDLA_cdma.cpp - Convolution buffer
cmod/cbuf/NV_NVDLA_cbuf.cpp - Memory interface
cmod/mcif/gen/NV_NVDLA_mcif.cpp - Coherent interface
cmod/cvif/gen/NV_NVDLA_cvif.cpp
Convolution compute
- Convolution sequencer
cmod/csc/NV_NVDLA_csc.cpp - MAC array
cmod/cmac/NV_NVDLA_cmac.h - Accumulator
cmod/cacc/NV_NVDLA_cacc.cpp
Post-processing
- Scale and activate
cmod/sdp/NV_NVDLA_sdp.cpp - Pooling
cmod/pdp/NV_NVDLA_pdp.cpp - Data processing
cmod/cdp/NV_NVDLA_cdp.cpp - Data reshape
cmod/rubik/NV_NVDLA_rbk.cpp
Other components
- Host software
- External memory
Connections 20
- 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
cmod/sdp/NV_NVDLA_sdp.cpp - Scale and activate → Pooling: sends output
cmod/pdp/NV_NVDLA_pdp.cpp