-3

What is the function of the clock signal. I think that when Clock Signal arrives it tells the CPU to make next step (Because each instruction is processed in sequence of microistruction) Example: There is ADD instruction and CPU needs to load first number to register, when clock signal arrives it set WRITE wire so the register will be ready to recieve data, when second clock signal arrives cpu set Write wire onto Ram and send adress to the Memory Controller Hub, when data arrives it has to disable WRITE wire. These 3 microinstructions couldn`t be processed in same time, because the register WRITE wire will be disabled before the data arrives so that will lead that instruction wouldn't be processed correctly. So for me it looks like this: Cpu microcode tells CPU to do something and then wait for the next clock signal make next step... I don't know if I am right?

So the questions are:

  1. How will CPU know when to make next step?
  2. How will CPU know that required data from RAM arrived?
  3. If is true that every stage in pipeline need 1 clock cycle, what CPU will do when it is waiting for data from RAM

Thanks.

PcAF
  • 201

1 Answers1

1

Most integrated circuits (ICs) of sufficient complexity use a clock signal in order to synchronize different parts of the circuit.

https://en.wikipedia.org/wiki/Clock_signal

The above is a good start. If you want to know more, don't ask here -- go find a decent electronics book.

I also see plenty of online learning material on the web. Some of it looks very good. Just google for electronics clock signal.

misha256
  • 11,543
  • 8
  • 60
  • 70