Basic 1
Basic 1
Basic 1
The model of a computer can be described by four basic units. These basic units
are:
Function
In general terms, there are only four basic functions that a computer can perform
■ Data processing
■ Data storage
■ Data movement
■ Control
Central processing unit (CPU): Controls the operation of the computer and performs its data
processing functions; often simply referred to as processor
I/O: Moves data between the computer and its external environment.
System interconnection: Some mechanism that provides for communication among CPU, main
memory, and I/O. A common example of system interconnection is by means of a system bus,
consisting of a number of conducting wires to which all the other components attach.
Control unit: Controls the operation of the CPU
Arithmetic and logic unit (ALU): Performs the computer’s data processing
functions.
Processor: A physical piece of silicon containing one or more cores. The processor is the
computer component that interprets and executes instructions. If a processor contains
multiple cores, it is referred to as a multicore processor.
The First Generation: Vacuum Tubes
Microcontrollers come in a range of physical sizes and processing power. Processors range from 4-bit to
32-bit architectures. Microcontrollers tend to be much slower than microprocessors, typically operating
in the MHz range rather than the GHz speeds of microprocessors. Another typical feature of a
microcontroller is that it does not provide for human interaction. The microcontroller is programmed for
a specific task, embedded in its device, and executes as and when required.
A microcontroller is a chip optimized to control electronic devices. It is
stored in a single integrated circuit which is dedicated to performing a
particular task and execute one specific application.
Types of Microcontroller
•8 bit Microcontroller
•16 bit Microcontroller
•32 bit Microcontroller
•Embedded Microcontroller
•External memory Microcontroller
History of Microprocessor
•Processor reset
•Program and Variable Memory (RAM) I/O pins
•Device clocking central processor
•Instruction cycle timers
Features of Microprocessor
❍ Arithmetic operations
❍ Logical operations
Also to identify the any one of these two groups- arithmetic or logical, another
control line is needed. So, with the help of three control lines, any one of these
eight operations can be identified.
As for example,
if the contents of controls lines are, 000, then the decoder enables the
addition operation and it activates the adder circuit and the addition operation
is performed on the data that are available in storage register A and B . After
the completion of the operation, the result is stored in register C.
In computer engineering, computer architecture is a set of rules and methods
that describe the functionality, organization, and implementation of computer
systems.
1.Fixed Program Computers – Their function is very specific and they couldn’t be
programmed, e.g. Calculators.
Control Unit – A control unit (CU) handles all processor control signals.
It directs all input and output flow, fetches code for instructions and
controlling how data moves around the system.
Arithmetic and Logic Unit (ALU) – The arithmetic logic unit is that part
of the CPU that handles all the calculations the CPU may need, e.g.
Addition, Subtraction, Comparisons. It performs Logical Operations, Bit
Shifting Operations, and Arithmetic Operation.
Input / Output Devices – Program or data is read into main memory from the input device or
secondary storage under the control of CPU input instruction. Output devices are used to output
the information from a computer.
Buses – Data is transmitted from one part of a computer to another, connecting all major internal
components to the CPU and memory, by the means of Buses. Types:
1.Data Bus: It carries data among the memory unit, the I/O devices, and the processor.
2.Address Bus: It carries the address of data (not the actual data) between memory and processor.
3.Control Bus: It carries control commands from the CPU (and status signals from other devices) in
order to control and coordinate all the activities within the computer.
Von Neumann bottleneck
Whatever we do to enhance the performance, we cannot get away from the fact that instructions
can only be done one at a time and can only be carried out sequentially. Both of these factors
hold back the competence of the CPU.
This is commonly referred to as the ‘Von Neumann bottleneck’. We can provide a Von Neumann
processor with more cache, more RAM, or faster components but if original gains are to be made
in CPU performance then an influential inspection needs to take place of CPU configuration.
This architecture is very important and is used in our PCs and even in super computers.
Harvard Architecture:
Types of Buses:
Data Bus: It carries data among the main memory system, processor and I/O devices.
Data Address Bus: It carries the address of data from processor to main memory system.
Instruction Bus: It carries instructions among the main memory system, processor and I/O
devices.
Instruction Address Bus: It carries the address of instructions from processor to main
memory system.
Operational Registers:
There are different types of registers involved in it which are used for storing address of
different types of instructions.
For example, Memory Address Register and Memory Data Register are operational registers.
Program Counter:
It has the location of the next instruction to be executed. Program counter then passes this
next address to memory address register.
Control Unit:
Control unit the part of CPU that operates all processor control signals.
It controls the input and output devices and also control the movement of instructions
and data within the system.
Harvard architecture has two separate buses for instruction and data. Hence,
CPU can access instructions and read/write data at the same time. This is the
major advantage of Harvard architecture.
In practice Modified Harvard Architecture is used where we have two separate
caches (data and instruction). This is common and used in X86 and ARM
processors.
VON NEUMANN ARCHITECTURE HARVARD ARCHITECTURE
Same physical memory address is used for Separate physical memory address is used
instructions and data. for instructions and data.
There is common bus for data and Separate buses are used for transferring
instruction transfer. data and instruction.
It is used in personal computers and small It is used in micro controllers and signal
computers. processing.
Types of Memory
► Static RAM
► Dynamic RAM
► ROM
► PROM
► EPROM
► EEPROM