Microprocessor (II/II)

Store Program Concept 8085 8086  Microprocessor II/II IOE  All Subject Notes
Store Program Concept Microprocessor IOE  Notes


According to this concept the program instruction are stored in memory along side data in a binary number format. Then the computer could get the instructions by reading them from the memory and program could be set or altered by changing the binary values. This approach is known as store program concept and such architecture is known as Von Neumann architecture.

  1. MBR(Memory buffer resistor):- it consist of the word that is to be stored in the memory or send to I/O unit.
  2. MAR(memory address resistor):- it contain the address of word that is to be written into or read from MBR.
  3. IR(instruction resistor):- it contain the opcode of the instruction to be executed.
  4. IBR(Instruction buffer resistor):- it is temporary resistor that holds the right hand instruction from a word in the memory.
  5. PC(Program counter):- It contains the address of next instruction to be fetched from the memory.
  6. Accumulator and multiplier Quotient(AC & MQ):- it holds the operands and results of ALU after processing.

Architecture of computer  

Every object in the world has its own  architecture  like human has its body architecture even building  and offices has its own architecture.  Architecture defines how function works  the same way computer has  architecture  on which computer runs .

There are two types  architecture 

  • von Neumann architecture  
  • Harvard architecture                                                                                                                

Working of Von Neumann architecture  

von Neumann architecture was designed  and developed by the great mathematician  and scientist John von Neumann in the  year 1945s  most of the computer of today's world  run on the von Neumann architecture  whether mainframe or personal computer .


Microprocessor (II/II)


the input or instruction  comes in and stores in the memory  the input becomes the command and ready  to process  the processor fetched the command from  memory  there is two part in the process 

  1. control unit 
  2.  ALU arithmetic logic unit 
 The role of the CU is to manage the  commands and input/output & work  of ALU  is to  perform mathematics functions  after processing complete the control  unit stores the result in memory and  display the output  this is the working of von Neumann  architecture  


component  of von Neumann  architecture 


  1. input  :- it comes through input device like  keyboard mouse etc.
  2. memory:- the data are temporary store in  the memory called RAM  
  3. process:-process has two parts  one control unit the control units it control and manage the process and  input/output  the control unit fetch and store data to  and from memory  - another  arithmetic logic unit the role of the  ALU is to perform mathematics  calculation  like addition subtraction  multiplication/division etc 
  4. output:- the output display through  the monitor printer etc.

Q1. Explain fetch and execution cycle of an instruction of a stored program computer. Illustrate with the help of RTL specification. 

Ans:-The fetch and execution cycle is the basic operation (instruction) cycle of a computer. During the fetch and execute cycle the computer retrieves a computer program instruction from its memory. It then establish and carriers out the actions that are required for that instruction. 
It consist of the following steps;-
 

8086 Architecture (40 pin IC)
8086 Architecture (40 pin IC)
8086 internal architecture 


The architecture of 8086 is divided into 2 functional unit :-
  1. BIU→Bus interface Unit
  2. EU→Execution unit
 
Bus interface unit:
  • It fetches the instructions or data from memory 
  • write data to memory 
  • Read/ write data to I/O port
Bus interface unit(BIU)consist of 3 functional part
  1. Instruction pointer(IP)
  2. segment registers
  3. instruction queue 

1.Instruction pointer: (IP)

It is 16 bit register that keeps the address of memory location of next coming instruction to be executed.(i.e. address of next instruction)

2.Segment Registers:

The memory space 1MB of 8086 is segmented into following four blocks.
  1. code segment(CS) 👉 code segment contains the instruction that are to be executed. CS register addresses the code segment.
  2. data segment(DS)👉 it contains the program define data, constants, etc. DS register addresses data segment.
  3. stack segment(SS)👉it contains any data and address that the program needed to save temporarily or for subroutine. SS register addresses  stack segment.
  4. extra segment(ES)👉it contains extra data or program that are not accommodated in previous segment. ES register addresses extra segment. 

3.Instruction Queue

