Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Human Centered And Error Resilient Systems Development Ifip Wg 13 2/13 5 Joint Working Conference 6th International Conference On Human Centered

Authors: Cristian Bogdan ,Jan Gulliksen ,Stefan Sauer ,Peter Forbrig ,Marco Winckler ,Chris Johnson ,Philippe Palanque ,Regina Bernhaupt ,Filip Kis

1st Edition

331944901X, 978-3319449012

More Books

Students also viewed these Programming questions