Coa Module 2
Coa Module 2
ARCHITECTURE
2nd MODULE
1. Define edgetriggering?
a)In edge triggering the circuit becomes active at negative or positive edge of the clock
signal.
2. Define pulse triggering?
a)pulse-triggered means that data are entered into the flip-flop on the rising edge of the
clock pulse, but the output does not reflect the input state until the falling edge of the
clock pulse
3. Define SR latch
An SR latch (Set/Reset) is an asynchronous device: it works independently of control
signals and relies only on the state of the S and R inputs. In the image we can see that
an SR latch can be created with two NOR gates that have a cross-feedback loop.
1. When the Clock pulse is high the output of master is high and remains high till the clock is
low because the state is stored.
2. Now the output of master becomes low when the clock pulse becomes high again and
remains low until the clock becomes high again.
3. Thus toggling takes place for a clock cycle.
4. When the clock pulse is high, the master is operational but not the slave thus the output of the
slave remains low till the clock remains high.
5. When the clock is low, the slave becomes operational and remains high until the clock again
becomes low.
6. Toggling takes place during the whole process since the output is changing once in a cycle.
7. This makes the Master-Slave J-K flip flop a Synchronous device as it only passes data with
the timing of the clock signal.
we may think what’s the point of a SISO shift register if the output data is exactly the same as
the input data. Well this type of Shift Register also acts as a temporary storage device or it can
act as a time delay device for the data, with the amount of time delay being controlled by the
number of stages in the register, 4, 8, 16 etc or by varying the application of the clock pulses.
15. Give the circuit representation of 4 bit synchronous counter and explain its function
16. What are the different types of counters? Explain 4 bit ripple counter.
counters (asynchronous
& synchronous),
up/down counter,
decade counter,
mod N counter,
Ring counter,
Johnson’scounter
Both the S and the R inputs of the previous SR bistable have now been replaced by two
inputs called the J and K inputs, respectively after its inventor Jack Kilby. Then this
equates to: J = S and K = R.
The two 2-input AND gates of the gated SR bistable have now been replaced by two 3-
input NAND gates with the third input of each gate connected to the outputs at Q and Q.
This cross coupling of the SR flip-flop allows the previously invalid condition of S = “1”
and R = “1” state to be used to produce a “toggle action” as the two inputs are now
interlocked.
If the circuit is now “SET” the J input is inhibited by the “0” status of Q through the
lower NAND gate. If the circuit is “RESET” the K input is inhibited by the “0” status
of Q through the upper NAND gate. As Q and Q are always different we can use them to
control the input. When both inputs J and K are equal to logic “1”, the JK flip flop
toggles as shown in the following truth table.
Then the JK flip-flop is basically an SR flip flop with feedback which enables only one of
its two input terminals, either SET or RESET to be active at any one time under normal
switching thereby eliminating the invalid condition seen previously in the SR flip flop
circuit.
19. What is the difference between a ring counter and a Johnson counter
The difference between a ring counter and a Johnson counter is which output of the
last stage is fed back (Q or Q'). ... Recirculating a single 1 around a ring counter divides
the input clock by a factor equal to the number of stages. Whereas, a Johnson
counter divides by a factor equal to twice the number of stages.
20. Johnson Ring Counter
The Johnson Ring Counter or “Twisted Ring Counters”, is another shift register with feedback
exactly the same as the standard Ring Counter above, except that this time the inverted
output Q of the last flip-flop is now connected back to the input D of the first flip-flop as shown
below.
The main advantage of this type of ring counter is that it only needs half the number of flip-flops
compared to the standard ring counter then its modulo number is halved. So a “n-stage” Johnson
counter will circulate a single data bit giving sequence of 2n different states and can therefore be
considered as a “mod-2n counter”.
This inversion of Q before it is fed back to input D causes the counter to “count” in a different
way. Instead of counting through a fixed set of patterns like the normal ring counter such as for a
4-bit counter, “0001”(1), “0010”(2), “0100”(4), “1000”(8) and repeat, the Johnson counter
counts up and then down as the initial logic “1” passes through it to the right replacing the
preceding logic “0”.
A 4-bit Johnson ring counter passes blocks of four logic “0” and then four logic “1” thereby
producing an 8-bit pattern. As the inverted output Q is connected to the input D this 8-bit pattern
continually repeats. For example, “1000”, “1100”, “1110”, “1111”, “0111”, “0011”, “0001”,
“0000” and this is demonstrated in the following table below.
In this the external clock pulses (pulses to be counted) are fed directly to each of the J-K flip-
flops in the counter chain and that both the J and K inputs are all tied together in toggle mode,
but only in the first flip-flop, flip-flop FFA (LSB) are they connected HIGH, logic “1” allowing
the flip-flop to toggle on every clock pulse. Then the synchronous counter follows a
predetermined sequence of states in response to the common clock signal, advancing one state
for each pulse.
The J and K inputs of flip-flop FFB are connected directly to the output QA of flip-flop FFA, but
the J and K inputs of flip-flops FFC and FFD are driven from separate AND gates which are also
supplied with signals from the input and output of the previous stage. These
additional AND gates generate the required logic for the JK inputs of the next stage.
If we enable each JK flip-flop to toggle based on whether or not all preceding flip-flop outputs
(Q) are “HIGH” we can obtain the same counting sequence as with the asynchronous circuit but
without the ripple effect, since each flip-flop in this circuit will be clocked at exactly the same
time.
Then as there is no inherent propagation delay in synchronous counters, because all the counter
stages are triggered in parallel at the same time, the maximum operating frequency of this type of
frequency counter is much higher than that for a similar asynchronous counter circuit.Because
this 4-bit synchronous counter counts sequentially on every clock pulse the resulting outputs
count upwards from 0 ( 0000 ) to 15 ( 1111 ). Therefore, this type of counter is also known as
a 4-bit Synchronous Up Counter.
To construct a 4-bit Synchronous Down Counter by connecting the AND gates to the Q output
of the flip-flops as shown to produce a waveform timing diagram the reverse of the above. Here
the counter starts with all of its outputs HIGH ( 1111 ) and it counts down on the application of
each clock pulse to zero, ( 0000 ) before repeating again.
As synchronous counters are formed by connecting flip-flops together and any number of flip-
flops can be connected or “cascaded” together to form a “divide-by-n” binary counter, the
modulo’s or “MOD” number still applies as it does for asynchronous counters so a Decade
counter or BCD counter with counts from 0 to 2n-1 can be built along with truncated sequences.
All we need to increase the MOD count of an up or down synchronous counter is an additional
flip-flop and AND gate across it.
Ring counter is a typical application of Shift resister. Ring counter is almost same as the shift
counter. The only change is that the output of the last flip-flop is connected to the input of the
first flip-flop in case of ring counter but in case of shift resister it is taken as output. Except this
all the other things are same.
No. of states in Ring counter = No. of flip-flop used
So, for designing 4-bit Ring counter we need 4 flip-flop.
In this diagram, we can see that the clock pulse (CLK) is applied to all the flip-flop
simultaneously. Therefore, it is a Synchronous Counter.
Also, here we use Overriding input (ORI) to each flip-flop. Preset (PR) and Clear (CLR) are used
as ORI.
When PR is 0, then the output is 1. And when CLR is 0, then the output is 0. Both PR and CLR
are active low signal that is always works in value 0.
PR = 0, Q = 1
CLR = 0, Q = 0
These two values are always fixed. They are independent with the value of input D and the Clock
pulse (CLK).
Working –
Here, ORI is connected to Preset (PR) in FF-0 and it is connected to Clear (CLR) in FF-1, FF-2,
and FF-3. Thus, output Q = 1 is generated at FF-0 and rest of the flip-flop generate output Q = 0.
This output Q = 1 at FF-0 is known as Pre-set 1 which is used to form the ring in the Ring
Counter.
This Preseted 1 is generated by making ORI low and that time Clock (CLK) becomes don’t care.
After that ORI made to high and apply low clock pulse signal as the Clock (CLK) is negative
edge triggered. After that, at each clock pulse the preseted 1 is shifted to the next flip-flop and
thus form Ring.
From the above table, we can say that there are 4 states in 4-bit Ring Counter.
4 states are:
1000
0100
0010
0001
In this way can design 4-bit Ring Counter using four D flip-flops.
Types of Ring Counter – There are two types of Ring Counter:
1. Straight Ring Counter –
2. Twisted Ring Counter –