# vidharshanasri-ss/verilog-core-labs architecture

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

- Interactive diagram: https://gitdiagram.com/vidharshanasri-ss/verilog-core-labs
- Repository: https://github.com/vidharshanasri-ss/verilog-core-labs

## Overview

Verilog Core Labs is a learning collection of RTL examples for combinational logic, sequential circuits, and finite-state machines. The principal workflow is a learner exploring a circuit design and using it to understand digital logic; the README also identifies RTL simulation and waveform analysis as learning objectives. The tree includes testbenches, but they are verification artifacts rather than runtime product components. No source excerpts were supplied, so the graph shows only documented learner-to-design relationships and does not infer calls or composition among designs.

Main entry points: [`combinational_circuits/adder/4bit_adder.v`](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/combinational_circuits/adder/4bit_adder.v) (4-bit Adder), [`combinational_circuits/adder/full_adder.v`](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/combinational_circuits/adder/full_adder.v) (Full Adder), [`combinational_circuits/subtractor/full_subtractor.v`](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/combinational_circuits/subtractor/full_subtractor.v) (Full Subtractor), [`combinational_circuits/mux2:1/mux_2_1.v`](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/combinational_circuits/mux2%3A1/mux_2_1.v) (2:1 Multiplexer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_comb["Combinational Logic"]
  node_adder4["4-bit Adder<br/>[4bit_adder.v]"]
  node_fulladder["Full Adder<br/>[full_adder.v]"]
  node_subtractor["Full Subtractor<br/>[full_subtractor.v]"]
  node_mux2["2:1 Multiplexer<br/>[mux_2_1.v]"]
  node_mux4["4:1 Multiplexer<br/>[mux_4_1.v]"]
  node_mux64["Wide Multiplexer<br/>[mux_32_16.v]"]
end

subgraph group_seq["Sequential Logic"]
  node_dff["D Flip-Flop<br/>[d_ff.v]"]
  node_jkff["JK Flip-Flop<br/>[jk_ff.v]"]
  node_srff["SR Flip-Flop<br/>[sr_ff.v]"]
  node_asyncctr["Asynchronous Counter"]
  node_downctr["Down Counter<br/>[down_counter.v]"]
  node_upctr["Up Counter<br/>[up_counter.v]"]
  node_pipo["PIPO Register<br/>[pipo_register.v]"]
  node_piso["PISO Register<br/>[piso_register.v]"]
  node_sipo["SIPO Register<br/>[sipo_register.v]"]
  node_siso["SISO Register<br/>[siso_register.v]"]
end

subgraph group_fsm["Finite State Machines"]
  node_togglefsm["Toggle FSM<br/>[tfsm_110.v]"]
  node_seq1001["1001 Detector<br/>[seq_det_1001.v]"]
  node_seq1011["1011 Detector<br/>[seq_det_1011.v]"]
  node_seq1101["1101 Detector<br/>[seq_det_1101.v]"]
end

node_learner(("Learner"))

node_learner -->|"studies"| node_adder4
node_learner -->|"studies"| node_fulladder
node_learner -->|"studies"| node_subtractor
node_learner -->|"studies"| node_mux2
node_learner -->|"studies"| node_mux4
node_learner -->|"studies"| node_mux64
node_learner -->|"studies"| node_dff
node_learner -->|"studies"| node_jkff
node_learner -->|"studies"| node_srff
node_learner -->|"studies"| node_asyncctr
node_learner -->|"studies"| node_downctr
node_learner -->|"studies"| node_upctr
node_learner -->|"studies"| node_pipo
node_learner -->|"studies"| node_piso
node_learner -->|"studies"| node_sipo
node_learner -->|"studies"| node_siso
node_learner -->|"studies"| node_togglefsm
node_learner -->|"studies"| node_seq1001
node_learner -->|"studies"| node_seq1011
node_learner -->|"studies"| node_seq1101

click node_adder4 "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/combinational_circuits/adder/4bit_adder.v"
click node_fulladder "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/combinational_circuits/adder/full_adder.v"
click node_subtractor "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/combinational_circuits/subtractor/full_subtractor.v"
click node_mux2 "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/combinational_circuits/mux2%3A1/mux_2_1.v"
click node_mux4 "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/combinational_circuits/mux_4%3A1/mux_4_1.v"
click node_mux64 "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/combinational_circuits/mux_64%3A1/mux_32_16.v"
click node_dff "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/d_ff/d_ff.v"
click node_jkff "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/jk_ff/jk_ff.v"
click node_srff "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/sr_ff/sr_ff.v"
click node_asyncctr "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/asynchronous_counter/asynchronous_counter.v"
click node_downctr "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/down_counter/down_counter.v"
click node_upctr "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/up_counter/up_counter.v"
click node_pipo "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/pipo_register/pipo_register.v"
click node_piso "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/piso_register/piso_register.v"
click node_sipo "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/sipo_register/sipo_register.v"
click node_siso "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/siso_register/siso_register.v"
click node_togglefsm "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/FSM/toggle_110/tfsm_110.v"
click node_seq1001 "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/FSM/seq_1001/seq_det_1001.v"
click node_seq1011 "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/FSM/seq_1011/seq_det_1011.v"
click node_seq1101 "https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/FSM/seq_1101/seq_det_1101.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_adder4,node_fulladder,node_subtractor,node_mux2,node_mux4,node_mux64 toneBlue
class node_dff,node_jkff,node_srff,node_asyncctr,node_downctr,node_upctr,node_pipo,node_piso,node_sipo,node_siso toneAmber
class node_togglefsm,node_seq1001,node_seq1011,node_seq1101 toneMint
class node_learner toneIndigo
```

## Components

### Combinational Logic

- [4-bit Adder](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/combinational_circuits/adder/4bit_adder.v): `combinational_circuits/adder/4bit_adder.v`
- [Full Adder](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/combinational_circuits/adder/full_adder.v): `combinational_circuits/adder/full_adder.v`
- [Full Subtractor](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/combinational_circuits/subtractor/full_subtractor.v): `combinational_circuits/subtractor/full_subtractor.v`
- [2:1 Multiplexer](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/combinational_circuits/mux2%3A1/mux_2_1.v): `combinational_circuits/mux2:1/mux_2_1.v`
- [4:1 Multiplexer](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/combinational_circuits/mux_4%3A1/mux_4_1.v): `combinational_circuits/mux_4:1/mux_4_1.v`
- [Wide Multiplexer](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/combinational_circuits/mux_64%3A1/mux_32_16.v): `combinational_circuits/mux_64:1/mux_32_16.v`

### Sequential Logic

- [D Flip-Flop](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/d_ff/d_ff.v): `sequential_circuits/d_ff/d_ff.v`
- [JK Flip-Flop](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/jk_ff/jk_ff.v): `sequential_circuits/jk_ff/jk_ff.v`
- [SR Flip-Flop](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/sr_ff/sr_ff.v): `sequential_circuits/sr_ff/sr_ff.v`
- [Asynchronous Counter](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/asynchronous_counter/asynchronous_counter.v): `sequential_circuits/asynchronous_counter/asynchronous_counter.v`
- [Down Counter](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/down_counter/down_counter.v): `sequential_circuits/down_counter/down_counter.v`
- [Up Counter](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/up_counter/up_counter.v): `sequential_circuits/up_counter/up_counter.v`
- [PIPO Register](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/pipo_register/pipo_register.v): `sequential_circuits/pipo_register/pipo_register.v`
- [PISO Register](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/piso_register/piso_register.v): `sequential_circuits/piso_register/piso_register.v`
- [SIPO Register](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/sipo_register/sipo_register.v): `sequential_circuits/sipo_register/sipo_register.v`
- [SISO Register](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/sequential_circuits/siso_register/siso_register.v): `sequential_circuits/siso_register/siso_register.v`

### Finite State Machines

- [Toggle FSM](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/FSM/toggle_110/tfsm_110.v): `FSM/toggle_110/tfsm_110.v`
- [1001 Detector](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/FSM/seq_1001/seq_det_1001.v): `FSM/seq_1001/seq_det_1001.v`
- [1011 Detector](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/FSM/seq_1011/seq_det_1011.v): `FSM/seq_1011/seq_det_1011.v`
- [1101 Detector](https://github.com/vidharshanasri-ss/verilog-core-labs/blob/main/FSM/seq_1101/seq_det_1101.v): `FSM/seq_1101/seq_det_1101.v`

### Other components

- **Learner**

## Connections

- Learner → 4-bit Adder: studies (evidence: `README.md`)
- Learner → Full Adder: studies (evidence: `README.md`)
- Learner → Full Subtractor: studies (evidence: `README.md`)
- Learner → 2:1 Multiplexer: studies (evidence: `README.md`)
- Learner → 4:1 Multiplexer: studies (evidence: `README.md`)
- Learner → Wide Multiplexer: studies (evidence: `README.md`)
- Learner → D Flip-Flop: studies (evidence: `README.md`)
- Learner → JK Flip-Flop: studies (evidence: `README.md`)
- Learner → SR Flip-Flop: studies (evidence: `README.md`)
- Learner → Asynchronous Counter: studies (evidence: `README.md`)
- Learner → Down Counter: studies (evidence: `README.md`)
- Learner → Up Counter: studies (evidence: `README.md`)
- Learner → PIPO Register: studies (evidence: `README.md`)
- Learner → PISO Register: studies (evidence: `README.md`)
- Learner → SIPO Register: studies (evidence: `README.md`)
- Learner → SISO Register: studies (evidence: `README.md`)
- Learner → Toggle FSM: studies (evidence: `README.md`)
- Learner → 1001 Detector: studies (evidence: `README.md`)
- Learner → 1011 Detector: studies (evidence: `README.md`)
- Learner → 1101 Detector: studies (evidence: `README.md`)
