Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1.44 KB

alu.md

File metadata and controls

38 lines (32 loc) · 1.44 KB

8-bit ALU Project

8 Bit ALU for Computational Structures 1D. Based on Lucid with the Mojo v3 SPARTAN-6 FPGA.

Getting Started

Install the Mojo IDE and Xilinx ISE Design Suite, as described by the Mojo FPGA Beginner's Guide.

Mini Hardware Project

The main file for the mini hardware: calls the evaluator.luc and blinker.luc modules.

Manages the 3 full adder inputs A, B and C.

Takes the value of A,B and C, and returns a sum and carry.
A comparator receives another set of sum and carry from an IRL IC system, and determines their equality.

ALU Convention

Operation ALUFN[5:0]
ADD 000000
SUB 000001
MUL 000010
DIV 000011
AND 011000
OR 011110
XOR 010110
"A" 011010
SHL 100000
SHR 100001
SRA 100011
CMPEQ 110011
CMPLT 110101
CMPLE 110111