# just1ngh/5g-nr-modulation-demodulation architecture

> Architecture diagram of the GitHub repository just1ngh/5g-nr-modulation-demodulation, 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/just1ngh/5g-nr-modulation-demodulation
- Repository: https://github.com/just1ngh/5g-nr-modulation-demodulation

## Overview

This MATLAB library implements 5G NR modulation and soft demodulation, with separate constellation and LLR plotting utilities. The documented workflow maps input bits to complex symbols and demaps received symbols to soft bits. The README provides function signatures and a usage example; source excerpts were unavailable, so relationships are limited to those documented there. Plotting components are identified from the repository tree, but their inputs and callers are not shown.

Main entry points: [`Source-Files/Functions/nrModuMapper.m`](https://github.com/just1ngh/5g-nr-modulation-demodulation/blob/main/Source-Files/Functions/nrModuMapper.m) (Symbol mapper), [`Source-Files/Functions/nrSoftModuDemapper.m`](https://github.com/just1ngh/5g-nr-modulation-demodulation/blob/main/Source-Files/Functions/nrSoftModuDemapper.m) (Soft demapper)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Library caller"))
node_mapper["Symbol mapper<br/>[nrModuMapper.m]"]
node_demapper["Soft demapper"]
node_constellation_plot["Constellation plot"]
node_llr_plot["LLR plot<br/>[plotNrLLR.m]"]

node_user -->|"maps bits"| node_mapper
node_mapper -->|"returns symbols"| node_user
node_user -->|"demaps symbols"| node_demapper
node_demapper -->|"returns soft bits"| node_user

click node_mapper "https://github.com/just1ngh/5g-nr-modulation-demodulation/blob/main/Source-Files/Functions/nrModuMapper.m"
click node_demapper "https://github.com/just1ngh/5g-nr-modulation-demodulation/blob/main/Source-Files/Functions/nrSoftModuDemapper.m"
click node_constellation_plot "https://github.com/just1ngh/5g-nr-modulation-demodulation/blob/main/Source-Files/Functions/plotNrConstellation.m"
click node_llr_plot "https://github.com/just1ngh/5g-nr-modulation-demodulation/blob/main/Source-Files/Functions/plotNrLLR.m"

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_user toneIndigo
class node_mapper,node_demapper,node_constellation_plot,node_llr_plot toneTeal
```

## Components

### Other components

- **Library caller**
- [Symbol mapper](https://github.com/just1ngh/5g-nr-modulation-demodulation/blob/main/Source-Files/Functions/nrModuMapper.m): `Source-Files/Functions/nrModuMapper.m`
- [Soft demapper](https://github.com/just1ngh/5g-nr-modulation-demodulation/blob/main/Source-Files/Functions/nrSoftModuDemapper.m): `Source-Files/Functions/nrSoftModuDemapper.m`
- [Constellation plot](https://github.com/just1ngh/5g-nr-modulation-demodulation/blob/main/Source-Files/Functions/plotNrConstellation.m): `Source-Files/Functions/plotNrConstellation.m`
- [LLR plot](https://github.com/just1ngh/5g-nr-modulation-demodulation/blob/main/Source-Files/Functions/plotNrLLR.m): `Source-Files/Functions/plotNrLLR.m`

## Connections

- Library caller → Symbol mapper: maps bits (evidence: `README.md`)
- Symbol mapper → Library caller: returns symbols (evidence: `README.md`)
- Library caller → Soft demapper: demaps symbols (evidence: `README.md`)
- Soft demapper → Library caller: returns soft bits (evidence: `README.md`)
