CS 2506 Computer Science Final Exam Flashcards

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/31

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.

32 Terms

1
New cards

PERFORMANCE UNIT STARTS HERE

PERFORMANCE UNIT STARTS HERE

2
New cards

What is response time?

How long a program takes to run

Ex. 3 seconds

3
New cards

What is throughput?

Total work done per unit time

Ex. 10 instructions per hour

4
New cards

How to find speed up of one program compared to another?

5
New cards

What is elapsed time?

Toatal response time for all aspects such as processiong, I/O, idle time

(not as important as CPU time)

6
New cards

What is CPU time?

Time spent processing a given job?

7
New cards

Cycles per second and instructions per second have a ___ correlation

Direct, Positive correlation

8
New cards

The term for "periods per second" is known as ___ ___

and is measured in

Clock frequency OR Clock Rate

Hz = "per second"

9
New cards

What is a clock period and what is its unit of measurement?

duration of a clock cycle

seconds/period

10
New cards

Clock period and clock frequency have an ___ relationship

inverse

11
New cards

What is the formla for CPU time?

CPU Clock Cycles x Clock Cycle Time (Clock Period)

OR

CPU Clock Cycles / Clock Rate (Frequency)

12
New cards

When asking how fast must Computer B be, the question is referring to?

Clcok Rate

13
New cards

What does CPI stand for?

Cycles per instruction

14
New cards

How do clock cyles, CPI, and instruction count relate?

CPI = clock cycles / instruction count

Clock cycles = CPI x Instruction Count

15
New cards

How is CPU time related to Instruction Count, CPI, and Clock Cyles

CPU Time = Instruction Count x CPI x Clock Cyles

16
New cards

What is Ahmdal's Law?

Timproved = Taffected/improvement factor Tunaffected

If 20% of our program has a 2.5x speedup then

Timproved = 20/2.5 + 80

17
New cards

SINGLE-CYCLE DATAPATH AND PIPELINING STARTS HERE

SINGLE-CYCLE DATAPATH AND PIPELINING STARTS HERE

18
New cards

How can we create better performance?

Reduce instruction count

and CPI

Improve cycle time

19
New cards

Summarize simple instruction execution?

1. Program Counter (PC) stores address of next instruction

2. Goes to instruction memory and grabs insturction

3. Parse instruction into register numbers and read instruction from register file (if there is an immediate, put into ALU)

If arithmetic/logic instruction: go to ALU, return result and write it into register file

If Memory instruction: use ALU to compute desired address (ex. lw x5 12(x6) )

if branch: ALU subtracts 2 register and see if rs1-rs2 == 0 and decided to branch by updating Program counter target address such as with PC + 4

20
New cards

List the types of logical gates

AND

NAND

OR

ADDER

MULTIPLEXER

ARITHMETIC/LOGIC ake ALU

ALU is like MUX but with functions as deciders such as exponents, multiplcation, etc.

21
New cards

What are sequential elements and what do they do?

Where data is stored

2 inputs: data and clock

When clock hits 1 data flows out and into combinational element

22
New cards

How do sequential elements relate to write controls?

3 inputs: data, write, clock

1 output: Q

When write is 1, data flows in, when clock cyles is 1 data flows out

23
New cards

What are combinational elements used for?

Doing some operation on data that then gets stored back into a sequential element

24
New cards

During Instruction Fetch, how many bits are passed into Instruction Memory?

How many bits the processor is (usually 64)

25
New cards

During Instruction Fetch, how many bits of an instruction are passed out?

32 bits (usually half of Instruction Memory)

26
New cards

Where does oppcode go?

Control

27
New cards

Define the process for R - format instructions

1. Breaks down 32 bit instruction

2. Rs1 goes into Read Register 1

3. Rs2 goes into Read Register 2

4. Register file looks up related register

5. Loads date into Read Data 1 and Read Data 2 into ALu

6. ALU adds, subtracts, and, ors the operation

7. Y signal gets result and puts into write data

8. Rd goes into write data and gets written into

9. Oppcodes goes into control and sends 1 into regWrite because you are writing into Rd

28
New cards

Define the process for Load/Store - format instructions

1. Extracts address (from register file in (i think r2) ) and immediate and puts into ALU

2. ALU puts address ("ADDR") into Data Memory

3. Data Memory goes to address.

Imm Gen extracts instruction to decipher between lw and sw.

4. If lw, then MemRead = 1, RegWrite = 1 ( and MemWrite must = 0) goes to data

5. If sw, then WriteData = 1, RegWrite = 0, MemRead = does not care, goes to data

5. Data written in REG file

29
New cards

Define the process for Branch Format instructions

beq x5, x6, LABEL

LABEL is just an immediate like 16

1. Break down 32 bit instruction

2. x5 -> Read register 1 , x6 Read register 2

3. Gets data associated with those register and put those into Read data 1 and Read data 2

4. Both go into ALU, x5 - x6 == 0?

Yes -> sends zero control signal

5. Sends immediate into Immediate Generator, then into Shifter that multiplies by 2, goes into 32 + PC adder which creates branch target

6. Puts branch target into PC after Branch Control and Zero signal sends their signals into AND

30
New cards

HAZARDS START HERE

HAZARDS START HERE

31
New cards

What is a data hazard?

instruction writes

2 or less cycles later

instruction reads

32
New cards

What is a control hazard?

Explore top flashcards

P&P Vocab Chp. 27-37
Updated 964d ago
flashcards Flashcards (25)
AP World Unit 3
Updated 743d ago
flashcards Flashcards (62)
APGov
Updated 961d ago
flashcards Flashcards (75)
Human Bio Exam
Updated 397d ago
flashcards Flashcards (41)
Thermal Properties
Updated 570d ago
flashcards Flashcards (21)
Biological Molecules
Updated 470d ago
flashcards Flashcards (114)
history midterm
Updated 1062d ago
flashcards Flashcards (81)
tema 1 ja 2
Updated 841d ago
flashcards Flashcards (80)
P&P Vocab Chp. 27-37
Updated 964d ago
flashcards Flashcards (25)
AP World Unit 3
Updated 743d ago
flashcards Flashcards (62)
APGov
Updated 961d ago
flashcards Flashcards (75)
Human Bio Exam
Updated 397d ago
flashcards Flashcards (41)
Thermal Properties
Updated 570d ago
flashcards Flashcards (21)
Biological Molecules
Updated 470d ago
flashcards Flashcards (114)
history midterm
Updated 1062d ago
flashcards Flashcards (81)
tema 1 ja 2
Updated 841d ago
flashcards Flashcards (80)