# gunarirahuld-afk/silix-studio architecture

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

- Interactive diagram: https://gitdiagram.com/gunarirahuld-afk/silix-studio
- Repository: https://github.com/gunarirahuld-afk/silix-studio

## Overview

SILIX Studio is a browser-facing RTL design and analysis service. A user supplies Verilog through the web studio or REST API, then invokes separate lint, simulation, schematic, or synthesis operations; the API routes validate requests and delegate to focused services. Results include educational diagnostics, timing traces, circuit structure, or estimated cell and area metrics. The README documents interactive schematic drill-down and simulation probes, but the sampled excerpts do not show their frontend wiring. The graph therefore leaves those connections unverified rather than inferring calls.

Main entry points: [`app/main.py`](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/main.py) (FastAPI Application), [`app/static/index.html`](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/static/index.html) (Web Studio), [`app/routes/lint.py`](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/routes/lint.py) (Lint Endpoint), [`app/routes/simulate.py`](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/routes/simulate.py) (Simulate Endpoint)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Web Entry"]
  node_studio["Web Studio<br/>[index.html]"]
  node_server["FastAPI Application<br/>[main.py]"]
end

subgraph group_api["RTL API"]
  node_health["Health Check<br/>[health.py]"]
  node_lint_route["Lint Endpoint<br/>[lint.py]"]
  node_sim_route["Simulate Endpoint<br/>[simulate.py]"]
  node_schematic_route["Schematic Endpoint<br/>[schematic.py]"]
  node_synth_route["Synthesis Endpoint<br/>[synthesize.py]"]
  node_contracts["Request and Response Models<br/>[models.py]"]
end

subgraph group_analysis["Design Analysis"]
  node_linter["RTL Linter<br/>[linter.py]"]
  node_mentor["Hardware Mentor<br/>[teacher.py]"]
  node_simulator["Cycle Simulator<br/>[simulator.py]"]
  node_schematic["Schematic Generator<br/>[schematic.py]"]
  node_synthesizer["Cell Estimator<br/>[synthesizer.py]"]
end

subgraph group_outputs["Design Results"]
  node_lint_result["Lint Diagnostics<br/>[models.py]"]
  node_sim_result["VCD and Waveforms<br/>[models.py]"]
  node_schematic_result["Circuit Map<br/>[models.py]"]
  node_synth_result["Area and Timing Report<br/>[synthesizer.py]"]
end

node_designer(("RTL Designer"))

node_designer -.->|"uses"| node_studio
node_studio -.->|"submits RTL"| node_server
node_server -->|"registers"| node_health
node_server -->|"registers"| node_lint_route
node_server -->|"registers"| node_sim_route
node_server -->|"registers"| node_schematic_route
node_server -->|"registers"| node_synth_route
node_lint_route -->|"invokes"| node_linter
node_lint_route -->|"uses"| node_contracts
node_linter -->|"requests advice"| node_mentor
node_linter -.->|"returns"| node_lint_result
node_sim_route -->|"invokes"| node_simulator
node_sim_route -->|"uses"| node_contracts
node_simulator -.->|"produces"| node_sim_result
node_schematic_route -->|"invokes"| node_schematic
node_schematic_route -->|"uses"| node_contracts
node_schematic -.->|"produces"| node_schematic_result
node_synth_route -->|"invokes"| node_synthesizer
node_synthesizer -->|"returns"| node_synth_result
node_studio -.->|"renders waveforms"| node_sim_result
node_studio -.->|"drills into blocks"| node_schematic_result

