Digital System Design Review
Half Adder 1 1 +1 +1 2 10 C A B S 1 Add two binary numbers A0 , B0 -> single bit inputs S0 -> single bit sum C1 -> carry out C A B S 1 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 Dec Binary 1 1 +1 +1 2 10
Multiple-bit Addition Consider single-bit adder for each bit position. A3 A2 A1 A0 0 1 0 1 A 0 1 1 1 B3 B2 B1 B0 B Ai +Bi Ci Si Ci+1 0 1 0 1 0 1 1 1 A B 1 Each bit position creates a sum and carry
Full Adder Full adder made of several half adders
Full Adder A full adder can be made from Hardware repetition simplifies hardware design A full adder can be made from two half adders (plus an OR gate).
Full Adder Putting it all together Single-bit full adder Common piece of computer hardware Block Diagram
4-Bit Adder C 1 1 1 0 A 0 1 0 1 B 0 1 1 1 S 1 1 0 0
4-bit Subtractor: E = 1 +1 Add A to B’ (one’s complement) plus 1 That is, add A to two’s complement of B D = A - B
Adder- Subtractor Circuit
Register with Parallel Load Register: Group of Flip-Flops Ex: D Flip-Flops Holds a Word (Nibble) of Data Loads in Parallel on Clock Transition Asynchronous Clear (Reset)
Register with Load Control New data loaded on next positive clock edge Load Control = 0 Old data reloaded on next positive clock edge
Shift Registers Cascade chain of Flip-Flops Bits travel on Clock edges Serial in – Serial out, can also have parallel load / read
Serial Transfer Data transfer one bit at a time Data loopback for register A Time T0 T1 T2 T3 T4 Reg A 1011 1101 1110 0111 Reg B 0011 1001 1100 0110 1011
Serial Addition (D Flip-Flop)
Universal Shift Register Clear Clock Shift Right Left Load Read Control
Binary Ripple Counter