Implementation of the adder chips and the ALU
1. Half-Adder



2. Full-Adder



3. Multi-Bit Adder




4. Incrementer
A special-purpose chip dedicated to adding the constant 1 to a given number.



5. Arithmetic Logical Unit
The Hack ALU computes a fixed set of functions out ¼ fiðx; yÞ where x and y are the chip’s two 16-bit inputs, out is the chip’s 16-bit output, and fi is an arithmetic or logical function selected from a fixed repertoire of eighteen possible functions. We instruct the ALU which function to compute by setting six input bits, called control bits, to selected binary values.






'Book > 밑바닥부터 만드는 컴퓨팅 시스템' 카테고리의 다른 글
| [Chapter 2] Boolean Arithmetic (0) | 2023.01.20 |
|---|---|
| [Project 1] Boolean Logic (0) | 2023.01.20 |
| [Chapter 1] Boolean Logic (0) | 2023.01.18 |