Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started