# snbk001/verilog-design-examples architecture

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

- Interactive diagram: https://gitdiagram.com/snbk001/verilog-design-examples
- Repository: https://github.com/snbk001/verilog-design-examples

## Overview

This repository is a catalog of independent Verilog hardware-design examples, each documented alongside a testbench. The principal workflow is selecting a design example and exercising its hardware behavior with its corresponding testbench; the README lists the examples but does not document calls or connections between them. The graph therefore preserves the documented design capabilities without implying that examples form a combined system. Source excerpts were unavailable, so implementation-level relationships are omitted.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_arithmetic["Arithmetic"]
  node_half_adder["Half adder<br/>[half_adder.v]"]
  node_full_adder["Full adder<br/>[full_adder_1bit.v]"]
  node_fa_ha_1["Adder via half adder"]
  node_fa_ha_4["4-bit adder via half adders<br/>[full_add_4bit.v]"]
  node_alu["ALU<br/>[alu.v]"]
end

subgraph group_logic["Logic and detection"]
  node_mux_case["Case mux<br/>[mux_case.v]"]
  node_mux_expr["Expression mux<br/>[mux_always.v]"]
  node_mux_cond["Conditional mux<br/>[mux_condt.v]"]
  node_mealy_non["Mealy non-overlap detector<br/>[mealy_nonol.v]"]
  node_mealy_overlap["Mealy overlap detector<br/>[mealy_ol.v]"]
  node_moore_non["Moore non-overlap detector<br/>[moore_nonol.v]"]
  node_moore_overlap["Moore overlap detector<br/>[moore_ol.v]"]
  node_ones_count["Count ones<br/>[no_1s.v]"]
  node_gray["Binary to Gray<br/>[bin_gry.v]"]
  node_custom["Custom design<br/>[custdesign.v]"]
end

subgraph group_sequential["Sequential circuits"]
  node_sync_dff["Synchronous-reset DFF<br/>[dff_sync.v]"]
  node_async_dff["Asynchronous-reset DFF<br/>[dff_async.v]"]
  node_updown["3-bit up/down counter<br/>[cntr_3ud.v]"]
  node_counter["4-bit random counter<br/>[counter4bit.v]"]
  node_divider["Clock divider<br/>[clkdivider.v]"]
  node_pipo["PIPO shift register<br/>[pipo_shift.v]"]
  node_universal_shift["Universal shift register<br/>[univ_shift.v]"]
  node_lfsr["4-bit LFSR<br/>[lfsr.v]"]
end

subgraph group_storage["Storage and transfer"]
  node_single_ram[("Single-port RAM<br/>[singleport_ram.v]")]
  node_dual_ram[("Dual-port RAM<br/>[dualport_ram.v]")]
  node_sync_fifo[("Synchronous FIFO<br/>[syncfifo.v]")]
  node_async_fifo[("Asynchronous FIFO<br/>[asyncfifo.v]")]
end

subgraph group_multipliers["Multipliers"]
  node_seq_mult["Sequential multiplier<br/>[seqmult.v]"]
  node_pipeline_mult["Pipelined multiplier<br/>[pipeline.v]"]
end

