# udayvn/ecc-encryption-system architecture

> Architecture diagram of the GitHub repository udayvn/ecc-encryption-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/udayvn/ecc-encryption-system
- Repository: https://github.com/udayvn/ecc-encryption-system

## Overview

The file tree indicates a Verilog design centered on ECC, with encryption/decryption and arithmetic modules. No README or source excerpts were provided, so the graph identifies the apparent components but does not assert how they connect or what the user-facing workflow is. The constraint file is omitted because it is not a runtime component.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ecc_control["ECC and Control"]
  node_top_ecc["Top ECC<br/>[top_ecc.v]"]
  node_ecc["ECC<br/>[ecc.v]"]
  node_control["Control<br/>[control.v]"]
  node_combinational["Combinational Logic<br/>[combinational.v]"]
end

subgraph group_crypto["Encryption"]
  node_encrypt_x["Encrypt X<br/>[encrypt_x.v]"]
  node_encrypt_y["Encrypt Y<br/>[encrypt_y.v]"]
  node_decrypt["Decrypt<br/>[decrypt.v]"]
end

subgraph group_arithmetic["Arithmetic"]
  node_multiplier["Multiplier<br/>[multiplier.v]"]
  node_mul_stage1["Multiply Stage 1<br/>[mul_stage1.v]"]
  node_mul_stage2["Multiply Stage 2<br/>[mul_stage2.v]"]
  node_divider["Divider<br/>[divider.v]"]
  node_div_stage1["Divide Stage 1<br/>[div_stage1.v]"]
  node_div_stage2["Divide Stage 2<br/>[div_stage2.v]"]
  node_square["Square<br/>[square.v]"]
end

click node_top_ecc "https://github.com/udayvn/ecc-encryption-system/blob/master/top_ecc.v"
click node_ecc "https://github.com/udayvn/ecc-encryption-system/blob/master/ecc.v"
click node_control "https://github.com/udayvn/ecc-encryption-system/blob/master/control.v"
click node_combinational "https://github.com/udayvn/ecc-encryption-system/blob/master/combinational.v"
click node_encrypt_x "https://github.com/udayvn/ecc-encryption-system/blob/master/encrypt_x.v"
click node_encrypt_y "https://github.com/udayvn/ecc-encryption-system/blob/master/encrypt_y.v"
click node_decrypt "https://github.com/udayvn/ecc-encryption-system/blob/master/decrypt.v"
click node_multiplier "https://github.com/udayvn/ecc-encryption-system/blob/master/multiplier.v"
click node_mul_stage1 "https://github.com/udayvn/ecc-encryption-system/blob/master/mul_stage1.v"
click node_mul_stage2 "https://github.com/udayvn/ecc-encryption-system/blob/master/mul_stage2.v"
click node_divider "https://github.com/udayvn/ecc-encryption-system/blob/master/divider.v"
click node_div_stage1 "https://github.com/udayvn/ecc-encryption-system/blob/master/div_stage1.v"
click node_div_stage2 "https://github.com/udayvn/ecc-encryption-system/blob/master/div_stage2.v"
click node_square "https://github.com/udayvn/ecc-encryption-system/blob/master/square.v"

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_ecc,node_ecc,node_control,node_combinational toneBlue
class node_encrypt_x,node_encrypt_y,node_decrypt toneAmber
class node_multiplier,node_mul_stage1,node_mul_stage2,node_divider,node_div_stage1,node_div_stage2,node_square toneMint
```

## Components

### ECC and Control

- [Top ECC](https://github.com/udayvn/ecc-encryption-system/blob/master/top_ecc.v): `top_ecc.v`
- [ECC](https://github.com/udayvn/ecc-encryption-system/blob/master/ecc.v): `ecc.v`
- [Control](https://github.com/udayvn/ecc-encryption-system/blob/master/control.v): `control.v`
- [Combinational Logic](https://github.com/udayvn/ecc-encryption-system/blob/master/combinational.v): `combinational.v`

### Encryption

- [Encrypt X](https://github.com/udayvn/ecc-encryption-system/blob/master/encrypt_x.v): `encrypt_x.v`
- [Encrypt Y](https://github.com/udayvn/ecc-encryption-system/blob/master/encrypt_y.v): `encrypt_y.v`
- [Decrypt](https://github.com/udayvn/ecc-encryption-system/blob/master/decrypt.v): `decrypt.v`

### Arithmetic

- [Multiplier](https://github.com/udayvn/ecc-encryption-system/blob/master/multiplier.v): `multiplier.v`
- [Multiply Stage 1](https://github.com/udayvn/ecc-encryption-system/blob/master/mul_stage1.v): `mul_stage1.v`
- [Multiply Stage 2](https://github.com/udayvn/ecc-encryption-system/blob/master/mul_stage2.v): `mul_stage2.v`
- [Divider](https://github.com/udayvn/ecc-encryption-system/blob/master/divider.v): `divider.v`
- [Divide Stage 1](https://github.com/udayvn/ecc-encryption-system/blob/master/div_stage1.v): `div_stage1.v`
- [Divide Stage 2](https://github.com/udayvn/ecc-encryption-system/blob/master/div_stage2.v): `div_stage2.v`
- [Square](https://github.com/udayvn/ecc-encryption-system/blob/master/square.v): `square.v`
