Mico Ro Processor
Mico Ro Processor
BIT MICROPROESSOR.
13. 8085 HAS 8 BIT DATA BUS BITS AND 16 BIT ADDRESS BUS BITS.
16. 8086 HAS 2 (SI (Source Index) and DI (Destination Index)) INDEX REGISTERS.
Ans:- A microprocessor is a computer processor for which the data processing logic and control is
included on a single integrated circuit (IC), or a small number of ICs. The microprocessor contains the
arithmetic, logic, and control circuitry required to perform the functions of a computer's central
processing unit (CPU).
1. Arithmetic Logic Unit (ALU): The ALU performs arithmetic (addition, subtraction, multiplication,
division) and logical (AND, OR, NOT) operations on data. It's responsible for executing mathematical
and logical operations specified by the instructions.
2.Control Unit (CU): The control unit manages the execution of instructions. It decodes instructions
fetched from memory, directs the flow of data between various functional units, and controls the
operation of other hardware components to execute instructions in the correct sequence.
3.Registers: Registers are small, high-speed storage units within the CPU used to store temporary
data, addresses, and intermediate results during processing. Common types of registers include the
program counter (PC), instruction register (IR), accumulator (ACC), and general-purpose registers
(GPRs).
4.Clock Generator: The clock generator produces clock signals that synchronize the operation of
various components within the microprocessor. The clock signal determines the speed at which
instructions are executed, commonly measured in Hertz (Hz) or megahertz (MHz).
5.Cache Memory: Cache memory is a small, high-speed memory located directly on the CPU chip. It
stores frequently accessed instructions and data to reduce the time required to access them from
slower main memory (RAM). Cache memory helps improve overall system performance by reducing
memory latency.
6.Data Bus: The data bus is a bi-directional pathway that carries data between the CPU, memory,
and other peripheral devices. It consists of multiple parallel lines, each capable of transmitting a
single bit of data at a time.
7.Address Bus: The address bus is a unidirectional pathway used to specify the memory addresses of
data or instructions being read from or written to memory. It determines the range of memory
locations that the CPU can access.
8.Instruction Set Architecture (ISA): The ISA defines the set of instructions that the microprocessor
can execute, including their formats, operation codes, and addressing modes. It serves as the
interface between software programs and the hardware implementation of the microprocessor.
Q2. EXPLAIN ALU, REGISTER ARRAY AND TIMING CONTROL UNIT OF MICROPROCESSOR
Ans:-
The ALU is the part of the microprocessor responsible for performing arithmetic and logical
operations on data.
Arithmetic operations include addition, subtraction, multiplication, and division. Logical
operations include AND, OR, XOR, and NOT.
ALU operations are controlled by the control unit based on the instructions fetched from
memory.
It typically consists of combinational logic circuits that perform the desired operations on
binary data.
The ALU usually has two inputs (operands) and produces a single output (result). These
inputs and outputs are typically stored in registers.
2.Register Array:
Registers are small, high-speed storage units within the CPU used to store temporary data,
addresses, and intermediate results during processing.
The register array typically consists of several types of registers, each serving a specific
purpose:
o Program Counter (PC): Stores the memory address of the next instruction to be fetched.
o Instruction Register (IR): Holds the current instruction being executed.
o Accumulator (ACC): Often used as the primary register for arithmetic and logic operations.
o General-Purpose Registers (GPRs): Used for storing operands, intermediate results, and
other temporary data.
o Special-Purpose Registers: Serve specific functions, such as the stack pointer, index registers,
and status flags.
Registers are typically implemented using flip-flops or other memory elements and are
directly accessible by the ALU and other CPU components.
The timing control unit (TCU) manages the timing and sequencing of operations within the
microprocessor.
It generates clock signals that synchronize the operation of various components, ensuring
that instructions are executed in the correct sequence and at the appropriate times.
The TCU generates control signals that coordinate the flow of data between the CPU,
memory, and peripheral devices.
It may include counters, timers, and other circuitry to generate precise timing signals
required for instruction execution and data transfer.
The TCU ensures that the microprocessor operates reliably and efficiently by coordinating
the timing of internal operations and external interactions.
The clock speed and timing characteristics of the TCU significantly impact the performance
and reliability of the microprocessor-based system.
Q3. EXPLAIN EVOLUTION OF MICROPROCESSOR.
Ans:-
Ans:-
It is internally divided into two separate functional units. These are the Bus Interface Unit (BIU) and
the Execution Unit (EU). These two functional units can work simultaneously to increase system
speed and hence the throughput. Throughput is a measure of number of instructions executed per
unit time.
Q5. EXPLAIN THE FEATURES OF 8086 .
Ans:-
i) It is 1 MB of memory.
v) It is support pipelining.
Minimum mode
Maximum mode
Ans:-
i) It is 64 kb of memory.
ii) It has been specially designed for multiuser and multitasking systems.
iii) Various versions of 80286 are available that run on 12.5MHz, 10 MHz and 8 MHz clock
frequencies.
iv) The 80286 is the first CPU to incorporate the integrated memory management unit.
v) It has four-level memory protection and support for virtual memory and operating system.
FEATURES OF 80286
i) 32 bit processor.
ii) 8 bytes of data information can be transferred to and from memory in a single bus cycle.
v) Instruction cache.
It provides the interface of 8086 to external memory and I/O devices via the System Bus. It
performs various machine cycles such as memory read, I/O read, etc. to transfer data between
memory and I/O devices.
BIU performs the following functions are as follows:
It generates the 20-bit physical address for memory access.
It fetches instructions from the memory.
It transfers data to and from the memory and I/O.
Maintains the 6-byte pre-fetch instruction queue(supports pipelining).
BIU mainly contains the 4 Segment registers, the Instruction Pointer, a pre-fetch queue, and
an Address Generation Circuit.
The main components of the EU are General purpose registers, the ALU, Special purpose registers,
the Instruction Register and Instruction Decoder, and the Flag/Status Register.
1. Fetches instructions from the Queue in BIU, decodes, and executes arithmetic and logic
operations using the ALU.
2. Sends control signals for internal data transfer operations within the microprocessor.(Control
Unit)
3. Sends request signals to the BIU to access the external module.
4. It operates with respect to T-states (clock cycles) and not machine cycles.
Ans:- The flag register is a 16-bit register in the Intel 8086 microprocessor that contains
information about the state of the processor after executing an instruction. It is sometimes referred
to as the status register because it contains various status flags that reflect the outcome of the last
operation executed by the processor.
The flag register is an important component of the 8086 microprocessor because it is used to
determine the behavior of many conditional jump and branch instructions. The various flags in the
flag register are set or cleared based on the result of arithmetic, logic, and other instructions
executed by the processor.
The flag register is divided into various bit fields, with each bit representing a specific flag. Some of
the important flags in the flag register include the carry flag (CF), the zero flag (ZF), the sign flag
(SF), the overflow flag (OF), the parity flag (PF), and the auxiliary carry flag (AF). These flags are
used by the processor to determine the outcome of conditional jump instructions and other
branching instructions.
Purpose Register. Depending upon the value of result after any arithmetic and logical operation the
flag bits become set (1) or reset (0).
The registers AX, BX, CX, and DX are the general 16-bit registers.
AX Register: Accumulator register consists of two 8-bit registers AL and AH, which can be combined
together and used as a 16- bit register AX. AL in this case contains the low-order byte of the word,
and AH contains the high-order byte. Accumulator can be used for I/O operations, rotate and string
manipulation.
BX Register: This register is mainly used as a base register. It holds the starting base location of a
memory region within a data segment. It is used as offset storage for forming physical address in
case of certain addressing mode.
CX Register: It is used as default counter or count register in case of string and loop instructions.
DX Register: Data register can be used as a port number in I/O operations and implicit operand or
destination in case of few instructions. In integer 32-bit multiply and divide instruction the DX
register contains high-order word of the initial or resulting number.
Ans:- In the context of computer architecture, pipelining refers to a technique used to improve the
performance of a processor by allowing multiple instructions to be processed simultaneously. In the
case of the 8086 processor, which is a popular microprocessor architecture developed by Intel,
pipelining is achieved through a series of stages in the instruction execution process.
Instruction Fetch (IF): The processor fetches the next instruction from memory.
Instruction Decode (ID): The fetched instruction is decoded to determine the operation to be
performed.
Execution (EX): The instruction is executed, which may involve arithmetic or logical operations,
memory accesses, or control flow operations.
Memory Access (MEM): If the instruction requires accessing memory, such as reading or writing
data, this stage handles those operations.
Write Back (WB): The results of the instruction execution are written back to the appropriate
registers or memory locations.
Better resource utilization: By overlapping the execution of instructions, pipelining helps in utilizing
the processor's resources more efficiently, reducing idle time and maximizing throughput.
Smoother operation: Pipelining helps in reducing the impact of individual instruction latencies by
breaking down the instruction execution process into smaller stages. This results in smoother and
more consistent operation of the processor.
Improved instruction-level parallelism: Pipelining enables the exploitation of instruction-level
parallelism within a program by executing multiple instructions concurrently. This leads to faster
program execution and better overall performance.
Ans:-
Ans:- The Intel 8086 is 40 pin DIP Microprocessor. Here we will see the actual pin level diagram of
8086 MPU.
8086 was the first 16-bit microprocessor available in 40-pin DIP (Dual Inline Package) chip. Let us
now discuss in detail the pin configuration of a 8086 Microprocessor.
AD0-AD15: Address/Data bus. These are low order address bus. They are multiplexed with data.
When AD lines are used to transmit memory address the symbol A is used instead of AD, for
example A0-A15. When data are transmitted over AD lines the symbol D is used in place of AD, for
example D0-D7, D8-D15 or D0-D15.
A16-A19: High order address bus. These are multiplexed with status signals. S2, S1, S0: Status pins.
These pins are active during T4, T1 and T2 states and is returned to passive state (1,1,1 during T3 or
Tw (when ready is inactive). These are used by the 8288 bus controller for generating all the memory
and I/O operation) access control signals. Any change in S2, S1, S0 during T4 indicates the beginning
of a bus cycle.
S2 S1 S0 Characteristics
0 0 0 Interrupt acknowledge
0 1 1 Halt
1 0 0 Code access
1 0 1 Read memory
1 1 0 Write memory
1 1 1 Passive state
A16/S3, A17/S4, A18/S5, A19/S6 : The specified address lines are multiplexed with corresponding
status signals.
A17/S4 A16/S3 Function
0 0 No operation
QS1 QS0 Status
Ans:- The 8086 addresses a segmented memory. The complete physical address which is 20-bits
long is generated using segment and offset registers each of the size 16-bit.The content of a segment
register also called as segment address, and content of an offset register also called as offset
address. To get total physical address, put the lower nibble 0H to segment address and add offset
address. The figure shows the formation of 20-bit physical address.