Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The input to the circuit is a 5 bit 2s complement integer B 4 B 3 B 2 B 1 B 0 and the output

image text in transcribed

image text in transcribed

The input to the circuit is a 5 bit 2s complement integer B4B3B2B1B0 and the output is its absolute integer value G.

1. What is the instruction for the arithmetic function that finds the absolute value of a Negative Number G= absolute value of B.

Does that need the use of bit G ? How will this bit be set? Verify for the maximum possible output.

2. What opcode can be used to detect a negative number? Verify for the minimum negative number.

A bare-bones Arithmetic Logic Unit (ALU) design is proposed. Note that simple inverters are used instead of XOR gates to find B's complement. Table below shows the various operations possible with the code (OpCode) given to the control lines S2S1SoCinIt also has ZERO and SIGN detect. in Operation Function G-A G=A+1 G=A+B G A +B+1 G=A+B G=A+B+1 G=A-1 G=A Transfer A Increment A Addition Add with carry input of 1 A plus 1s complement of Subtraction Decrement A Transfer A AND OR XOR NOT (1s complement) G-AB G-A A bare-bones Arithmetic Logic Unit (ALU) design is proposed. Note that simple inverters are used instead of XOR gates to find B's complement. Table below shows the various operations possible with the code (OpCode) given to the control lines S2S1SoCinIt also has ZERO and SIGN detect. in Operation Function G-A G=A+1 G=A+B G A +B+1 G=A+B G=A+B+1 G=A-1 G=A Transfer A Increment A Addition Add with carry input of 1 A plus 1s complement of Subtraction Decrement A Transfer A AND OR XOR NOT (1s complement) G-AB G-A

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

Step: 3

blur-text-image

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

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions