comp ah

5.0(1)
studied byStudied by 8 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/152

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.

153 Terms

1
New cards

ARM assembly language supports two types of comments.

false

2
New cards

If the processor requests data that is available in the cache, it is returned quickly. How do we call it?

cache hit

3
New cards

Store 0x87664422 into memory using little-endian fashion

0 = 22, 1 = 44, 2 = 66, 3 = 87

4
New cards

Store 0x87664422 into memory using big-endian fashion

0 = 87.1 = 66, 2 = 44. 3 = 22

5
New cards

Commonly used operands are stored in registers. True/False?

True

6
New cards

This status flag shows 1 when instruction causes an overflow

V

7
New cards

This status flag shows 1 when instruction causes an Negative

N

8
New cards

This status flag shows 1 when instruction causes an Zero

Z

9
New cards

This status flag shows 1 when instruction causes an Carry

C

10
New cards

BIC r0, r1, r2 performs

it computes r1 AND NOT r2, and stores the result into r0

11
New cards

Specific arrangement of registers, memories, ALUs, and other building blocks to form a microprocessor is _

Microarchitecture

12
New cards

The memory address is the base register value. An offset is added or subtracted from the base register value and the result is written back to the base register. What type of indexing is this?

Postindex

13
New cards

The memory address is formed in the same way as for offset addressing. The memory address is also written back to the base register. In other words, the base register value is incremented or decremented by the offset value. The exclamation point signifies

Preindex

14
New cards

For this addressing method, indexing is not used. An offset value is added to or subtracted from the value in the base register to form the memory address.

Offset

15
New cards

What is the third level of memory hierarchy?

Hard drive

16
New cards

What is the second level of memory hierarchy?

main memory (physical memory)

17
New cards

What addressing mode is used for indexing?

displacement

18
New cards

The instruction sets of different architectures are more likely different dialects than different languages. True/False?

true

19
New cards

This addressing mode requires only one memory reference and no special calculation. About what type of the addressing mode do we talk?

direct

20
New cards

The condition flags are stored in the LSB of the CPSR

false. it stored in MSB of CPSR

21
New cards

You are given the code in a high-level language: a = mem[3]. Write this code in the ARM assembly language. Assume that the variable a is stored in register r0.

mov r1, #0 LDR r0, [r1, #12]

22
New cards

Inputs for the operation are called

operands

23
New cards

It is used to translate a code written in a high-level language into a machine code

compiler

24
New cards

If the processor requests the data from main memory, how do we call it?

cache miss

25
New cards

Operation is determined by a binary code, known as

operation code or opcode

26
New cards

ARM architecture represents each instruction as

32-bit word

27
New cards

digital systems that read and execute machine language instructions

Microprocessors

28
New cards

• Humans consider reading machine language to be tedious, so we prefer to represent the instructions in a symbolic format called

assembly language.

29
New cards

Almost all architectures define basic instructions such as add, subtract, and branch that operate on memory or registers.

true

30
New cards

Each assembly language instruction specifies both the operation to perform and operands on which to operate.

true

31
New cards

ARM assembly language supports only single-line comments.

true

32
New cards

The ARM architecture has 16 registers called

register set or register file

33
New cards

In the ARM architecture, data stored in memory must be moved to a register before it can be processed.

true

34
New cards

ARM and most other architectures use ___________ to skip over sections of code or repeat code.

branch instructions

35
New cards

Branches can be unconditional or conditional. Branches are also called jumps in some architectures.

true

36
New cards

Memory system performance metrics

miss rate, hit rate, AMAT(average memory access time)

37
New cards

In this type of shift operation, the data are treated as a signed integer and the sign bit is not shifted.

Arithmetic shift right

38
New cards

What is the type of addressing mode given by the algorithm Operand = A?

immediate

39
New cards

What is the type of addressing mode given by the algorithm EA = A?

direct

40
New cards

What is the type of addressing mode given by the algorithm EA =(A)?

indirect

41
New cards

What is the type of addressing mode given by the algorithm EA =(R)?

register indirect

42
New cards

What is the type of addressing mode given by the algorithm EA = R ?

register

43
New cards

What is the type of addressing mode given by the algorithm EA = A + (R) ?

displacement

44
New cards

load register instruction, (LDR)

to read a data word from MEMORY into a REGISTER

45
New cards

store register instruction, (STR)

to write a data word from a REGISTER into MEMORY.

