0% found this document useful (0 votes)
6 views

Arithmetic Exercise

Uploaded by

Nurin Nabilah
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Arithmetic Exercise

Uploaded by

Nurin Nabilah
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Exercise Arithmetic

1. Calculate and determine the result of the following operation


1001 1101 10112 + 101 0112

2. Determine sign-magnitude 8 bit binary number for below


a) +119 b) - 108

3. Solve the problem -1210 + (- 410). Shows its necessary step and provide answer in 8 bit binary.

4. Express the decimal number below as an 8-bit binary number in 2's complement form.
a. -86
b. -148
5. Calculate and determine the result of the following operation
1001 1101 10112 + 101 0112

6. Solve value of 0110 0111+ 0101 0011 by using BCD addition.


7. Perform the following additions using 8-bit 2’s complement -24 to +26. Show all necessary addition steps

8. Show the steps to represent hexa-decimal below in 2’s complement form. Use 8 bits only
a. –C716
b. 3F16

9. Convert the following numbers to BCD number and complete the operation. Show all necessary addition steps.
a. 810 + 910
b. 1610 + 1610
c. 7610 + 6910
d. 4410 + 7910
e. 5610 + 4910
f. 310 + 610
g. 610 + 810
h. 4810 + 5710

10. By using 2's complement method (8 bits), solve the following arithmetic operation:
a) -2410 - 3210
b) 11810-6710
c) 1001 01102-010110112
d) 4510-1210
e) 100011002 - 011100112
f) 5510 - 6410
g) 3210 - 1910

11. An 8 bit parallel adder/subtractor is used to add two integers with two’s complement representation. The
range of the integers is -128 (decimal) to +127 (decimal). Answer the question below by giving the output for
the specified input. Change all numbers to an 8 bit binary representation and show the 2’s complement
operation involved.
a. 3F16 – 2816
b. + 3010 – 2010

12. Determine the result of Sum and Carry for the following operation
a. 12 + 12
b. 12 + 12 + 12
Exercise Arithmetic

13. Determine the result of Difference and Borrow for each of the following operation

a. 02 - 12
b. 12 - 12 - 12
c. 02 - 12 - 12

14. A full-adder has Cin = 1. What are the sum and the output carry when A = 1 and B =0? Then draw full-adder
logic symbol.

15. Draw logic circuit for half subtractor.

16. A full subtractor is made of two half subtractor and an OR –gate. Complete table below to summarize the
operation of a full subtractor.

A B BORin D BORout
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1

17. Complete Table 1 by referring to the following equation.


X = (A+ B) – C
A B C Difference Borrow
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1

18. Construct the truth table and draw the logic circuit diagram for a half adder.
Exercise Arithmetic

19. A full subtractor has three inputs namely the A, B and BORin and the outputs are DIFF and BORout. Provide the
completed truth table for the full subtractor.

20. Construct the truth table and draw a circuit for a binary half adder and half substractor.

A B Sum Carry
0 0
0 1
1 0
1 1

A B Diff Borrow
0 0
0 1
1 0
1 1

21. A circuit with the function in figure below is to be design, combining two operations, addition and subtraction.
The equation given by
X = Input A + Input B – Input C

ADDER CARR SUBTRAC BORROW


A Y TOR
C
B DIFF
SUM
Figure 2
Assume there are 3 outputs, CARRY, DIFF and BORROW. Follow the steps given to produce the result
a. Construct the truth table relating the inputs (A,B and C) and outputs by using input A as MSB, input C as LSB
and outputs of CARRY, DIFF and BORROW

A B C CARRY DIFF BORROW


Exercise Arithmetic

22. The waveform of Figure 4 are applied to the inputs based on the following equation:

Q = [Input A + Input B] - Input C


Determine the Q waveform

The waveform of Figure above are applied to the inputs of comparator as shown below.
Determine the output waveform of a comparator.

23. Illustrate 4 bit parallel adder by using block diagram following binary number:

10012+11012
Verify your answer with long hand method.

24. Draw a block diagram of 4 bit parallel adder to add the following binary number: 11012 + 10112 Label
all input accordingly.

25. Draw the parallel adder using input given below and show the result of SUM and CarryOut:

Input A = 1011
Input B = 0100

You might also like