















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Lecture notes from the University of Namibia
Typology: Lecture notes
1 / 55
This page cannot be seen from the preview
Don't miss anything!
















































SEGMENTATION AND MEMORY BANKING
MEMORY SEGMENTATION ctd.. ■ In 8086, memory has four different types of segments. These are:
■ (^) Code Segment
■ (^) How is a 20-bit address obtained if there are only 16-bit registers? ■ (^) The 20-bit address of a byte is called its Physical Address. ■ (^) But, it is specified as a Logical Address. ■ Logical address is in the form of: Base Address : Offset ■ Offset is the displacement of the memory location from the starting location of the segment. MEMORY SEGMENTATION ctd..
■ (^) The value of Data Segment Register (DS) is 2222 H. ■ To convert this 16-bit address into 20-bit, the BIU appends 0H to the LSBs of the address. ■ (^) After appending, the starting address of the Data Segment becomes 22220H. ■ If the data at any location has a logical address specified as: 2222 H : 0016 H ■ Then, the number 0016 H is the offset. ■ (^) 2222 H is the value of DS. MEMORY SEGMENTATION ctd.. Example
■ Where to Look for the Offset MEMORY SEGMENTATION ctd..
■ The contents of the following registers are:
MEMORY BANKING
BHE A 0^ Function 0 0 Whole word 0 1 Upper byte/ odd address 1 0 Lower byte/even address 1 1 none
ARCHITECTU RE
Functional blocks Flag Register Timing and control unit Register array or internal memory Instruction decoding unit PC/ IP
Control Bus Address Bus Data Bus 17 Computational Unit; performs arithmetic and logic operations Various conditions of the results are stored as status bits called flags in flag register Internal storage of data Generates the address of the instructions to be fetched from the memory and send through address bus to the memory Decodes instructions; sends information to the timing and control unit Generates control signals for internal and external operations of the microprocessor
8086 ARCHITECTURE
MAIN HIGHLIGHTS Execution Unit (EU) EU executes instructions that have already been fetched by the BIU. BIU and EU functions separately. Bus Interface Unit (BIU) BIU fetches instructions, reads data from memory and I/O ports, writes data to memory and I/ O ports.