46
New cards

No left rotation instruction

true

47
New cards

one that may be referenced by means of the machine language that the processor executes.

user-visible register

48
New cards

Advantages: 1) No memory reference to obtain the operand 2) Size of the number is restricted to the size of the address field.

Immediate addressing

49
New cards

It requires only one memory reference and no special calculation. It provides only a limited address space.

Direct addressing

50
New cards

The disadvantage is that instruction execution requires two memory references to fetch the operand: one to get its address and a second to get its value.

Indirect addressing

51
New cards

Advantages: 1) Only a small address field is needed in the instruction 2) No time-consuming memory references are required Disadvantage: the address space is very limited

Register addressing

52
New cards

Register indirect addressing uses one less memory reference than indirect addressing.

Register indirect addressing

53
New cards

Common uses of displacement addressing

Relative addressing, Base-register addressing, Indexing

54
New cards

You are given: r1 = 0100 0110 1010 0001 1111 0001 1011 0111, r2 = 1111 1111 1111 1111 0000 0000 0000 0000. What is the result of BIC r6, r1, r2?

0000 0000 0000 0000 1111 0001 1011 0111

55
New cards

Shifting a value left by N is equivalent to multiplying it by 2^N (logic shifting)

true

56
New cards

Arithmetically shifting a value right by N is equivalent to dividing it by 2^N

true

57
New cards

ARM includes two types of branches:

Simple branch (B) , Branch and link (BL)

58
New cards

the average time a processor must wait for memory per load or store instruction.

Average memory access time (AMAT)

59
New cards

The relationship between the address of data in main memory and the location of that data in the cache is called ______

mapping

60
New cards
61
New cards
62
New cards
63
New cards
64
New cards
65
New cards
66
New cards
67
New cards
68
New cards

What is Nibble?

4 binary digits in symbols(1010=A…,1111=F)

69
New cards

Reasons to use hexadecimal notation:

1)compact

2)used in most computers

3)extremely easy

70
New cards

ALU

Digital logic devices that can store binary digits and perform Boolean logic operations

71
New cards
72
New cards
term image
knowt flashcard image
73
New cards

Range extension

knowt flashcard image
74
New cards

Range extension

1) for (+) numbers:move to leftmost position and fill with zeros

2) for (-) numbers:move to leftmost position and fill with ones

75
New cards

Overflow Rule:

If two numbers are added, both(+) or (-), then overflow occurs if and only if the result has the opposite sign

76
New cards

Commutative Law

A•B = B•A

A+B = B+A

77
New cards

Distributive Law

A•(B+C) = (A•B) + (A•C)

A+(B•C) = (A+B) • (A+C)

78
New cards

Identify Elements

1•A=A

0+A=A

79
New cards

Inverse Elements

A•~A=0

A+~A=1

80
New cards

0•A=?

1+A=?

0•A=0

1+A=1

81
New cards

Associative Law

A•(B•C)=(A•B)•C

A+(B+C)=(A+B)+C

82
New cards

DeMorgan’s Theorem

(A*B)’=A’+B’

(A+B)’=A’•B’

83
New cards

List the ways of defining a combination logic circuit :

Truth table, graphical symbols, Boolean functions

84
New cards

Program counter contains?

Address of the next instruction

85
New cards

Positional number system

Each number represented by string, has weight r^i (r=radix, base of the system )

86
New cards

Combinational logic circuit

Interconnected set of gates (output=input)

87
New cards

Sequential circuits

output=input+history of input

88
New cards

Multiplexer

Multiple input= single output

89
New cards

Decoders

Only one output asserted at any time

90
New cards

Demultiplexer

Inverse multiplexer, single input =several output

91
New cards

Flip-flop

Bistable device, 1-bit memory, 2 output =Q and Q’

92
New cards

Parallel register

1-bit memory written simultaneously

93
New cards

Serial register

And/or information serially 2^n-1

94
New cards

Memory arrays

used to store large amounts of data.

95
New cards

The row is specified by an…

Address.

96
New cards

The value read or written is called

Data

97
New cards

Each row of data is called as

word

98
New cards

The depth of an array is the number of rows. The width of an array is the number of columns. The size of an array is given as depth x width.

true

99
New cards

Memory arrays are built as an array of ________, each of which stores 1 bit of data.

bit cells

100
New cards

All memories have one or more ports. In _________case, each port gives read and/or write access to one memory address.

singleported memory