Skip to content

LijinWilson/4-bit-arithmetic-logic-unit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Here is a professional, clear, and impressive README snippet for your 4-bit ALU GitHub project. You can copy-paste and modify it as per your repository structure:


🚀 4-bit ALU Design (Verilog)

📝 Overview

This project implements a 4-bit Arithmetic Logic Unit (ALU) using Verilog HDL. The ALU is a fundamental building block in any processor, capable of performing various arithmetic and logical operations on 4-bit input operands.


Features

✅ Supports 8 operations:

Select Operation Description
000 Addition Adds two 4-bit numbers
001 Subtraction Subtracts b from a
010 Bitwise AND Performs a & b
011 Bitwise OR Performs a | b
100 Bitwise XOR Performs a ^ b
101 Bitwise NOT Performs ~a
110 Transfer b Outputs b
111 Transfer a Outputs a

Carry detection for addition and subtraction ✅ Zero flag for result validation ✅ Fully synthesizable and test bench verified ✅ Structured and readable code for easy learning


🛠️ Project Files

  • design.v – ALU module implementation
  • testbench.v – Comprehensive test bench

📈 Simulation Results

Waveforms demonstrate correct operation for all cases with proper carry and zero flag handling. (Add your ModelSim/Verilog simulation screenshots here for better impact) image


🎯 Applications

🔹 Educational purpose: digital design and computer architecture labs 🔹 Base for designing multi-bit ALUs and processors 🔹 Prepares for VLSI interviews and coding rounds 🔹 Enhances understanding of control logic and datapath design


💡 Future Improvements

  • Integrate multiplication and shift operations
  • Extend to 8-bit ALU
  • FPGA implementation with real-time testing
  • Combine with control unit to design a simple CPU

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published