Feedback and Flip-Flops
Philipp Koehn 7 September 2019
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
Feedback and Flip-Flops Philipp Koehn 7 September 2019 Philipp - - PowerPoint PPT Presentation
Feedback and Flip-Flops Philipp Koehn 7 September 2019 Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019 The Story So Far 1 We can encode numbers We can do calculation ... but its all a bit
Philipp Koehn 7 September 2019
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
1
but it’s all a bit static
→ this requires "memory"
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
2
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
3
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
4
Electricity is on → this opens the normally closed key
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
5
Electricity is off → this closes the normally closed key
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
6
NOT
(symbol)
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
7
cycles per second
1 cycle per second: 1 Hertz
Billions of Hertz = Gigahertz (GHz) Heinrich Hertz 1857--1894
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
8
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
9
NOR NOR
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
10
NOR NOR
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
11
NOR NOR
Same key configuration as initially But: Now OUT is on --- we remembered the key turn
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
12
NOR NOR
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
13
NOR NOR
Back to initial state
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
14
UPPER LOWER OUT OUT 1 1 1 1 1 Illegal
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
15
NOR NOR
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
16
NOR NOR
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
17
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
18
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
19
– on = write to memory – off = read from memory
– data item to be written
– current state of the memory
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
20
NOR NOR
NOT
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
21
NOT
AND AND NOR NOR
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
22
Data Clock Q ¯ Q 1 1 1 1 1 X Q ¯ Q
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
23
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
24
→ value increases
→ value goes back to 0
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
25
A7 A6 A5 A4 A3 A2 A1 A0 B7 B6 B5 B4 B3 B2 B1 B0 S7 S6 S5 S4 S3 S2 S1 S0 CO CI
D7 D6 D5 D4 D3 D2 D1 D0 Q7 Q6 Q5 Q4 Q3 Q2 Q1 Q0 CLK
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
26
A B S CO CI
D Q CLK
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
27
8 8 8-BIT LATCH
D Q CLK
CLOCK
current sum
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
28
8 8 8 8-BIT LATCH
D Q CLK
8-BIT ADDER
B S A CO
8
IN
CI
CLOCK OUT
– current value – selected input
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
29
8 8 8 8-BIT LATCH
D Q CLK
8-BIT ADDER
B S A CO
8
IN
CI
CLOCK OUT
directly to latch?
– select between 0 and sum – only stored when clock on
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
30
8 8 8 8-BIT LATCH
D Q CLK
8-BIT ADDER
B S A CO
8
IN
CI
CLOCK OUT
2-1 SELECTOR
B S A
8 8
Clear
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
31
8 8 8 8 8-BIT LATCH
D Q CLK
8-BIT ADDER
B S A CO
8
IN
CI
CLOCK2 OUT
2-1 SELECTOR
B S A
8 8 8-BIT LATCH
D Q CLK
CLOCK1
S
Clear
– one to store the sum – one to store input to adder
– carry out addition – store result
– transfer to set up next addition
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
32
8 8 8 8 8-BIT LATCH
D Q CLK
8-BIT ADDER
B S A CO
8
IN
CI
OUT
2-1 SELECTOR
B S A
8 8 8-BIT LATCH
D Q CLK S
NOT
Add Clear
– carry out addition – store result in upper latch
– transfer to lower latch – set up next addition
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
33
8 8 8 8 8-BIT LATCH
D Q CLK
8-BIT ADDER
B S A CO
8
IN
CI
OUT
2-1 SELECTOR
B S A
8 8 8-BIT LATCH
D Q CLK S
NOT
Add Clear
NOT
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
34
8 8 8 8 8-BIT LATCH
D Q CLK
8-BIT ADDER
B S A CO
8
IN
CI
OUT
2-1 SELECTOR
B S A
8 8 8-BIT LATCH
D Q CLK S
NOT
Clear
NOT
keeps adding
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
35
8 8 8 8 8-BIT LATCH
D Q CLK
8-BIT ADDER
B S A CO
8
IN
CI
OUT
2-1 SELECTOR
B S A
8 8 8-BIT LATCH
D Q CLK S
NOT
Clear
NOT
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
36
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
37
LATCH D CLK Q Q
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
38
LATCH D CLK Q Q LATCH D CLK Q Q NOT
changes value, when switched from 0 to 1
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
39
D > CLK Q Q
Symbol
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
40
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
41
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
42
D > CLK Q Q NOT
Data Clock Q ¯ Q 1 1 1 ↑ 1 1 1 1 ↑ 1 1 1 1 1 1
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
43
D > CLK Q Q NOT
Data Clock Q ¯ Q 1 1 1 ↑ 1 1 1 1 ↑ 1 1 1 1 1 1
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
44
Data Clock Q ¯ Q 1 1 1 ↑ 1 1 1 1 ↑ 1 1 1 1 1 1
IN OUT
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
45
D > CLK Q Q NOT NOT
OUT0 OUT1
D > CLK Q Q
OUT2
D > CLK Q Q
OUT3
OUT0 OUT1 OUT2 OUT3
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019
46
Philipp Koehn Computer Systems Fundamental: Feedback and Flip-Flops 7 September 2019