BIU fetches the instruction byte while execution unit is executing operation. The prefetched instruction is saved in the group of high speed registers which is known as queue. It is of 6 bytes. The instruction codes are prefetched from the memory a head of the time so that there is always queue of instruction ready to execute. This mechanism is known as pipelining which speed up the processing task.  

Execution unit(EU)

Functions:-
  • It decodes and execute the instructions that have been fetched by BIU
It consist of the following major  functional part
  1. General purpose registers (GPRS)
  2. pointer and index register
  3. ALU
  4. Flag register
  5. Timing and control unit 

General Purpose Registers(GPRS): 

8086 contains 4 general purpose registers which are of 16 bit.
  • AX: In and out instruction uses accumulator for input output and mostly arithmetic operation.
  • BX: Base register used also for addressing besides computation.
  • CX: Count  register used for looping and computation purpose 
  • DX: data register for normal computation especially for multiplication and division. When AX and DX are used as pair.

Pointer and Index Register: 

8086 has two pointer and 2 index register.
  1. SP → stack pointer 
  2. BP → base pointer
  3. SI → source index
  4. DI → destination index
ALU: It perform mathematical computation like addition, subtraction, multiplication, division and logical function like AND , OR, NOT ,etc. and store the result in accumulator.

Flag registers: It is 16 bit register among which 9 flags are used and remaining 7 flags are unused
9 flags are divided into two group
  1. status flag : it contains 6 flags (i.e. Over flow , sign, zero, auxiliary carry, parity, carry flags
  2. control flag : it contains 3 flags(i.e. directional, interrupt enable, Trap flags

8086 flags
8086 MP Flags

  • Over flow flag (OF): it is set if there is carry from MSB. 
  • Directional flag(DF): it is used for string processing for moving or comparing string characters. 1 indicate right to left and 0 indicate left to right.
  • Interrupt flag(IF): 8086 react to interrupt form external device if it is set to 1.
  • Trap flag(TF): if TF is set to 1 the processor runs on single step mode. 

Q. Explain the process of assembling linking and executing assembly language program.


Explain the process of assembling linking and executing assembly language program.
Steps in assembling linking and executing ASM

Assembler:

  1. Convert source program into object program and generate .obj file.
  2. Calculate off set address of data items in data segment and instruction in code segment.
  3. it generates .ltr and .crf file which are optional that can be generated during runtime.
  4. assembler reads each line of instruction as ASCII character and translate them into their respective machine code.
  5. assembler also complain about syntax error if any. 

Linking

  1. it involves converting of object module (.obj) into machine executable code i.e .exe.
  2. it completes the address left by assembler.
  3. it combines separately assembled object files.
  4. it creates .EXE, .LIB, .MAP files and .LIB, .MAP files are optional.

loading and executing

  1. load the program into memory for the execution.
  2. resolve the reaming address.
  3. create the program segment prefix (PSP) before loading.
  4. execute the program to generate the result.

Difference between one pass and two pass assembler is given below

Difference between one pass and two pass assembler is given below

Difference between synchronous bus and asynchronous bus




Difference between synchronous bus and asynchronous bus

Difference between CISC and RISC


Difference between CISC and RISC

Write short note on DSP.

  1. It is special type of CPU which provides ultra fast instruction sequence such as shift and add, multiply and add these are mostly used for intense signal processing.
  2. DSP work with digital signal only so any analogy signal must be converted before using in DSP so there is requirement of ADC and DAC for displaying digital signal into analogy form.
  3. Various DSP function can be implemented by using software and hardware. Software implementation is slow and hardware implementation required different architecture other than von Neumann.
  4. DSP is based on Harvard architecture where data and program are stored separately so processing speed of processor is super.
  5. They are target to special application such as audio card, video card, Fourier transform (FTT), etc.
  6. specialized addressing mode.
  7. single cycle –multiply accumulator capability
  8. Motorola 3600


Share:

2 Comments:

Please don't enter any spam link in the comment box

subscribe

IOE ALL SUB NOTES

Delivered by FeedBurner

Wikipedia

Search results

The quality of being the only one of its kind.

If you are fresher or preparing to attempt the Back Exam then you are going to be happy to know that here you will find all the shortlisted targeted question for your subject. Here you will find perfect answers to your questions