Skip to content

FPGA-based ALU implementation using Lucid on Alchitry, supporting arithmetic, boolean, comparison, and shift operations with FSM-based input handling.

License

Notifications You must be signed in to change notification settings

KenLZY/Computation-Structure-Lab3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computation-Structure-Lab3

FPGA-based ALU implementation using Lucid on Alchitry, supporting arithmetic, boolean, comparison, and shift operations with FSM-based input handling.

Features

✅ 32-bit ALU operations
✅ Boolean logic, arithmetic, comparison, and shifting
✅ FSM-based input handling
✅ Implemented using Lucid HDL in Alchitry Labs
✅ Auto Tester

ALU Operations

Operation ALUFN Code Description
Addition 000000 A + B
Subtraction 000001 A - B
MUL 000010 A & B
AND 011000 A | B
OR 011110 A ^ B
XOR 010110 A << B
"A" 011010 A >> B
SHL 100000 A == B
SHR 100001 A < B
SRA 100011 A < B
CMPEQ 110011 A < B
CMPLT 110101 A < B
CMPLE 110111 A < B

Files & Modules

  • alu.luc – ALU core logic
  • boolean.luc – Boolean logic operations
  • adder.luc – Arithmetic operations
  • shift.luc – Shift operations
  • compare.luc – Comparison operations
  • alu_manual_tester.luc – Manual Tester
  • alu_fsm - Brain of the operation

About

FPGA-based ALU implementation using Lucid on Alchitry, supporting arithmetic, boolean, comparison, and shift operations with FSM-based input handling.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •