Lecture 9 Multiplication and Intro to Floating Point Numbers Flashcards

1
Q

What is binary multiplication?

A

Multiplication using logical ANDs to obtain partial products and summing them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How many bits are needed for the result of multiplying two binary numbers?

A

If the multiplicand is \(X\) bits and the multiplier is \(Y\) bits, the result needs \(X+Y\) bits.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why do modern processors use fixed operand sizes?

A

To reduce complexity, ensuring simpler and more efficient hardware design.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an example of binary multiplication?

A

Multiply 011₂ by 010₂:<br></br>Partial products:<br></br>000000<br></br>000011<br></br>+ 000000<br></br>= 000110 (6 in decimal).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the difference between RISC and CISC processors?

A

RISC processors have fewer instructions (simpler, more efficient), while CISC processors support complex operations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does two’s complement affect multiplication?

A

Sign extension must be considered to ensure the correct result for negative numbers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an example of multiplying two’s complement numbers?

A

Multiply -9 (10111₂) by 3 (00011₂), extend to 10 bits, and apply binary multiplication.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is division in binary?

A

Successive subtraction of the divisor from the dividend, requiring registers and comparators.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why is division costly in hardware?

A

It requires additional circuitry, making some processors rely on software for division.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are fixed-point numbers?

A

Numbers with a fixed position for the decimal point, such as 132.56 in decimal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is scientific notation?

A

Expressing numbers as \( M \times 10^E \), e.g., \( 543.12 = 5.4312 \times 10^2 \).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are floating-point numbers?

A

Numbers represented with a mantissa, exponent, and base, allowing flexibility in precision.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is an example of floating-point representation?

A

\( 543.12 \) can be represented as \( 5.4312 \times 10^2 \) or \( 0.54312 \times 10^3 \).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How do you convert fractions to binary?

A

Multiply by 2 repeatedly, taking the integer parts as binary digits.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is an example of converting fractions to binary?

A

Convert 0.75 to binary:<br></br>0.75 × 2 = 1.5 → 1<br></br>0.5 × 2 = 1.0 → 1<br></br>Result: 0b0.11.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Why do some fractions have repeating binary representations?

A

Some decimal fractions cannot be exactly represented in binary, leading to rounding errors.

17
Q

What is an example of a repeating fraction in binary?

A

0.1 in decimal becomes a repeating sequence: \( 0.0001100110011… \) in binary.

18
Q

What is an example of converting a real number to binary?

A

Convert 17.625:<br></br>17 → 0b10001<br></br>0.625 → 0b0.11<br></br>Result: 0b10001.11.