Rise and rise again until lambs become lions 授課老師:伍紹勳 課程助教:江長庭、柯俊先
Rise and rise again until lambs become lions Outlines Half adder Full adder LAB
Rise and rise again until lambs become lions Half adder Describing binary summation of two one-bit binary inputs – Two inputs x and y – Two outputs C(carry) and S(sum) Black box can be represented as
Rise and rise again until lambs become lions Half adder Design flow – Draw truth table – Then output is sum of product S = x’y + x y’ = x y C = x y x y C S x y S y x x y C
Rise and rise again until lambs become lions Full adder Describing binary summation of three one-bit binary inputs – Three inputs – Two outputs – Black box can be represented as
Rise and rise again until lambs become lions Full adder Design flow – Draw truth table – Then output is sum of product S = x y’C n ’ + x’y’C n + x yC n + x’yC n ’ = x y C n C n+1 = xy + xC n + yC n +xyC n = xy + xC n + yC n
Rise and rise again until lambs become lions LAB Using AND, OR, XOR to build a full adder 7408 (AND) 7486 (XOR) 7432 (OR)
Rise and rise again until lambs become lions DIP switch ( 指撥開關 ) 內部構造長得像這樣 LAB
Rise and rise again until lambs become lions DIP switch ( 指撥開關 ) 一般用法 LAB 用紅紅褐電阻即可 從這裡取出訊號做為 input