Building Blocks of A CPU
Building Blocks of A CPU
Execute
Arithmetic and
e.g., keyboard, Logic Unit (ALU) e.g., monitor,
mouse, scanner,
printer,
microphone
speakers
1-5
A pictorial representation of AND, OR, XOR, and NOT
gates as well as their input and output values
1-6
Examples
• Determine the output of the following circuits using
the given inputs:
0-7
Flip-flops
• Flip-flop: A circuit built from gates that can store one
bit.
• One input line is used to set its stored value to 1
• One input line is used to set its stored value to 0
• While both input lines are 0, the most recently stored value is
preserved
1-8
S-R Flip flop
0-9
Decoder
0-10
Multiplexor
0-11