Sequential Logic Flashcards
How is instruction execution coordinated?
A sequence of micro steps coordinated by a clock.
How do we coordinate input across a shared bus?
All the different components can read from the same bus
they just need to be made active by a signal line from the control unit (CU)
What does the input received in a component generally go through?
A buffer
What does a buffer do
It outputs the same input but it is used for making the signal stronger, ie if one component trying to output to many other components it would give a weak signal
What does a tristate buffer do?
Can set the output voltage to either high or low, allows multiple device to share the bus as only on of the outputs is enabled to set the voltages.
What controls, what components read and what component outputs?
The Control Uni (CU)
What is the scratchpad?
Scratchpad consists of 16 locations storing 4 bit values, the 16 locations require 4 bit addresses to address them from 0000 to 1111
How do we store 1 bit using logic circuits?
Take two back to back inverters. Circuit only has two possible states(known as a bistable element) This circuit forms static memory because it is stable
How do we add write capability to the memory unit?
replace an inverter with a NOR gate connecting NOT Q and R. R stands for reset, when R is set to 1 Q is set to 0, effectively resetting its value, NOT Q is then set to 1 so even when R is set back to 0 the NOR gate will still output a 0 for Q
How does and RS latch work?
An RS latch consists of two NOR gates connected to R and NOT Q and Q and S. When S is set to 1 NOT Q is set to 0 which then sets Q to 1, When R is set to 1 Q is set to 0. R resets the value, S sets the value, the latch refers to the memory being retained after S or R reverts back to 0.
How many stable states are there in a RS latch and what is an unstable state?
4, an unstable state is when R and S is set to 1 resulting in Q and NOT Q being 0
What is a D latch also known as>
A transparent latch
How does a D latch work?
Stores 1 bit value of D when the clock is high, latch is transparent to D value when the clock is high, also eliminates the R=S=1 problem.
Draw a D Latch logic circuit?
DRAW
What is a D flip flop?
Stores 1 bit of data which is set only on the clocks rising edge.
Consists of “master” and “slave” D latches where the data value only gets through on the rising clock edge.