• Home
  • Textbooks
  • Digital Design and Verilog HDL Fundamentals
  • Computer Arithmetic

Digital Design and Verilog HDL Fundamentals

Joseph Cavanagh

Chapter 5

Computer Arithmetic - all with Video Answers

Educators


Chapter Questions

01:35

Problem 1

For $n=8$, let $A$ and $B$ be two fixed-point binary numbers in $2 \mathrm{~s}$ complement representation, where $A=01101101$ and $B=11001111$. Determine $A+B^{\prime}+$ $1+B$, where $B^{\prime}$ is the 1 s complement.

Nick Johnson
Nick Johnson
Numerade Educator
04:46

Problem 2

Perform the indicated operations on the fixed-point numbers shown below in $2 \mathrm{~s}$ complement representation. In each case, indicate if there is an overflow.
(a)
(b)
$$
\text { +) } \begin{array}{rrrrrrrr}
0 & 0 & 1 & 1 & 0 & 1 & 1 & 0 \\
1 & 1 & 1 & 0 & 0 & 0 & 1 & 1 \\
\hline
\end{array}
$$
(c)
$$
\begin{array}{rrrrrrrr}
1 & 0 & 0 & 1 & 1 & 0 & 0 & 0 \\
0 & 0 & 1 & 0 & 0 & 0 & 1 & 0 \\
\hline
\end{array}
$$
(d)
$$
\begin{array}{rrrrrrrr}
0 & 0 & 1 & 1 & 0 & 1 & 1 & 0 \\
-) & 1 & 1 & 0 & 0 & 0 & 1 & 1 \\
\hline
\end{array}
$$

Jeff Vermeire
Jeff Vermeire
Numerade Educator

Problem 3

Let $A$ and $B$ be two fixed-point binary numbers in $2 \mathrm{~s}$ complement representation as shown below, where $A^{\prime}$ and $B^{\prime}$ are the Is complement of $A$ and $B$, respectively. Perform the indicated operations.
$$
A=10110001 \quad B=11100100
$$
(a) $A-(B+1)$
(b) $A^{\prime}+1+B^{\prime}+1$
(c) $A^{\prime}+1-\left(B^{\prime}+1\right)$

Check back soon!
05:00

Problem 4

Obtain the sum of the following unsigned hexadecimal numbers:
$$
\begin{array}{rrrrr}
1 & 2 & 3 & 4 & 5 \\
6 & 7 & 8 & 9 & \mathrm{~A} \\
\text { +) } & \mathrm{C} & \mathrm{D} & \mathrm{E} & \mathrm{F} \\
\hline
\end{array}
$$

Aaron Goree
Aaron Goree
Numerade Educator

Problem 5

Obtain the sum of the following $2 \mathrm{~s}$ complement radix 2 numbers:
$$
\begin{array}{rrrrrr}
1 & 1 & 1 & 1 & 1 & 0 \\
1 & 1 & 1 & 1 & 0 & 0 \\
1 & 1 & 1 & 0 & 0 & 0 \\
+ & 1 & 0 & 0 & 0 & 0 \\
\hline
\end{array}
$$

Check back soon!

Problem 6

Perform the following radix 2 subtraction using the 1 s complement method:
$$
\begin{array}{rrrrrrrr}
1 & 1 & 0 & 0 & 1 & 1 & 0 & 0 \\
0 & 0 & 1 & 1 & 0 & 0 & 1 & 1 \\
\hline
\end{array}
$$

Check back soon!
00:46

Problem 7

Obtain the sum of the following radix 5 numbers:
$$
\begin{array}{llll}
1 & 2 & 3 & 4 \\
4 & 3 & 2 & 1 \\
3 & 3 & 3 & 3 \\
\hline
\end{array}
$$

Monica Miller
Monica Miller
Numerade Educator

Problem 8

Perform a subtraction on the operands shown below, which are in radix complementation for radix 3 .
$$
\begin{array}{rrrrr}
0 & 2 & 0 & 2 & 1 \\
-) & 2 & 1 & 0 & 0 \\
\hline
\end{array}
$$

Check back soon!

Problem 9

Write the equations for two ways to detect overflow for two $n$-bit operands in fixed-point addition assuming radix complementation for radix 2 .

Check back soon!

Problem 10

Indicate whether overflow occurs for the following decimal numbers when they are converted to 8-bit fixed-point binary numbers for radix 2 for the indicated operations.
(a) $(+35)+(+42)$
(b) $(-62)-(+67)$
(c) $(-31)+(-34)$
(d) $(-31)-(+33)$

Check back soon!
02:19

Problem 11

Add the following numbers, which are shown in radix complementation. Obtain the sum in radix $4: 0201_{10}+321_4$.

Liuxi Sun
Liuxi Sun
Numerade Educator
02:46

Problem 12

Show the radix 3 result of the following subtraction:
$$
\begin{aligned}
& \begin{array}{llllllll}
2 & 0 & 2 & 2 & 0 & 2 & 0 & 1_3
\end{array} \\
& \begin{array}{lllllllll}
-) & 2 & 1 & 0 & 2 & 0 & 2 & 0 & 23
\end{array} \\
&
\end{aligned}
$$

Narayan Hari
Narayan Hari
Numerade Educator
01:42

Problem 13

Use the paper-and-pencil method to multiply the following numbers, which are in $2 \mathrm{~s}$ complement representation:
$$
\begin{aligned}
& 001110 \\
& 000111
\end{aligned}
$$

James Chok
James Chok
Numerade Educator

Problem 14

Use the paper-and-pencil method to multiply the following numbers, which are in $2 \mathrm{~s}$ complement representation:
111111
001011

Check back soon!

Problem 15

