r/ComputerEngineering • u/SureshSL • Feb 27 '19
What is clock in computer?
I am studying about computer architecture. I have no idea about clock in computer. Please explain.
7
Upvotes
r/ComputerEngineering • u/SureshSL • Feb 27 '19
I am studying about computer architecture. I have no idea about clock in computer. Please explain.
5
u/MushinZero CpE / Digital Logic Design Feb 28 '19 edited Feb 28 '19
A clock is a square wave electrical signal. It oscillates from 0 to 1 then 1 to 0 at a regular interval.
The top signal in this timing diagram is a clock: https://i.ytimg.com/vi/VedA7dYe834/maxresdefault.jpg
This is used by circuits to synchronize operations. As opposed to just letting a signal go through a circuit whenever it wants (a combinational circuit), a sequential circuit will only perform an operation on (commonly) the rising edge of the clock. So when a clock goes from 0 to 1, the circuit performs some function. This makes it easier to work with propagation delays in a circuit because you know you have a single clock period to allow a signal to propagate through the circuit.