16
Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto Rico Department of Electrical and Computer Engineering

Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto

Embed Size (px)

Citation preview

Page 1: Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto

Hardware Design of an Arithmetic Logic Unit

(ALU)

Felix NobleMirayma V. Rodriguez

Agnes Velez

University of Puerto RicoMayagüez Campus

Mayagüez, Puerto RicoDepartment of Electrical and Computer Engineering

Page 2: Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto

Outline

• Introduction• ALU Design

– Full Adder– A input device– B input device– Logical Operation Device

• Conclusion• Future Work• References• Acknowledgements

Page 3: Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto

Introduction

– An arithmetic-logic unit (ALU) is the part of a computer processor (CPU) that carries out arithmetic and logic operations on the operands in computer instruction words.

– The ALU includes storage places for input operands, operands that are being added, the accumulated result (stored in an accumulator), and shifted results. The flow of bits and the operations performed on them in the subunits of the ALU is controlled by gated circuits.

Page 4: Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto

ALU Design

– The ALU is a combinational circuit that continuously computes its outputs as a function of its inputs. A change in its inputs will produce valid outputs by the strobe time of the current clock cycle.

– This ALU uses only one bus and consist of a full adder, two inputs, A and B, and a logical device, which is the part in charge of the ands, ors, and shifts.

Page 5: Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto

Full Adder

– The 8-bit full adder consists of eight 1-bit full adders. Each 1-bit adder has three inputs and two outputs. It receives two bits to add and a carry-in if needed. The outputs are the sum and a carry-out if generated.

Full Adder

Full 8-bit adder

Page 6: Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto

A input device

– The A input part of the chip consist of 8 AND gates and three OR gates connected as follows to makes the instruction of ADD and SUB corresponding to the Register A. This part also increments the Program counter by three.

Page 7: Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto

B input device

– The register B is also represented with a group of 8 D-Flip-Flops. The input part of the chip consists of eight XOR gates, and two OR gates connected to deal with the NEG, NOT and SUB instructions.

Page 8: Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto

Logical Operation Device

– The 8-bit full adder consists of eight 1-bit full adders. Each 1-bit adder has three inputs and two outputs. It receives two bits to add and a carry-in if needed. The outputs are the sum and a carry-out if generated.

Page 9: Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto

Sub-ALU

Page 10: Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto

ALU

Page 11: Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto

ALU

Page 12: Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto

ConclusionThe Arithmetic Logic Unit was implemented by doing a

hardware design of the unit. The way the design was

made is very easy to understand since it was made by

doing block diagrams of the different parts of the

device. This abstraction made us understand better

each part of the unit and realize how important these

parts are for the correct operation of the ALU. The bus

that was utilized made it easier to understand the

circuit even dough in the practical area this design will

be much slower than designs using two or three buses.

In conclusion this ALU device will work with the SRC

architecture because it implements every instruction of

the SRC.

Page 13: Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto

Future Work

There could be more projects based in the

implementation of the Arithmetic Logic Unit.

First the ALU can be improved in many ways

by changing parts of the design or adding

busses to the circuit. This can lead to create

the entire Control Processing Unit of the SRC.

Having done the CPU the entire processor

can be done too.

Page 14: Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto

References

Computer Systems Design and ArchitectureSecond EditionVincent P. Heuring, Harry F. Jordan

http://ww.google.com

http://www.ece.uprm.edu/~nayda/Courses/arq/Projects/Proj2/VHDL/

Page 15: Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto

Acknowledgements

• Chori’s Café • Sociedad de los Buhos• Prof.Nayda Santiago

Page 16: Hardware Design of an Arithmetic Logic Unit (ALU) Felix Noble Mirayma V. Rodriguez Agnes Velez University of Puerto Rico Mayagüez Campus Mayagüez, Puerto

¿Preguntas?