Chapter 5 Complete
Chapter 5 Complete
Ans:
In 1951 a scientist VON NEUMANN and his team proposed a
design of stored program computer.
Ans:
A computer is a combination of different components. These
components perform different functions.
(a)Arithmetic unit
(b)Logic unit
(Arithmetic unit)
→ Arithmetic unit of ALU perform basic arithmetic function
like addition,
multiplication, subtraction and division.
(Logic unit)
Logic unit of ALU perform logical operation like comparing two
data items to find which data item is greater than, equal to or
less than the other.
Main Memory:
→It is an important part(component) of computer system.
→It is used to store program and data that are being
executed.
→It is also working area of a computer system.
(4) I/O Unit:
→It means input and output unit.
→It means the part of computer that control basics input
and output function of computer.
CPU:
→CPU stands for control processing unit.
→It is the brain of the computer.
→It is the most important component of a computer.
→It is also called processor. (MCQ)
→A computer cannot work without CPU.
→All computers must have an enteral processing unit.
→CPU is located on the motherboard.
→Two main units of CPU are a follow:
1 ALU (Arithmetic and logic unit)
ALU
→ALU is a part of CPU. (MCQ)
→Actual execution of instructions takes place in this part.
→All arithmetic and logical operation are performed in ALU.
→It consists of two units:
1) Arithmetic unit
2) Logic unit
Arithmetic unit:
Arithmetic unit of ALU perform basic arithmetic function like
addition,
Logic unit:
Logic unit of ALU perform logical operation like comparing two
data items to find which data item is greater than, equal to or
less than the other.
Control unit:
→Control unit is an important component of CPU.
→It acts like a supervisor of the computer system.
→It performs the following operation;
1) It fetches instruction from main memory.
2) Control unit is responsible to find which operation will be
performed
for processing.
3)It controls the execution of instruction.
(L.Q) What is Main Memory? Explain structure of Main
Memory and its type?
Ans:
Ans:
→RAM is an electronic chip.
→It is made by silicon.
→It has many cells in structure.
→It will give each cell a special address and name.
→RAM cell address means a small place in RAM where
RAM save data.
Ans:
→CPU can get data in a random way.
→That is why RAM is called Random access memory.
→RAM is a read and write memory it means that CPU can
get data from RAM and give data to RAM.
→RAM has two types;
1)DRAM
2)SRAM
DRAM:
→It is a type of RAM.
→It is slower than SRAM.
→It is less expensive.
→It needs to be refreshed.
→It utilizes more power.
→It holds data dynamically not indefinitely.
→>It is less complex and more compact.
SRAM:
→It is the type of RAM.
→It is faster than DRAM.
→It is more expensive.
→It does not need to be refreshed.
→It utilizes less power.
→It holds data indefinitely as long as the computer is turn
on.
→It is more complex and less compact.
ROM:
→ It is a type of primary memory.
→ROM stands for Read only memory.
Ans:
ROM is called read only memory because CPU can only read
data and instruction from ROM cannot give any data towards
ROM.
PROM:
→It is the first type of ROM.
→It is a programable memory.
→The engineers can write instruction in ROM only once.
→If there is error in changing data the ROM become
useless.
→It provides less useability as instructions are written only
once.
E-PROM:
→ It is the 2nd type of ROM.
→It is erasable programable memory.
→In this type the engineer can write instructions many
times.
→If there is error in changing data engineer can erase the
error.
→It provides more usability as instruction are written many
times.
EE-PROM:
→It is the 3rd type of ROM.
→The data and instruction on ROM can be changed with
the help of electronic pulses.
Ans:
Ans:
→ It is the mean part (component) of computer
architecture.
→Bus interconnection is used to join different components
of computer.
→Different buses are used to transfer data and instructions
between different components of computer.
System bus:
→It is the 1st type of bus interconnection.
→It is used to connect internal components(parts) of
computer. [working]
→It is a part of mother keyboard.
→System bus width is 70 to 100
→It has 3 types of system;
1)Data bus
2)Address bus
3)Control bus
Address Bus:
→ It is the 1st type of system bus.
→As we know computer have different components that
work together.
→It is very important to provide data to these components.
→For this purpose, data bus is used.
→Data bus is used to transfer data between RAM and CPU.
→It also transfers data between other components.
→Data bus has 32 or 64 bus width.
Address bus:
→It is the 2nd type of system bus.
→Computer has many components each component has a
unique address.
→If a component wants to get data from another
component it will specify address of that component.
→Address bus is used for his purpose.
→Address bus also have address of RAM cells.
→It is unidirectional. (M.C.Q)
→Bus width of address bus is 32.
Control Bus:
→It is the 3rd type of system bus.
→Computer processing depends upon many components.
(CPU, RAM, CU etc)
→The main component is CPU.
→In some condition computer will transfer control from
CPU to other components.
→For this purpose, control bus is used.
Ans:
When control is transferred from one component to
another component a signal is generated is called
acknowledge signal.
(2)
Exponential bus:
→>It is important type of computer bus.
→>It is used to connect different devices outside from the
computer.
Ans:
→It is an important component of computer architecture.
→It is used to help CPU to increase CPU performance.
→If CPU directly involve to get data from input device, it will
waste allot of CPU time.
→It can perform this function for CPU and CPU
performance is increased.
Ans:
→CPU have 2 methods to get data from I/O unit.
(1) [Interrupt]
→It is a signal.
→In this scheme CPU will generate a signal for I/O unit to
get data from input/output devices.
→All the devices will stop their work to response the signal.
→For example, Calculation.
(2) [DMA]
Register
→It is very small but very fast memory inside CPU.
→It is a part of CPU.
→It is used to save data and instructions for short time.
→It is mostly used to save those instruction that are
executed by CPU.
→It has different type according to their size.
→It can have 1 to 4- or 1-byte size.
Types:
1) PC (Program counter)
2) IR (Instruction register)
3) MAR (Memory access register)
4) MBR (Memory Buffer register)
5) Stack point register
PC:
→It is the 1st type of special purpose register.
→This register is used to count how many instructions and
programs are executed and many are left.
→It is used to save address of instructions.
IR:
→It is the 2nd type of S.P.R.
→It is used to decode the instruction.
→It means that which function is performed to process this
instruction.
MAR:
→It is the 3rd type of S.P.R.
→This register is used to save the address of RAM from
where data is taken and is given.
MBR:
→It is the 4th type of S.P.R.
→It is used to control data that is coming from RAM.
→This register will control the buffering of data.
Segment Register:
→It is a part of RAM.
→It is used to store address of RAM block.
→It is also called address register.
→There are four segments.
→Its size is 2 bytes.
Types:
1) Code segment (CS)
2) Data segment (DS)
3) Extra segment (ES)
4) Stack segment (SS)
Ans:
→IS means that are solved by CPU.
→Different types of CPU can save different IS.
→CPU can normally solve 80 to 120 IS.
Types:
[What is opcode?]
Ans:
It means that what function CPU can perform to solve any
instruction.
I/O Instruction:
→It is the type of instruction set.
→These type of I.S are used by CPU to get data from input
devices and to give data to output devices.
Control Instruction:
→It is the type of I.S.
→These type of I.S is used to shift control from component
to another component.
→E.G shift control from RAM to CPU.
[what is Instruction?]
→An instruction is a programming statement that is written
by programmers to perform special functions on
computer.
[what is operand?]
→It is a part of instruction format.
→Operand reference mean’s the memory location from
where instruction or data is saved.
Zero address:
→It is the 1st type of instruction format.
→In which only opcode is given.
One address:
→It is the 2nd type of instruction format.
→In which opcode and operand reference is used.
Two Address:
→It is the 3rd type of instruction format.
→It is the mostly used instruction format.
→In this type all the bits are used.
Three Address:
→It is the 4th type of instruction format.
→In this type all the 3 sections of instruction format are
used.
→In this type the result of instruction format is very short.
Ans:
→Fetch decode and execute are mostly used in modern
computers to have successful processing.
→According to VON NEUMANN architecture all the
components of computer must follow this cycle.
Fetch Instruction:
→It is the first type of Fetch-decode execute cycle.
→Fetch instruction means to get instruction from RAM cell
address.
→For this purpose CPU send Read memory command.
What is decode?
Ans:
→ It is the 2nd type of Fetch-decode execute cycle.
→In this process register is used coming from RAM.
→Decode unit is used to understand what function are
performed on instruction.
Execute cycle:
→It is the 3rd type of Fetch-decode execute cycle.
→In this process all the operation that are decoded in 2nd
step are applied on instruction for successful execution.
Serial port:
→It is the 1st type of port.
→It can transfer 1 bit at one time.
→It is mostly used where fast speed is not required.
→For example:
Mouse and keyboard.
→It is used in early computers.
→It has speed of 115 kb/s.
Parallel port:
→It is the 2nd type of port.
→It can transfer many bits at a time.
→It is used where fast speed is required.
→For example, “printer”
→Its speed is 12 MB/s.
USB port:
→It is the 3rd type of port.
→Its full form is universal serial bus.
→It is used to connect 127 different devices with computer.
→Its speed is 4.8 GB/s.
Booting:
→It is a function of operating system.
→Booting is process to load window file when computer
starts.
Computer language:
→It is used to write computer programs.
→It is a method to work from computer as we want.
→It is mostly used by computer experts.
→There are two types of computer language;
1) Low level language
2) High level language
Low-level language:
→These languages are used to control computer hardware.
→These languages are difficult to learn.
→These are written in machine language(code).
Machine language:
→It is a type of low-level language.
→Computer can only understand binary language.
→All the programs/codes of machine are written in binary
language.
→It is near to computer and far from human.
Assembly language:
→It is one step higher than machine language.
→Most of the programs in assembly language are written in
special English words.
→For example, to add number we use ADD keyword.
→These special words are called Nemanics
High-level language:
→It is easy to understand.
→It is an advance level of language.
→That is used know a day to make software and
application.
→Instruction of high-level language is mostly written in
English.
Source code:
Object code:
→It is written in machine language through compiler.
→It is difficult to understand.
→It is difficult to modify.
→It contains more statements than source code.