**Physical Memory Organization of 8086 & Memory & I/O map — Transcript & Summary | SozAI**
Source: https://sozai.app/transcript/physical-memory-organization-8086-memory-io-map/

Explains the 8086 microprocessor's physical memory organization: even and odd memory banks, BHE/A0 signals for byte and word access, and the 64K I/O address space.

## Key Takeaways

- The 8086's 1 MB memory is divided into even and odd banks to allow efficient 16-bit data transfers using a byte-oriented memory.
- Word access aligned to an even address requires only one memory cycle, so aligned access is preferred for performance.
- BHE and A0 signals together control which bank(s) are enabled and which data lines carry the transferred data.
- The 8086 provides a 64 KB separate I/O address space accessed through IN/OUT instructions.

## What the video covers

- The 8086 is a 16-bit microprocessor but its memory is byte-oriented, so the 1 MB memory is split into an even bank and an odd bank.
- Each bank holds 512 KB, and even addresses map to the even bank while odd addresses map to the odd bank.
- Accessing a 16-bit word starting at an even address takes one memory cycle, while starting at an odd address takes two memory cycles.
- The BHE (Bank High Enable) and A0 signals select which bank(s) to access, enabling byte-wide or full-word transfers.
- Data lines D0-D7 carry the lower byte and D8-D15 carry the higher byte, with the combination of BHE and A0 determining which lines are used.
- The Bus Interface Unit (BIU) and Execution Unit (EU) work together, with the BIU fetching instructions from memory into a queue passed to the decoder.
- The decoder translates instructions into steps sent to the timing and control unit to execute them.
- The memory map reserves low addresses for the interrupt vector table (256 entries, 4 bytes each) and places ROM at the top of the 1 MB space.
- The 8086 supports a 16-bit I/O address space, addressable as 64 KB of I/O ports via direct or indirect (DX register) addressing.
- The video concludes by summarizing physical memory organization and I/O addressing for the 8086.

## Chapters

1. 00:00 Introduction to 8086 Memory Organization
2. 01:09 16-bit Data Transfer and Byte-Oriented Memory
3. 02:11 Memory Cycles for Even and Odd Addresses
4. 03:20 BIU, Execution Unit and Instruction Flow
5. 04:38 Even and Odd Bank Selection with BHE and A0
6. 06:11 Data Line Usage for Byte and Word Access
7. 07:57 Memory Map and Reserved Areas
8. 08:58 I/O Address Space and Port Addressing
9. 10:02 Conclusion

Answers

## Questions about this video

### Why is the 8086's 1 MB memory divided into even and odd banks?

Although the 8086 is a 16-bit processor, its memory is byte-oriented. Splitting memory into even and odd banks lets the processor read or write a full 16-bit word in a single cycle when accessing an aligned even address.

### How many memory cycles are needed to access a word at an odd address?

Accessing a word at an odd address requires two memory cycles, one for the lower byte from the odd bank and one for the higher byte from the even bank, which is why even-aligned access is preferred.

### What is the size of the I/O address space in the 8086?

The 8086 has a 16-bit I/O address, allowing it to address up to 64 KB of separate I/O ports, accessed via direct addressing or indirectly through the DX register.

## Full Transcript — Download SRT & Markdown

00:00

Speaker A

welcome to another episode of the micro process force in this episode I will teach with the physical memory organization we already know that this 80286 is a 16-bit microprocessor means that it can handle 16 bits of data at a time but

00:24

Speaker A

most of the ices are byte oriented that means that each memory location contains one byte of data in fact that the memory will be separately counter to the microprocessor so here two memory chips will be used to store these two

00:39

Speaker A

consecutive by itself so the event memory will be saved at that even bank and r2 memory will be saved at the art pen that means that the entire memory of one MB will be divided into two banks one is even bent and another one is odd

00:53

Speaker A

banker in even bank all the memory addresses are even typed and odd memory bank will be that dresses will be the harder memory addresses so in fact this each memory location contains one byte of data but here the microprocessor

01:09

Speaker A