click node_half_adder "https://github.com/snbk001/verilog-design-examples/blob/main/Half%20Adder/half_adder.v"
click node_full_adder "https://github.com/snbk001/verilog-design-examples/blob/main/Full%20Adder/full_adder_1bit.v"
click node_fa_ha_1 "https://github.com/snbk001/verilog-design-examples/blob/main/1%20bit%20Full%20Adder%20using%20HA/full_half_add_1bit.v"
click node_fa_ha_4 "https://github.com/snbk001/verilog-design-examples/blob/main/4%20bit%20FA%20using%20HA/full_add_4bit.v"
click node_alu "https://github.com/snbk001/verilog-design-examples/blob/main/ALU/alu.v"
click node_mux_case "https://github.com/snbk001/verilog-design-examples/blob/main/Mux%20using%20case/mux_case.v"
click node_mux_expr "https://github.com/snbk001/verilog-design-examples/blob/main/Mux%20expresseion/mux_always.v"
click node_mux_cond "https://github.com/snbk001/verilog-design-examples/blob/main/Mux%20Conditional/mux_condt.v"
click node_mealy_non "https://github.com/snbk001/verilog-design-examples/blob/main/Mealy%20Nonoverlap/mealy_nonol.v"
click node_mealy_overlap "https://github.com/snbk001/verilog-design-examples/blob/main/Mealy%20Overlap/mealy_ol.v"
click node_moore_non "https://github.com/snbk001/verilog-design-examples/blob/main/Moore%20Nonoverlap/moore_nonol.v"
click node_moore_overlap "https://github.com/snbk001/verilog-design-examples/blob/main/Moore%20Overlap/moore_ol.v"
click node_ones_count "https://github.com/snbk001/verilog-design-examples/blob/main/Number%20of%201s/no_1s.v"
click node_gray "https://github.com/snbk001/verilog-design-examples/blob/main/Binary%20to%20Gray/bin_gry.v"
click node_custom "https://github.com/snbk001/verilog-design-examples/blob/main/Custom%20Design/custdesign.v"
click node_sync_dff "https://github.com/snbk001/verilog-design-examples/blob/main/Sync%20DFF/dff_sync.v"
click node_async_dff "https://github.com/snbk001/verilog-design-examples/blob/main/Async%20DFF/dff_async.v"
click node_updown "https://github.com/snbk001/verilog-design-examples/blob/main/3%20bit%20up_down%20counter/cntr_3ud.v"
click node_counter "https://github.com/snbk001/verilog-design-examples/blob/main/4%20bit%20counter/counter4bit.v"
click node_divider "https://github.com/snbk001/verilog-design-examples/blob/main/Clock%20Divider/clkdivider.v"
click node_pipo "https://github.com/snbk001/verilog-design-examples/blob/main/PIPO/pipo_shift.v"
click node_universal_shift "https://github.com/snbk001/verilog-design-examples/blob/main/n%20bit%20universal%20shift%20register/univ_shift.v"
click node_lfsr "https://github.com/snbk001/verilog-design-examples/blob/main/4%20bit%20LFSR/lfsr.v"
click node_single_ram "https://github.com/snbk001/verilog-design-examples/blob/main/Single%20Port%20RAM/singleport_ram.v"
click node_dual_ram "https://github.com/snbk001/verilog-design-examples/blob/main/Dual%20Port%20RAM/dualport_ram.v"
click node_sync_fifo "https://github.com/snbk001/verilog-design-examples/blob/main/Sync%20FIFO/syncfifo.v"
click node_async_fifo "https://github.com/snbk001/verilog-design-examples/blob/main/Async%20FIFO/asyncfifo.v"
click node_seq_mult "https://github.com/snbk001/verilog-design-examples/blob/main/Sequential%20Multiplier/seqmult.v"
click node_pipeline_mult "https://github.com/snbk001/verilog-design-examples/blob/main/Pipeline%20Multiplier/pipeline.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_half_adder,node_full_adder,node_fa_ha_1,node_fa_ha_4,node_alu toneBlue
class node_mux_case,node_mux_expr,node_mux_cond,node_mealy_non,node_mealy_overlap,node_moore_non,node_moore_overlap,node_ones_count,node_gray,node_custom toneAmber
class node_sync_dff,node_async_dff,node_updown,node_counter,node_divider,node_pipo,node_universal_shift,node_lfsr toneMint
class node_single_ram,node_dual_ram,node_sync_fifo,node_async_fifo toneRose
class node_seq_mult,node_pipeline_mult toneIndigo
```

## Components

### Arithmetic

- [Half adder](https://github.com/snbk001/verilog-design-examples/blob/main/Half%20Adder/half_adder.v): `Half Adder/half_adder.v`
- [Full adder](https://github.com/snbk001/verilog-design-examples/blob/main/Full%20Adder/full_adder_1bit.v): `Full Adder/full_adder_1bit.v`
- [Adder via half adder](https://github.com/snbk001/verilog-design-examples/blob/main/1%20bit%20Full%20Adder%20using%20HA/full_half_add_1bit.v): `1 bit Full Adder using HA/full_half_add_1bit.v`
- [4-bit adder via half adders](https://github.com/snbk001/verilog-design-examples/blob/main/4%20bit%20FA%20using%20HA/full_add_4bit.v): `4 bit FA using HA/full_add_4bit.v`
- [ALU](https://github.com/snbk001/verilog-design-examples/blob/main/ALU/alu.v): `ALU/alu.v`

### Logic and detection

- [Case mux](https://github.com/snbk001/verilog-design-examples/blob/main/Mux%20using%20case/mux_case.v): `Mux using case/mux_case.v`
- [Expression mux](https://github.com/snbk001/verilog-design-examples/blob/main/Mux%20expresseion/mux_always.v): `Mux expresseion/mux_always.v`
- [Conditional mux](https://github.com/snbk001/verilog-design-examples/blob/main/Mux%20Conditional/mux_condt.v): `Mux Conditional/mux_condt.v`
- [Mealy non-overlap detector](https://github.com/snbk001/verilog-design-examples/blob/main/Mealy%20Nonoverlap/mealy_nonol.v): `Mealy Nonoverlap/mealy_nonol.v`
- [Mealy overlap detector](https://github.com/snbk001/verilog-design-examples/blob/main/Mealy%20Overlap/mealy_ol.v): `Mealy Overlap/mealy_ol.v`
- [Moore non-overlap detector](https://github.com/snbk001/verilog-design-examples/blob/main/Moore%20Nonoverlap/moore_nonol.v): `Moore Nonoverlap/moore_nonol.v`
- [Moore overlap detector](https://github.com/snbk001/verilog-design-examples/blob/main/Moore%20Overlap/moore_ol.v): `Moore Overlap/moore_ol.v`
- [Count ones](https://github.com/snbk001/verilog-design-examples/blob/main/Number%20of%201s/no_1s.v): `Number of 1s/no_1s.v`
- [Binary to Gray](https://github.com/snbk001/verilog-design-examples/blob/main/Binary%20to%20Gray/bin_gry.v): `Binary to Gray/bin_gry.v`
- [Custom design](https://github.com/snbk001/verilog-design-examples/blob/main/Custom%20Design/custdesign.v): `Custom Design/custdesign.v`

### Sequential circuits

- [Synchronous-reset DFF](https://github.com/snbk001/verilog-design-examples/blob/main/Sync%20DFF/dff_sync.v): `Sync DFF/dff_sync.v`
- [Asynchronous-reset DFF](https://github.com/snbk001/verilog-design-examples/blob/main/Async%20DFF/dff_async.v): `Async DFF/dff_async.v`
- [3-bit up/down counter](https://github.com/snbk001/verilog-design-examples/blob/main/3%20bit%20up_down%20counter/cntr_3ud.v): `3 bit up_down counter/cntr_3ud.v`
- [4-bit random counter](https://github.com/snbk001/verilog-design-examples/blob/main/4%20bit%20counter/counter4bit.v): `4 bit counter/counter4bit.v`
- [Clock divider](https://github.com/snbk001/verilog-design-examples/blob/main/Clock%20Divider/clkdivider.v): `Clock Divider/clkdivider.v`
- [PIPO shift register](https://github.com/snbk001/verilog-design-examples/blob/main/PIPO/pipo_shift.v): `PIPO/pipo_shift.v`
- [Universal shift register](https://github.com/snbk001/verilog-design-examples/blob/main/n%20bit%20universal%20shift%20register/univ_shift.v): `n bit universal shift register/univ_shift.v`
- [4-bit LFSR](https://github.com/snbk001/verilog-design-examples/blob/main/4%20bit%20LFSR/lfsr.v): `4 bit LFSR/lfsr.v`

### Storage and transfer

- [Single-port RAM](https://github.com/snbk001/verilog-design-examples/blob/main/Single%20Port%20RAM/singleport_ram.v): `Single Port RAM/singleport_ram.v`
- [Dual-port RAM](https://github.com/snbk001/verilog-design-examples/blob/main/Dual%20Port%20RAM/dualport_ram.v): `Dual Port RAM/dualport_ram.v`
- [Synchronous FIFO](https://github.com/snbk001/verilog-design-examples/blob/main/Sync%20FIFO/syncfifo.v): `Sync FIFO/syncfifo.v`
- [Asynchronous FIFO](https://github.com/snbk001/verilog-design-examples/blob/main/Async%20FIFO/asyncfifo.v): `Async FIFO/asyncfifo.v`

### Multipliers

- [Sequential multiplier](https://github.com/snbk001/verilog-design-examples/blob/main/Sequential%20Multiplier/seqmult.v): `Sequential Multiplier/seqmult.v`
- [Pipelined multiplier](https://github.com/snbk001/verilog-design-examples/blob/main/Pipeline%20Multiplier/pipeline.v): `Pipeline Multiplier/pipeline.v`
