# cpuex2019-7th/core architecture

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

- Interactive diagram: https://gitdiagram.com/cpuex2019-7th/core
- Repository: https://github.com/cpuex2019-7th/core

## Overview

This repository appears to implement a SystemVerilog processor core with floating-point operations and UART support. The README provides no workflow or module relationships, and no source excerpts were supplied, so the graph identifies components from their filenames but omits unverified connections.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_processor["Processor"]
  node_top["Core integration<br/>[top.sv]"]
  node_fetch["Instruction fetch<br/>[fetch.sv]"]
  node_decoder["Instruction decoder<br/>[decoder.sv]"]
  node_registers["Registers<br/>[reg.sv]"]
  node_memory["Memory<br/>[mem.sv]"]
  node_predictor["Branch predictor<br/>[predictor.sv]"]
  node_writeback["Writeback<br/>[write.sv]"]
  node_definitions["Core definitions<br/>[def.sv]"]
end

subgraph group_execution["Execution"]
  node_execute["Execution control<br/>[execute.sv]"]
  node_alu["Integer ALU<br/>[alu.sv]"]
  node_fpu["Floating-point unit<br/>[fpu.sv]"]
  node_fadd["Float addition<br/>[fadd.sv]"]
  node_fsub["Float subtraction<br/>[fsub.sv]"]
  node_fmul["Float multiplication<br/>[fmul.sv]"]
  node_fdiv["Float division<br/>[fdiv.sv]"]
  node_fsqrt["Float square root<br/>[fsqrt.sv]"]
  node_fcvtsw["Int-to-float<br/>[fcvtsw.sv]"]
  node_fcvtws["Float-to-int<br/>[fcvtws.sv]"]
  node_feq["Float equality<br/>[feq.sv]"]
  node_fle["Float comparison<br/>[fle.sv]"]
  node_fsgnj["Sign injection<br/>[fsgnj.sv]"]
  node_fsgnjn["Negated sign injection<br/>[fsgnjn.sv]"]
  node_fsgnjx["XOR sign injection<br/>[fsgnjx.sv]"]
  node_fpu_mul["FPU multiplier helper<br/>[mul.sv]"]
end

subgraph group_io["I/O"]
  node_top_wrapper["Core wrapper<br/>[top_wrapper.v]"]
  node_uart_buffer["UART buffer<br/>[uart_buffer.sv]"]
  node_uart_wrapper["UART wrapper"]
end

