Computersysteme

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/55

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.

56 Terms

1
New cards

Half Adder

knowt flashcard image
2
New cards

Full Adder

knowt flashcard image
3
New cards

Carry Lookahead Adder Propagate

knowt flashcard image
4
New cards

ALU Control

knowt flashcard image
5
New cards

Wann ist bei der ALU die Flag Z gesetzt?

all of the bits of Result are 0

6
New cards

Wann ist bei der ALU C gesetzt?

Cout of Adder is 1 AND ALU is adding or subtracting (ALUControl is 00 or 01)

7
New cards

Wann ist bei der ALU das overflow Bit gesetzt?

ALU is performing addition or subtraction (ALUControl1 = 0) AND A and Sum have opposite signs AND A and B have same signs for addition (ALUControl0 = 0) OR A and B have different signs for subtraction (ALUControl0 = 1)

8
New cards

Wie werden bits im DRAM gespeichert?

In einer Kapazität.

9
New cards

DRAM Speicher

knowt flashcard image
10
New cards

SRAM Speicher

knowt flashcard image
11
New cards

PLAs (Programmable logic arrays)

AND array followed by OR array

Combinational logic only

Fixed internal connections

<p>AND array followed by OR array </p><p>Combinational logic only </p><p>Fixed internal connections</p>
12
New cards

FPGAs (Field programmable gate arrays)

Array of Logic Elements (LEs)

Combinational and sequential logic

Programmable internal connections

13
New cards

FPGAs Bestandteile

LEs (Logic elements): perform logic

IOEs (Input/output elements): interface with outside world

Programmable interconnection: connect LEs and IOEs

Some FPGAs include other building blocks such as multipliers and RAMs

14
New cards

LE’s (Logic Elements) bestehen aus:

LUTs (lookup tables): perform combinational logic

Flip-flops: perform sequential logic

Multiplexers: connect LUTs and flip-flops

15
New cards

Execution Time

= (#instructions)(cycles/instruction)(seconds/cycle)

16
New cards

CPI

Cycles/instruction

17
New cards

clock period

seconds/cycle

18
New cards

IPC

instructions/cycle = IPC

19
New cards

ALU Control erweitert

knowt flashcard image
20
New cards

Single cycle Critical Path

𝑻𝒄_𝒔𝒊𝒏𝒈𝒍𝒆 = 𝒕𝒑𝒄𝒒_𝑷𝑪 + 𝟐𝒕𝒎𝒆𝒎 + 𝒕𝑹𝑭𝒓𝒆𝒂𝒅 + 𝒕𝑨𝑳𝑼 + 𝒕𝒎𝒖𝒙 + 𝒕𝑹𝑭𝒔𝒆𝒕𝒖𝒑

21
New cards

Multicycle critical path:

knowt flashcard image
22
New cards

Temporal Locality:

Locality in time

• If data used recently, likely to use it again soon

• How to exploit: keep recently accessed data in higher levels of memory hierarchy

23
New cards

Spatial Locality:

• Locality in space

• If data used recently, likely to use nearby data soon

• How to exploit: when access data, bring nearby data into higher levels of memory hierarchy too

24
New cards

Hit Rate

knowt flashcard image
25
New cards

Miss Rate

knowt flashcard image
26
New cards

Capacity Cache

Number of data bytes in cache

27
New cards

Block Size

Bytes of data brought into cache at once

28
New cards

Number of Blocks

Number of blocks in cache

𝐵 = 𝐶 /b

29
New cards

Degree of associativity (𝑵)

Number of blocks in a set

30
New cards

Number of sets (𝑺)

Each memory address maps to exactly one cache set

𝑆 = B / N

31
New cards

Direct Mapped

1 block per set

32
New cards

N-way set associative

N blocks per set

33
New cards

Fully associative

all cache blocks in 1 set

34
New cards

LRU (Replacement policy)

the least recently used block in a set evicted

„Am längsten nicht verwendet“

Complex to implement

35
New cards

LFU

the least used used block in a set evicted

“Am wenigsten verwendet”

A frequently referenced page is only replaced after many misses and thus blocks the cache

36
New cards

Reference bit

it is a approximated versions of Least Recently Used (LRU)

A bit is set on access and cleared in time intervals

37
New cards

Write hit: Write through (cache)

update the cache AND update the main memory immediately

Pros: Data consistency with main memory guaranteed (I/O, multiprocessor)

simple

Cons:

Frequent accesses to the main memory

Loss of performance

38
New cards

Write-Hit: Copy-Back

refresh the cache AND marks the block "dirty" only update the main memory later when the block is removed from the cache

often also referred to as write-back

Pros:

Write hit is much faster

Less frequent accesses to the main memory

Cons:

Data inconsistency with the main memory

Read miss is slower (due to copy-back)

A dirty block needs to be synced before replacing

39
New cards

N-Way set associative (Management data/bits)

Tag

Valid Bit

(Dirty Bit)

Bits for Replacement Policy

40
New cards

Number of Blocks:

Number of Sets * Ways

41
New cards

Direct Mapped (Management Data Bits)

Tag

Valid Bit

(Dirty Bit)

42
New cards

Page Size

amount of memory transferred from hard disk to DRAM at once

43
New cards

Page table

lookup table used to translate virtual addresses to physical addresses

44
New cards

Adress Translation

knowt flashcard image
45
New cards
46
New cards

Virtual Pages Example:

knowt flashcard image
47
New cards

Page Table Organisation

Entry for each virtual page

Entry fields:

Valid bit: 1 if page in physical memory

Physical page number: where the page is located

48
New cards

What is VPN ?

index into page table

49
New cards

Control Hazard

When the flow of instruction addresses is not sequential

Unconditional branches (jal, jalr)

Conditional branches (beq, bne, ...)

Exceptions

50
New cards

Branch Target Buffer

knowt flashcard image
51
New cards

CPI (Rechnung)

knowt flashcard image
52
New cards

Dynamic Branch Prediction: 1-Bit Predictor

knowt flashcard image
53
New cards

2-Bit Predictor:

knowt flashcard image
54
New cards

2-stage Multiplier

^

<p>^</p>
55
New cards

Steps in Out-of-Order Execution (Simpler Scheme 2**)

knowt flashcard image
56
New cards

Pseudo Instructions

knowt flashcard image