# gunarirahuld-afk/spi_rtl_gds architecture

> Architecture diagram of the GitHub repository gunarirahuld-afk/spi_rtl_gds, 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/spi_rtl_gds
- Repository: https://github.com/gunarirahuld-afk/spi_rtl_gds

## Overview

This repository describes an 8-bit SystemVerilog SPI master–slave design for full-duplex communication. Its principal workflow is data exchange between the master and slave, followed by RTL simulation and synthesis; the README also documents a SKY130 physical-design flow. The tree includes the master, slave, top-level, and synthesized Verilog files, but no source excerpts were provided, so internal module wiring and tool configuration cannot be verified. Documented workflow links use the README as evidence.

Main entry points: [`spi_master_slave_top.sv`](https://github.com/gunarirahuld-afk/spi_rtl_gds/blob/main/spi_master_slave_top.sv) (System top), [`spi_master.sv`](https://github.com/gunarirahuld-afk/spi_rtl_gds/blob/main/spi_master.sv) (SPI master), [`spi_slave.sv`](https://github.com/gunarirahuld-afk/spi_rtl_gds/blob/main/spi_slave.sv) (SPI slave), [`spi_synth.v`](https://github.com/gunarirahuld-afk/spi_rtl_gds/blob/main/spi_synth.v) (Yosys synthesis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_rtl["SPI RTL"]
  node_master["SPI master<br/>[spi_master.sv]"]
  node_slave["SPI slave<br/>[spi_slave.sv]"]
  node_top["System top"]
end

subgraph group_verification["Verification"]
  node_simulation["RTL simulation"]
  node_waveforms["Waveform review<br/>[spi.vcd]"]
end

subgraph group_implementation["Implementation"]
  node_synthesis["Yosys synthesis<br/>[spi_synth.v]"]
  node_physical["SKY130 physical design"]
end

node_master_actor(("Master endpoint"))
node_slave_actor(("Slave endpoint"))

node_master_actor -->|"sends data"| node_master
node_master -->|"transfers to"| node_slave_actor
node_slave_actor -->|"sends data"| node_slave
node_slave -->|"transfers to"| node_master_actor
node_top -->|"simulated as"| node_simulation
node_top -->|"synthesized as"| node_synthesis
node_top -->|"implemented through"| node_physical
node_simulation -->|"verifies with"| node_waveforms
node_synthesis -->|"feeds flow"| node_physical

click node_master "https://github.com/gunarirahuld-afk/spi_rtl_gds/blob/main/spi_master.sv"
click node_slave "https://github.com/gunarirahuld-afk/spi_rtl_gds/blob/main/spi_slave.sv"
click node_top "https://github.com/gunarirahuld-afk/spi_rtl_gds/blob/main/spi_master_slave_top.sv"
click node_waveforms "https://github.com/gunarirahuld-afk/spi_rtl_gds/blob/main/spi.vcd"
click node_synthesis "https://github.com/gunarirahuld-afk/spi_rtl_gds/blob/main/spi_synth.v"

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_master,node_slave,node_top toneBlue
class node_simulation,node_waveforms toneAmber
class node_synthesis,node_physical toneMint
class node_master_actor,node_slave_actor toneIndigo
```

## Components

### SPI RTL

- [SPI master](https://github.com/gunarirahuld-afk/spi_rtl_gds/blob/main/spi_master.sv): `spi_master.sv`
- [SPI slave](https://github.com/gunarirahuld-afk/spi_rtl_gds/blob/main/spi_slave.sv): `spi_slave.sv`
- [System top](https://github.com/gunarirahuld-afk/spi_rtl_gds/blob/main/spi_master_slave_top.sv): `spi_master_slave_top.sv`

### Verification

- **RTL simulation**
- [Waveform review](https://github.com/gunarirahuld-afk/spi_rtl_gds/blob/main/spi.vcd): `spi.vcd`

### Implementation

- [Yosys synthesis](https://github.com/gunarirahuld-afk/spi_rtl_gds/blob/main/spi_synth.v): `spi_synth.v`
- **SKY130 physical design**

### Other components

- **Master endpoint**
- **Slave endpoint**

## Connections

- Master endpoint → SPI master: sends data (evidence: `README.md`)
- SPI master → Slave endpoint: transfers to (evidence: `README.md`)
- Slave endpoint → SPI slave: sends data (evidence: `README.md`)
- SPI slave → Master endpoint: transfers to (evidence: `README.md`)
- System top → RTL simulation: simulated as (evidence: `README.md`)
- System top → Yosys synthesis: synthesized as (evidence: `README.md`)
- System top → SKY130 physical design: implemented through (evidence: `README.md`)
- RTL simulation → Waveform review: verifies with (evidence: `README.md`)
- Yosys synthesis → SKY130 physical design: feeds flow (evidence: `README.md`)
