# freecores/sparc64soc architecture

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

- Interactive diagram: https://gitdiagram.com/freecores/sparc64soc
- Repository: https://github.com/freecores/sparc64soc

## Overview

This repository is an OpenSPARC T1 hardware design, accompanied by Wishbone peripherals and bridge logic. Its principal workflow is instruction execution: instruction fetch and decode feed integer execution and memory operations, while floating-point, privileged control, and system interfaces support additional operations and responses. The tree also identifies Ethernet, UART, flash, PROM, and memory-bridge capabilities. The README is empty, and the sampled files are interface-definition headers rather than instantiated RTL, so the connections below are high-level, unverified relationships—not confirmed wiring.

Main entry points: [`T1-CPU/rtl/sparc.v`](https://github.com/freecores/sparc64soc/blob/master/T1-CPU/rtl/sparc.v) (SPARC top), [`WB/wb_conbus_top.v`](https://github.com/freecores/sparc64soc/blob/master/WB/wb_conbus_top.v) (Wishbone fabric), [`T1-CPU/exu/sparc_exu.v`](https://github.com/freecores/sparc64soc/blob/master/T1-CPU/exu/sparc_exu.v) (Integer execution), [`T1-CPU/ifu/sparc_ifu.v`](https://github.com/freecores/sparc64soc/blob/master/T1-CPU/ifu/sparc_ifu.v) (Instruction fetch)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cpu["CPU Core"]
  node_top["SPARC top<br/>[sparc.v]"]
  node_ifu["Instruction fetch<br/>[sparc_ifu.v]"]
  node_exu["Integer execution<br/>[sparc_exu.v]"]
  node_lsu["Load/store<br/>[lsu.v]"]
  node_tlu["Trap control<br/>[tlu.v]"]
  node_ffu["Floating point<br/>[sparc_ffu.v]"]
  node_fpu["FPU<br/>[fpu.v]"]
  node_spu["Stream operations<br/>[spu.v]"]
  node_mul["Multiplier<br/>[sparc_mul_top.v]"]
end

subgraph group_support["Core Support"]
  node_common["Shared definitions"]
  node_sram[("SRAM models")]
end

subgraph group_peripherals["Peripheral Logic"]
  node_ethernet["Ethernet MAC<br/>[eth_top.v]"]
  node_uart["UART<br/>[uart_top.v]"]
  node_flash["Flash interface<br/>[WBFLASH.v]"]
  node_prom["Boot PROM"]
end

subgraph group_interconnect["Memory Interconnect"]
  node_wishbone["Wishbone fabric<br/>[wb_conbus_top.v]"]
  node_os2wb["OS to Wishbone<br/>[os2wb.v]"]
  node_dram["DRAM bridge<br/>[dram_wb.v]"]
end

node_actor(("Instruction source"))

node_actor -.->|"supplies instructions"| node_top
node_top -.->|"fetches through"| node_ifu
node_ifu -.->|"dispatches instructions"| node_exu
node_exu -.->|"requests memory operations"| node_lsu
node_exu -.->|"uses multiply"| node_mul
node_exu -.->|"dispatches floating point"| node_ffu
node_ffu -.->|"uses FPU"| node_fpu
node_top -.->|"handles traps"| node_tlu
node_top -.->|"supports stream operations"| node_spu
node_top -.->|"uses definitions"| node_common
node_lsu -.->|"accesses memory"| node_sram
node_wishbone -.->|"connects peripheral"| node_ethernet
node_wishbone -.->|"connects peripheral"| node_uart
node_wishbone -.->|"connects peripheral"| node_flash
node_prom -.->|"provides boot code"| node_top
node_os2wb -.->|"bridges bus"| node_wishbone
node_dram -.->|"bridges memory bus"| node_wishbone

click node_top "https://github.com/freecores/sparc64soc/blob/master/T1-CPU/rtl/sparc.v"
click node_ifu "https://github.com/freecores/sparc64soc/blob/master/T1-CPU/ifu/sparc_ifu.v"
click node_exu "https://github.com/freecores/sparc64soc/blob/master/T1-CPU/exu/sparc_exu.v"
click node_lsu "https://github.com/freecores/sparc64soc/blob/master/T1-CPU/lsu/lsu.v"
click node_tlu "https://github.com/freecores/sparc64soc/blob/master/T1-CPU/tlu/tlu.v"
click node_ffu "https://github.com/freecores/sparc64soc/blob/master/T1-CPU/ffu/sparc_ffu.v"
click node_fpu "https://github.com/freecores/sparc64soc/blob/master/T1-FPU/fpu.v"
click node_spu "https://github.com/freecores/sparc64soc/blob/master/T1-CPU/spu/spu.v"
click node_mul "https://github.com/freecores/sparc64soc/blob/master/T1-CPU/mul/sparc_mul_top.v"
click node_common "https://github.com/freecores/sparc64soc/tree/master/T1-common/include"
click node_sram "https://github.com/freecores/sparc64soc/tree/master/T1-common/srams"
click node_ethernet "https://github.com/freecores/sparc64soc/blob/master/OC-Ethernet/eth_top.v"
click node_uart "https://github.com/freecores/sparc64soc/blob/master/OC-UART/uart_top.v"
click node_flash "https://github.com/freecores/sparc64soc/blob/master/NOR-flash/WBFLASH.v"
click node_prom "https://github.com/freecores/sparc64soc/tree/master/PROM"
click node_wishbone "https://github.com/freecores/sparc64soc/blob/master/WB/wb_conbus_top.v"
click node_os2wb "https://github.com/freecores/sparc64soc/blob/master/os2wb/os2wb.v"
click node_dram "https://github.com/freecores/sparc64soc/blob/master/WB2ALTDDR3/dram_wb.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_top,node_ifu,node_exu,node_lsu,node_tlu,node_ffu,node_fpu,node_spu,node_mul toneBlue
class node_common,node_sram toneAmber
class node_ethernet,node_uart,node_flash,node_prom toneMint
class node_wishbone,node_os2wb,node_dram toneRose
class node_actor toneIndigo
```

## Components

### CPU Core

- [SPARC top](https://github.com/freecores/sparc64soc/blob/master/T1-CPU/rtl/sparc.v): `T1-CPU/rtl/sparc.v`
- [Instruction fetch](https://github.com/freecores/sparc64soc/blob/master/T1-CPU/ifu/sparc_ifu.v): `T1-CPU/ifu/sparc_ifu.v`
- [Integer execution](https://github.com/freecores/sparc64soc/blob/master/T1-CPU/exu/sparc_exu.v): `T1-CPU/exu/sparc_exu.v`
- [Load/store](https://github.com/freecores/sparc64soc/blob/master/T1-CPU/lsu/lsu.v): `T1-CPU/lsu/lsu.v`
- [Trap control](https://github.com/freecores/sparc64soc/blob/master/T1-CPU/tlu/tlu.v): `T1-CPU/tlu/tlu.v`
- [Floating point](https://github.com/freecores/sparc64soc/blob/master/T1-CPU/ffu/sparc_ffu.v): `T1-CPU/ffu/sparc_ffu.v`
- [FPU](https://github.com/freecores/sparc64soc/blob/master/T1-FPU/fpu.v): `T1-FPU/fpu.v`
- [Stream operations](https://github.com/freecores/sparc64soc/blob/master/T1-CPU/spu/spu.v): `T1-CPU/spu/spu.v`
- [Multiplier](https://github.com/freecores/sparc64soc/blob/master/T1-CPU/mul/sparc_mul_top.v): `T1-CPU/mul/sparc_mul_top.v`

### Core Support

- [Shared definitions](https://github.com/freecores/sparc64soc/tree/master/T1-common/include): `T1-common/include`
- [SRAM models](https://github.com/freecores/sparc64soc/tree/master/T1-common/srams): `T1-common/srams`

### Peripheral Logic

- [Ethernet MAC](https://github.com/freecores/sparc64soc/blob/master/OC-Ethernet/eth_top.v): `OC-Ethernet/eth_top.v`
- [UART](https://github.com/freecores/sparc64soc/blob/master/OC-UART/uart_top.v): `OC-UART/uart_top.v`
- [Flash interface](https://github.com/freecores/sparc64soc/blob/master/NOR-flash/WBFLASH.v): `NOR-flash/WBFLASH.v`
- [Boot PROM](https://github.com/freecores/sparc64soc/tree/master/PROM): `PROM`

### Memory Interconnect

- [Wishbone fabric](https://github.com/freecores/sparc64soc/blob/master/WB/wb_conbus_top.v): `WB/wb_conbus_top.v`
- [OS to Wishbone](https://github.com/freecores/sparc64soc/blob/master/os2wb/os2wb.v): `os2wb/os2wb.v`
- [DRAM bridge](https://github.com/freecores/sparc64soc/blob/master/WB2ALTDDR3/dram_wb.v): `WB2ALTDDR3/dram_wb.v`

### Other components

- **Instruction source**

## Connections

- Instruction source → SPARC top: supplies instructions
- SPARC top → Instruction fetch: fetches through
- Instruction fetch → Integer execution: dispatches instructions
- Integer execution → Load/store: requests memory operations
- Integer execution → Multiplier: uses multiply
- Integer execution → Floating point: dispatches floating point
- Floating point → FPU: uses FPU
- SPARC top → Trap control: handles traps
- SPARC top → Stream operations: supports stream operations
- SPARC top → Shared definitions: uses definitions
- Load/store → SRAM models: accesses memory
- Wishbone fabric → Ethernet MAC: connects peripheral
- Wishbone fabric → UART: connects peripheral
- Wishbone fabric → Flash interface: connects peripheral
- Boot PROM → SPARC top: provides boot code
- OS to Wishbone → Wishbone fabric: bridges bus
- DRAM bridge → Wishbone fabric: bridges memory bus
