# costin-iordache/proiect_tsc architecture

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

- Interactive diagram: https://gitdiagram.com/costin-iordache/proiect_tsc
- Repository: https://github.com/costin-iordache/proiect_tsc

## Overview

This repository contains synthesizable SPI RTL and a SystemVerilog verification environment. The apparent product workflow is exercising the SPI master through verification scenarios, but no README or source excerpts document how the RTL, testbench, agents, and checks are connected. The graph therefore identifies the implementation and verification components without asserting unsupported call or data-flow relationships. The file tree alone does not establish the behavior of individual tests or whether the VR-named components represent a separate protocol.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_rtl["SPI RTL"]
  node_spi_master["SPI Master<br/>[spi_master.v]"]
  node_counter["Counter<br/>[counter.v]"]
end

subgraph group_verification["Verification Environment"]
  node_testbench["Testbench<br/>[testbench.sv]"]
  node_environment["Environment<br/>[environment.sv]"]
  node_coverage["Coverage<br/>[coverage.sv]"]
  node_spi_interface["SPI Interface<br/>[spi_interface.sv]"]
  node_spi_transaction["SPI Transaction<br/>[spi_transaction.sv]"]
  node_spi_generator["SPI Generator<br/>[spi_generator.sv]"]
  node_spi_driver["SPI Driver<br/>[spi_driver.sv]"]
  node_spi_monitor["SPI Monitor<br/>[spi_monitor.sv]"]
  node_generator["Generator<br/>[generator.sv]"]
  node_monitor["Monitor<br/>[monitor.sv]"]
  node_scoreboard["Scoreboard<br/>[scoreboard.sv]"]
  node_reset_interface["Reset Interface<br/>[reset_interface.sv]"]
  node_reset_driver["Reset Driver<br/>[reset_driver.sv]"]
  node_vr_interface["VR Interface<br/>[vr_interface.sv]"]
  node_vr_transaction["VR Transaction<br/>[vr_transaction.sv]"]
  node_vr_generator["VR Generator<br/>[vr_generator.sv]"]
  node_vr_driver["VR Driver<br/>[vr_driver.sv]"]
  node_vr_monitor["VR Monitor<br/>[vr_monitor.sv]"]
end

subgraph group_scenarios["Test Scenarios"]
  node_basic_test["Basic Test<br/>[basic_test.sv]"]
  node_alternate_valid_test["Alternate Valid Test"]
  node_fifo_full_test["FIFO Full Test<br/>[fifo_full_test.sv]"]
  node_no_valid_test["No Valid Test<br/>[no_valid_test.sv]"]
  node_random_test["Random Test<br/>[random_test.sv]"]
  node_reset_spi_test["Reset During SPI"]
  node_wr_rd_test["Write Read Test<br/>[wr_rd_test.sv]"]
end

click node_spi_master "https://github.com/costin-iordache/proiect_tsc/blob/main/rtl/spi_master.v"
click node_counter "https://github.com/costin-iordache/proiect_tsc/blob/main/rtl/counter.v"
click node_testbench "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/testbench.sv"
click node_environment "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/environment.sv"
click node_coverage "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/coverage.sv"
click node_spi_interface "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/spi_interface.sv"
click node_spi_transaction "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/spi_transaction.sv"
click node_spi_generator "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/spi_generator.sv"
click node_spi_driver "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/spi_driver.sv"
click node_spi_monitor "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/spi_monitor.sv"
click node_generator "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/generator.sv"
click node_monitor "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/monitor.sv"
click node_scoreboard "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/scoreboard.sv"
click node_reset_interface "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/reset_interface.sv"
click node_reset_driver "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/reset_driver.sv"
click node_vr_interface "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/vr_interface.sv"
click node_vr_transaction "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/vr_transaction.sv"
click node_vr_generator "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/vr_generator.sv"
click node_vr_driver "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/vr_driver.sv"
click node_vr_monitor "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/vr_monitor.sv"
click node_basic_test "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/basic_test.sv"
click node_alternate_valid_test "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/alternate_valid_test.sv"
click node_fifo_full_test "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/fifo_full_test.sv"
click node_no_valid_test "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/no_valid_test.sv"
click node_random_test "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/random_test.sv"
click node_reset_spi_test "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/reset_in_timpul_spi.sv"
click node_wr_rd_test "https://github.com/costin-iordache/proiect_tsc/blob/main/ve/wr_rd_test.sv"

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_spi_master,node_counter toneBlue
class node_testbench,node_environment,node_coverage,node_spi_interface,node_spi_transaction,node_spi_generator,node_spi_driver,node_spi_monitor,node_generator,node_monitor,node_scoreboard,node_reset_interface,node_reset_driver,node_vr_interface,node_vr_transaction,node_vr_generator,node_vr_driver,node_vr_monitor toneAmber
class node_basic_test,node_alternate_valid_test,node_fifo_full_test,node_no_valid_test,node_random_test,node_reset_spi_test,node_wr_rd_test toneMint
```

## Components

### SPI RTL

- [SPI Master](https://github.com/costin-iordache/proiect_tsc/blob/main/rtl/spi_master.v): `rtl/spi_master.v`
- [Counter](https://github.com/costin-iordache/proiect_tsc/blob/main/rtl/counter.v): `rtl/counter.v`

### Verification Environment

- [Testbench](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/testbench.sv): `ve/testbench.sv`
- [Environment](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/environment.sv): `ve/environment.sv`
- [Coverage](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/coverage.sv): `ve/coverage.sv`
- [SPI Interface](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/spi_interface.sv): `ve/spi_interface.sv`
- [SPI Transaction](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/spi_transaction.sv): `ve/spi_transaction.sv`
- [SPI Generator](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/spi_generator.sv): `ve/spi_generator.sv`
- [SPI Driver](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/spi_driver.sv): `ve/spi_driver.sv`
- [SPI Monitor](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/spi_monitor.sv): `ve/spi_monitor.sv`
- [Generator](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/generator.sv): `ve/generator.sv`
- [Monitor](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/monitor.sv): `ve/monitor.sv`
- [Scoreboard](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/scoreboard.sv): `ve/scoreboard.sv`
- [Reset Interface](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/reset_interface.sv): `ve/reset_interface.sv`
- [Reset Driver](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/reset_driver.sv): `ve/reset_driver.sv`
- [VR Interface](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/vr_interface.sv): `ve/vr_interface.sv`
- [VR Transaction](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/vr_transaction.sv): `ve/vr_transaction.sv`
- [VR Generator](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/vr_generator.sv): `ve/vr_generator.sv`
- [VR Driver](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/vr_driver.sv): `ve/vr_driver.sv`
- [VR Monitor](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/vr_monitor.sv): `ve/vr_monitor.sv`

### Test Scenarios

- [Basic Test](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/basic_test.sv): `ve/basic_test.sv`
- [Alternate Valid Test](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/alternate_valid_test.sv): `ve/alternate_valid_test.sv`
- [FIFO Full Test](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/fifo_full_test.sv): `ve/fifo_full_test.sv`
- [No Valid Test](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/no_valid_test.sv): `ve/no_valid_test.sv`
- [Random Test](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/random_test.sv): `ve/random_test.sv`
- [Reset During SPI](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/reset_in_timpul_spi.sv): `ve/reset_in_timpul_spi.sv`
- [Write Read Test](https://github.com/costin-iordache/proiect_tsc/blob/main/ve/wr_rd_test.sv): `ve/wr_rd_test.sv`
