Unformatted text preview: (a) Write a logic expression, in terms of x2, x1, x0, y2, y1, y0, for the statement "X = Y." (b) One approach to deciding whether X is less than Y is: Examine the leftmost bits x2, y2. If x2 = 0 and y2 = 1 then X < Y. If x2 = y2, then examine the bits x1, y1. If x1 = 0 and y1 = 1 then X < Y. If x1 = y1, then examine the bits x0, y0. If x0 = 0 and y0 = 1 then X < Y. Following this approach, write one logic expression, in terms of x2, x1, x0, y2, y1, y0, for the statement "X < Y." (c) Write a logic expression for the statement "X ≤ Y." 6. The numbers X, Y, Z have the respective 3bit binary representations x2 x1 x0, y2 y1 y0, z2 z1 z0. Write a logic expression, in terms of x2, x1, x0, y2, y1, y0, z2, z1, z0, for the statement "X, Y and Z all have the same value."...
View
Full
Document
This note was uploaded on 04/17/2008 for the course ECE 211 taught by Professor Nestor during the Fall '07 term at Lafayette.
 Fall '07
 nestor

Click to edit the document details