Central Processing Unit
Central Processing Unit
Central Processing Unit
A computer system is a set of equipment that works together to help you do useful work. A computer system can be drawn as a
simple diagram.
A computer system must always have input devices. Input devices allow you to put data into your computer.
A computer system has output devices. Output devices let you see the results of your work on the computer. A computer screen is an
output device. Output Hardware: To translate and display the result of the data processing . Example: Monitor Screen, Printer etc
A computer system has storage devices. You use storage devices to save your work
Processing and Memory Hardware: Where data and information are processed and manipulated to perform the task at hand. It is
also the workspace of the computer, where it temporarily stores data(R.A.M). Examples: Central Processing Unit (CPU), Read
Secondary Storage Hardware: Where the computer system stores data permanently. Example: Harddisk, Pendrive etc
CENTRAL PROCESSING UNIT
Central Processing Unit (CPU ) this is another name of the microprocessor at the core of your
computer system. The C.P.U has the characteristics.
IT is considered as the brain of the computer.
Clock speed
CPU clocks can sometimes be sped up slightly by the user. This process is known as overclocking. The more pulses per second, the more fetch-
decode-execute cycles that can be performed and the more instructions that are processed in a given space of time. Overclocking can cause long
term damage to the CPU as it is working harder and producing more heat.
Cache size
>>The bigger its cache, the less time a processor has to wait for instructions to be fetched.
Number of cores
A processing unit within a CPU is known as a core. Each core is capable of fetching, decoding and executing its own instructions.
The more cores a CPU has, the greater the number of instructions it can process in a given space of time. Many modern CPUs are dual (two) or
quad (four) core processors. This provides vastly superior processing power compared to CPUs with a single core.
Memory and secondary storage
For a computer system to be useful it needs storage: main memory for data and programs that are currently in use and secondary
storage for data and programs that can be accessed when required.
Memory
A computer system needs to have memory for any data that it needs to access quickly. This includes the start-up instructions, the
operating system, programs that are running and any associated data.
The memory in a computer is made up of main memory, cache memory and registers.
Cache memory and registers have already been discussed. They are small but have the fastest access times Main memory is
directly accessible by the CPU. There are two main types of main memory: RAM and ROM.
Random access memory (RAM)
• RAM is required to hold the operating system, applications that are running and any associated data while the computer is on
and in use.
• When a program is loaded it is copied from secondary storage, such as a hard disk drive (HDD), into RAM.
• Any data associated with the program will also be stored in RAM so that the CPU can access both the data and the
instructions. Data is transferred into RAM because accessing data in secondary storage is very slow compared to accessing
data in RAM.
• With more RAM available, more data and applications can be stored in it. Because RAM has fast data access times this leads to
better performance of the system. In practice, a system with more RAM can have more programs open at the same time
without any noticeable decrease in performance. A typical laptop will now have around 8GB of RAM available.
• RAM is volatile, meaning it needs electrical power to operate. Any data stored in RAM is lost when the power is turned off.
• RAM is read/write, which means it can be read from or written to by the computer
Answer=2+3
To carry out this instruction the computer has to complete at least one fetch execute cycle.
Fetch : The control unit fetches the instruction “Add” and the data value (2,3) from RAM.
Decode: The control unit decode s the instruction, and send the signal to ALU, telling it to add the numbers together.
Execute : The ALU carries out the instructions, and add the two numbers together.
Save: The ALU send back the result of the addition to the RAM, the result is saved in the memory location with the label
answer.
TOPICAL QUIZ
There are two possible conditions , the statement can either be “True ” or “False” .Logical statements can be
The electrical switches in a computer can either ne On or Off(1 or 0) and that is why we can say a computer is a two state
device.
Logic also has two states and the states are true and False.
A computer’s ALU can process logical statements because both logics and computers uses two states.
In a computer we use binary to show the state of a switch a’1’ is used to say switch is `on’ and a `0’ to say a switch is `off’
We can also use binary to show the state of a logical statement. A “1 ” is used to show a statement is `true’ and a “0 ” to
show it is `false’.
Linking Logic statement……….
Logic is not just saying whether the statement is true or false. Logical statement can also be used to draw conclusion from data and make
decisions.
To use logic to draw conclusion , you must be able to combine logical statements.
>>When the two statements are linked they can be used to draw conclusion.. We can say:
>>> Player has no lives is True THEN Game is Over. Is also true
>>> Player has no lives ‘ is false THEN Game is Over’ is also false
Part of a logical Statement
Logical statement has two parts , In this case we can say ,in a logical statement , everything to the left of “THEN ” is called Propositions. And every
Proposition Conclusion
Add a row for every possible response to the proposition: A two-part statement always need the four responses , in the table
below read them carefully.
NB: Using AND , Then the Conclusion is True only if both parts of the proposition is True(x)
OR =The conclusion is True .if One of the statement(part of proposition is True)(+)