Академический Документы
Профессиональный Документы
Культура Документы
Sticker
Circuit that is able to remember what was put into it.
How can a circuit remember the input? by making the output loop back as an input.
Memory circuit
Sticker
How the Sticker works?
Sticker
PROBLEM
Ought to have an input that sets it back to its original states with all the voltages off.
SOLUTION
Use Flip-flop
Flip-Flop
A memory circuit that can be made to flip between its two states on command & can store a piece of logical information, voltage on (1) or voltage off (0).
Made off an AND, OR & NOT gate. Has ONE output & TWO inputs : Set & Reset
Flip-Flop
How the flip-flop works?
Types of Flip-Flops
4 Types of flip-flops
R-S
Clocked R-S
Master-Slave
R-S Flip-Flop
Reset-Set flip-flop The simplest kind of memory circuit Used to build more sophisticated flip-flops
An example of a Clock
Clock = 0 no voltage go through AND gate no matter what voltage at S & R. Clock = 1 Set = S and Reset = R
D Flip-Flop
R-S flip-flop uses 2 inputs : Set & Reset. If there is voltage at Set flip-flop stores value 1 When there is voltage at Reset flip-flop stores value 0 What if voltage is supplied at both Set & Reset? Ideally it shouldnt.
SOLUTION
Use only 1 input.
Cl = 1 D=1 S=1 R=0 Flip-flop/output = 1
Cl = 1 D=0 S=0 R=1 Flip-flop/output = 0
Master-Slave Flip-Flop
Consists of 2 D flip-flops (Master & Slave) Master flip-flop tell the slave flip-flop what to store.
We need Master-Slave flip-flop to solve one problem: The wavers value of D!
Master-Slave Flip-Flop
Shift Registers
A register is a memory device designed to hold a small chunk of logical information.
1 0 0 1
- Digit is shifted right - Right-most digit is lost - Data on the data wire goes into the left-most cell
1 1 0 0
Memory Block
Flip-flops can be used to form a memory unit. Each, will have a unique name to address them. Name consists of a string of logical values. 16 flip-flops = 24 num = 2L
num = number of flip-flops L = the length of the name
Memory Block
Flip-flops do not work alone to form a memory block. Memory block consists of: an array of memory cells Input name wires (for flip-flop) Store/~Read wire Data-In wire Data-Out wire
Memory Block
Memory block can be simplified as shown.
Decoder
Decoder: Select the memory cells in the memory block. Decoder takes input from the Input Name wires & selects the memory cells corresponding to the decoded name.
x Name wires
x number of input name wires (10) y numbers of data-in & data-out (20) wires Chunked Memory block can store 2x chunks of y logical values (1024)
y Data-Out Wires
1 Memory Block
0000
1111
0000
0000
0000
1 0 1 0 1
0000
0000
0000
0000
1 0 1 0 1
x number of input name wires y numbers of data-in & data-out wires Chunked Memory block = 2x chunks of y logical values