# phapmoyaku/ce118-design_digital_logic architecture

> Architecture diagram of the GitHub repository phapmoyaku/ce118-design_digital_logic, 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/phapmoyaku/ce118-design_digital_logic
- Repository: https://github.com/phapmoyaku/ce118-design_digital_logic

## Overview

This repository is primarily digital-logic coursework artifacts, with one small Python utility that converts draw.io diagrams toward TikZ output. The visible runtime separates the converter’s shared parsing, geometry, and style helpers from recursive cell traversal and rendering in `helper.py`. The excerpts show the helper importing and using converter functions, and the converter’s command-line entry point; they do not show enough of `main` to verify how it dispatches traversal. Other coursework projects are represented only by generated/design files in the supplied tree.

Main entry points: [`TH_TKLLS/Diagram/Assignment_5/Draw2Latex/drawio2tikz.py`](https://github.com/phapmoyaku/ce118-design_digital_logic/blob/main/TH_TKLLS/Diagram/Assignment_5/Draw2Latex/drawio2tikz.py) (Converter functions), [`TH_TKLLS/Diagram/Assignment_5/Draw2Latex/helper.py`](https://github.com/phapmoyaku/ce118-design_digital_logic/blob/main/TH_TKLLS/Diagram/Assignment_5/Draw2Latex/helper.py) (Cell traversal)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("CLI user"))
node_converter["Converter functions<br/>[drawio2tikz.py]"]
node_traversal["Cell traversal<br/>[helper.py]"]

node_user -->|"runs CLI"| node_converter
node_traversal -->|"uses helpers"| node_converter
node_converter -.->|"dispatches traversal"| node_traversal

click node_converter "https://github.com/phapmoyaku/ce118-design_digital_logic/blob/main/TH_TKLLS/Diagram/Assignment_5/Draw2Latex/drawio2tikz.py"
click node_traversal "https://github.com/phapmoyaku/ce118-design_digital_logic/blob/main/TH_TKLLS/Diagram/Assignment_5/Draw2Latex/helper.py"

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 toneBlue
class node_converter,node_traversal toneTeal
```

## Components

### Other components

- **CLI user**
- [Converter functions](https://github.com/phapmoyaku/ce118-design_digital_logic/blob/main/TH_TKLLS/Diagram/Assignment_5/Draw2Latex/drawio2tikz.py): `TH_TKLLS/Diagram/Assignment_5/Draw2Latex/drawio2tikz.py`
- [Cell traversal](https://github.com/phapmoyaku/ce118-design_digital_logic/blob/main/TH_TKLLS/Diagram/Assignment_5/Draw2Latex/helper.py): `TH_TKLLS/Diagram/Assignment_5/Draw2Latex/helper.py`

## Connections

- CLI user → Converter functions: runs CLI (evidence: `TH_TKLLS/Diagram/Assignment_5/Draw2Latex/drawio2tikz.py`)
- Cell traversal → Converter functions: uses helpers (evidence: `TH_TKLLS/Diagram/Assignment_5/Draw2Latex/helper.py`)
- Converter functions → Cell traversal: dispatches traversal (evidence: `TH_TKLLS/Diagram/Assignment_5/Draw2Latex/drawio2tikz.py`)
