Computer Org

0.0(1)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/112

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

113 Terms

1
New cards

Central Processing Unit (CPU)

has an arithmetic logic unit (ALU) and registers.

2
New cards

Peripheral Devices

Input/Output units and External Storage

3
New cards

Data memory and instruction memory are accessed through separate buses.

false

4
New cards

There is no external mass storage

false

5
New cards

Examples of performance enhancements in hardware design.

modularity, cache, parallelism, pipelining, prediction, Hierarchy of memory

6
New cards

Miniaturization

Less energy consumptions but limited by physical distance of atoms in the silicon substrate

7
New cards

Asynchronous Design

communication and synchronization problems, needs extra hardware and software for communication and synchronization

8
New cards

Million instructions per second (MIPS)

is a measure of a computer’s processor speed that does not take into account differences in ISAs between computers, differences in complexity between instructions. (RISC vs CISC)

9
New cards

Vector Extensions

Needs software support from compiler, it doesn’t automatically speed up all calculations

10
New cards

What is the special property of register $0?

$zero stores 0

11
New cards

What is the name of the register that stores a return address?

$ra

12
New cards

How many bits does a general-purpose MIPS register contain?

32

13
New cards

MIPS has 32 general registers

True

14
New cards

The order in which data is stored byte-wise in memory is called endianness and MIPS is big endian

True

15
New cards

By design, MIPS assembler instructions generally have 3 operands with fixed order, and the destination register comes first in the instruction

True

16
New cards

Write +21 base10 as an unsigned 8-bit number

00010101

17
New cards

Write -13 base10 as an 8-bit 2’s complement number

11110011

18
New cards

What is the largest signed number which can be represented using 8-bit 2’s complement representation?

127

19
New cards

What is the smallest signed number which can be represented using 8-bit 2’s complement representation?

-128

20
New cards

Write the decimal number 4092 as a hexadecimal number with 4 digits.

0FFC

21
New cards

Write the hexadecimal number 0×0F18 as an unsigned 16-bit binary number

0000 1111 0001 1000

22
New cards

The Zilog Z80 has 16-bit addresses. As a power of two, how many different addresses can be distinguished on a Z80?

2^16

23
New cards

The MIPS32 architecture provides 32-bit addresses, which makes for 4,294,967,296 distinct addresses (called 4Giga). MIPS32 is byte addressable, meaning each address points to one byte of memory. How much memory can be accessed directly with MIPS32?

4GB

24
New cards

The DEC Alpha architecture provides 64-bit addresses pointing to 8-byte clusters of memory. As a power of two, how many addresses can be distinguished on a DEC Alpha?

2^64

25
New cards

The DEC Alpha architecture provides 64-bit addresses pointing to a 8-byte clusters of memory. As a power of two, how many bytes of memory can be accessed on a DEC Alpha (without additional mechanisms)?

2^64×8 bytes

26
New cards

What is the directive that the next variable declaration is of type word (32 bits)?

.word

27
New cards

What is the directive that the next variable declaration is of type zero-terminated string?

.asciiz

28
New cards

What is the directive that the next block is program and not data?

.text

29
New cards

The branching instruction bne uses three arguments, the first two of which are registers. What kind of argument is the third argument.

label

30
New cards

A leaf-function is a function that does not call any other subroutine

True

31
New cards

The instruction j label will change the instruction point such that it points to the address referenced by label.

True

32
New cards

How are parameters or arguments passed to a function?

place them in $a0-$a3

33
New cards

How are return values passed back to a callee?

place them in $v0-$v3

34
New cards

What is the MIPS assembly code (not machine code) to call a subroutine or function named combinations?

jal combinations

35
New cards

What is the MIPS assembly code (not machine code) to return from a subroutine or function to the callee?

jr

36
New cards

A pointer is a variable/register holding an address

True

37
New cards

Pointers in MIPS cannot be change(for instance, increased) or used in calculations

False they can be changed

38
New cards

Two pointers that point to the same thing hold the same address

True

39
New cards

What is the directive that the next variable declaration is of type byte (8 bits)?

.byte

40
New cards

What is the directive that the next block is program?

.text

41
New cards

Name three ISAs other than MIPS

Dec Alpha, ARM, RISC-V, Intel x86

42
New cards

What is the directive that the next variable declaration is of type null-terminated string?

.asciiz

43
New cards

What is the directive that the next block is program and not data?

.text

44
New cards

What does RISC stand for?

Reduced Instruction Set Computer

45
New cards

What does CISC stand for?

Complex Instruction Set Computer

46
New cards

What does ISA stand for?

Instruction Set Architecture

47
New cards

What does MMU stand for?

memory management unit

48
New cards

What basic semiconductor device is used to build NAND (and other) DTL/RTL/TTL logic gates, without which our digital computers would not work?

Transistors

49
New cards

Name four architectures

MIPS, RISC V , intelx86, ARM

50
New cards

There is a control unit that includes an instruction register and a program counter

