[CSCI 50.01] LT 2

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

1/222

flashcard set

Earn XP

Description and Tags

Modules 3-7

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

223 Terms

1
New cards

What does ALU stand for and what does it do?

Arithmetic and Logic Unit

Performs arithmetic and logic operations

2
New cards

Examples of Arithmetic Operations on Data

  • Add

  • Subtract

  • Multiply

3
New cards

Examples of Logical Operations on Data

  • Check if equal

  • Bitwise-or

4
New cards

Register

Temporary storage location in the processor

5
New cards

ALU reads operands from _______.

Registers

6
New cards

________ are also sent to the ALU to select what operation to perform.

Control Signals

7
New cards

Control signals are provided by ______ and depend on the ______ executed.

Processor

Instruction currently being executed

8
New cards

ALU writes the result of an operation to a ______.

Register

9
New cards

ALU can set _____ which provide additional info about the operation’s result (e.g. overflow occurred). _____ values are also stored in _______.

Flag/s

Registers

10
New cards

Memory Characteristics

Location

Capacity

Unit of Transfer

Method of Accessing

Performance

Physical Type

Physical Characteristics

Organization

11
New cards

Location

Whether memory is internal or external

12
New cards

Internal Memory

Refers to devices like main memory and cache

13
New cards

External Memory

Peripherals like disk drives, accessible to the process via I/O controllers

14
New cards

Word

Natural unit of organization of memory

15
New cards

Size

Number of bits used to represent an integer or length of an instruction

16
New cards

In some systems, the _____ is the word.

Addressable Unit

17
New cards

Formula for length in bits of address (A) and number of addressable units (N)

Log2 (N) = A

18
New cards

Unit of Transfer

How much data can be read out of or written into memory at a time

19
New cards

Unit of Transfer for Internal Memory

Number of electrical lines into and out of memory module (64, 128 or 256 bits)

* Not necessarily equal to an addressable unit

20
New cards

Unit of Transfer for External Memory

Block, a significantly larger unit than a word

21
New cards

4 methods of accessing data

Sequential

Direct

Random

Associative

22
New cards

Sequential Access

  • Access must be made in specific linear sequence

  • Stored addressing for distinguishing records and helping in data retrieval

  • Tapes (units for tape drives)

23
New cards

In sequential access, memory is organized into units of data called ___.

Records

24
New cards

How does sequential access work?

Shared read-write mechanism moved from current location to desired location, passing & rejecting intermediate records

25
New cards

In sequential access, ____ an arbitrary record is highly variable

Time to access

26
New cards

Direct Access

  • Disks (disks in hard disk drive)

  • Uses shared read-write mechanism

  • But individual blocks/records have unique address based on physical location

27
New cards

How does direct access work?

  • First to reach general vicinity

  • Then use sequential searching, counting or waiting to reach desired location

28
New cards

The basic element of a semiconductor memory is the ___________ which stores a bit

Memory cell

29
New cards

Examples of Random Access

  • Main memory

  • Some caches

  • SSDs

30
New cards

Access time of random access is ____ and is ______ of the sequence prior the accesses

Constant

Independent

31
New cards

Examples of Associative

Some caches

32
New cards

How does Associative work?

Compares desired bit locations in a word for a specified match (does this for all words simultaneously)

33
New cards

In associative, data is retrieved based on _______ instead of actual address

a portion of its contents

34
New cards

3 parameters that measure performance

Access Time

Memory Cycle Time

Transfer Rate

35
New cards

Access Time is also known as ___?

Latency

36
New cards

For access time of random-access memory, this is the time from _______ to ________.

The instant that an address is presented to memory

The instant that data is stored or made available for use

37
New cards

For access time of non-random-access memory, this is the time it takes to ___.

Position the read-write mechanism at the desired location

38
New cards

Memory cycle time

Access time + any additional time required before a second access can start

39
New cards

Data that is _______ needs additional _____ time to _____

Read destructively

Memory cycle time

Regenerate data

40
New cards

Memory cycle time primarily applies to _______ and is concerns with the _____ not the ______.

Random-access memory

System bus

Processor

41
New cards

Transfer Rate

Rate at which data can be read from or written to a memory unit

42
New cards

For random-access memory, transfer rate is equal to the ______

Reciprocal of memory cycle time

43
New cards

destructively

Data in DRAM is read ____________; reading from a cell will discharge the capacitor.

44
New cards

Transfer Rate Formula

Tn = Ta + (n/R)

Tn average read or write time in n bits

Ta average access time

R transfer rate in bits per sec (bps)

45
New cards

Physical Types of Memories

Semiconductor memory (EX. RAM, solid-state)

Magnetic surface memory (EX. Disks, tapes)

Optical (EX. Blu-ray)

Magneto-optical (EX. Sony MiniDiscs)

46
New cards

Physical characteristics of data storage

Determine what can happen to the data

47
New cards

Read-only Memory (ROM)

  • Nonvolatile

  • Semiconductor memory

  • Has permanent pattern of data that can’t be changed

48
New cards

Read-mostly Memory

  • Useful when read operations are more used than write operations

  • But needs nonvolatile storage

49
New cards

Main memory is composed of a collection of ____________.

DRAM chips

50
New cards

A number of chips can be grouped together to form a ___________.

memory bank

51
New cards

Dynamic RAM (DRAM)

Basic building block of main memory

52
New cards

Prefetch Buffer

cache located on the SDRAM chip

53
New cards

