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