Midterm 2 - Terms pg. 1 Flashcards

1
Q

How to know when overflow?

A

(+) + (+) = 1
(-) + (-) = 0

OR

(-) - (+) = 0
(+) - (-) = 1

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

How to deal with overflow?

A
  • ignore; let programmer handle it

* invoke exception handler

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

“subword parallelism”:

A

performing multiple operations with a single ALU operation.

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

SIMD:

A

Single Instruction, Multiple Data

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

saturation:

A

if number too large, set equal to max value. if number to small, set equal to min value.

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

“clipping” in audio, :

A

saturation in video!

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

Software emulation:

A

Add a bunch times!

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

Serial Multiplier hardware:

A

Add and Shift for each bit

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

Parallel Multiplier hardware:

A

Many adders working together

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

in MIPS, HI/LO regs. 32-bit multiply:

A

64-bit result!

* must move from HI/LO –> mfhi/mflo

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

Long division approach:

A
if ( divisor <= dividend) 
* 1 in quotient, subtract divisor from dividend.
else.
* bring down next dividend bit.
Repeat.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Hardware doesn’t know if less than, so…

A

must restore division if overflow occurs (remainder < 0)

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

Signed division:

A

too hard. divide using absolute values, adjust sign as required

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

Serial divider:

A

subtract and shift

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

Parallel divider?

A

requires knowledge of previous bits, can’t fully parallelize

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

MIPS division:

A

uses HI/LO regs for result.
HI = remainder
LO = quotient

17
Q

Signed division:

A

Negate quotient if signs are different