design for a 16-bit microprocessor that means that it can handle 16 bit of data at a time in order to save these 16 bit of data at a time we need to use the two consecutive memory locations means that

01:22

Speaker A

let us take a value of 1 0 0 0 hits memory location we need just say 1 2 edge in the next consecutive memory location we need to store another value 3 4 edges so this is the lower

01:37

Speaker A

significant byte and this is the most significant but if we are selecting the event memory then we can use only one byte of memory cycle for a reading and writing operation if you are selecting your odd memory address then in one

01:54

Speaker A

lower significant byte will be saved at the first first two and the next one is a most significant bit in the next two consecutive memory locations means that 2 bytes will be required to save to read and write the poem memory cycles so for

02:11

Speaker A

the event memory we need only one memory cycle required reading or writing operation but for in case if we are selecting our memory address we need to use the two memory cycles for a saving the lower significant bit and simile I

02:26

Speaker A

have significant idea in general the processor provides two signals like a nut and a beanie Chiba if you are using a nut and we hit C but in such a manner by putting 0 0 and 0 1 and 1 0 1 0 like

02:44

Speaker A

that we can access the event Bank or else art Bank and you can access both banks 2 X is the complete work order to transfer the complete word so here I'm already told you the entire it generate 6 make the processor 1 MB memory

03:00

Speaker A

physically divided into who bends when his aunt Bank and another one is even being done so each Bank contains 512 KB each addressed in Kerala by the processor here the instructions generally coming from the memory to the processor in the processor we have a two

03:20

Speaker A

units one is bus interface unit and next one is execution unit so the memory will be externally connected to the microprocessor so in general the information will be stored into the memory here the memory chips are used to

03:35

Speaker A

memory chips to save the logon and significant bit and is significant byte our 16-bit offer data our opcode so the instructions are coming from the memory in the form of byte our word so in sometimes we need to store their data

03:50

Speaker A

and sometimes we need to store the OPCON in other times both data and opera app will be there in the memory itself for identifying the OP course and data the memory instructions are coming to the processor in that queue in the queue the

04:05

Speaker A

prefix senior citizens are centered to the decoder internal decoder unit in the decoder what happened the instructions are translated into sequence of steps so what are the actions to be taken that the decoder output will be sent to the

04:18

Speaker A

timing and control unit as in the form of her input to execute the intersections the percenter face unit takes not to memory cycles for referring the word word data by choosing a starting byte is located at an even address so if

04:35

Speaker A

you are cruising in even if this is the starting address then one memory cycle is enough if we are choosing an aren't addressed to memory cycles are required to be done right the complete world so preferably the people are always

04:49

Speaker A

choosing the even a desert to transfer the entire word but reading and writing operation so if you are choosing the odd address the lower significant bed will be stored first and the next consecutive memory location will be read as it is

05:02

Speaker A

significant but that not would have discusses these things let us say here the memory will be divided into two banks one is even Bank under other one is art bank this even Bank is 512 kb h and art Bank is also quite well KB so

05:19

Speaker A

each Bank is divided into five lkv each so the wind bank is nothing but the even memory address will be saved here and how odd Bank is nothing but our memory will be saved or Damaris is disabled in

05:31

Speaker A

the part memory frame so by selecting the inert and bgg but when we are counting this Phe bar cross the Phe bar ability bar is counter to the cs bar means the chipset of the bank one on D

05:44

Speaker A

anata from the processor field is counter to the chips of the for a bank zero to access the bank zero or even back and s is the art painter in some cases we need to use that to memory

05:55

Speaker A

bends or to access the entire world or in the visor so this is the memory interfacing we have seen know to sender the data of the D not to do if you pick our D not to d7 as well as APA to the DA to be 15

06:11

Speaker A

depending on selecting the inert and be a chipper let us see the same thing here b HC bar and a knot will be surfing one zero that means that read or write a bite at an even address so that means

06:23

Speaker A

that the d not to d7 a lower bit will be transferred in the same manner read the right bed at in order to reserve you need to select the BG g bar and a notice is 0-1 so that da to be 15 the data lines may

06:36

Speaker A

