# visagan09-creator/scalsync architecture

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

- Interactive diagram: https://gitdiagram.com/visagan09-creator/scalsync
- Repository: https://github.com/visagan09-creator/scalsync

## Overview

ScalSync is documented as an agentic EDA workflow: a user prompt leads to HDL and testbench generation, Vivado execution, simulation, result analysis, and corrective iteration. This repository contains only Verilog and Vivado project/simulation files; the agent, filesystem, and Windows-bridge implementation described in the README is not present in the tree. The workflow links below therefore reflect README documentation, not inspected implementation calls.

Main entry points: [`design.v`](https://github.com/visagan09-creator/scalsync/blob/main/design.v) (Verilog design), [`tb.v`](https://github.com/visagan09-creator/scalsync/blob/main/tb.v) (Testbench), [`run_sim.tcl`](https://github.com/visagan09-creator/scalsync/blob/main/run_sim.tcl) (Simulation setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_agent["OpenClaw agent"]
node_design["Verilog design<br/>[design.v]"]
node_testbench["Testbench<br/>[tb.v]"]
node_vivado["Vivado execution"]
node_simulation["Simulation setup<br/>[run_sim.tcl]"]
node_project["Vivado project<br/>[sim_proj.xpr]"]
node_analysis["Log analysis"]

node_user -->|"prompts"| node_agent
node_agent -->|"generates HDL"| node_design
node_agent -->|"generates testbench"| node_testbench
node_agent -->|"invokes tools"| node_vivado
node_vivado -->|"runs simulation"| node_simulation
node_vivado -->|"produces results"| node_analysis
node_agent -->|"analyzes logs"| node_analysis
node_analysis -->|"guides fixes"| node_agent
node_agent -->|"edits design"| node_design
node_agent -->|"reruns verification"| node_vivado

click node_design "https://github.com/visagan09-creator/scalsync/blob/main/design.v"
click node_testbench "https://github.com/visagan09-creator/scalsync/blob/main/tb.v"
click node_simulation "https://github.com/visagan09-creator/scalsync/blob/main/run_sim.tcl"
click node_project "https://github.com/visagan09-creator/scalsync/blob/main/sim_proj.xpr"

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_agent,node_vivado,node_analysis toneIndigo
class node_design,node_testbench,node_simulation,node_project toneTeal
```

## Components

### Other components

- **User**
- **OpenClaw agent**
- [Verilog design](https://github.com/visagan09-creator/scalsync/blob/main/design.v): `design.v`
- [Testbench](https://github.com/visagan09-creator/scalsync/blob/main/tb.v): `tb.v`
- **Vivado execution**
- [Simulation setup](https://github.com/visagan09-creator/scalsync/blob/main/run_sim.tcl): `run_sim.tcl`
- [Vivado project](https://github.com/visagan09-creator/scalsync/blob/main/sim_proj.xpr): `sim_proj.xpr`
- **Log analysis**

## Connections

- User → OpenClaw agent: prompts (evidence: `README.md`)
- OpenClaw agent → Verilog design: generates HDL (evidence: `README.md`)
- OpenClaw agent → Testbench: generates testbench (evidence: `README.md`)
- OpenClaw agent → Vivado execution: invokes tools (evidence: `README.md`)
- Vivado execution → Simulation setup: runs simulation (evidence: `README.md`)
- Vivado execution → Log analysis: produces results (evidence: `README.md`)
- OpenClaw agent → Log analysis: analyzes logs (evidence: `README.md`)
- Log analysis → OpenClaw agent: guides fixes (evidence: `README.md`)
- OpenClaw agent → Verilog design: edits design (evidence: `README.md`)
- OpenClaw agent → Vivado execution: reruns verification (evidence: `README.md`)
