Download as pdf or txt
Download as pdf or txt
You are on page 1of 17

Elements of Computing Systems-1

Hack ALU

Dr. Jyothish Lal G, Assistant Professor (Sr. Gr)


Department of AI / Center for Computational Engineering and Networking (CEN)
Amrita School of AI, Coimbatore
Acknowledgment: Prof. Noam Nisan, Prof. Shimon Schocken
Von Neumann Architecture
In the von Neumann architecture,
data and instructions are stored in
binary form in memory, and the CPU
fetches instructions one at a time,
executes them, and moves to the
next instruction.

This architecture is the foundation of


most modern computers, including
personal computers, servers, and
many embedded systems.

EOC-1|B.TECH CSE (AI)|CEN|Dr. Jyothish 2


The Arithmetic Logical Unit

EOC-1|B.TECH CSE (AI)|CEN|Dr. Jyothish 3


The Arithmetic Logical Unit

EOC-1|B.TECH CSE (AI)|CEN|Dr. Jyothish 4


The Hack ALU

EOC-1|B.TECH CSE (AI)|CEN|Dr. Jyothish 5


The Hack ALU
To cause the ALU to compute a function, set
the control bits to one of the binary
combinations listed in the table.

EOC-1|B.TECH CSE (AI)|CEN|Dr. Jyothish 6


The Hack ALU in action: compute y-x

EOC-1|B.TECH CSE (AI)|CEN|Dr. Jyothish 7


The Hack ALU in action: compute x&y

EOC-1|B.TECH CSE (AI)|CEN|Dr. Jyothish 8


Opening up the Hack ALU black box

EOC-1|B.TECH CSE (AI)|CEN|Dr. Jyothish 9


The Hack ALU operation

EOC-1|B.TECH CSE (AI)|CEN|Dr. Jyothish 10


The Hack ALU output control bits

EOC-1|B.TECH CSE (AI)|CEN|Dr. Jyothish 11


The Hack ALU operation

EOC-1|B.TECH CSE (AI)|CEN|Dr. Jyothish 12


ALU operation example: compute !x

EOC-1|B.TECH CSE (AI)|CEN|Dr. Jyothish 13


ALU operation example: compute y-x

EOC-1|B.TECH CSE (AI)|CEN|Dr. Jyothish 14


out

EOC-1|B.TECH CSE (AI)|CEN|Dr. Jyothish 15


Hack ALU implementation

demo

EOC-1|B.TECH CSE (AI)|CEN|Dr. Jyothish 16


Thank You

EOC-1|B.TECH CSE (AI)|CEN|Dr. Jyothish 17

You might also like