# ramadpmallipudi2006-droid/gluedia architecture

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

- Interactive diagram: https://gitdiagram.com/ramadpmallipudi2006-droid/gluedia
- Repository: https://github.com/ramadpmallipudi2006-droid/gluedia

## Overview

GLUEDIA is a mixed-signal ASIC for continuous glucose monitoring. Its documented signal path converts sensor current to voltage, filters and samples it, digitizes it with an 8-bit SAR ADC, then calibrates the code into mg/dL. The repository also contains circuit-generation and mixed-signal simulation code, plus chip-level layout assembly. Signal-chain relationships are documented in the README; implementation details are unevenly sampled, so the graph avoids asserting unshown runtime calls.

Main entry points: [`gluedia_digital_top.v`](https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/gluedia_digital_top.v) (SAR ADC), [`glucose_dsp.v`](https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/glucose_dsp.v) (Glucose DSP), [`mixed_signal_sar_sim.py`](https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/mixed_signal_sar_sim.py) (SAR Co-Simulation), [`calibration_sim.py`](https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/calibration_sim.py) (Calibration Simulation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_analog["Analog Front End"]
  node_tia["Transimpedance Amplifier<br/>[cmos_tia.spice]"]
  node_lpf["Low-Pass Filter<br/>[cmos_lpf.sch]"]
  node_samplehold["Sample and Hold<br/>[gen_sh.py]"]
end

subgraph group_conversion["ADC Conversion"]
  node_sar["SAR ADC"]
  node_comparator["StrongARM Comparator"]
  node_cdac["Binary CDAC<br/>[gen_cdac.py]"]
end

subgraph group_processing["Digital Processing"]
  node_dsp["Glucose DSP<br/>[glucose_dsp.v]"]
  node_reading["Glucose Reading"]
end

subgraph group_design["Design and Integration"]
  node_analog_design["Analog Schematics<br/>[gen_sch.py]"]
  node_chip_assembly["Chip Assembly"]
  node_chip_layout["Assembled GDS"]
end

subgraph group_validation["Simulation and Calibration"]
  node_sar_cosim["SAR Co-Simulation"]
  node_calibration_sim["Calibration Simulation<br/>[calibration_sim.py]"]
end

node_sensor(("Glucose Sensor"))

node_sensor -->|"supplies current"| node_tia
node_tia -->|"outputs voltage"| node_lpf
node_lpf -->|"passes filtered signal"| node_samplehold
node_samplehold -->|"provides held voltage"| node_sar
node_sar -->|"uses comparison"| node_comparator
node_sar -->|"controls DAC"| node_cdac
node_sar -->|"outputs ADC code"| node_dsp
node_dsp -->|"computes glucose"| node_reading
node_analog_design -.->|"provides analog block"| node_chip_assembly
node_chip_assembly -->|"writes GDS"| node_chip_layout
node_sar_cosim -->|"simulates response"| node_comparator
node_sar_cosim -->|"drives switches"| node_cdac
node_calibration_sim -->|"models processing"| node_dsp
node_calibration_sim -->|"reports estimates"| node_reading

click node_tia "https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/cmos_tia.spice"
click node_lpf "https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/cmos_lpf.sch"
click node_samplehold "https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/gen_sh.py"
click node_sar "https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/gluedia_digital_top.v"
click node_comparator "https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/mc_comparator.spice"
click node_cdac "https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/gen_cdac.py"
click node_dsp "https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/glucose_dsp.v"
click node_analog_design "https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/gen_sch.py"
click node_chip_assembly "https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/assemble_chip_top.py"
click node_chip_layout "https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/gluedia_chip_top.gds"
click node_sar_cosim "https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/mixed_signal_sar_sim.py"
click node_calibration_sim "https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/calibration_sim.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_tia,node_lpf,node_samplehold toneBlue
class node_sar,node_comparator,node_cdac toneAmber
class node_dsp,node_reading toneMint
class node_analog_design,node_chip_assembly,node_chip_layout toneRose
class node_sar_cosim,node_calibration_sim,node_sensor toneIndigo
```

## Components

### Analog Front End

- [Transimpedance Amplifier](https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/cmos_tia.spice): `cmos_tia.spice`
- [Low-Pass Filter](https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/cmos_lpf.sch): `cmos_lpf.sch`
- [Sample and Hold](https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/gen_sh.py): `gen_sh.py`

### ADC Conversion

- [SAR ADC](https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/gluedia_digital_top.v): `gluedia_digital_top.v`
- [StrongARM Comparator](https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/mc_comparator.spice): `mc_comparator.spice`
- [Binary CDAC](https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/gen_cdac.py): `gen_cdac.py`

### Digital Processing

- [Glucose DSP](https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/glucose_dsp.v): `glucose_dsp.v`
- **Glucose Reading**

### Design and Integration

- [Analog Schematics](https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/gen_sch.py): `gen_sch.py`
- [Chip Assembly](https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/assemble_chip_top.py): `assemble_chip_top.py`
- [Assembled GDS](https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/gluedia_chip_top.gds): `gluedia_chip_top.gds`

### Simulation and Calibration

- [SAR Co-Simulation](https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/mixed_signal_sar_sim.py): `mixed_signal_sar_sim.py`
- [Calibration Simulation](https://github.com/ramadpmallipudi2006-droid/gluedia/blob/main/calibration_sim.py): `calibration_sim.py`

### Other components

- **Glucose Sensor**

## Connections

- Glucose Sensor → Transimpedance Amplifier: supplies current (evidence: `README.md`)
- Transimpedance Amplifier → Low-Pass Filter: outputs voltage (evidence: `README.md`)
- Low-Pass Filter → Sample and Hold: passes filtered signal (evidence: `README.md`)
- Sample and Hold → SAR ADC: provides held voltage (evidence: `README.md`)
- SAR ADC → StrongARM Comparator: uses comparison (evidence: `README.md`)
- SAR ADC → Binary CDAC: controls DAC (evidence: `README.md`)
- SAR ADC → Glucose DSP: outputs ADC code (evidence: `README.md`)
- Glucose DSP → Glucose Reading: computes glucose (evidence: `README.md`)
- Analog Schematics → Chip Assembly: provides analog block
- Chip Assembly → Assembled GDS: writes GDS (evidence: `assemble_chip_top.py`)
- SAR Co-Simulation → StrongARM Comparator: simulates response (evidence: `mixed_signal_sar_sim.py`)
- SAR Co-Simulation → Binary CDAC: drives switches (evidence: `mixed_signal_sar_sim.py`)
- Calibration Simulation → Glucose DSP: models processing (evidence: `calibration_sim.py`)
- Calibration Simulation → Glucose Reading: reports estimates (evidence: `calibration_sim.py`)
