# rymshasaeed/cuk-convertor architecture

> Architecture diagram of the GitHub repository rymshasaeed/cuk-convertor, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rymshasaeed/cuk-convertor
- Repository: https://github.com/rymshasaeed/cuk-convertor

## Overview

This repository documents a DC-to-DC Ćuk converter design, with a circuit file and README describing its operating principle, design specifications, and simulation results. The principal workflow is switching energy transfer through the coupled capacitor and inductors to an inverted output, with comparator-based duty-cycle feedback. The README also identifies a triangular signal, MOSFET driver, RC filter, and PID output. No source excerpts were provided, so the relationships below rely on documented behavior; the control-to-switch connections not stated explicitly are marked unverified.

Main entry points: [`cuk_convertor.ms14`](https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14) (Duty comparator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_power["Power conversion"]
  node_vin["Input source<br/>[cuk_convertor.ms14]"]
  node_l1["Input inductor<br/>[cuk_convertor.ms14]"]
  node_switch["MOSFET switch<br/>[cuk_convertor.ms14]"]
  node_diode["Commutation diode<br/>[cuk_convertor.ms14]"]
  node_c2["Transfer capacitor<br/>[cuk_convertor.ms14]"]
  node_l2["Output inductor<br/>[cuk_convertor.ms14]"]
  node_output["Output and load<br/>[cuk_convertor.ms14]"]
end

subgraph group_control["Control and feedback"]
  node_triangle["Triangular source<br/>[cuk_convertor.ms14]"]
  node_comparator["Duty comparator<br/>[cuk_convertor.ms14]"]
  node_driver["MOSFET driver<br/>[cuk_convertor.ms14]"]
  node_feedback["RC filter and PID<br/>[cuk_convertor.ms14]"]
end

node_vin -->|"supplies current"| node_l1
node_switch -->|"commutates"| node_diode
node_l1 -->|"transfers energy"| node_c2
node_c2 -->|"supplies energy"| node_l2
node_l2 -->|"feeds load"| node_output
node_triangle -.->|"provides signal"| node_comparator
node_feedback -.->|"informs control"| node_comparator
node_comparator -.->|"controls duty"| node_driver
node_driver -.->|"drives gate"| node_switch

click node_vin "https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14"
click node_l1 "https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14"
click node_switch "https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14"
click node_diode "https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14"
click node_c2 "https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14"
click node_l2 "https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14"
click node_output "https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14"
click node_triangle "https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14"
click node_comparator "https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14"
click node_driver "https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14"
click node_feedback "https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14"

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_vin,node_l1,node_switch,node_diode,node_c2,node_l2,node_output toneBlue
class node_triangle,node_comparator,node_driver,node_feedback toneAmber
```

## Components

### Power conversion

- [Input source](https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14): `cuk_convertor.ms14`
- [Input inductor](https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14): `cuk_convertor.ms14`
- [MOSFET switch](https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14): `cuk_convertor.ms14`
- [Commutation diode](https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14): `cuk_convertor.ms14`
- [Transfer capacitor](https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14): `cuk_convertor.ms14`
- [Output inductor](https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14): `cuk_convertor.ms14`
- [Output and load](https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14): `cuk_convertor.ms14`

### Control and feedback

- [Triangular source](https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14): `cuk_convertor.ms14`
- [Duty comparator](https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14): `cuk_convertor.ms14`
- [MOSFET driver](https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14): `cuk_convertor.ms14`
- [RC filter and PID](https://github.com/rymshasaeed/cuk-convertor/blob/main/cuk_convertor.ms14): `cuk_convertor.ms14`

## Connections

- Input source → Input inductor: supplies current (evidence: `README.md`)
- MOSFET switch → Commutation diode: commutates (evidence: `README.md`)
- Input inductor → Transfer capacitor: transfers energy (evidence: `README.md`)
- Transfer capacitor → Output inductor: supplies energy (evidence: `README.md`)
- Output inductor → Output and load: feeds load (evidence: `README.md`)
- Triangular source → Duty comparator: provides signal
- RC filter and PID → Duty comparator: informs control
- Duty comparator → MOSFET driver: controls duty
- MOSFET driver → MOSFET switch: drives gate