be used that means that higher beta is that most significant better if we want to access the dinner 2d 15 lines if you want to use the dinner 2d 15 lines our lead relative but would a 10 even address you know desert

06:49

Speaker A

the beach and a naught is zero zero so when you select the beach and in 1900 a complete wild word at an even address that means that dinner too difficult lines will be transferred from the memory to the microprocessor or

07:01

Speaker A

microprocessor food memory in the same way read the negative word at an order trestle if you are choosing the order dresser by putting the pH and the NR a-- is 0-1 the higher bed will be transferred if we are starting 1 0 for

07:15

Speaker A

our debt reserve lower bet will be transferred so that so that the people are always self tend to look further even addressed to send the complete word from the D naught to the 15 so by seeing this table we can easily

07:28

Speaker A

understand how that data lines will be used for reading and writing operation for even address as well as order dress so there are different possibilities by setting the combination of bhe and not so simply we can say band 0 is selected

07:45

Speaker A

for a a naught is requested 0 when we put a a not equal to 0 then Bank 0 is for lower our group ID and we hit Z equals to 0 or bank 1 is selected default so that is for our dead Russell

07:57

Speaker A

our higher bet will be used in yep word let us say here the memory map for how how it looks like so the entire memory and wanted to do the one mA memory will be divided into two bends one is even

08:09

Speaker A

bank under another one in our bank HP memory is 5 l kv h some memory will be dedicated for an introductory table we have a 256 seen per character sir further in practical terms we are using some dedicated memory and some other

08:25

Speaker A

memory will be used for CPU operations and some other memory use it so that means during the program code as well as the data code understand 6 min all these things we just accommodated in the 1 mm 1 MB memory itself so when the age 0 8 6

08:41

Speaker A

is has been reset then of the reset is completed then next and search means space it from the memory location of F of G it that means that this is the wrong memory location defund we have a ROM and

08:54

Speaker A

RAM the ROM information is read only memory all the read only memory informations will be save data from the FM zero hit chip so from F F of zero H to some extent we can use the ROM memory

09:06

Speaker A

of that we can use the RAM memory so in one I'm remembering some memory will be dedicated for a CPU operations let us take F F of zero to five which is for installation installation procedure of eight zero eight six and from 0 6 2 0

09:22

Speaker A

pitch a is rooted for a driver processor initialization and 0 0 0 H 2 that means H is dedicated to store the retro software input vector so that means that the dedicated locations are used for processing of a specific system

09:39

Speaker A

installation as well as the interrupt under if we set functions memory will be allocated from 0 0 14 H to 7 hit fetch it use it for the future purpose particularly to design and interface the hardware and software for itself so far

09:55

Speaker A

we are not using this memory and 0 0 0 2 2 3 F of H is reserved for interrupt vector table then cut pen structure provides a space for a 256 interrupt correct ourselves totally we have it 256

10:09

Speaker A

it interrupts where processor so for that purpose we just accommodated some memory up to 3 FFA chip so each interrupter is the core segment and in instruction pointer pairing each interpreter vector routine it consumes 4 bits so for 256 we're introducing a PC

10:29

Speaker A

seen before so interrupt a vector table fluids 1 k 1 kb 1 kb is nothing but a 0 3 FF its locations from the 0 0 8 you so like that which accommodated memory future purposes as well as the hardware

10:42

Speaker A

and software parts and in tables like that we just use the N type memory coming to the i/o at the same capability before we have seen the memory map of it generates its now we just concentrate on IO map of 88 6 there are data lines are

10:58

Speaker A

16 data lines we are using so 2 power 16 is that sixty five thousand five for what to may have deep i will map offer it generates itself let us see here that dose of an IVA a device must not be

11:12

Speaker A

greater than sixteen bits in size see if we want to interface the i/o devices to the edge zero eight six microprocessor in iowa addressing capability is the sixteen bits in size this means that the maximum number to power 16 means that 64

11:27

Speaker A

kilobytes exactly we can say 65 thousand 536 i/o spaces may be provided to the 88 6 microprocessor i want to versus may be access already cpu that means that the data lines have 16 so the to power 16 is

