Chapter 3
Chapter 3
CPU
CPU means central processing unit.
CPU is the main device of the computer that controls the manipulation of
data that come from the computer’s hardware or software.
CPU contains three different parts that are Arithmetic/Logic
Unit(ALU),Control Unit(CU) and Registers.
Embedded system
The system can only work specific task that is also called Embedded system.
Arithmetic/Logic Unit(ALU)
The circuits that perform the operations on the data.
ALU carries out calculations and makes logical decisions and the immediate
access store(RAM)
Control Unit(CU)
The circuit coordinates the activities of the CPU.
CU controls the input and output devices.
The circuits send the control signal to another part of the CPU.
A control unit receives data from another peripheral device and translates
it into control signals that are delivered to the processor.
The control unit fetches internal program instructions from the main
memory to the processor instruction register and generates a control signal
based on the contents of this register to supervise the execution of this
instruction.
Registers
Quick,small stores of data within the CPU.
Storage location inside the CPU used to hold an instruction, an address, or
other data.
That are extremely fast to access but there are usually only a relatively
small number of them.
Common Register
Accumulator holds the result of calculations performed by the ALU.All input
and output from the CPU pass through the accumulator.
Program counter holds the memory address of the next instruction to be
fetched.
Current Instruction register holds the instruction currently being executed.
Main Memory
Main memory is directly accessible by the CPU.
Main memory also includes RAM,ROM ,but in practice usually refers to
RAM
RAM
RAM means Random accesss memory.
RAM is the primary storage device.
RAM has quick read/write times,and its function is to load open programs
and operating system data currently in use from the slower secondary
storage,so it can be accessed directly by the CPU.
It is volatile memory.
ROM
ROM can only be read., can’t be changed once programmed.
Use to store the start-up instruction which tells the computer what to do
when it is started up.
ROM is a non-volatile memory type so that can retain data when power is
lost.
It is used to store the permanent data.
Cache
Cache is a type of memory that stores copies of
frequently used data.
Cache is much faster than RAM, though has a much
lower capacity.
Cache is physically closer to the processor.
Virtual Memory
A memory management procedure needed
when the RAM is full
The OS(operating system) creates a temporary
section of volatile memory in the secondary
storage.
Data from processes not currently being used
are sent as pages from the RAM to the virtual
memory. When they are needed they are swapped back.
It is much slower than RAM so it cannot use for real-time applications.
Flash Memory
Flash memory is non-volatile storage.
Flash memory is solid state device which means that there is no moving
part.
Von Neumann Architecture
The computer in which the processing
instructions are stored in memory with the
data is called a stored-program
computer(stored program concept) or a von
Neumann architecture computer.
Instruction are executed sequently.
One instruction at a time is fetched from memory and passed to the CPU.
Clock
Computers have a system clock that provides timing signals to synchronize
circuits and also in shown in Hz
The speed of the CPU is measured in clock frequency.
The faster the clock speed,the faster the rate of processing.
Generally 3Mhz clock CPU is more faster than 2Mhz CPU.
Execute
Address bus
An address bus sends a memory
address along the bus from the CPU
to the memory.
To fetch/write data, the CPU needs
to tell the RAM the address
The address bus type is
unidirectional.
Data bus
A data bus sends the actual data to
and from the memory.
The data bus type is bidirectional.
Control bus
A control bus carries commands from the CPU and status message from
other hardware devices.
The control bus type is bidirectional.