# vodafone-chair/5g-nr-ldpc architecture

> Architecture diagram of the GitHub repository vodafone-chair/5g-nr-ldpc, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vodafone-chair/5g-nr-ldpc
- Repository: https://github.com/vodafone-chair/5g-nr-ldpc

## Overview

5g-nr-ldpc is a MATLAB library implementing basic 5G NR LDPC encoding and sum-product decoding for base graphs 1 and 2. The documented user workflow is to run the supplied example, which demonstrates encoding and decoding. The repository also includes code matrices and base-graph prototype data. Source excerpts were not provided, so relationships beyond the README-described example workflow are omitted; component roles for the MATLAB files are inferred only from their filenames.

Main entry points: [`ldpcExample.m`](https://github.com/vodafone-chair/5g-nr-ldpc/blob/master/ldpcExample.m) (Example Workflow), [`ldpcEncode.m`](https://github.com/vodafone-chair/5g-nr-ldpc/blob/master/ldpcEncode.m) (LDPC Encoder), [`ldpcDecode.m`](https://github.com/vodafone-chair/5g-nr-ldpc/blob/master/ldpcDecode.m) (Sum-Product Decoder)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["LDPC Runtime"]
  node_example["Example Workflow<br/>[ldpcExample.m]"]
  node_encode["LDPC Encoder<br/>[ldpcEncode.m]"]
  node_decode["Sum-Product Decoder<br/>[ldpcDecode.m]"]
  node_generate["Code Matrix Generator<br/>[ldpcGenCodeMat.m]"]
  node_get["Code Lookup<br/>[ldpcGet.m]"]
end

subgraph group_data["Code Data"]
  node_matrices[("Code Matrices")]
  node_prototypes[("BG Prototypes")]
end

node_user(("Library User"))

node_user -->|"runs"| node_example
node_example -->|"demonstrates encoding"| node_encode
node_example -->|"demonstrates decoding"| node_decode

click node_example "https://github.com/vodafone-chair/5g-nr-ldpc/blob/master/ldpcExample.m"
click node_encode "https://github.com/vodafone-chair/5g-nr-ldpc/blob/master/ldpcEncode.m"
click node_decode "https://github.com/vodafone-chair/5g-nr-ldpc/blob/master/ldpcDecode.m"
click node_generate "https://github.com/vodafone-chair/5g-nr-ldpc/blob/master/ldpcGenCodeMat.m"
click node_get "https://github.com/vodafone-chair/5g-nr-ldpc/blob/master/ldpcGet.m"
click node_matrices "https://github.com/vodafone-chair/5g-nr-ldpc/tree/master/codes"
click node_prototypes "https://github.com/vodafone-chair/5g-nr-ldpc/tree/master/prototypes"

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_example,node_encode,node_decode,node_generate,node_get,node_user toneBlue
class node_matrices,node_prototypes toneAmber
```

## Components

### LDPC Runtime

- [Example Workflow](https://github.com/vodafone-chair/5g-nr-ldpc/blob/master/ldpcExample.m): `ldpcExample.m`
- [LDPC Encoder](https://github.com/vodafone-chair/5g-nr-ldpc/blob/master/ldpcEncode.m): `ldpcEncode.m`
- [Sum-Product Decoder](https://github.com/vodafone-chair/5g-nr-ldpc/blob/master/ldpcDecode.m): `ldpcDecode.m`
- [Code Matrix Generator](https://github.com/vodafone-chair/5g-nr-ldpc/blob/master/ldpcGenCodeMat.m): `ldpcGenCodeMat.m`
- [Code Lookup](https://github.com/vodafone-chair/5g-nr-ldpc/blob/master/ldpcGet.m): `ldpcGet.m`

### Code Data

- [Code Matrices](https://github.com/vodafone-chair/5g-nr-ldpc/tree/master/codes): `codes`
- [BG Prototypes](https://github.com/vodafone-chair/5g-nr-ldpc/tree/master/prototypes): `prototypes`

### Other components

- **Library User**

## Connections

- Library User → Example Workflow: runs (evidence: `README.md`)
- Example Workflow → LDPC Encoder: demonstrates encoding (evidence: `README.md`)
- Example Workflow → Sum-Product Decoder: demonstrates decoding (evidence: `README.md`)