11:42

Speaker A

64 thousand five it says 65 thousand 536 means that 65,000 5:7 says maybe excessive buildup cpu the in generate six microprocessor can address them up to 64 kilo by i wore white registers are you can say 32 kilo words registers all

12:01

Speaker A

you can say it generates is can generate a 16 bit of for i/o addresses thus it can address up to 64 kilobytes of aegyo or that particular what I will occasions the 16-bit IO address space means that a

12:14

Speaker A

not to a 15-year presence in one clock period t1 and then latched by the ele of the upper after that upper thus line sir so we have a 20 at those lines for i/o interfacing we just used the air not to

12:28

Speaker A

f15 and remaining a 16 to a 19 we just configured as a 0 0 future but we are using a not to f15 to interface the i/o devices logically a 16 to a 19 will be provided as a zeros for a iva operations and next

12:47

Speaker A

one is the 16-bit DX register is used as a 16-bit io @ responder can add the sub to 64 K devices in indirect addressing mode in order to access the external hardware devices to map the hardware devices to the edge rate 6 milk

13:04

Speaker A

processor in indirect addressing mode we just use their DX register to point out the 16-bit over address as well as I go ports are addressing this same with asthma medications the basic addressed it more using the Excel so be

13:20

Speaker A

x-rays to is also used as so I of course are addressed in the same way as memorable equations in the base in addressed mode using B Excel so the BS rest is also used as we access the IP

13:32

Speaker A

address the iBook course arc we access the particular memory locations in that Iowa person so in memory we have primer interfacing the i/o device at the circuit there's a memory locations in case is 0 that is segment address 0 0

13:45

Speaker A

nature so here nature 8 6 microprocessor that the biggest advantage is the memory management system the memory will be and designed as a like designed like a page 0 page 1 and page 2 like that so in memory may apply a mentor facing the i/o

14:02

Speaker A

device address are created as it memory location zone so in the page 0 the memory locations will be same that means the segment addresses it 0 0 here even address bits are transferred from dinner to d7 just now discussed and ordered

14:18

Speaker A

wristbands are transferred from ETA to D 15 when designing a two type system around the edge eight six care must be taken that all the byte resistance in the system should be even address so the engineers are arm is practice it to make

14:32

Speaker A

up the i/o devices to their iterate six microprocessor by providing the even addressed memory particularly in 8-bit i/o system if we are choosing order address then the lower significant bit will be used for first memory location and the connects two consecutive memory

14:48

Speaker A

location is referred as significant byte them so the two memory cycles are use it in order to waste in order to reduce the waste is of the memory cycle the better practice is to use the even addressed memory to design any

15:02

Speaker A

8-bit i/o system around the edge rate 6 microprocessor with this I just conclude the physical memory organization and the i/o address in capability if you liked this video please share and subscribe or at least please be comment how this

15:15

Speaker A

video your comments are valuable we always appreciate your comments and your feedback to improve our quality of the program thank you very much see again bye bye

Topics: 8086 microprocessor physical memory organization even bank odd bank BHE memory interfacing I/O address space interrupt vector table 16-bit data bus

Study this video

- [Flashcards from this video](https://sozai.app/tools/flashcard-maker/#from=transcript&id=101544)
- [Quiz on this video](https://sozai.app/tools/quiz-generator/#from=transcript&id=101544)
- [Crossword from this video](https://sozai.app/tools/crossword-maker/#from=transcript&id=101544)
- [Word search from this video](https://sozai.app/tools/word-search-maker/#from=transcript&id=101544)
- [Study guide from this video](https://sozai.app/tools/study-guide-maker/#from=transcript&id=101544)

Free, made by AI from this transcript. No signup.


---
This is the markdown twin of https://sozai.app/transcript/physical-memory-organization-8086-memory-io-map/ — the same content, without the markup.
Published by SozAI (https://sozai.app). Reuse and quotation are allowed with attribution and a link back.
Machine-readable index: https://sozai.app/llms.txt · data API: https://sozai.app/api/
