GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Faezeh-Misaghi/Hash-Generator-RTL: Verilog-based Hash Generator designed with Huffman methodology (Datapath & FSM) and synthesized using fundamental logic cells.

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
Behavioral-RTL
Behavioral-RTL
 
 
Structural-Synthesis
Structural-Synthesis
 
 
assets
assets
 
 
README.md
README.md
 
 

Repository files navigation

Hardware Implementation of a Custom Hash Generator

šŸ‘„ Contributors

  • Minoo Sanjari
  • Faezeh Misaghi

Welcome to the repository of my Custom Hash Generator hardware design. This project focuses on the hardware implementation of a cryptographic-style hash algorithm, developed in two distinct phases: Behavioral RTL Design and Gate-Level Structural Synthesis.

The system architecture is meticulously designed using the Huffman methodology, strictly separating the Datapath and the Control Unit (FSM) for optimal synchronization and resource management.


šŸ“Œ Overview

Phase 1: Behavioral RTL Design

In this phase, the core hash generation algorithm was implemented at the Register Transfer Level (RTL) using Verilog.

  • PRNG Module (Pseudo-Random Number Generator): Utilizes a 6-bit shift register with XOR feedback and a 3-bit counter to generate randomized selection indices.
  • Hash Processor: Processes a 128-bit input message divided into four 32-bit words over 64 rounds. The datapath integrates a custom Register File, a ROM for algorithm constants, an Adder, and a dynamic Step Module featuring a Left Barrel Shifter.
  • Control Unit: Designed as a FSM with explicit Handshaking signals (start_rnd, done_rnd) to coordinate the PRNG and the main Hash processor.

Phase 2: Structural Synthesis & Gate-Level Optimization (Phase2-Structural-Synthesis folder)

This phase demonstrates low-level hardware synthesis by mapping the behavioral design onto fundamental programmable logic cells (C1, C2, S1, S2).

Structural Controller

  • Scaled Architecture: The datapath was scaled down to process 8-bit words for synthesis feasibility.
  • Hardware Multiplier: The rotational shifter was replaced by a custom 4x4 Array Multiplier, built from scratch using cascaded Half Adders (HA) and Full Adders (FA).
  • Gate-Level Optimization: The design was highly optimized to minimize the total gate count.
  • šŸ“„ Comprehensive Technical Report: For an in-depth breakdown of how the behavioral modules were manually mapped to the fundamental logic cells, along with the complete synthesis results, schematic derivations, and mathematical models, please refer to the report.pdf file included in this phase's directory.

šŸ“ Repository Structure

.
ā”œā”€ā”€ assets/                  # Hardware architecture diagrams (Datapath, FSM)
ā”œā”€ā”€ Behavioral-RTL/          # Phase 1: Behavioral RTL implementation
ā”œā”€ā”€ Structural-Synthesis/    # Phase 2: Gate-level structural synthesis
│   ā”œā”€ā”€ src               
│   └── report.pdf          
└── README.md


šŸ—ļø Hardware Architecture

1. Pseudo-Random Number Generator

  • Datapath:

    PRNG Datapath

  • FSM :

    PRNG FSM

2. Main Hash Processor

  • Datapath:

    Hash Datapath

  • FSM :

    Hash FSM


šŸ› ļø Tools & Technologies Used

  • Hardware Description Language: Verilog HDL
  • Simulation & Verification: ModelSim
  • Design Methodology: Huffman (Datapath + Controller separation), Handshaking, One-Hot State Encoding
  • Gate-Level Optimization: Custom C++ scripts for logic cell counting and resource monitoring

About

Verilog-based Hash Generator designed with Huffman methodology (Datapath & FSM) and synthesized using fundamental logic cells.

Topics

datapath-designdigital-designfsmhardware-designshash-generatorhashing-algorithmmodelsimrtlverilog

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.