True

51
New cards

A cache is a smaller, faster memory located closer to a processor core. Caches are a means of reducing latency when a CPU is loading data or instructions.

True

52
New cards

Multicore designs need additional (kerel level) software support from the operating system to be usable by a (non-kernel) programmer.

True

53
New cards

Vector extensions perform a single instruction on multiple pieces of data. Software needs to be complied specifically for these instructions to take advantage of a speed-up.

True

54
New cards

Branch prediction as a method to achieve higher performance needs to be coupled with an instruction pipeline to look ahead in the instruction sequence.

true

55
New cards

In a computer memory is organized into a hierarchy based on response time.

true

56
New cards

write +67 as an unsigned 8-bit number

01000011

57
New cards

write -66 as an 8-bit 2’s complement number

10111110

58
New cards

Write the hexadecimal number 0×01FA as an unsigned 16-bit binary number.

0000 0001 1111 1010

59
New cards

Write the binary 8 bit number 0b10101101 as a hexadecimal number

ad

60
New cards

Comments in MIPS assembly start with #

true

61
New cards

MIPS assembly language is strongly typed, Like java

false

62
New cards

MIPS has 32 general purpose registers

True

63
New cards

What final character is used to indicate that a sequence of characters is a label?

colon :

64
New cards

Use variables t1,t2 to write a Java style line of code which expresses the MIPS assemble line sub $t1, $t1, $t2

t1=t1-t2;

65
New cards

Use variables t1,t2 to write a Java style line of code which expresses the MIPS assemble line subi $t1, $t2, 3

t1= t2 -3;

66
New cards

Use variables t1,t2 to write a Java style line of code which expresses the MIPS assemble line add $t1, $t2, $zero

t1=t2 +0;

67
New cards

A label is a string used to reference a location in memory

True

68
New cards

Dereferencing a pointer means accessing the resource the pointer references

True

69
New cards

Pointers in MIPS are just number and can be used in calculations

True

70
New cards

The sub instructions sub $rd, $rs, $rt works by negating the third operand with two’s complement, adding it to the second operand, and storing the result in the first operand.

True

71
New cards

Overflow can only occur when adding two registers(using an add instruction)

False

72
New cards

An add instruction may cause an overflow exception

True

73
New cards

MIPS uses an overflow flag to indicate when an arithmetic overflow has occurred in an operation, indicating that the signed two’s complement result would not fit in the number of bits used for the result

False

74
New cards

The MIPS architecture accommodates multiplication and divsion of 32-bit numbers by providing a pair of 32-bit registers with the names $m0 and $m1

false its called Hi and Lo

75
New cards

The special registers Hi and Lo are separate from the general registers in the CPU and are normally used for multiplication and division

True

76
New cards

MIPS uses shift-and-add and shift-and-subtract for multiplication and division

True

77
New cards

MIPS does not provide an assembly instruction to get the remainder of a division. It must be calculated as difference of the dividend and product of result and divisor.

False

78
New cards

There are assembly instructions to access the above special registers Hi and Lo

true

79
New cards

Integer division has an integer quotient and and integer remainder as a result

true

80
New cards

The number of bits necessary to represent the product of any n-bit number with any m-bit number is n*m

False

81
New cards

The number of bits necessary to represent the remainder of an integer division of an n-bit number is m.

true

82
New cards

The number of bits necessary to represent the remainder of an integer division of an b-bit number by an m-bit number is m

True

83
New cards

Floating point number representation in a digital computer is defined in a UPE standard

False

84
New cards

Binary floating point numbers store the sign fraction and exponent

true

85
New cards

Floating point numbers allow the representation of positive and or negative infinity

True

86
New cards

NaN is a particular value of a numeric data type which is undefined or unrepresentable such as the result of 0/0

True

87
New cards

A single precision float point number float uses 64 bits

False uses 32

88
New cards

A double precision floating number (double) uses 64 bits

true

89
New cards

The exponent in a single precision floating point number float uses 7 bits

false uses 8 bits

90
New cards

The exponent in a single precision floating point number float number is stored as two’s complement

false

91
New cards

The all-zero bit stream floating point number corresponds to the value 0.0

True

92
New cards

There are two different zeros in single precision floating point number representation float

true

93
New cards

An all-1 exponent indicates an infinity or NaN

True

94
New cards

Adding two floating point numbers involves shifting the exponent on the smaller number to align to the larger number

true

95
New cards

Name the four types of data path elements for MIPS listed in class

program counter, Logic gates, Multiplexer, the instruction and data memories, the register file, the ALU, and adders

96
New cards

Datapath elements are any unit used to operate on or hold data within a processor

true

97
New cards

Data paths cannot be changed during runtime in any ISA

False

98
New cards

Logic gates in a data path provide instant output without any propagation delay

False

99
New cards

a Larger data path can be made by joining more than one data path using multiplexers

True

100
New cards

A multiplexer selects between several input signals and forwards the selected input to a single output line

true