ENGG1100|Term2|201415 题香港中文大學 The Chinese University of Hong Kong Truth table example for "AND operation X WE X Y are 2 digital input signals XANDY We can use a"Truth table"to find the output Because there are n=2 inputs: X,Y So there are 2n=4 rows in the truth table Steps to fill in the table Input: Input: Output W: Fill in Y: 0, 1, 0, 1(from top)x=eat Y=drink XANDY Fill in x:0,0,1,1 ve Fill in the outputs 0 0 Compute output 0 Output=1 only when 0 0 both inputs are 1 V15.02.09 Introduction 17ENGG1100 | Term 2 | 2014-15 Truth table example for “AND” operation • X , Y are 2 digital input signals • We can use a “Truth table” to find the output • Because there are n=2 inputs: X,Y • So there are 2n=4 rows in the truth table • Steps to fill in the table – Fill in Y: 0,1,0,1 (from top) – Fill in X: 0,0,1,1 – Fill in the outputs – Compute output: – Output=1 only when both inputs are 1 V15.02.09 Introduction 17 Input : X=eat Input: Y=drink Output W= X AND Y =live 0 0 0 0 1 0 1 0 0 1 1 1 X Y W= X AND Y