Professional Documents
Culture Documents
Lecturer
Dr. Noora Alallaq 2021-2022
- RAM
Even if your program resides entirely in ROM, your
application is likely to require some random access memory.
Any time your program attempts to write any data to memory
that memory must be RAM. Also, if your program uses the
stack, you need RAM.
- ROM
As the name implies, the processor can only read
instructions and data from ROM; it cannot alter the contents
of ROM. By contrast, the processor can both read from and
write to RAM. Instructions and unchanging data are
permanently fixed into ROM and remain intact whether or
not power is applied to the system. For this reason, ROM is
typically used for program storage in single-purpose
microprocessor applications. With ROM you can be certain
that the program is ready for execution when power is
applied to the system.
Lecturer
Dr. Noora Alallaq 2021-2022
2- CPU:
A central processing unit (CPU), is the hardware within a
computer that carries out the operations of the system, it is
used to process much of the information needed by the
computer, just like our brain thinks and processes
information and gives orders to our other body parts.
CPU Processing
The CPU processes only binary data. This means that all of
the data, such as numbers, letters, colors, or actions to be
performed, are stored in bits and bytes.
Instruction Pointer
This tells the CPU where the instruction or data is stored.
Before a CPU can process data, it needs to know where the
information should be taken from.
Lecturer
Dr. Noora Alallaq 2021-2022
Instruction Fetch
Takes the instruction and data from the part of the memory
that the instruction pointer specifies.
Instruction Decoder
One of the more basic parts of memory where the data is
stored. It can store data which has been processed or will be
processed.
ALU
Arithmetic Logic Unit- used by the CPU to perform the
calculations; completes the functions that the instructions tell
it to perform.
Control Unit
It specifies when the different operations on the CPU are to
be done. For example, it tells the instruction fetch when to
fetch data, or the instruction decoder when to decode data.
Lecturer
Dr. Noora Alallaq 2021-2022
Input/Output units (I/O)
Input Unit is responsible for input information which that
need to process, output unit is responsible for output data
which has been processed.
Lecturer
Dr. Noora Alallaq 2021-2022