# saniabansal007/riscv_processor_logisim architecture

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

- Interactive diagram: https://gitdiagram.com/saniabansal007/riscv_processor_logisim
- Repository: https://github.com/saniabansal007/riscv_processor_logisim

## Overview

This repository is a Logisim single-cycle RISC-V processor circuit. The documented workflow is to load hexadecimal instruction encodings into instruction memory, click the clock to advance the processor, and observe its changes; reset clears the state. The tree contains only the circuit artifact and README, so component-level relationships are limited to those documented there.

Main entry points: [`Logisim_project_Sania_25125033.circ`](https://github.com/saniabansal007/riscv_processor_logisim/blob/main/Logisim_project_Sania_25125033.circ) (Processor state)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_instruction_memory["Instruction memory"]
node_clock["Clock control"]
node_processor["Single-cycle processor"]
node_reset["Reset control"]
node_processor_state["Processor state"]

node_user -->|"loads hex"| node_instruction_memory
node_user -->|"clicks clock"| node_clock
node_clock -->|"advances"| node_processor
node_user -->|"clicks reset"| node_reset
node_reset -->|"clears state"| node_processor_state
node_processor -.->|"updates"| node_processor_state
node_user -->|"observes changes"| node_processor_state

click node_instruction_memory "https://github.com/saniabansal007/riscv_processor_logisim/blob/main/Logisim_project_Sania_25125033.circ"
click node_clock "https://github.com/saniabansal007/riscv_processor_logisim/blob/main/Logisim_project_Sania_25125033.circ"
click node_processor "https://github.com/saniabansal007/riscv_processor_logisim/blob/main/Logisim_project_Sania_25125033.circ"
click node_reset "https://github.com/saniabansal007/riscv_processor_logisim/blob/main/Logisim_project_Sania_25125033.circ"
click node_processor_state "https://github.com/saniabansal007/riscv_processor_logisim/blob/main/Logisim_project_Sania_25125033.circ"

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_user toneBlue
class node_instruction_memory,node_clock,node_processor,node_reset,node_processor_state toneTeal
```

## Components

### Other components

- **User**
- [Instruction memory](https://github.com/saniabansal007/riscv_processor_logisim/blob/main/Logisim_project_Sania_25125033.circ): `Logisim_project_Sania_25125033.circ`
- [Clock control](https://github.com/saniabansal007/riscv_processor_logisim/blob/main/Logisim_project_Sania_25125033.circ): `Logisim_project_Sania_25125033.circ`
- [Single-cycle processor](https://github.com/saniabansal007/riscv_processor_logisim/blob/main/Logisim_project_Sania_25125033.circ): `Logisim_project_Sania_25125033.circ`
- [Reset control](https://github.com/saniabansal007/riscv_processor_logisim/blob/main/Logisim_project_Sania_25125033.circ): `Logisim_project_Sania_25125033.circ`
- [Processor state](https://github.com/saniabansal007/riscv_processor_logisim/blob/main/Logisim_project_Sania_25125033.circ): `Logisim_project_Sania_25125033.circ`

## Connections

- User → Instruction memory: loads hex (evidence: `README.md`)
- User → Clock control: clicks clock (evidence: `README.md`)
- Clock control → Single-cycle processor: advances (evidence: `README.md`)
- User → Reset control: clicks reset (evidence: `README.md`)
- Reset control → Processor state: clears state (evidence: `README.md`)
- Single-cycle processor → Processor state: updates
- User → Processor state: observes changes (evidence: `README.md`)