Physical characteristics

______________ of data storage determine what can happen to the data

54
New cards

Volatile Memory

In ____, data decays naturally or is lost when electrical power is switched off

55
New cards

nonvolatile

In ________ memory, recorded data remains without deterioration until deliberately change;

No electrical power is needed to retain data

56
New cards

In __________ memory,  memory, data cannot be altered except by destroying the storage unit

nonerasable

57
New cards

Organization

Physical arrangement of bits to form words

58
New cards

operational code (opcode)

  • Part of every instruction in machine language

  • Tells the hardware what operation needs to be performed with this instruction

  • A string of bits very relevant to the decode step

59
New cards

7 opcode categories

Data transfer

Arithmetic

Logical

Conversion

I/O

System control

Transfer of control

60
New cards

4 single-operand instructions

absolute, negate, increment, decrement

61
New cards

Bitwise operations are often referred to as “____________” that are based on Boolean operations

bit twiddling

62
New cards

Bitwise Operations

Most machines have operations for manipulating individual bits of a word or addressable units

63
New cards

cyclic shift

Rotate is also known as “_______________”.

64
New cards

For internal memory, capacity is typically expressed in ________.

bytes (8 bits) or words (8, 16, 32 or 64 bits)

65
New cards

For external memory, capacity is typically expressed in ________.

bytes

66
New cards

3 different physical characteristics

volatile, nonvolatile, nonerasable

67
New cards

Between CISC and RISC, which one has simpler functionality but longer code?

RISC

68
New cards

Register

is a temporary storage location within the processor

69
New cards

Endianness

refers to byte ordering in a multibyte scalar value

70
New cards

Big Endian

In __________, the most significant byte is stored in the lowest numerical address

71
New cards

Little Endian

In __________, the most significant byte is stored in the highest numerical address

72
New cards

Semiconductor memory can be ______ or ______

volatile or nonvolatile

73
New cards

Organization is the same as endianness. True or False?

FALSE

74
New cards

Semiconductor memory cells share certain properties

  • 2 stable (or semistable) states to represent binary 1 and 0

  • Can be written into (at least once) to set the state

  • Can be read to "sense" the state

75
New cards

Random-access memory (RAM)

  • Most common type of semiconductor memory

  • Possible to read data from and write new data into RAM easily and quickly

76
New cards

In Random-Access Memory, Reading and writing is achieved through _____.

electrical signals

77
New cards

Random-Access Memory is a ______ storage.

Temporary storage

Since it is volatile and must be provided with a constant power supply

78
New cards

2 Traditional forms of Random-Access Memory used in computers

DRAM and SRAM

79
New cards

DRAM

Dynamic RAM

80
New cards

Dynamic RAM is made with ________ that ______

cells that store data as charge on capacitors

81
New cards

Presence or absence of charge in capacitor is interpreted as ___ or ___.

Binary 1 or 0

82
New cards

DRAM requires ______ to maintain data storage

periodic charge refreshing since capacitors naturally tend to discharge even with continuous power applied, so it’s "dynamic"

83
New cards
<p>What are the following parts of the DRAM covered in yellow?</p>

What are the following parts of the DRAM covered in yellow?

Access FET

Explicit storage capacitor

<p>Access FET</p><p>Explicit storage capacitor</p>
84
New cards

Data in DRAM is read ______.

Destructively

  • Reading from a cell will discharge the capacitor

  • Data must be restored as part of completing the read operation

85
New cards

SRAM

Static RAM

86
New cards

Static RAM

a digital device that uses the same logic elements in the processor

87
New cards

How are binary values stored in Static RAM

Using traditional flip-flop logic-gate configurations

88
New cards

SRAM will hold data as long as _____.

power is supplied to it

89
New cards
<p>What are the parts of the Static RAM covered in yellow</p>

What are the parts of the Static RAM covered in yellow

static bistable storage element

word line

bit

access FET

<p>static bistable storage element</p><p>word line</p><p>bit</p><p>access FET</p>
90
New cards

DRAM vs SRAM

  • Both are volatile

  • Dynamic memory cell is simpler and smaller than a Static memory cell

91
New cards

DRAM and SRAM, Which is cheaper? Which provides more storage given the same physical space occupied?

DRAM is cheaper and less transistor so it occupies less space (smaller)

92
New cards

DRAM - main memory

SRAM - cache

True

93
New cards

Cheaper DRAM cell, ____ memory, ______ cost for refresh circuitry, _______ of DRAM cell

Larger memories

Fixed cost of the refresh circuitry

smaller variable cost of DRAM cell

94
New cards

Which one is faster, SRAM or DRAM?

SRAMs are somewhat faster than DRAMs

SRAM doesn't require a refresh cycle during a read operation

95
New cards

Can you write new data in Read-only memory?

normally not possible

96
New cards

Read-mostly Memory is not a variation on read-only memory

False

97
New cards

Types of ROM

Read-Only Memory (ROM)

Programmable ROM

Erasable Programmable ROM

Electrically Erasable Programmable ROM

Flash Memory

98
New cards

How is a ROM created?

Like any other integrated circuit chip, with the data wired into the chip during fabrication process

99
New cards

In Read-Only Memory, what happens if a bit is wrong?

If even one bit is wrong, the entire batch of affected ROMs must be discarded

100
New cards

What is the advantage of Read-Only Memory (ROM) when it's part of main memory?

no need to load data from a secondary storage device since data is already permanently stored in ROM