ALU-4
Bit-8 Function
1.
Objectives
-
To design ALU
by VHDL
.
-
To familiarXilinx
CAD Tool
( Using Command
File to Simulation)
.
-
To create main
VHDL file to link all component
2.
Pre-Discussion
3.
Experimental
4.
Project
-
Design ALU with 8 bits
- 4 function(add, sub, AND, OR)
5.
Post-Discussion
-
4
bit ALU (4 function : ADD, SUB, AND, OR)
e.g. 0x2 ADD
0x3 = 0x5 => 4ssd_display : 2 abgf_seg
3 5
e.g. 0x2 SUB
0x3 = - 0x1 => 4ssd_display : 2 g&d_seg
3 1(d-seg : nagative) e.g. 0x2 AND 0x3 = 0x2 =>
4ssd_display : 2 egc_seg 3 2
e.g. 0x2 OR
0x3 = 0x2 => 4ssd_display : 2 egc_seg
3 3
e.g. 0xF ADD 0xF = 0x1E
=> 4ssd_display : 2 abgf&h_seg 3
E (h-seg : carry)
e.g. 0x3 SUB
0x2 = +0x1 => 4ssd_display : 3 g_seg
2 1
input : use
sw1 ~ sw8, btn1 ~ 4
-
Drawfunction
block diagram to implement above spec.