Symbolic Microinstructions | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE) PDF Download

Symbolic Microinstructions

  • The symbols defined in Table 3-1 cab be used to specify microinstructions in symbolic form.
  • Symbols are used in microinstructions as in assembly language
  • The simplest and most straightforward way to formulate an assembly language for a microprogram is to define symbols for each field of the microinstruction and to give users the capability for defining their own symbolic addresses.

Sample Format
Five fields: label; micro-ops; CD; BR; AD

  • The label field: may be empty or it may specify a symbolic address terminated with a colon
  • The microoperations field: of one, two, or three symbols separated by commas , the NOP symbol is used when the microinstruction has no microoperations
  • The CD field: one of the letters {U, I, S, Z} can be chosen where
    U: Unconditional Branch
    I:   Indirect address bit
    S: Sign of AC
    Z:  Zero value in AC
  • The BR field: contains one of the four symbols {JMP, CALL, RET, MAP}
  • The AD field: specifies a value for the address field of the microinstruction with one of {Symbolic address, NEXT, empty} o When the BR field contains a RET or MAP symbol, the AD field is left empty

Fetch Subroutine
During FETCH, Read an instruction from memory and decode the instruction and update PC.

  • The first 64 words are to be occupied by the routines for the 16 instructions.
  • The last 64 words may be used for any other purpose.
    • A convenient starting location for the fetch routine is address 64.
  • The three microinstructions that constitute the fetch routine have been listed in three different representations.
    • The register transfer representation

Symbolic Microinstructions | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

  • The symbolic representation:

Symbolic Microinstructions | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

  • The binary representation:

Symbolic Microinstructions | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

  • Control Storage:  128  20-bit words
  • The first 64 words: Routines for the 16 machine instructions 0, 4, 8, …, 60 gives four words in control memory for each routine.
  • The last 64 words: Used for other purpose (e.g., fetch routine and other subroutines)
  • The execution of the third (MAP) microinstruction in the fetch routine results in a branch to address 0xxxx00, were xxxx are the four bits of the operation code. e.g. ADD is 0000
  • In each routine we must provide microinstructions for evaluating the effective address and for executing the instruction.
  • The indirect address mode is associated with all memory-reference instructions.
  • A saving in the number of control memory words may be achieved if the microinstructions for the indirect address are stored as a subroutine.
  • This subroutine, INDRCT, is located right after the fetch routine, as shown in Table 3-2. 
  • Mapping: OP-code XXXX into 0XXXX00, the first address for the 16 routines are 0(0 0000 00), 4(0 0001 00),  8, 12, 16, 20, ..., 60
  • To see how the transfer and return from the indirect subroutine occurs:
    • MAP microinstruction caused a branch to address 0
    • The first microinstruction in the ADD routine calls subroutine INDRCT when I=1
    • The return address is stored in the subroutine register SBR.
    • The INDRCT subroutine has two microinstructions:
      • INDRCT:  READ     U   JMP   NEXT
      • DRTAR   U    RET
    • Therefore, the memory has to be accessed to get the effective address, which is then transferred to AR.
    • The execution of the ADD instruction is carried out by the microinstructions at addresses 1 and 2
    • The first microinstruction reads the operand from memory into DR.
    • The second microinstruction performs an add microoperation with the content of DR and AC and then jumps back to the beginning of the fetch routine.

Symbolic Microinstructions | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

Symbolic Microinstructions | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

Binary Microprogram ·

  • The symbolic microprogram must be translated to binary either by means of an assembler program or by the user if the microprogram is simple.
  • The equivalent binary form of the microprogram is listed in Table 7-3.
  • Even though address 3 is not used, some binary value, e.g. all 0’s, must be specified for each word in control memory.
  • However, if some unforeseen error occurs, or if a noise signal sets CAR to the value of 3, it will be wise to jump to address 64.

Symbolic Microinstructions | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

Symbolic Microinstructions | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

Control Memory

  • When a ROM is used for the control memory,the microprogram binary list provides the truth table for fabricating the unit.
    • To modify the instruction set of the computer, it is necessary to generate a new microprogram and mask a new ROM.
  • The advantage of employing a RAM for the control memor y is that the microprogram can be altered simply by writing a new pattern of 1’s and 0’s without resorting to hardware procedure.
  • However, most microprogram systems use a ROM for the control memory because it is cheaper and faster than a RAM.
The document Symbolic Microinstructions | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE) is a part of the Computer Science Engineering (CSE) Course Computer Architecture & Organisation (CAO).
All you need of Computer Science Engineering (CSE) at this link: Computer Science Engineering (CSE)
20 videos|86 docs|48 tests

Top Courses for Computer Science Engineering (CSE)

FAQs on Symbolic Microinstructions - Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

1. What is the purpose of symbolic microinstructions?
Ans. Symbolic microinstructions are used in computer architecture to represent the low-level operations performed by a microprocessor. They provide a more understandable and human-readable representation of the microoperations that need to be executed.
2. How do symbolic microinstructions differ from regular microinstructions?
Ans. Symbolic microinstructions use mnemonics and symbols to represent the microoperations, whereas regular microinstructions use binary or hexadecimal codes. Symbolic microinstructions are easier to read and understand, making them more convenient for programmers and system designers.
3. Are symbolic microinstructions directly executed by the microprocessor?
Ans. No, symbolic microinstructions are not directly executed by the microprocessor. They are first translated into regular microinstructions or machine code, which can be executed by the microprocessor. This translation process is typically done by an assembler or a compiler.
4. Can symbolic microinstructions be customized for specific microprocessors?
Ans. Yes, symbolic microinstructions can be customized for specific microprocessors. Different microprocessors may have different sets of microoperations, and symbolic microinstructions can be designed to reflect these differences. This allows for greater flexibility in designing and optimizing the microarchitecture of a specific microprocessor.
5. What are the advantages of using symbolic microinstructions?
Ans. Symbolic microinstructions provide several advantages. They make the microprogramming process more intuitive and easier to understand, as they use meaningful mnemonics and symbols. Symbolic microinstructions also make it easier to design, modify, and debug microprograms. Additionally, they allow for better portability of microprograms across different microprocessors, as they can be translated into the appropriate machine code for each specific microprocessor.
20 videos|86 docs|48 tests
Download as PDF
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

Objective type Questions

,

Semester Notes

,

Sample Paper

,

Extra Questions

,

practice quizzes

,

ppt

,

Symbolic Microinstructions | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

,

Free

,

pdf

,

study material

,

Symbolic Microinstructions | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

,

Previous Year Questions with Solutions

,

video lectures

,

Exam

,

Summary

,

shortcuts and tricks

,

past year papers

,

Viva Questions

,

mock tests for examination

,

Important questions

,

Symbolic Microinstructions | Computer Architecture & Organisation (CAO) - Computer Science Engineering (CSE)

,

MCQs

;