Use the sequential add-shift method to multiply the following operands, which are in $2 \mathrm{~s}$ complement representation:
$$
\begin{aligned}
\text { Multiplicand } A & =1111 \\
\text { Multiplier } B & =0111
\end{aligned}
$$

Check back soon!

Problem 16

Use the sequential add-shift method to multiply the following operands, which are in $2 \mathrm{~s}$ complement representation:
Multiplicand $A=0101$
Multiplier $B=0101$

Check back soon!

Problem 17

Use the Booth algorithm to multiply the following operands, which are in $2 \mathrm{~s}$ complement representation:
Multiplicand $A=010111$
Multiplier $B=001101$

Check back soon!

Problem 18

Use the Booth algorithm to multiply the following operands, which are in $2 \mathrm{~s}$ complement representation:
Multiplicand $A=010110$
Multiplier $B=110110$

Check back soon!

Problem 19

Use the Booth algorithm to multiply the following operands, which are in $2 \mathrm{~s}$ complement representation:
Multiplicand $A=110001$
Multiplier $B=100110$

Check back soon!
02:57

Problem 20

Use bit-pair recoding to determine the multiplicand multiples to be added for the following multipliers, which are in 2 s complement representation.
(a) 100111
(b) 110011
(c) 001101

Aaron Goree
Aaron Goree
Numerade Educator

Problem 21

Use bit-pair recoding to multiply the following operands, which are in $2 \mathrm{~s}$ complement representation:
$$
\begin{aligned}
\text { Multiplicand } A & =110010 \\
\text { Multiplier } B & =011001
\end{aligned}
$$

Check back soon!

Problem 22

Use bit-pair recoding to multiply the following operands, which are in $2 \mathrm{~s}$ complement representation:
Multiplicand $A=0100110$
Multiplier $B=1001101$

Check back soon!

Problem 23

Multiply the following two unsigned fixed-point operands using an array multiplier:
Multiplicand $A=0111$
Multiplier $B=1100$

Check back soon!
02:22

Problem 24

Use the sequential restoring method to perform a divide operation on the following operands:
Dividend $A=00110000$
Divisor $B=0111$

James Kiss
James Kiss
Numerade Educator

Problem 25

Use the sequential nonrestoring method to perform a divide operation on the following operands:
Dividend $A=00000111$
Divisor $B=0100$

Check back soon!
03:27

Problem 26

Use the sequential nonrestoring method to perform a divide operation on the following operands:
Dividend $A=01100011$
Divisor $B=0111$

Ruby P
Ruby P
Numerade Educator
01:41

Problem 27

The decimal operands shown below are to be added using decimal (BCD) addition. Obtain the answer that correctly represents the intermediate sum; that is, the sum before correction (adjustment) is applied.
$$
(+725)+(+536)
$$

Suman Saurav Thakur
Suman Saurav Thakur
Numerade Educator
00:49

Problem 28

Perform the indicated decimal operation on the operands shown below.
$$
(+20)+(-32)
$$

Amanda Stein
Amanda Stein
Numerade Educator

Problem 29

Perform decimal multiplication using a read-only memory (ROM) on the following operands:
$$
\begin{aligned}
\text { Multiplicand } A= & 736 \\
\text { Multiplier } B= & 48
\end{aligned}
$$

Check back soon!

Problem 30

Perform the following floating-point addition operation for positive operands:
$$
\begin{aligned}
& A=0,1 \quad 0 \quad 0 \quad 1 \quad 0 \quad 0 \quad 0 \quad 0 \quad \times 2^6 \\
& \text { +) } B=0,11110000 \times \times 2^2 \\
&
\end{aligned}
$$

Check back soon!
00:43

Problem 31

Under what conditions can there be an exponent overflow during floatingpoint arithmetic?

Anna Myers
Anna Myers
Numerade Educator

Problem 32

Perform the operation listed below for normalized floating-point numbers using 8-bit fractions.
$$
\begin{array}{r}
-10 \\
+\quad 33 \\
\hline
\end{array}
$$

Check back soon!

Problem 33

Multiply the floating-point fractions shown below using the sequential addshift method.
$$
\begin{array}{rllllllllll}
\text { Multiplicand } A=0 & 0 & 1 & 1 & 0 & 0 & 1 & 0 & 0 & 0 & \times 2^5 \\
\text { Multiplier } B= & 0 & 1 & 0 & 0 & 1 & 0 & 0 & 0 & 0 & \times 2^4
\end{array}
$$

Check back soon!
00:51

Problem 34

Multiply the floating-point fractions shown below using the sequential addshift method.

Wendi Zhao
Wendi Zhao
Numerade Educator

Problem 35

Multiply the floating-point fractions shown below using the sequential addshift method.
$$
\begin{array}{rllllllllll}
\text { Multiplicand } A= & 1 & 1 & 1 & 0 & 0 & 1 & 0 & 0 & 0 & \times 2^5 \\
\text { Multiplier } B= & 0 & 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & \times 2^3
\end{array}
$$

Check back soon!

Problem 36

Multiply the floating-point fractions shown below using the sequential addshift method.
$$
\begin{aligned}
& \text { Multiplicand } A=1,110000000 \times 2^4 \\
& \text { Multiplier } B=0, \quad 1 \quad 0 \quad 0 \quad 0 \quad 1 \quad 0 \quad 0 \quad 0 \quad \times 2^5 \\
&
\end{aligned}
$$

Check back soon!
00:24

Problem 37

How is quotient overflow determined in floating-point division and how is the problem solved?

James Kiss
James Kiss
Numerade Educator
02:12

Problem 38

Explain the biasing problem that occurs during floating-point multiplication and division.

Benjamin Schreyer
Benjamin Schreyer
Numerade Educator