# raphaelroshan/jane-street-asic-lab architecture

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

- Interactive diagram: https://gitdiagram.com/raphaelroshan/jane-street-asic-lab
- Repository: https://github.com/raphaelroshan/jane-street-asic-lab

## Overview

This repository is a learning lab whose checked-in product is Lab 1: a small, serially programmable timing engine, not the competition emulator. The principal workflow is to generate demo program bytes with the assembler, then program and observe the RTL engine. The README identifies the four-instruction machine and points to its RTL, but no source excerpts were provided; relationships below are therefore limited to README-documented behavior. The competition architecture remains a draft, not an implemented subsystem.

Main entry points: [`tools/lab_asm.py`](https://github.com/raphaelroshan/jane-street-asic-lab/blob/main/tools/lab_asm.py) (Lab assembler), [`src/timing_core.v`](https://github.com/raphaelroshan/jane-street-asic-lab/blob/main/src/timing_core.v) (Timing engine)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_programming["Program authoring"]
  node_assembler["Lab assembler<br/>[lab_asm.py]"]
  node_program_bytes["Program bytes"]
end

subgraph group_lab1["Lab 1 engine"]
  node_timing_engine["Timing engine<br/>[timing_core.v]"]
end

node_learner(("Learner"))

node_learner -->|"runs"| node_assembler
node_assembler -->|"generates"| node_program_bytes
node_program_bytes -->|"programs serially"| node_timing_engine

click node_assembler "https://github.com/raphaelroshan/jane-street-asic-lab/blob/main/tools/lab_asm.py"
click node_timing_engine "https://github.com/raphaelroshan/jane-street-asic-lab/blob/main/src/timing_core.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_assembler,node_program_bytes toneBlue
class node_timing_engine toneAmber
class node_learner toneIndigo
```

## Components

### Program authoring

- [Lab assembler](https://github.com/raphaelroshan/jane-street-asic-lab/blob/main/tools/lab_asm.py): `tools/lab_asm.py`
- **Program bytes**

### Lab 1 engine

- [Timing engine](https://github.com/raphaelroshan/jane-street-asic-lab/blob/main/src/timing_core.v): `src/timing_core.v`

### Other components

- **Learner**

## Connections

- Learner → Lab assembler: runs (evidence: `README.md`)
- Lab assembler → Program bytes: generates (evidence: `README.md`)
- Program bytes → Timing engine: programs serially (evidence: `README.md`)
