SlideShare uma empresa Scribd logo
1 de 42
Divide by clock
Deepak Floria
deepakfloria@gmail.com
Clock
• Clock refers to any device for measuring and
displaying the time.
• Clock is repetitive in nature after some time
period.
• Every modern PC has multiple system clocks.
• Each of these vibrates at a specific frequency,
normally measured in MHz .
• A clock "tick" is the smallest unit of time in
which processing happens, and is sometimes
called a cycle.
System Clock
clock
• Some types of work can be done in
one cycle while others require many.
• The ticking of these clocks is what
drives the various circuits in the PC,
and the faster they tick, the more
performance you get from your
machine.
System Clock
Clock Period
clock
Off Time= tOn Time = t On Time On TimeOff Time Off Time
2t
• On time = off time
• Total time = T = 2t
Duty Cycle = [(On Time/Total time) * 100 ]%
Duty Cycle = t /T * 100 %
= t/2t *100 %
= 50%
`
Positive Level
Negative Level
Positive Edge
Negative Edge
Clock Parameters
Posedge to negedge => posLevel => On time => High Level
Negedge to posedge => neg level => Off time => Low Level
Clock Period => Posedge To Posedge or Negedge to Negedge
Divide by Clock
• In SOC some type of job done in one clock and
others in multiple cycle.
• There are many types of Buses inside SOC system.
• These buses works at different clock signal but take
reference from the main system clock.
• Taking Reference as the main System clock we
perform the Divide by Clock operations.
Reference
clock
Divide by 2N
• Freq divide By 2N
• N=1 => Divide By 2
T = 2t
F = 1/T
T = 2t
F = 1/2T
Reference
Clock
Derived
Clock
• Counter: A counter is a device which works on
each edge of the clock and count the number
of clock pulses.
• Mod 2 Counter: Mod 2 counter will count two
clock pulses of the clock signal.
• A mod 2 counter is exactly working for two
clock cycle.
Divide by 2
Clk Count Clock
pulses
X X 0
0 0 1
1 1 2
Q
D-FF
d
Q’
Reference
Clock
Reset
Divide by 2
Mod 2 Counter
T = 2t
T = 2T
Reference Clock
Q = Div/2 Clk
Div/2 Clock
Divide by 4
• Freq divide By 2N
• N=2 => Divide By 4
Reference
Clock
Derived
Clock
Clk period T = 4T
Freq F= 1/T ‘=> 1/4T
• Mod 4 Counter: Mod 4
Johnson counter will
count Four clock pulses
of the clock signal.
• Consider the second FF
Q1 output which is high
for two Clock & low For
Two Clock Cycle
Divide by 4
Clk Count
Q1 Q0
Clock
pulses
X X X 0
1 0 0 1
1 0 1 2
1 1 1 3
1 1 0 4
Divide by 4
D-FF
d0
Q0’
d1
D-FFClock
Reset
Reference
Clock
Reset
Q0
Q1
Clock
Q1’
Divide by 4
• Freq divide By 2N
• N=2 => Divide By 4
Reference
Clock
Q1 Derived
Clock
Q0
T = 2t
F = 1/T
T = 4T F = 1/4T
0
0
1
0
1
1
0
1
0
0
1
0
1
1
0
1
D-FF
d0
Q0’
d1
D-FFClock
Reset
Reference
Clock
Reset
Q0
Q1
Clock
Q1’
Alternative way to Div/4
Pass the O/P of the
1st FF to the next FF
as Clk signal
Alternative way to Div/4
Q1 = Div/4 Clk
T = 2t
T’ = 4T
Reference Clock
Q0 = Div/2 Clk
Ref clk to 2nd
FF
Divide by 8 counter
• Freq divide By 2N
• N=3 => Divide By 8
• A divide by 8 counter requires
three flip flops
• It has 8 possible states
• The Q’ output of the third FF is
given as an input to the first flip
flop
clk Count
Q2 Q1 Q0
Clock
Cycle
X X X X 0
1 0 0 0 1
1 0 0 1 2
1 0 1 0 3
1 0 1 1 4
1 1 0 0 5
1 1 0 1 6
1 1 1 0 7
1 1 1 1 8
O/P of the 3rd FF is high for 3
clk cycle & low for 3 clk Cycle.
This is the required Div/8 Clk
signal
Waveform for Divide by 8
clock
T=2t
T’ = 8T
CLK
Q
Divide by 8 counter Logic Diagram
DFF DFFDFF
CLK
DA
QA DB DC
QB QC
Div/8
Alternative way to Div/8
D-FF
d0
Q0’
d1
D-FFClock
Reset
Reference Clock
Reset
Q0
Q1
Clock
Q1’
D-FF
Clock
Reset
Div/8
Pass the O/P of the
one FF to the next FF
as Clk signal
Alternative way to Div/8
Q2 = Div/8 Clk
T = 2t
T’ = 8T
Reference Clock
Q0 = Div/2 Clk
Divide by 16 counter
• Freq divide By 2N
• N=4 => Divide By 16
• A divide by 16 counter requires 4 flip
flops
• It has 16 possible states.
• The Q’ output of the last flip flop is
connected to input to the first flip flop
clk Count
Q3 Q2 Q1 Q0
Clock
Cycle
X X X X X 0
1 0 0 0 0 1
1 0 0 0 1 2
1 0 0 1 0 3
1 0 0 1 1 4
1 0 1 0 0 5
1 0 1 0 1 6
1 0 1 1 0 7
1 0 1 1 1 8
1 1 0 0 0 9
1 1 0 0 1 10
1 1 0 1 0 11
1 1 0 1 1 12
1 1 1 0 0 13
1 1 1 0 1 14
1 1 1 1 0 15
1 1 1 1 1 16
The last FF O/P
value is low for 8
clk cycle & high
for 8 clk cycle.
This O/P is the
required Div/16
clk signal.
Divide by 16 counter
CLK
Q
T= 2t
8T
T ‘ = 16 T
F = 1/16T
Divide by 16 counter Logic Diagram
DFF DFF DFFDFF
CLK
DA
QA DB DC DD
QB QC QD
QD
Div/16
Divide by 2N
• Freq divide By 2N
• N=N => Divide By N
T = 2t
F = 1/T
T = NT F = 1/NT
Reference
Clock
Derived
Clock
Divide by 2N
Q2
D-FF
d0
Q0’
d1
D-FF
Clock
Reset
Reference
Clock
Reset
Q0
Q1
Clock
Q1’
D-FF
Clock
Reset
Div/N
D-FF
Reset
Clock
Q2’ QN’
d2 dN
• A divide by 3 clock
requires A mod 3 Counter.
• It can be constructed
using 2 FF.
• It has 4 possible states
and it needs only 3 states
Divide by 3
Clk Count
Q1 Q0
Clock pulses
X X X 0
1 0 0 1
1 0 1 2
1 1 0 3
Observe the
OP of 2nd FF
Div/
3 clk
D-FFD-FF
d0
Q0’
d1
D-FF
Clock
Reset
Reference
Clock
Reset
Q0 Q1
Clock Q1’
d Q
Q’
Divide by 3
• Pass the
second FF O/P
to one more FF
which is
triggered as
negedge of clk.
• Make ORing of
Q1 & Q.
• This is the
require Div/3
50 % duty cycle
Clk circuit.
Waveform for Divide by 3
• Freq divide By3
Reference
Clock
Q1
Q0
T = 2t
F = 1/T
T = 3T
0
0
1
0
0
1
0
0
1
0
0
1
0
1
1
1
Q
Div/3
clk
• A divide by 5 counter requires can be developed using Mod 5
Counter in similar method.
• To get 50% duty cycle output one more flip flop is added and
it is negative edge triggered.
• Pass the output of the second
Divide by 5 clock
Clk Count
Q2 Q1 Q0
cycle
X X X X 0
1 0 0 0 1
1 0 0 1 2
1 0 1 0 3
1 0 1 1 4
1 1 0 0 5
Observe the output of
second FF. It is High for 2
cycle & low for 3 cycle.
• Pass the output of the second
FF to one more FF which is
triggered with negedge of clk
then make ORing of these
two.
2T
Waveform for Divide by 5
T =2t
t’= 2+1/2 T
T’=5T
CLK
QB
QD
QB + QD
QA
QA
QB
QB
QC
QC
QDDA DB
DC DD
. .
CLK
Y
.
Divide by 5 Clock Logic Diagram
Divide by 6 counter
• Div/6 can be constructed by johnson counter.
• A Div/6 Johnson counter requires 3 bit FF.
Clk Count
Q2 Q1 Q0
cycle
X X X X 0
1 0 0 0 1
1 1 0 0 2
1 1 1 0 3
1 1 1 1 4
1 0 1 1 5
1 0 0 1 6
The O/P of the 1st FF is
high for 3 clk cycle &
low for 3 clk cycle.
This is the Required
Div/6 clk signal.
Wavaeform for Divide by 6
counter
T=2t
3T
T’ = 6T
Clk
Q
Divide by 7 counter
• A divide by 7 counter
requires Mod 7
counter.
• It has 8 possible
states and it needs
only 7 states.
Clk Count
Q2 Q1 Q0
cycle
X X X X 0
1 0 0 0 1
1 0 0 1 2
1 0 1 0 3
1 0 1 1 4
1 1 0 0 5
1 1 0 1 6
1 1 1 0 7
The O/P of the 3rd FF is High for 3
clk cycle & low for 3 clk cycle.
Pass this O/P to one more FF which
will work negedge of Clk then make
ORing of these two O/P.
Divide by 7 counter
2t
6T
7T
T’=7T
CLK
QA
QD
QA + QD
1 2 3 4 5 6 7 1 2 3 4 5 6
Divide by 7 counter Logic Diagram
.
QA
QA
QB
QB
QC
QC
QDDA DB
DC DD
.
.
CLK
Y
Divide by 9 counter
• A divide by 9 counter
requires Mod 9 counter.
• It has 16 possible states
and it needs only 9 states
clk Count
Q3 Q2 Q1 Q0
Clock
Cycle
X X X X X 0
1 0 0 0 0 1
1 0 0 0 1 2
1 0 0 1 0 3
1 0 0 1 1 4
1 0 1 0 0 5
1 0 1 0 1 6
1 0 1 1 0 7
1 0 1 1 1 8
1 1 0 0 0 9
1 1 0 0 1 10
The 3rd FF O/P value is low for 5 clk
cycle & high for 4 clk cycle.
This O/P is the required Div/9 clk
signal but not 50% duty cycle.
Pass this O/P to one more FF
triggered with negedge clk and
then make Oring fo these two
signal to 50% duty cycle.
Divide by 9 counter
2T
4T
4+1/2T
T’=9T
CLK
QB
QE
QB + QE
1 2 3 4 5 6 7 8 9 1 2 3 4 5 6
Div/9 counter Logic Diagram
DA DB DC DD DEQA
QA
QB
QB QC
QC QD
QD
QE
CLK
Y
.
.
.
. .
.
ThankYou
Deepak floria

Mais conteúdo relacionado

Mais procurados

Sequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsSequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsVinoth Loganathan
 
Delays in verilog
Delays in verilogDelays in verilog
Delays in verilogJITU MISTRY
 
Multi mode multi corner (mmmc)
Multi mode multi corner (mmmc)Multi mode multi corner (mmmc)
Multi mode multi corner (mmmc)shaik sharief
 
Sta by usha_mehta
Sta by usha_mehtaSta by usha_mehta
Sta by usha_mehtaUsha Mehta
 
Verilog presentation final
Verilog presentation finalVerilog presentation final
Verilog presentation finalAnkur Gupta
 
8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )
8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )
8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )Tarun Khaneja
 
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)Revathi Subramaniam
 
Race around and master slave flip flop
Race around and master slave flip flopRace around and master slave flip flop
Race around and master slave flip flopShubham Singh
 
Frequency-Shift Keying
Frequency-Shift KeyingFrequency-Shift Keying
Frequency-Shift KeyingJessie Rama
 
Metastability,MTBF,synchronizer & synchronizer failure
Metastability,MTBF,synchronizer & synchronizer failureMetastability,MTBF,synchronizer & synchronizer failure
Metastability,MTBF,synchronizer & synchronizer failureprashant singh
 

Mais procurados (20)

Sequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsSequential circuits in Digital Electronics
Sequential circuits in Digital Electronics
 
Delays in verilog
Delays in verilogDelays in verilog
Delays in verilog
 
UART
UARTUART
UART
 
Multi mode multi corner (mmmc)
Multi mode multi corner (mmmc)Multi mode multi corner (mmmc)
Multi mode multi corner (mmmc)
 
Array multiplier
Array multiplierArray multiplier
Array multiplier
 
Sta by usha_mehta
Sta by usha_mehtaSta by usha_mehta
Sta by usha_mehta
 
Stick Diagram
Stick DiagramStick Diagram
Stick Diagram
 
Verilog hdl
Verilog hdlVerilog hdl
Verilog hdl
 
SPI Bus Protocol
SPI Bus ProtocolSPI Bus Protocol
SPI Bus Protocol
 
Verilog presentation final
Verilog presentation finalVerilog presentation final
Verilog presentation final
 
8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )
8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )
8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )
 
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
 
Logic Synthesis
Logic SynthesisLogic Synthesis
Logic Synthesis
 
Vlsi stick daigram (JCE)
Vlsi stick daigram (JCE)Vlsi stick daigram (JCE)
Vlsi stick daigram (JCE)
 
Race around and master slave flip flop
Race around and master slave flip flopRace around and master slave flip flop
Race around and master slave flip flop
 
Counters
CountersCounters
Counters
 
Scan insertion
Scan insertionScan insertion
Scan insertion
 
Frequency-Shift Keying
Frequency-Shift KeyingFrequency-Shift Keying
Frequency-Shift Keying
 
Eco
EcoEco
Eco
 
Metastability,MTBF,synchronizer & synchronizer failure
Metastability,MTBF,synchronizer & synchronizer failureMetastability,MTBF,synchronizer & synchronizer failure
Metastability,MTBF,synchronizer & synchronizer failure
 

Semelhante a Divide by N clock

Semelhante a Divide by N clock (20)

Basics Counters
Basics Counters Basics Counters
Basics Counters
 
Combinational Logic Concept Powerpoint Presentation
Combinational Logic Concept Powerpoint PresentationCombinational Logic Concept Powerpoint Presentation
Combinational Logic Concept Powerpoint Presentation
 
Counters r012
Counters  r012Counters  r012
Counters r012
 
Digital Counter Design
 Digital Counter Design Digital Counter Design
Digital Counter Design
 
Chapter 8
Chapter 8Chapter 8
Chapter 8
 
Ch3
Ch3Ch3
Ch3
 
Time delays & counter.ppt
Time delays & counter.pptTime delays & counter.ppt
Time delays & counter.ppt
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Ic 555 timer 0
Ic 555 timer 0Ic 555 timer 0
Ic 555 timer 0
 
555 timer vibrators
555 timer vibrators555 timer vibrators
555 timer vibrators
 
Ripple counter
Ripple counterRipple counter
Ripple counter
 
4 bit Binary counter
4 bit Binary counter4 bit Binary counter
4 bit Binary counter
 
Lecture-32-33.pptx
Lecture-32-33.pptxLecture-32-33.pptx
Lecture-32-33.pptx
 
Counters
CountersCounters
Counters
 
Flip Flop.pdf
Flip Flop.pdfFlip Flop.pdf
Flip Flop.pdf
 
Sequential Ckt.pdf
Sequential Ckt.pdfSequential Ckt.pdf
Sequential Ckt.pdf
 
Digital clock workshop
Digital clock workshopDigital clock workshop
Digital clock workshop
 
AVRTIMER.pptx
AVRTIMER.pptxAVRTIMER.pptx
AVRTIMER.pptx
 
ANALOG AND DIGITAL ELECTRONICS unit 5
ANALOG AND DIGITAL ELECTRONICS unit 5ANALOG AND DIGITAL ELECTRONICS unit 5
ANALOG AND DIGITAL ELECTRONICS unit 5
 
Rtl design optimizations and tradeoffs
Rtl design optimizations and tradeoffsRtl design optimizations and tradeoffs
Rtl design optimizations and tradeoffs
 

Mais de Mantra VLSI

Flip Chip technology
Flip Chip technologyFlip Chip technology
Flip Chip technologyMantra VLSI
 
Physical design
Physical design Physical design
Physical design Mantra VLSI
 
Basic electronics
Basic electronicsBasic electronics
Basic electronicsMantra VLSI
 
Ethertnet data transfer.ppt
Ethertnet data transfer.pptEthertnet data transfer.ppt
Ethertnet data transfer.pptMantra VLSI
 
CRC Error coding technique
CRC Error coding techniqueCRC Error coding technique
CRC Error coding techniqueMantra VLSI
 

Mais de Mantra VLSI (8)

Flip Chip technology
Flip Chip technologyFlip Chip technology
Flip Chip technology
 
Number system
Number systemNumber system
Number system
 
Physical design
Physical design Physical design
Physical design
 
Basic electronics
Basic electronicsBasic electronics
Basic electronics
 
Ethertnet data transfer.ppt
Ethertnet data transfer.pptEthertnet data transfer.ppt
Ethertnet data transfer.ppt
 
CRC Error coding technique
CRC Error coding techniqueCRC Error coding technique
CRC Error coding technique
 
verilog code
verilog codeverilog code
verilog code
 
Synthesis
SynthesisSynthesis
Synthesis
 

Último

Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Riya Pathan
 
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfIntro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfpollardmorgan
 
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort ServiceCall US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Servicecallgirls2057
 
Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMintel Group
 
Future Of Sample Report 2024 | Redacted Version
Future Of Sample Report 2024 | Redacted VersionFuture Of Sample Report 2024 | Redacted Version
Future Of Sample Report 2024 | Redacted VersionMintel Group
 
Digital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfDigital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfJos Voskuil
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03DallasHaselhorst
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis UsageNeil Kimberley
 
Case study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detailCase study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detailAriel592675
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607dollysharma2066
 
Kenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith PereraKenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith Pereraictsugar
 
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu MenzaYouth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menzaictsugar
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africaictsugar
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCRashishs7044
 
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCRashishs7044
 
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxContemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxMarkAnthonyAurellano
 
Organizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessOrganizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessSeta Wicaksana
 
International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...ssuserf63bd7
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCRashishs7044
 
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...lizamodels9
 

Último (20)

Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737
 
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfIntro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
 
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort ServiceCall US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
Call US-88OO1O2216 Call Girls In Mahipalpur Female Escort Service
 
Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 Edition
 
Future Of Sample Report 2024 | Redacted Version
Future Of Sample Report 2024 | Redacted VersionFuture Of Sample Report 2024 | Redacted Version
Future Of Sample Report 2024 | Redacted Version
 
Digital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfDigital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdf
 
Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03Cybersecurity Awareness Training Presentation v2024.03
Cybersecurity Awareness Training Presentation v2024.03
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage
 
Case study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detailCase study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detail
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
 
Kenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith PereraKenya Coconut Production Presentation by Dr. Lalith Perera
Kenya Coconut Production Presentation by Dr. Lalith Perera
 
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu MenzaYouth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
Youth Involvement in an Innovative Coconut Value Chain by Mwalimu Menza
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africa
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR
 
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
 
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxContemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
 
Organizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessOrganizational Structure Running A Successful Business
Organizational Structure Running A Successful Business
 
International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...International Business Environments and Operations 16th Global Edition test b...
International Business Environments and Operations 16th Global Edition test b...
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
 
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
Lowrate Call Girls In Sector 18 Noida ❤️8860477959 Escorts 100% Genuine Servi...
 

Divide by N clock

  • 1. Divide by clock Deepak Floria deepakfloria@gmail.com
  • 2. Clock • Clock refers to any device for measuring and displaying the time. • Clock is repetitive in nature after some time period.
  • 3. • Every modern PC has multiple system clocks. • Each of these vibrates at a specific frequency, normally measured in MHz . • A clock "tick" is the smallest unit of time in which processing happens, and is sometimes called a cycle. System Clock clock
  • 4. • Some types of work can be done in one cycle while others require many. • The ticking of these clocks is what drives the various circuits in the PC, and the faster they tick, the more performance you get from your machine. System Clock
  • 5. Clock Period clock Off Time= tOn Time = t On Time On TimeOff Time Off Time 2t • On time = off time • Total time = T = 2t Duty Cycle = [(On Time/Total time) * 100 ]% Duty Cycle = t /T * 100 % = t/2t *100 % = 50%
  • 6. ` Positive Level Negative Level Positive Edge Negative Edge Clock Parameters Posedge to negedge => posLevel => On time => High Level Negedge to posedge => neg level => Off time => Low Level Clock Period => Posedge To Posedge or Negedge to Negedge
  • 7. Divide by Clock • In SOC some type of job done in one clock and others in multiple cycle. • There are many types of Buses inside SOC system. • These buses works at different clock signal but take reference from the main system clock. • Taking Reference as the main System clock we perform the Divide by Clock operations. Reference clock
  • 8. Divide by 2N • Freq divide By 2N • N=1 => Divide By 2 T = 2t F = 1/T T = 2t F = 1/2T Reference Clock Derived Clock
  • 9. • Counter: A counter is a device which works on each edge of the clock and count the number of clock pulses. • Mod 2 Counter: Mod 2 counter will count two clock pulses of the clock signal. • A mod 2 counter is exactly working for two clock cycle. Divide by 2 Clk Count Clock pulses X X 0 0 0 1 1 1 2
  • 10. Q D-FF d Q’ Reference Clock Reset Divide by 2 Mod 2 Counter T = 2t T = 2T Reference Clock Q = Div/2 Clk Div/2 Clock
  • 11. Divide by 4 • Freq divide By 2N • N=2 => Divide By 4 Reference Clock Derived Clock Clk period T = 4T Freq F= 1/T ‘=> 1/4T
  • 12. • Mod 4 Counter: Mod 4 Johnson counter will count Four clock pulses of the clock signal. • Consider the second FF Q1 output which is high for two Clock & low For Two Clock Cycle Divide by 4 Clk Count Q1 Q0 Clock pulses X X X 0 1 0 0 1 1 0 1 2 1 1 1 3 1 1 0 4
  • 14. Divide by 4 • Freq divide By 2N • N=2 => Divide By 4 Reference Clock Q1 Derived Clock Q0 T = 2t F = 1/T T = 4T F = 1/4T 0 0 1 0 1 1 0 1 0 0 1 0 1 1 0 1
  • 15. D-FF d0 Q0’ d1 D-FFClock Reset Reference Clock Reset Q0 Q1 Clock Q1’ Alternative way to Div/4 Pass the O/P of the 1st FF to the next FF as Clk signal
  • 16. Alternative way to Div/4 Q1 = Div/4 Clk T = 2t T’ = 4T Reference Clock Q0 = Div/2 Clk Ref clk to 2nd FF
  • 17. Divide by 8 counter • Freq divide By 2N • N=3 => Divide By 8 • A divide by 8 counter requires three flip flops • It has 8 possible states • The Q’ output of the third FF is given as an input to the first flip flop clk Count Q2 Q1 Q0 Clock Cycle X X X X 0 1 0 0 0 1 1 0 0 1 2 1 0 1 0 3 1 0 1 1 4 1 1 0 0 5 1 1 0 1 6 1 1 1 0 7 1 1 1 1 8 O/P of the 3rd FF is high for 3 clk cycle & low for 3 clk Cycle. This is the required Div/8 Clk signal
  • 18. Waveform for Divide by 8 clock T=2t T’ = 8T CLK Q
  • 19. Divide by 8 counter Logic Diagram DFF DFFDFF CLK DA QA DB DC QB QC Div/8
  • 20. Alternative way to Div/8 D-FF d0 Q0’ d1 D-FFClock Reset Reference Clock Reset Q0 Q1 Clock Q1’ D-FF Clock Reset Div/8 Pass the O/P of the one FF to the next FF as Clk signal
  • 21. Alternative way to Div/8 Q2 = Div/8 Clk T = 2t T’ = 8T Reference Clock Q0 = Div/2 Clk
  • 22. Divide by 16 counter • Freq divide By 2N • N=4 => Divide By 16 • A divide by 16 counter requires 4 flip flops • It has 16 possible states. • The Q’ output of the last flip flop is connected to input to the first flip flop
  • 23. clk Count Q3 Q2 Q1 Q0 Clock Cycle X X X X X 0 1 0 0 0 0 1 1 0 0 0 1 2 1 0 0 1 0 3 1 0 0 1 1 4 1 0 1 0 0 5 1 0 1 0 1 6 1 0 1 1 0 7 1 0 1 1 1 8 1 1 0 0 0 9 1 1 0 0 1 10 1 1 0 1 0 11 1 1 0 1 1 12 1 1 1 0 0 13 1 1 1 0 1 14 1 1 1 1 0 15 1 1 1 1 1 16 The last FF O/P value is low for 8 clk cycle & high for 8 clk cycle. This O/P is the required Div/16 clk signal.
  • 24. Divide by 16 counter CLK Q T= 2t 8T T ‘ = 16 T F = 1/16T
  • 25. Divide by 16 counter Logic Diagram DFF DFF DFFDFF CLK DA QA DB DC DD QB QC QD QD Div/16
  • 26. Divide by 2N • Freq divide By 2N • N=N => Divide By N T = 2t F = 1/T T = NT F = 1/NT Reference Clock Derived Clock
  • 28. • A divide by 3 clock requires A mod 3 Counter. • It can be constructed using 2 FF. • It has 4 possible states and it needs only 3 states Divide by 3 Clk Count Q1 Q0 Clock pulses X X X 0 1 0 0 1 1 0 1 2 1 1 0 3 Observe the OP of 2nd FF
  • 29. Div/ 3 clk D-FFD-FF d0 Q0’ d1 D-FF Clock Reset Reference Clock Reset Q0 Q1 Clock Q1’ d Q Q’ Divide by 3 • Pass the second FF O/P to one more FF which is triggered as negedge of clk. • Make ORing of Q1 & Q. • This is the require Div/3 50 % duty cycle Clk circuit.
  • 30. Waveform for Divide by 3 • Freq divide By3 Reference Clock Q1 Q0 T = 2t F = 1/T T = 3T 0 0 1 0 0 1 0 0 1 0 0 1 0 1 1 1 Q Div/3 clk
  • 31. • A divide by 5 counter requires can be developed using Mod 5 Counter in similar method. • To get 50% duty cycle output one more flip flop is added and it is negative edge triggered. • Pass the output of the second Divide by 5 clock Clk Count Q2 Q1 Q0 cycle X X X X 0 1 0 0 0 1 1 0 0 1 2 1 0 1 0 3 1 0 1 1 4 1 1 0 0 5 Observe the output of second FF. It is High for 2 cycle & low for 3 cycle. • Pass the output of the second FF to one more FF which is triggered with negedge of clk then make ORing of these two.
  • 32. 2T Waveform for Divide by 5 T =2t t’= 2+1/2 T T’=5T CLK QB QD QB + QD
  • 33. QA QA QB QB QC QC QDDA DB DC DD . . CLK Y . Divide by 5 Clock Logic Diagram
  • 34. Divide by 6 counter • Div/6 can be constructed by johnson counter. • A Div/6 Johnson counter requires 3 bit FF. Clk Count Q2 Q1 Q0 cycle X X X X 0 1 0 0 0 1 1 1 0 0 2 1 1 1 0 3 1 1 1 1 4 1 0 1 1 5 1 0 0 1 6 The O/P of the 1st FF is high for 3 clk cycle & low for 3 clk cycle. This is the Required Div/6 clk signal.
  • 35. Wavaeform for Divide by 6 counter T=2t 3T T’ = 6T Clk Q
  • 36. Divide by 7 counter • A divide by 7 counter requires Mod 7 counter. • It has 8 possible states and it needs only 7 states. Clk Count Q2 Q1 Q0 cycle X X X X 0 1 0 0 0 1 1 0 0 1 2 1 0 1 0 3 1 0 1 1 4 1 1 0 0 5 1 1 0 1 6 1 1 1 0 7 The O/P of the 3rd FF is High for 3 clk cycle & low for 3 clk cycle. Pass this O/P to one more FF which will work negedge of Clk then make ORing of these two O/P.
  • 37. Divide by 7 counter 2t 6T 7T T’=7T CLK QA QD QA + QD 1 2 3 4 5 6 7 1 2 3 4 5 6
  • 38. Divide by 7 counter Logic Diagram . QA QA QB QB QC QC QDDA DB DC DD . . CLK Y
  • 39. Divide by 9 counter • A divide by 9 counter requires Mod 9 counter. • It has 16 possible states and it needs only 9 states clk Count Q3 Q2 Q1 Q0 Clock Cycle X X X X X 0 1 0 0 0 0 1 1 0 0 0 1 2 1 0 0 1 0 3 1 0 0 1 1 4 1 0 1 0 0 5 1 0 1 0 1 6 1 0 1 1 0 7 1 0 1 1 1 8 1 1 0 0 0 9 1 1 0 0 1 10 The 3rd FF O/P value is low for 5 clk cycle & high for 4 clk cycle. This O/P is the required Div/9 clk signal but not 50% duty cycle. Pass this O/P to one more FF triggered with negedge clk and then make Oring fo these two signal to 50% duty cycle.
  • 40. Divide by 9 counter 2T 4T 4+1/2T T’=9T CLK QB QE QB + QE 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6
  • 41. Div/9 counter Logic Diagram DA DB DC DD DEQA QA QB QB QC QC QD QD QE CLK Y . . . . . .