Question: Say you have a 4-bit 2's complement number X[3:0] (so X3 is the most significant bit, X2 is the next most significant, etc.). Using
Say you have a 4-bit 2's complement number X[3:0] (so X3 is the most significant bit, X2 is the next most significant, etc.). Using only standard gates (AND, OR, NOT), and constant Os and 1s, divide X[3:0] by four (round toward negative infinity) and output it as a 4-bit 2's complement number Y[3:0]. Use as few gates as possible. (Hint: you can use very few gates indeed.) (L8) X3 X2 X1 Y3 Y2 Y1 YO Problem 4: I've had my fill of LC2K [8 points] Using only fill commands, write an LC2K program which loads the value 5 into reg 1, loads the value 7 into reg 2 and computes bitwise NOR of those two values, leaving the result in register 5 in as few lines as possible (you need to actually have the computer NOR those two values together!) (L5)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
