Microprocessor 8086 & Modern Microprocessor
Microprocessor 8086 & Modern Microprocessor
6 Modern Microprocessor
Unit-IV
Syllabus :
Evolution of Microprocessor and type, 16 bit Microprocessor - 8086, Features of 8086, pin diagram and architecture
timing
of 8086, Flag register and segment registers of 8086, Minimum mode and maximum mode of operation,
Pentium Family
diagram, concept of memory segmentation and pipelining, physical address generation. Overview of
length, addressing
and Processors, Characteristics of RISC processor, CISC with RISC in terms of Instruction set,
modes.
The first truly general-purpose microprocessor, developed in It was still an invention in search of a market however, as the
1974, was the 8-bit Intel 8080, which contained 4,500 technology world was just beginning to view the
transistors and could execute 200,000 instructions per second. microprocessor as a solution to many needs.
By 1989, 32- bit microprocessors containing 1.2 milion 8080 (1974) :
transistors and capable of executing 20 million instructions
per second had been introduced. The 8080 were 20 times as fast as the 4004 and contained
Microprocessors are fabricated using techniques similar to twice as many transistors.
those used for other integrated circuits, such as memory This 8-bit chip represented a technological milestone as
chips. engineers recognized its value and used it in a wide variety of
Microprocessors generally have a more complex structure products.
than do other chips, and their manufacture requires extremely It was perhaps most notable as the prOcessor in the first kit
precise techniques. computer, the Altair, which ignited the personal computing
The first step in producing a microprocessor is the creation of phenomenon.
an ultrapure silicon substrate, a silicon slice in the shape of a
round wafer that is polished to a mirror-like smoothness. 8088 (1979) :
At present, the largest wafers used in industry are 300mm Created as a cheaper version of Intel's 8086, the 8088 was a
(12 in) in diameter. 16-bit processor with an 8-bit external bus.
Intel 4004 (1970) : This chip became the most ubiquitous in the computer
industry when IBM chose it for its first PC.
Intel's Ted Hoff and Federico Faggin designed and The success of the IBM PC and its clones gave Intel a
implemented (respectively) the first general-purpose dominant position in the semiconductor industry.
microprocessor.
2 Digi. Tech. and Microprocessor (TISem 3/MSBTE) 6-2 Microprocessor : 8086 &Modern Microprocessor
It provides consumers great performance at an exceptional
80286 (1982) : value, and it delivers excellent performance for uses such as
With 16 MB of addressable memory and 1GB of virtual gaming and educational software
memory, this 16-bit chip is referred to as the first "modem"
microprocessor.
Pentium ll(1999) :
Many noices were introduced to desktop computing with a The Pentium IIprocessor features 70 new instructions.
"286 machine" and it became the dominant chip of its time. It was designed to significantly enhance Internet experiences,
It contained 130,000 transistorsS and packed serious compute allowing users to do such things as browse through realistic
power (12 MHz) into a tiny footprint. online museums and stores and download high-quality video.
The processor incorporates 9.5 million transistors using 0.25
80386 (1985), 80486 (1989): micron technology.
climb with
The pricelperformance cçrve continued its steep
that broughtreal Pentium llI Xeon(1999):
the 386 and later the 486 --32-bit processors
computing to the masses.
The Pentium IIXeon processor extends Intel's offerings to
The 386, which became the best-selling microprocessSor in the workstation and server market segments, providing
than a
history, featured 275S,000 transistors; the 486 had more additional performance for e-Commerce applications and
million. advanced business computing.
The processors incorporate the Pentium II processor's 70
Pentium (1993) : SIMD instructions, which enhance multimedia and streaming
Adding systems-level characteristics to enormous raw video applications.
compute power, the Pentium supports demanding VO, The Pentium II Xeon processor's advance cache technology
speeds information from the system bus to the processor,
graphics and communications intensive applications with
more than 3 million transistos. significantly boosting performance.
It is designed for systems with multiprocessor configurations.
Pentium Pro (1995) :
Intel's Pentium-4 processor :
The newest Pentium has dynamic instruction execution and
The Pentium-4 is fabricated in Intel's 0.18-micron CMOS
other performance-enhancing features such as a large L2
cache in the chip package, in addition to its more than 5.5 process.
million transistors. Its die size is 217 mm2 and power consumption is 50W.
The Pentium 4is available in 1.4GHz and 1.5Hz bins.
Pentium Il (1997) : At 1.5GHz, the microprocessor delivers 535 SPECint2000
The 7.5 million-transistor Pentium I processor incorporates and 558 SPECfp2000 of performance.
Intel MMXTM technology, which is designed specifically to Currently it is the second-performing general-purpose
process video, audio and graphics data efficiently. microprocessor.
The world champion is Compag/Digital Alpha 21264B CPU
Pentium lIl Xeon (1998): delivering 544 SPECint2000 and 658SPECfp2000 at
The Pentium II Xeon processors are designed to meet the 833 MHZ.
performance requirements of mid-range and higher servers The previous Intel chip, Pentium-II "Coppermine", had 442
and workstations. SPECint2000 and 335 SPECfp2000 results at 1GHZ.
Consistent with Intel's strategy to deliver unique processor Pentium-4 is the first completely new x86-processor design
products targeted for specific markets segments, the Pentium from Intel since the Pentium PRO processor, with its P6
II Xeon processors feature technical innovations specifically micro-architecture, was introduced in 1995. Pentium-4'
designed for workstations and servers that utilize demanding micro-architecture is known as NetBurst. It has many
2
MicroproceSSOr
Reduced Instruction Set Computer (RISC):
to a full 128-bit and adds an additional register for data
movement. Pentium-4 NetBurst micro-architecture RISC is a type of microprocessor architecture which to
introduces Internet Streaming SIMD Extensions 2(SSE2). highly-optimized set of instructions. RISC reduces the cycl
This extends the SIMD capabilities that MMX technology per instruction at the cost of the number of instructione
and SSE technology delivered by adding 144 new program.
instructions. Pipelining is one of the cxclusive feature of RISC which i
These instructions include 128-bit SIMD integer arithmetic done by overlapping the execution of several instructions in .
and 128-bit SIMD double-precision floating-point operations.
pipeline style. It has a high-performance advantage over
Pentium 4 processor's 400 MHz (100 MHz "quad pumped") CISC.
system bus provides up to3.2 GB/s of bandwidth.
The bus is fed by dual PC800 Rambus channel. This 3 Superscalar Processors :
compares to 1.06 GB/s delivered on the Pentium-II
processor's 133-MHz system bus. A superscalar processor can execute more than one
Two Arithmetic Logic Units (ALUs) on the Pentium 4 instruction per clock cycle. As processing speeds are
measured in clock cycles persecond (megahertz), a
processor are clocked at twice the core processor frequency. superscalar processor will be faster than a scalar processor
This allows basic integer instructions such as Add, Subtract, rated at the same megahertz.
Logical AND, Logical OR, etc. to execute in a half clock
cycle. A superscalar architecture contains parallel execution units.
which can execute instructions símultaneously. Pentiüm
The integer register file runs also runs at the double
processors are the example of superscalar processor.
frequency.
Interesting is that this method was firstly introduced by 4. Application SpecificIntegrated Circuit (ASIC):
Elbrus team in their E2K processor design.
This type of processors are designed and used for specific
application such as automotive emissions control,
Syllabus Topic : Types of Microprocessor environmental monitoring, and personal digital assistants
computers (PDACS). ASICs can be very cost effective for
6.1.1 Types of Microprocessor various applications where volumes are high.
There are five types of microprocessors as described below : ’ 5. Digital Signal Processors (DSP) :
S, S Status
0 Interrupt acknowledge hTA 6 byte
Instruction
0 1 JO Read 3-BUS queue
0 JO Write Bus
interface 2:
0 Halt unit
(BIU) DS
1 0 0 Op-code Fetch
1 0 Memory Read Erecution unt
NTC Contral syste
Memory Write A-BUS
Passive
Pin 29 : LOCK
When i goes low, all interrupts are masked and HOLD FLAGS
rgnest is not granted. Fig. 6.2.2: Architecture or functional block diagramnof808%
Tech. and Microprocessor (IT/Sem 3/MSBTE) 6-8 Microprocessor : 8086 &Moderm Microprocessor
is divided into two Q.6 Draw the flag register structure of 8086 and
As shown in Fig. 6.2.2, the 8086 CPU describe the operation of each lag. (W-10)
independent functional parts i.e. a.7 Staté the significance of following flags of 8086.
Functional parts
() TF ()F (i) DF (v) CF (W-11)
of 8086 CPU Q. 8 Draw the flag register format of 8086
microprocesSor and explain any two flags. (S-14)
1. Execution Unit [EU] Q.9 Draw the neat labeled architecture of flag register
of 8086 microprocessor. (W-14)
Q. 10 Write the function of EU. (S-15)
2.Bus Intertace Unit [BIU]
The functions of execution unit are :
Fig.6.2.3 :Functional parts of 8086CPU
Organization of 8086 To tell BIU where to fetch the instructions or data from.
G Register Structure or 2 To decode the instructions...
18-Bit Register 3 To execute the instructions.
register functions
name
7 07 The EU contains the control circuitry to perform various
AX AH AL Multiply/Divide internal operations.
fetched from
Adecoder in EU decodes the instruction
WO instructions
Byte DL
addressable DX DH
or external contro!
(8-8it
Loop/ Shif/ Repeat memory to generate different internal
signals required to perform the operation.
CH CL Count
register
names
B perform arithmetic and
shown) BX BH >Base registers EU has 16-bit ALU, which can
well as 16-bit data,
RP logical operations on 8-bit as
and shown in Fig. 6.2.6.
S >Index registers Flag register in EU is of 16-bit
flags.
These registers contain nine active
this register are similar to 8085
Five flags in the lower byte of
Stack pointer
SP
Flags
Status flags
Instruction
IP pointer
Trap flag
Interrupt flag
’ Direction flag
Fig. 6.2.6: Flag register format
2.
Auxiliary Carry (AF)
If an Control flags
operation perfomed in ALUgenerates a
from lower nibble (i.e. D-D) to upper carry/baTOW
the AF flag is seti.e. carry given by D, nibble (i.e. D4-D), S-10, W-11.5
bit to D, is AF flag. The three control flags are
This is not general-purpose flag; it is used
processor to perform binary to BCD conversion. internally by the
Three control flags
3.
Parity Flag (PF)
This flag is used to indicate the 1. Trap Flag (TF)
If lower order 8-bits of the
parity of
result.
result of an operation contains
even number if 1, the parity flag is set and 2. Interrupt Flag (IF)
for odd number
of 1, the parity flag is reset.
4
3. Direction Flag (DF)
Zero Flag (ZF)
It is set, if the result of
arithmetic or logical Fig. 6.2.7 :Three control flags
else it willbe reset. operation is zero
Trap Flag (TF)
5. Sign Flag (SF) It is used for single step
control.
In sign magnitude format the sign of number is indicated by It allows user to execute
one instruction of a programli
MSB bit. time for debugging.
If the result of operation is
negative, sign flag is set. When trap flag is set, the program can be
mode. run in single se)
The sign flag is replica of MSB bit of result..
2
6. Overflow Flag (OF) Interrupt Flag (IF)
In case of the signed arithmetic It is an interrupt enable /
operation, the overflow flag is disable flag.
set,if the result is too large to fit inthe numbers bits If it is set, the maskable
available interrupt INTR of 8086 is enablal
to accommodate it. and if it is reset, the
interrupt is isabled.
The overflow flag has no It can be set by executing
operation.
significance in unsigned arithmetic by executing CLI instruction STI and can be Cleu
instruction.
3
Difference between Carry and Overflow Flags Direction Flag (DF)
Carry Flag The DF (Direction flag) is used in
Overflow Flag string operation.
II DF is set, string bytes are read or write from nig
Generated during the arithmetic Generated during the memory address to lower memory address.
and logical operation on arithmetic and logical If DF is reset, the string bytes are read or write fromlower
unsigned numbers operation on signed numbers
memory address to higher memory address.
Generated by D7 or Dl5 bit of 8 Generated by D6 or Dl4 bi The DF can be set by executing
or 16 bit number of 8or l6 bit STD instruction and ca
number reset by executing CLD
instruction.
Sfrip!
tata
Digi. Tech. and Microprocessor(T/Sem 3/MSBTE) 6-10 Microprocessor : 8086 &Modern Microprocessor
The memory pointers are used to point or address particular
8086
G General purpose registers of memory locationin memory
W-09. W-10, S-12 Following register acts as the memory pointers register in
8086.
bit general purpose
Execution Unit (EU) contains eight 16
DX, SP, BP, SI and DI as The Code Segment CS register is used to address a
registers named as AX, BX, CX,
memorylocationin the code segment of the memory,
shown in Fig. 6.2.4. used where the op-code of program is stored.
BX, CX and DX can be
Out of these registers, AX, CL, CH. The Data Segment DS register points to the data
i.e. AL, AH, BL, BH,
either as eight 8-bit registers
16-bit i.e. AX, BX, CX and segment of the memory, where the datg is stored.
DL. DHor can be used as four The Extra Segment BS register is used to address the
DX. and AX is segment, which is additional data segment, used to
as 8 bit accumulator
The AL register is called store data.
accumulator..
called as 16 bit The Stack Segment. SS-egister is used to points stack
purpose job, some register have
In addition to the general can location in stack segment of the memory and used to
nomally used as a counter, BX
special task such as CX is hold store data temporarily on the stack such as the contents
used for /O addressing to
be used as a pointer and DX is instructions of the 8086 of the CPU registers, which will be required later stage
the VO address in some beead of execution.
microprocessor. offct and BP The Default Segment base and offset pair registers
are(CS:IP
The other registers in EU are SP, BP, S( and DI. SP
holds 16-bit offset within the and/SS:SP.)
are pointer register, which registers.
particular segment. SI and Dl are the index G Instruction queue IQ (Queue)
instructions, register SI
During the execution of string related To increase the execution speed, BIU
fetches as many as six
data or string in data
is used to store the offset of source instruction bytes ahead to time from
memory.
used to store the offset of
segment while the register DI is first-in-first-out 6-byte
destination in data or extra segment. All the six bytes are then held in
register called instruction queue IQ.
6.2.2(B) Bus Interface Unit [BIU] Then all bytes have to be given to EU
one-by-one
S-08, W-09. W-11:S-12, W-14, S-15 may be in parallel with
This pre-fetching operation of BIU speed o
MSBTE Questions execution operation of EU, which improves the
execution of the instructions.
Q.1 List all 16 bit registers of 8086. (S-08, S-12)
BIU of 8086. State their
Q.2 List out various blocks of
(W-11) 6.2.3 Operating Modes of 8086
functions. Microprocessor
interface unit of
Q.3 Describe the functioning of bus W-08. W-12
intel's 8086 microprocessor. (W-09, S-12)
in 8086 MSBTE Question
Q.4 State the names of segment register
microprosessor. (W-14) Q.1 Describe under what situation maximum mode
wite their operation is useful. (W-08, W-12)
Q.5 List all 16 bit register in 8086 and
instructions. (S-15) The microprocessor 8086 operates in two modes i.e.
Q.6 Wite the function of BIU. (S-15) 1 Minimum mode (Single master Mode)
The function of BIUis to send address to: 2. Minimum mode (Two master mode)
(a) Fetch the instruction or data from memory. In minimum mode, all control signals are generated by the
microprocessor 8086 itself.
(b) Write the data to memory.
So, it can be used in single microprocessor based system.
(c) Write the data to the port.
In maximum mode, all control signals are generated by bus
(d) Read data from the port.
controller 8288 not by microprocessor 8086.
Various sections of the BIU are given below.
So, it can be used in multiprocessor system, when
microprocessor based system contains external math co
Syllabus Topic : Segment Registers of 8086 processor like 8087.
G Segment Registers The pin no. 33 i.e. MN MX is used to set either minimum or
maximum mode of microprocessor 8086 and also the
BIU has 4 segment registers of 16-bit each i.e. CS, DS, SS function of pin no. from 24 to 31 will also be changed which
and ES as shown in Fig. 6.2.4. are been already discussed in section 6.2. 1.
Microprocessor: 8086 &Modern
DIgi. Tech. and Microprocessor ((T/Sem 3/MSBIE)
6-11 MicroprocesSor
The CLK is the system clock for the microprocessor,
controller of. 33% duty cycle.
6.2.3(A) 8284 Clock Generator coprocessor and bus
The frequency off the signalis one third [1/31 the frequency
W-14
signal at EFI
or external input
MSBTE Question ofcrystal at X,, X,
Q.1 Draw the interfacing of 8284 cock generator wth whether crystal input or EFI signal should
The F/ Cdecides
8086 microprocessor. List and explain interfacing the CLK output signal.
signals. (W-14) be taken for generating
is used to generate CLK
When F/C is high. the
EFI
three.
signal ie.
Feature frequency divided by
8086and 8088 CLK frequency = EFI
(a) Generates the Systemclock for
signal
to generate CLK
When F/C is low, the crystal 1S USed
microprocessor. frequency divided by three.
(b) Uses crystal or TTL for frequency source. i.e. CLK frequency =crystal
whose frequency is half ot
(c) Provide local READY and multitbus READY The PCLK is a TTL clock signal
affected by F/C signal
synchronization. theCLK signal frequency and not
which synchronizes
(d) Generate system RESET output from schmite trigger input The CSYNC is a synchronization signal PC we have only
(e) Capable of clock synchronization with other 8084 8284s in a system but normally in
multiple
grounded in PC.
() Requires single +5 Volt one 8284. So, CSYNC pin is
crystal is an overtone
The TANK input is used only if the
Description mode crystal is used
type crystal. Normally in PC, simple
The 828-4 is not only clock generator, also it perform three hence this pin is grounded.
different functions as given below.
(b) Ready logic
low for the
Three diferent functions of 8284 This logic generates READY signal
8088 bus cvcle
microprocessor to add wait state in the 8086 /
(a) Generating system clock for the 8086. otherwise the READY signal is made high by 8284.
There are two pairs of input signals which can make READY
(b)Generating READY signal for the 8086. low.
(a) RDYl and AENI.
(c) Generating RESET signal for the 8086. (b) RDY2 and AEN2.
RDYT and RDY2 are the input signals available from the
Fig. 6.2.8: Three different functions of 8284
external devices.
Functionally the 8284 is divided into three different sections Whenever the external devices wants to add wait state in bus
iLe. clock logic, Reset logic and Ready logic. cycle of the 8086 during the data transfer, the external device
The Fig. 6.2.9 shows the block diagram and pin diagram of activate either RDY1 or RDY2 where it is connected.
8284 IC.
Then the 8284 generates synchronized READY signal for
F/O CSYNC 8086. Thus 8086 adds wait state in processor's bus cycle.
cSYNC 18 Voc
X Clock
17 X1
(c) RESET logic
Clock loglc OSC
PCLK 2
X2
EF1 -PCLK AENT 3 8 16] X2 This logic generates RESET signal for 8086 microprocessor.
RDY1 T4 4 15 TANK
RDY1
READY C5 14]EFI When the RES input pin is made low., the reset logic
AEN1
RDY2 Ready logic READY ADY2 6 13F/C generates high active RESET signal for 8086.
AEN2 C7 12 osC
AEN2 CLK 11 RES In PCs, the RES input is connected to either 'Power Good
Reset logic -RESET GND 9 10 Reset signal from SMPS or Power on Reset' from R-C low pass
RES
filter circuit.
Fig. 6.2.9: Block diagram and pin diagram of 8284 G Interfacing 8284 with 8086
(a) Clock logic description W-14
The clock logic generates three different output signals The interfacing of 8284 with the 8086 microprocessor
ie. CLK. OSC and PCLK. shown in Fig. 6.2.10
3/MSBTE) 6-12 Microprocessor : 8086 &Modem Microprocessor
Digi. Tech. and Microprocessor(IT/Sem
+5V 50 Signal Description
18
Input Signals
Voc Voc |STATUS INPUT PINS: These pins arc the input pins
CLK S, S,S, from the 8086 processors and the 8288 decodes these
Lo
Cysta CLK
310 pF 18
RESET
READY
2AESET
ZREADY
inputs to generate command and control signals at the
appropriate time.
45V
8080 CLK CLOCK: This is a CMOS compatible input which
Extemal RCR
inlegrator for
120sc 8284
receives aclock signal from the 8284 clock generator
and serves to establish when command/control signals
power on 11RES
are generated.
AENI Clock to the peripherals
RDYI PCLK ADDRESS ENABLE: AEN enables command
AEN
AENZ
EFi44 outputs of the 82C88 Bus Controller a minimum of
ADY2
110ns (250ns maximum) after it becomes active
GND
(LOW). AEN going inactive immediately three-states
9
the command output drivers.
with the 8086 microprocessor COMMAND ENABLE: When this signal is LOW all
Fig. 6.2.10 : Interfacing of 8284 CEN
DEN and PDEN
82C88 command outputs and the
Inactive state. When
controloutputs are forced to their
6.2.3(B) 8288 Bus Controller this signal is HIGH, these same
outputs enabled.
are
used to generate different INPUT/OUTPUT BUS MODE: When the IOB pinis
The 8288 is a bus controller IC IOB
functions in the VO Bus
interfacing memory and I/O strapped HIGH, the 82C88
control signals necessary for the 82C88 functions
of8086. mode. When it is strapped LOW,
devices in maximum mode
in the System Bus mode
The functions of this IC are: Output Signals
control address latch 74LS373
(a) Generate ALE signal to ADDRESS LATCH ENABLE: This signal serves
to
ALE
latches.
or 8282. strobe an address into the address
signals to control data bus DATA ENABLE: This signal serves
to enable data
(b) Generate DT/R and DEN DEN
or system data bus.
transceiver 74LS245 or 8286. transceivers onto either the local
This signal is active HIGH.
control signals on the behalf of
(cy Generate the read/write
8086/ 8088 in maximum mode. Output Signals
different sections signal sets the
Functionaly, the 8288 consists of two DATA TRANSMITRECEIVE: This
DTIR transceivers. A
signal logic. |direction of data flow through the
namely bus command logic and control I/O or
pindiagram of 8288 HIGH on this line indicates Transmit (write to
Fig. 6.2.11 shows the block diagram and |memory) and a LOW indicates Receive (read
from I/0
bus controller.
or memory).
The
|ADVANCED VO WRITE COMMAND:
|AIOWC earlier the
in
MRDC AIOWC issues an VO Write Command
IOB 1 20 Vcc indication
machine cycle to give I/0 devices an carly
Bus +AMWC CLK O 191 0 of a write instruction.
2 Command IORC
kogic ST3 18 $2 line
+AOWC 17 MCEPDEN |UO WRITE COMMAND: This command
INTA 8 IOWC the data bus.
ALE 16 DEN instructs an I/O device to read the data on
AEN 6 15JCEN |The signal is active LOW.
8
MRDC 14 0NTA |VO READ COMMAND: This command
line
CEN Control +DT/R AMWC 13 TORC IORD onto the data
Signals +DEN
instructs an /O device to drive its data
CLK MWTG C9 12 AOVWC bus. This signal is active LOWN.
Logic +ALE
OB +MCEPDEN' GND C]10 11 OWc
|ADVANCED MEMORY WRITE COMMAND:
AMWC command earlier
8288 Block Diagram Pin Diagram of 8288 The AMWC issues a memory write
carly
|in the machine cycle to give memory devices an
Fig. 6.2.11: Block and pin diagram of 8288 bus controller |indication of a write instruction. AMWC is
active
|LOW.
Digi. Tech. and
Microprocessor (IT/Sem 3/MSBTE) Microprocessor : 8086 & Moderm
Input Signals
6-13
Fig. 6.2.12 shows the logic diagram of 74LS245 bidirectional Fig. 6.2.13: Internal Block diagram of 74LS373
buffer.
The bidirectional buffer consists of sixteen non inverting Syllabus Topic : Minimum Mode of 8086
buffers, eight for each direction with tri-state outputs.
The direction of the data flow is controlled by DIR pin. 6.2.3(E) Minimum Mode of 8086
·S-08.S-15
When DIR pin is high, the data flow from A bus to B bus and
MSBTE Questions
when DIR pin is lows, the data flow from B bus to A bus.
Q.1 Draw neat interfacing diagram in mirnimum mode of
The active low enable signal G and the DIR signals are 8086. Explain the function of contrcd signals used.
ANDed to active the bus lines. (S-08)
Each buffer can sink 24 mA and source 15 mÀ of current.
Q. 2 Explain the minimum mode configuration of 8086
Voc GND microprocessor. (S-15)
DIR Voc The general 8086 bases system in minimum mode is shown
B1 A12 G in following Fig. 6.2.14.
A1 -
Crystal
’ B2 A2 3 B
A2
A B A34 4 17 B2 284 AGock
B Deneralor
A4 A45 16 B3 Gerebe
AS + B5 15B4 READY
A56 NIA
A B6 RESET Control
A67 14 B5 RDY bus
A7 -’B7 5 WR
A7 8 13B6 GND
HOLD
A8
A8 9 12 87 8006CPU HLDA
GND 10 11 B8 Wat
DTÄ Lateh
stale DEN
DIR generato
Fig.6.2.12: Internal block and pin diagram of 74LS24S ALE
GND
2obit
Address
74S373
Table 6.2.6 indicates the function of 74LS245.
alch
Table 6.2.6 AgA9
BHES, (20r3)
Enabie pin Direction control DIR Direction of data
pin flow
Databus
CLK
AgSg-AyeS,
AND BHES,
AqgS_-A1eS Ajg-As
AND BHE/S, SgS3
(2) ADgs-AD Do-Dis
ADs-AD, Do-Dy5
ALE
an
ALE
Low = Oread, high = memory read
MIC
X
MIO
RD
wnle
DT/R RAreo R
DEN DTIR
DEN
The MRDC and MWTC are used as memory read and write
MSBTE Questions
maximum
interfacing diagram in signals.
0.1 Draw the neat (S-10)
mode of 8086. Beside these signals, AlOWC and AMWCadvance control
maximum mode diagram of 8086.
Q. 2 Describe the (S-11, S-14) signals are available to serve same purpose but are activated
maximum mode one clock pulse earlier th¡n IOWC and MWTC.
With neat diagram, describe the
Q.3 describe functions of The general 8086 bases system in minimum mode is shown
operation of 8086. List and
of 8086. (W-14)
signals of maximum mode inFig. 6.2.17.
Crystal
Maximum mode W
G Importance of MNAMXGND
8284 MWI
Used in multiprocessor
environment clock CLK AMWC
1 multiproce_sor generato 8288
IORC Control
for bus control in AEAOY buA TOWC
8288 Bus Controller is used
bus
2 AESET 0ontrol AIOWC
C
environment AOY DEN INTA
generated in maximum mode for GNC
Advance control signals are ALE
LOCK NC
slower devices
masters i.e. DMA controller
Along with 8086, another twO
8086
4 CPU
interfaced LSTB
and 8087 FPUcan be GND 20 bi
8086 is operated by connecting Address
In maximum mode, the AD-AD15
Ag-A_g
MN/MX pin to groun. B¾S,
the outputs ALE, DEN, DTR on status lines So. S, and S, in T, and T,.
It generates
bus
MRDC, MWTC, AMWC, IROC, MRDC, I0WC and The ALE is generated by 8288 during T, state of the read
cycle.
AIOWC.
The AEN, IOB and CEN pins are especially useful for DT/R, DEN and MRDC or IORC are generated during T;
the
multiprocessor systems. state by bus controller 8288 and make data available on
data bus D,-D,s.
The INTA pin is used to generate two interrupt active low
açknowledge pulses to the inerrupt contruller or to an
interrupting de vice.
YDigi. Tech, and
Microprocessor (IT/Sem 3/MSEIE Microprocessor : 8086 & Moderm
Micro procasen
6-17
60000 H
MSBTE Questions
2FFFF H CS = 2000 H Q.1 Describe physical address generation steps with
Code (S-08)
segment 64 k suitable example.
20000 H Q.2 Define logical and effective addresses. Describe
physicaladdress generation process in 8086.
1FFFF H Data DS.=1000H (W-08)
segment 64 k
generated in 8086
10000 H 0000H .3 How 20 bit physical address is
processor ? (S-09)
Q. 4 Describe how 20 bit physical address is formed in
8086 microprocessor with one suitable example.
Fig. 6.2.20 : Memory segmentation (W-09, S-12, S-15)
Microprocessor : 8086 & Modern
Digi. Tech. and Microprocessor (T/Sem 3/MSBTE)
O.5
Define logical and efective address, Describe
6-19
7 A 3 2 0 Base
Suppose instruction using SI as aoffset register is MOV AX,
[SI] in Register Indirect addresing mode 0 0 2 8 Offset
In above instruction the default base address register is DS
and offset register SI, so the physical address iscalculated as given
below
P.A.= -a
Digi. Tech. and
Microprocessor (T/Sem 3/MSBIE 6-21 Microprocessor : 8086 &
Moderm
Ex. 6.2.6:
Soln. :
IF DS = C239H and SI =
Calculate physical address. 8ABCH, then a.3 Describe pipelined architecture
helps in improving thoughput.
a. 4 Define pipeline
MiicroprocAR
Concept and how
Zero is inserted Q. 5 Explain the pipeliningin 8086
C 2
8
3
A B C IP
9 CS
is queuing useful in speeding up
8086 microprocessor. the
The technique used to enable an instruction
microprocopees roarti,on Ho
2 4 5 67
Cycle 8 9
2
0 SS (a)
DE SP
P.A.=1 FE F 1 F-Fetch
(b) DS: 1F0OH and BX : D
1A00H for MOVAX, (BX] D-Decode
Zero is inserted
E
1 F0 0 SS Clock
E-Execute
Cycle> 1 2 3 4 5
1 A 0 0 SP
(b)
P.A.=2 0 A Fig. 6.2.24: Pipelined execution of three
instructions
Ex. 6.2.8 : First_ instruction requires three cycles to_
If CS=69FAH and IP = 834CH, calculate the execution. complete te
physical address generated. W-14. 4 Marks Next instructions then complete at a rate of one instructok
Soln. : per cycle.
During the clock cycle 5 we have Ia
decoded and I, being fetched as shown incompleting,
Zero is inserted I, being
Fig. 6.2.24(6).
6 9 F A 0 CS Stack is a reserved area of the memory in the
RAM, wei
8 3 4 C IP temporary information may be stored.
Stack operates on the principle of Last In First Out (LO.
P.A.=7 2|2 EC Aqueue is an ordered collection of iitems where the addition
of new items happens at one end, called the "rear," andthe
Syllabus Topic : Concept of the Pipelining removal of existing items occurs at the other end.
The queue operates on the principle of first in fistou!
6.2.7 Concept of the Pipelining (FIFO).
W-09. S-10, W-10, W-12. So that the execution unit gets the instruction for executionin
to enormous raw
Adding systems-level characteristics
demanding IO, micron technology.
compute power, the Pentium supports and
graphics and communications intensive
applications with The Pentium II used a 100 or 133 MHz system bus
Transfer
more than 3 million transistors. either a 512KB L2 cache or a 256KB L2 Advanced
256KB to 1MB, used a Cache.
The Pentium had an L2 cache from
contained trom 3.1 to 3.3
50, 60 or 66 MHz system bus and Pentium lI Xeon (1999) :
milliontransistors
offerings to
The Pentium III Xeon processor extends Intel's
Pentium Pro (1995) : the workstation and server market segments, providng
The newest Pentium has dynamic instruction
execution and additional performance for e-Comnerce applications and.
L2
other performance-enhancing features such as a large advanced business computing.
cache in the chip package, in addition to its more than 5.5 processor's 70
The processors incorporate the Pentium III
million transistors. SIMD instructions, which enhance multimedia and streaming
Typically used in high-end desktops and servers, the Pentium video applications.
were
Pro improved memory from 4GB to 64GB. Typically used in 2-way to 8-way servers, Xeon specs
The Pentium Pro had L2 cache from 512KB to IMB, used a like Pentium IIwith L2cache up to 2MB.
configurations.
60 or 66 MHz system bus. It is designed for systems with multiprocessor
geCooe code ntmohine code bto pde.
R aMicroprocessor (|T/Sem 3/MSBTE) ) 6-3Q.4e Microprocessor:8086 &Modern
Digi. Tech. and
Intel's Pentium-4 processor : 6.4 CISCand RISC Processor
MicroproCes
The Pentium-4 is fabricated in Intel's 0.18-mnicron CMOS
Central Processing Unit Architecture designed .
process.
"Instruçtion Set Architecture" ie. RISC
Its die size is 217 mm2 and power consumption is 50W. (Reduced
instructinisotrnuci
set computing) and CISC (Complex
The Pentium 4 is available in l.4GHz and 1.5Hz bins.
computing).
At 1.5GHz, the microprocessor delivers 535 SPECint2000
and 558 SPECfp2000 of performance. 6.4.1 CISC Processor Architecture
Currentlyit is the second-performing general-purpose The CISC or Complex
microprocessor. Instruction Set Computer is R
based processor architecture, which is designed
The worldchampion is Compaq/Digital Alpha 21264B CPU of
with ahuil.
instructions that were intended to
delivering $44 SPECint2000 and 658SPECfp2000 at
833 MHz.
capabilities in the most efficient way. provide..nede
The CISC processor architecture is designed to
The previous Intel chip, Pentium-III "Coppermine", had 442 simnlk
SPECint2000 and 335 SPECfp2000 results at 1GHZ. compilers and to improve performance under constraint ud
as small and slow memories.
Pentium-4 is the first completely new x86-processor design
from Intel since the Pentium PRO processor, with its P6 CISCprocessor is easy to program and make efficient use a
micro-architecture, was introduced in 1995. Pentium-4' memory.
micro-architecture is known as NetBurst. It has many CISC processor has variable length instructions where t
interesting features. length often varies according the addressing mode
heng
Compared to the Intel Pentium-Ill processor, Intel's NetBurst instructions require multiple clock cycles to exccute.
micro -architecture doubles the pipeline depth to 20 stages. It is easy for micro-coding new instuctions, which allo
In addition to the L1 8 KB data cache,
the Pentium 4
designers to make CISC processor upwardly compatibk
processor includes an Execution Trace Cache that stores up to means a new processor could run the same programs
12 Kdecoded micro-ops in the order of earlier processors because the new processor would contain :
program execution.
The on-die 256KB L2-cache is superset of the instructions of the earlier processors.
associative.
non-blocking, 8- way set In CISC architecture which has software
control unit consists
It employs 256-bit of micro-programmed control memory.
interface that delivers data transfer rate of
48 GB/s at 1.5 GHz. Fig. 6.4.1 shows the CISC
architecture with micro
The Pentium 4 processor expands the programmed control memory and unified cache.
floating point registers Most CISC architectures have a
to a full 128-bit and adds an Complex
movement. Pentium-4'
additional register for data
NetBurst
decoding logic for a single instruction to supportinstrctior
multiple
micro-architecture addressing modes.
introduces Internet Streaming SIMD Extensions 2 (SSE2).
This extends the SIMD capabilities that
MMX technology
and SSE technology delivered by Instrucion
adding 144 new Microprogrammed
control memory and
instructions.
data path
These instruction_ include 128-bit SIMD integer
and 128-bit SIMD arithmetjc
double-precision floating-point operations.
Pentium 4 processor's 400 MHz (100 MHz "quad Control unit
system bus provides up to 3.2 GB/s of bandwidth.. pumped") Cache
The bus is fed by dual
PC800 Rambus
compares to 1.06 GB/s delivered on thechannel. This
processor's 133-MHz system bus. Pentium-III Main memory
Two Arithmetic Logic Units
(ALUs) on the Pentium 4
processor are clocked at twice the core
This allows basic integer processor frequency. Fig.6.4.1: CISC Architecture
instructions such as Add, Subtract, Common characteristic of most CISC hardware architectures
Logical AND, Logical OR, ctc. to execute in a are a small number of general purpose registers result
half clock
cycle. having instructions, which can operate directly on memory.
The integer register ile runs also runs at tlag register also called as condition register, several special
the double
frequency. purpose egisters such as stack pointer, interrupt handling.
and so on.
2 Digi. Tech. and Microprocessor (IT/Sem 3/MSBTE) 6-24 Microprocessor : 8086 &Modern Microprocessor
The examples of CISC processor are
(a) IBM 370/168 ie. 32 bit processor ith 4 general Syllabus Topic : Characteristics of RISC Processor
purpose and 4 64-bit floating point registers)
6.4.3 Characteristics of RISC Processor
(b) VAX 11/780 i.e. 32-bit processor from DEC with large
number of addressing modes and machine instructions, 1 RISCProcessors have a lower number of instructions.
(c) Intel 80486 with instructions with variable length from 2 The addressing modes in RISC processor are also lower.
1to 11 and had 235 instructions and finally Pentium as 3. Allthe operations that are required to be performed take
amodern CISCprocessor. place within the CPU.
6.4.2 RISC Processor Architecture 4 All instruction are executed in a single cycle hence have a
faster execution time.
RISC or Reduced Instruction Set Computer is a hardwired 5 RISC architecture, the processors have a large number of
highly.
processor architecture which utilizes a small, registers and a much more efficient instruction pipeline.
optimized instructions set rather than a more specialized set The instruction formats are of fixed length and can be casily
of instructions normally found in other types of architectures. 6.
Syllabus Topic : CISC with RISC in the term of Sr. Parameter RISC (Reduced CISC (Complex
Instruction Set, Length, Addressing Mode No. Instruction Set Instruction Set
Computer) Computer)
6.5 4 Registers Large number Small number of
Compare CISC with RISC
General Purpose general purpose
S-15
Registers registers and
MSBTE Question Several special
Q.1 Compare RISCand CISC architecture. (S-15) purpose registers
Architecture Load/Store No load/store
Sr. Parameter 5
RISC (Reduced CISC (Complex architecture
No. Instruction Set Instruction Set
type architecture
Computer) Operation Single-cycle Multi-cycle
Computer) 6.
Instruction operation operation
Few Instructions in More instructions
Set instruction set in instruction set 7. Design Hardwired control micro-coded
2.
Data Types Few Data types control
More data types
Addressing Instruction Fixed length
3.
Mode
Few
Modes
Addressing More addressing 8.
Format instruction format
Variable-length
modes instruction format