click node_top "https://github.com/cpuex2019-7th/core/blob/master/src/top.sv"
click node_fetch "https://github.com/cpuex2019-7th/core/blob/master/src/fetch.sv"
click node_decoder "https://github.com/cpuex2019-7th/core/blob/master/src/decoder.sv"
click node_registers "https://github.com/cpuex2019-7th/core/blob/master/src/reg.sv"
click node_memory "https://github.com/cpuex2019-7th/core/blob/master/src/mem.sv"
click node_predictor "https://github.com/cpuex2019-7th/core/blob/master/src/predictor.sv"
click node_writeback "https://github.com/cpuex2019-7th/core/blob/master/src/write.sv"
click node_definitions "https://github.com/cpuex2019-7th/core/blob/master/src/def.sv"
click node_execute "https://github.com/cpuex2019-7th/core/blob/master/src/execute.sv"
click node_alu "https://github.com/cpuex2019-7th/core/blob/master/src/alu.sv"
click node_fpu "https://github.com/cpuex2019-7th/core/blob/master/src/fpu.sv"
click node_fadd "https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fadd.sv"
click node_fsub "https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fsub.sv"
click node_fmul "https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fmul.sv"
click node_fdiv "https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fdiv.sv"
click node_fsqrt "https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fsqrt.sv"
click node_fcvtsw "https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fcvtsw.sv"
click node_fcvtws "https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fcvtws.sv"
click node_feq "https://github.com/cpuex2019-7th/core/blob/master/src/fpu/feq.sv"
click node_fle "https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fle.sv"
click node_fsgnj "https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fsgnj.sv"
click node_fsgnjn "https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fsgnjn.sv"
click node_fsgnjx "https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fsgnjx.sv"
click node_fpu_mul "https://github.com/cpuex2019-7th/core/blob/master/src/fpu/mul.sv"
click node_top_wrapper "https://github.com/cpuex2019-7th/core/blob/master/src/top_wrapper.v"
click node_uart_buffer "https://github.com/cpuex2019-7th/core/blob/master/src/uart_buffer.sv"
click node_uart_wrapper "https://github.com/cpuex2019-7th/core/blob/master/src/uart_buffer_wrapper.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_fetch,node_decoder,node_registers,node_memory,node_predictor,node_writeback,node_definitions toneBlue
class node_execute,node_alu,node_fpu,node_fadd,node_fsub,node_fmul,node_fdiv,node_fsqrt,node_fcvtsw,node_fcvtws,node_feq,node_fle,node_fsgnj,node_fsgnjn,node_fsgnjx,node_fpu_mul toneAmber
class node_top_wrapper,node_uart_buffer,node_uart_wrapper toneMint
```

## Components

### Processor

- [Core integration](https://github.com/cpuex2019-7th/core/blob/master/src/top.sv): `src/top.sv`
- [Instruction fetch](https://github.com/cpuex2019-7th/core/blob/master/src/fetch.sv): `src/fetch.sv`
- [Instruction decoder](https://github.com/cpuex2019-7th/core/blob/master/src/decoder.sv): `src/decoder.sv`
- [Registers](https://github.com/cpuex2019-7th/core/blob/master/src/reg.sv): `src/reg.sv`
- [Memory](https://github.com/cpuex2019-7th/core/blob/master/src/mem.sv): `src/mem.sv`
- [Branch predictor](https://github.com/cpuex2019-7th/core/blob/master/src/predictor.sv): `src/predictor.sv`
- [Writeback](https://github.com/cpuex2019-7th/core/blob/master/src/write.sv): `src/write.sv`
- [Core definitions](https://github.com/cpuex2019-7th/core/blob/master/src/def.sv): `src/def.sv`

### Execution

- [Execution control](https://github.com/cpuex2019-7th/core/blob/master/src/execute.sv): `src/execute.sv`
- [Integer ALU](https://github.com/cpuex2019-7th/core/blob/master/src/alu.sv): `src/alu.sv`
- [Floating-point unit](https://github.com/cpuex2019-7th/core/blob/master/src/fpu.sv): `src/fpu.sv`
- [Float addition](https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fadd.sv): `src/fpu/fadd.sv`
- [Float subtraction](https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fsub.sv): `src/fpu/fsub.sv`
- [Float multiplication](https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fmul.sv): `src/fpu/fmul.sv`
- [Float division](https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fdiv.sv): `src/fpu/fdiv.sv`
- [Float square root](https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fsqrt.sv): `src/fpu/fsqrt.sv`
- [Int-to-float](https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fcvtsw.sv): `src/fpu/fcvtsw.sv`
- [Float-to-int](https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fcvtws.sv): `src/fpu/fcvtws.sv`
- [Float equality](https://github.com/cpuex2019-7th/core/blob/master/src/fpu/feq.sv): `src/fpu/feq.sv`
- [Float comparison](https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fle.sv): `src/fpu/fle.sv`
- [Sign injection](https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fsgnj.sv): `src/fpu/fsgnj.sv`
- [Negated sign injection](https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fsgnjn.sv): `src/fpu/fsgnjn.sv`
- [XOR sign injection](https://github.com/cpuex2019-7th/core/blob/master/src/fpu/fsgnjx.sv): `src/fpu/fsgnjx.sv`
- [FPU multiplier helper](https://github.com/cpuex2019-7th/core/blob/master/src/fpu/mul.sv): `src/fpu/mul.sv`

### I/O

- [Core wrapper](https://github.com/cpuex2019-7th/core/blob/master/src/top_wrapper.v): `src/top_wrapper.v`
- [UART buffer](https://github.com/cpuex2019-7th/core/blob/master/src/uart_buffer.sv): `src/uart_buffer.sv`
- [UART wrapper](https://github.com/cpuex2019-7th/core/blob/master/src/uart_buffer_wrapper.v): `src/uart_buffer_wrapper.v`