click node_studio "https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/static/index.html"
click node_server "https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/main.py"
click node_health "https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/routes/health.py"
click node_lint_route "https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/routes/lint.py"
click node_sim_route "https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/routes/simulate.py"
click node_schematic_route "https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/routes/schematic.py"
click node_synth_route "https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/routes/synthesize.py"
click node_contracts "https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/models.py"
click node_linter "https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/services/linter.py"
click node_mentor "https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/services/teacher.py"
click node_simulator "https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/services/simulator.py"
click node_schematic "https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/services/schematic.py"
click node_synthesizer "https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/services/synthesizer.py"
click node_lint_result "https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/models.py"
click node_sim_result "https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/models.py"
click node_schematic_result "https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/models.py"
click node_synth_result "https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/services/synthesizer.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_studio,node_server toneBlue
class node_health,node_lint_route,node_sim_route,node_schematic_route,node_synth_route,node_contracts toneAmber
class node_linter,node_mentor,node_simulator,node_schematic,node_synthesizer toneMint
class node_lint_result,node_sim_result,node_schematic_result,node_synth_result toneRose
class node_designer toneIndigo
```

## Components

### Web Entry

- [Web Studio](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/static/index.html): `app/static/index.html`
- [FastAPI Application](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/main.py): `app/main.py`

### RTL API

- [Health Check](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/routes/health.py): `app/routes/health.py`
- [Lint Endpoint](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/routes/lint.py): `app/routes/lint.py`
- [Simulate Endpoint](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/routes/simulate.py): `app/routes/simulate.py`
- [Schematic Endpoint](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/routes/schematic.py): `app/routes/schematic.py`
- [Synthesis Endpoint](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/routes/synthesize.py): `app/routes/synthesize.py`
- [Request and Response Models](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/models.py): `app/models.py`

### Design Analysis

- [RTL Linter](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/services/linter.py): `app/services/linter.py`
- [Hardware Mentor](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/services/teacher.py): `app/services/teacher.py`
- [Cycle Simulator](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/services/simulator.py): `app/services/simulator.py`
- [Schematic Generator](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/services/schematic.py): `app/services/schematic.py`
- [Cell Estimator](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/services/synthesizer.py): `app/services/synthesizer.py`

### Design Results

- [Lint Diagnostics](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/models.py): `app/models.py`
- [VCD and Waveforms](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/models.py): `app/models.py`
- [Circuit Map](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/models.py): `app/models.py`
- [Area and Timing Report](https://github.com/gunarirahuld-afk/silix-studio/blob/main/app/services/synthesizer.py): `app/services/synthesizer.py`

### Other components

- **RTL Designer**

## Connections

- RTL Designer → Web Studio: uses (evidence: `README.md`)
- Web Studio → FastAPI Application: submits RTL
- FastAPI Application → Health Check: registers (evidence: `app/main.py`)
- FastAPI Application → Lint Endpoint: registers (evidence: `app/main.py`)
- FastAPI Application → Simulate Endpoint: registers (evidence: `app/main.py`)
- FastAPI Application → Schematic Endpoint: registers (evidence: `app/main.py`)
- FastAPI Application → Synthesis Endpoint: registers (evidence: `app/main.py`)
- Lint Endpoint → RTL Linter: invokes (evidence: `app/routes/lint.py`)
- Lint Endpoint → Request and Response Models: uses (evidence: `app/routes/lint.py`)
- RTL Linter → Hardware Mentor: requests advice (evidence: `app/services/linter.py`)
- RTL Linter → Lint Diagnostics: returns (evidence: `app/routes/lint.py`)
- Simulate Endpoint → Cycle Simulator: invokes (evidence: `app/routes/simulate.py`)
- Simulate Endpoint → Request and Response Models: uses (evidence: `app/routes/simulate.py`)
- Cycle Simulator → VCD and Waveforms: produces (evidence: `app/routes/simulate.py`)
- Schematic Endpoint → Schematic Generator: invokes (evidence: `app/routes/schematic.py`)
- Schematic Endpoint → Request and Response Models: uses (evidence: `app/routes/schematic.py`)
- Schematic Generator → Circuit Map: produces (evidence: `app/routes/schematic.py`)
- Synthesis Endpoint → Cell Estimator: invokes (evidence: `app/routes/synthesize.py`)
- Cell Estimator → Area and Timing Report: returns (evidence: `app/services/synthesizer.py`)
- Web Studio → VCD and Waveforms: renders waveforms (evidence: `README.md`)
- Web Studio → Circuit Map: drills into blocks (evidence: `README.md`)
