# veena-cw/soc-integration-structure architecture

> Architecture diagram of the GitHub repository veena-cw/soc-integration-structure, 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/veena-cw/soc-integration-structure
- Repository: https://github.com/veena-cw/soc-integration-structure

## Overview

This repository is a broad SoC integration tree, not a single application. The README’s concrete user workflow is to source the environment and run the I2C Verilator test, but the supplied tree omits that testbench and simulator entry point. The sampled material instead exposes CPU verification software, generated CPU simulation internals, and imported DRAM models. The graph shows these evidenced branches; source excerpts do not establish how the README’s I2C command connects to them.

Main entry points: [`DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Controller.h`](https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Controller.h) (Controller API), [`DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/SpeedyController.h`](https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/SpeedyController.h) (Speedy Controller), [`VERIF/cpu_verif/c`](https://github.com/veena-cw/soc-integration-structure/tree/main/VERIF/cpu_verif/c) (CPU Test Programs), [`DSN/ip/compute/cpu/ip/cpu/rtl/bp_top/verilator/results/bp_tethered.e_bp_multicore_2_cfg/obj_dir/Vtestbench_bsg_wormhole_router__pi31__DepSet_ha1d83c5d__1__Slow.cpp`](https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/bp_top/verilator/results/bp_tethered.e_bp_multicore_2_cfg/obj_dir/Vtestbench_bsg_wormhole_router__pi31__DepSet_ha1d83c5d__1__Slow.cpp) (Wormhole Router)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cpu_sim["CPU Simulation"]
  node_sim_model["Verilated Model<br/>[Vtestbench__Syms.h]"]
  node_wormhole["Wormhole Router"]
  node_fifo["Two-FIFO"]
end

subgraph group_cpu_verif["CPU Verification"]
  node_test_images["CPU Test Programs"]
  node_dual_core["Dual-Core Support<br/>[dual_core.h]"]
  node_dram_test["DRAM Latency Test"]
  node_cpu_suite["CPU Verification"]
end

subgraph group_memory_models["DRAM Models"]
  node_ram_controller["Request Controller<br/>[Controller.cpp]"]
  node_ram_controller_api["Controller API<br/>[Controller.h]"]
  node_dram_tree["DRAM State Tree<br/>[DRAM.h]"]
  node_dram_request["Memory Request<br/>[Request.h]"]
  node_speedy_controller["Speedy Controller<br/>[SpeedyController.h]"]
  node_ram_stats["RAM Statistics<br/>[Statistics.h]"]
  node_dramsim_controller["DRAMSim Controller<br/>[controller.cc]"]
  node_dramsim_api["DRAMSim API<br/>[controller.h]"]
end

node_external_user(("Verification User"))

node_sim_model -->|"contains instance"| node_wormhole
node_wormhole -->|"uses instance"| node_fifo
node_external_user -.->|"runs test"| node_cpu_suite
node_cpu_suite -.->|"executes"| node_test_images
node_test_images -->|"uses helpers"| node_dual_core
node_test_images -.->|"includes"| node_dram_test
node_external_user -.->|"runs test"| node_dram_test
node_ram_controller -->|"implements"| node_ram_controller_api
node_ram_controller_api -->|"accepts"| node_dram_request
node_ram_controller_api -->|"controls"| node_dram_tree
node_ram_controller_api -->|"tracks"| node_ram_stats
node_speedy_controller -->|"queries timing"| node_dram_tree
node_speedy_controller -->|"queues requests"| node_dram_request
node_speedy_controller -->|"records stats"| node_ram_stats
node_dramsim_controller -->|"implements"| node_dramsim_api
node_dramsim_api -.->|"serves requests"| node_external_user

click node_sim_model "https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/bp_top/verilator/results/bp_tethered.e_bp_multicore_2_cfg/obj_dir/Vtestbench__Syms.h"
click node_wormhole "https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/bp_top/verilator/results/bp_tethered.e_bp_multicore_2_cfg/obj_dir/Vtestbench_bsg_wormhole_router__pi31__DepSet_ha1d83c5d__1__Slow.cpp"
click node_fifo "https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/bp_top/verilator/results/bp_tethered.e_bp_multicore_2_cfg/obj_dir/Vtestbench_bsg_two_fifo__W80.h"
click node_test_images "https://github.com/veena-cw/soc-integration-structure/tree/main/VERIF/cpu_verif/c"
click node_dual_core "https://github.com/veena-cw/soc-integration-structure/blob/main/VERIF/cpu_verif/c/dual_core.h"
click node_dram_test "https://github.com/veena-cw/soc-integration-structure/blob/main/VERIF/cpu_verif/c/dram_latency_function.c"
click node_cpu_suite "https://github.com/veena-cw/soc-integration-structure/tree/main/VERIF/cpu_verif/c"
click node_ram_controller "https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Controller.cpp"
click node_ram_controller_api "https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Controller.h"
click node_dram_tree "https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/DRAM.h"
click node_dram_request "https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Request.h"
click node_speedy_controller "https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/SpeedyController.h"
click node_ram_stats "https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Statistics.h"
click node_dramsim_controller "https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/DRAMSim3/src/controller.cc"
click node_dramsim_api "https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/DRAMSim3/src/controller.h"

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_sim_model,node_wormhole,node_fifo,node_external_user toneBlue
class node_test_images,node_dual_core,node_dram_test,node_cpu_suite toneAmber
class node_ram_controller,node_ram_controller_api,node_dram_tree,node_dram_request,node_speedy_controller,node_ram_stats,node_dramsim_controller,node_dramsim_api toneMint
```

## Components

### CPU Simulation

- [Verilated Model](https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/bp_top/verilator/results/bp_tethered.e_bp_multicore_2_cfg/obj_dir/Vtestbench__Syms.h): `DSN/ip/compute/cpu/ip/cpu/rtl/bp_top/verilator/results/bp_tethered.e_bp_multicore_2_cfg/obj_dir/Vtestbench__Syms.h`
- [Wormhole Router](https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/bp_top/verilator/results/bp_tethered.e_bp_multicore_2_cfg/obj_dir/Vtestbench_bsg_wormhole_router__pi31__DepSet_ha1d83c5d__1__Slow.cpp): `DSN/ip/compute/cpu/ip/cpu/rtl/bp_top/verilator/results/bp_tethered.e_bp_multicore_2_cfg/obj_dir/Vtestbench_bsg_wormhole_router__pi31__DepSet_ha1d83c5d__1__Slow.cpp`
- [Two-FIFO](https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/bp_top/verilator/results/bp_tethered.e_bp_multicore_2_cfg/obj_dir/Vtestbench_bsg_two_fifo__W80.h): `DSN/ip/compute/cpu/ip/cpu/rtl/bp_top/verilator/results/bp_tethered.e_bp_multicore_2_cfg/obj_dir/Vtestbench_bsg_two_fifo__W80.h`

### CPU Verification

- [CPU Test Programs](https://github.com/veena-cw/soc-integration-structure/tree/main/VERIF/cpu_verif/c): `VERIF/cpu_verif/c`
- [Dual-Core Support](https://github.com/veena-cw/soc-integration-structure/blob/main/VERIF/cpu_verif/c/dual_core.h): `VERIF/cpu_verif/c/dual_core.h`
- [DRAM Latency Test](https://github.com/veena-cw/soc-integration-structure/blob/main/VERIF/cpu_verif/c/dram_latency_function.c): `VERIF/cpu_verif/c/dram_latency_function.c`
- [CPU Verification](https://github.com/veena-cw/soc-integration-structure/tree/main/VERIF/cpu_verif/c): `VERIF/cpu_verif/c`

### DRAM Models

- [Request Controller](https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Controller.cpp): `DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Controller.cpp`
- [Controller API](https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Controller.h): `DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Controller.h`
- [DRAM State Tree](https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/DRAM.h): `DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/DRAM.h`
- [Memory Request](https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Request.h): `DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Request.h`
- [Speedy Controller](https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/SpeedyController.h): `DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/SpeedyController.h`
- [RAM Statistics](https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Statistics.h): `DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Statistics.h`
- [DRAMSim Controller](https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/DRAMSim3/src/controller.cc): `DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/DRAMSim3/src/controller.cc`
- [DRAMSim API](https://github.com/veena-cw/soc-integration-structure/blob/main/DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/DRAMSim3/src/controller.h): `DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/DRAMSim3/src/controller.h`

### Other components

- **Verification User**

## Connections

- Verilated Model → Wormhole Router: contains instance (evidence: `DSN/ip/compute/cpu/ip/cpu/rtl/bp_top/verilator/results/bp_tethered.e_bp_multicore_2_cfg/obj_dir/Vtestbench__Syms.h`)
- Wormhole Router → Two-FIFO: uses instance (evidence: `DSN/ip/compute/cpu/ip/cpu/rtl/bp_top/verilator/results/bp_tethered.e_bp_multicore_2_cfg/obj_dir/Vtestbench_bsg_wormhole_router__pi31__DepSet_ha1d83c5d__1__Slow.cpp`)
- Verification User → CPU Verification: runs test
- CPU Verification → CPU Test Programs: executes
- CPU Test Programs → Dual-Core Support: uses helpers (evidence: `VERIF/cpu_verif/c/dram_latency_function.c`)
- CPU Test Programs → DRAM Latency Test: includes (evidence: `VERIF/cpu_verif/c/dram_latency_function.c`)
- Verification User → DRAM Latency Test: runs test
- Request Controller → Controller API: implements (evidence: `DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Controller.cpp`)
- Controller API → Memory Request: accepts (evidence: `DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Controller.h`)
- Controller API → DRAM State Tree: controls (evidence: `DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Controller.h`)
- Controller API → RAM Statistics: tracks (evidence: `DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/Controller.h`)
- Speedy Controller → DRAM State Tree: queries timing (evidence: `DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/SpeedyController.h`)
- Speedy Controller → Memory Request: queues requests (evidence: `DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/SpeedyController.h`)
- Speedy Controller → RAM Statistics: records stats (evidence: `DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/ramulator/src/SpeedyController.h`)
- DRAMSim Controller → DRAMSim API: implements (evidence: `DSN/ip/compute/cpu/ip/cpu/rtl/external/basejump_stl/imports/DRAMSim3/src/controller.cc`)
- DRAMSim API → Verification User: serves requests
