Question

In: Computer Science

i)In a computer, an instruction is composed of two fields: the opcode and an operand address....

i)In a computer, an instruction is composed of two fields: the opcode and an operand address. what is the minimum size of your instruction in bits if an instruction set of 327 opcodes and an address space of 128 Mbytes is required? NB. Use 1 Mbyte = 2^20 bytes

ii) Instead of hard-writing the units, the software is used to interpret and execute instructions in a general-purpose system. Is the statement true or false

Solutions

Expert Solution

ANSWER 1

FOLLOWING IS THE NOTES I HAVE PREPARED TO MAKE THE UNDERSTANDING REGARDING INSTRUCTIONS EASIER IN COMPUTER ORGANIZATION:

An instruction format defines the different component of an instruction. The main components of an instruction are opcode (which instruction to be executed) and operands (data on which instruction to be executed). Here are the different terms related to instruction format:

  • Instruction set size – It tells the total number of instructions defined in the processor.
  • Opcode size – It is the number of bits occupied by the opcode which is calculated by taking log of instruction set size.
  • Operand size – It is the number of bits occupied by the operand.
  • Instruction size – It is calculated as sum of bits occupied by opcode and operands.

AN EXAMPLE TRYING TO EXPLAIN HOW THE DIVISON TAKES BETWEEN THE OPCODE AND OPERAND BITS

HANDWRITTEN ANSWER TO THE QUESTION 1:--

THEREFORE THE MINIMUM SIZE REQUIRED FOR THE INSTRUCTION REGISTER SIZE = 36 BITS .

ANSWER 2:--

THE STATEMENT IS TRUE.IN GENERAL PURPOSE COMPUTERS MICRO-PROGRAMMING IS USED INSTEAD HARD WIRED PROGRAMMING FOR CONTROL UNIT SIGNALS GENERATIONS.

To execute an instruction, the control unit of the CPU must generate the required control signal in the proper sequence. There are two approaches used for generating the control signals in proper sequence as Hardwired Control unit and Micro-programmed control unit.

A general purpose computer is used for various stuffs ,it suppports a large number of general utilities.In this scenario it becomes difficult to implemnt the hard wired control program for instruction execution. Microprogramming offers the flexibility to modify general-purpose hardware without making hardware modifications. Flexibility is probably the most important advantage of firmware over hardware.

To execute an instruction, there are two types of control units Hardwired Control unit and Micro-programmed control unit.

  1. Hardwired control units are generally faster than microprogrammed designs. In hardwired control, we saw how all the control signals required inside the CPU can be generated using a state counter and a PLA circuit.
  2. A microprogrammed control unit is a relatively simple logic circuit that is capable of (1) sequencing through microinstructions and (2) generating control signals to execute each microinstruction.

The general purpose system supports CISC set of instrutions.It supports a large number of complex instructions and if one tries to implement a hard wired system it will become too complex and far too expensive.Hard wired system  though much faster than micro-programmed ones but cant be implemted in a CISC systems.

HERE ARE SOME OF THE MAJOR REASONS WHY WE USE MICRO PROGRAMMED UNIT:-

HENCE IT IS TRUE THAT GENERAL PURPOSE SYSTEMS USES MICRO-PROGRAMMED CONTROL UNIT FOR INSTRUTION EXECUTION.IT IS SIMPLER AND COST EFFECTIVE.  


Related Solutions

What is the Opcode? What is the Operand? What is the value in Register 5 after the instruction is executed?
What is the Opcode? What is the Operand? What is the value in Register 5 after the instruction is executed?
Suppose the opcode of an MIPS instruction is 12 in decimal, and the rest of the...
Suppose the opcode of an MIPS instruction is 12 in decimal, and the rest of the machine code is 23483DB in hexadecimal (from high-order bit to low-order bit). What is the instruction? When showing the registers, use names (e.g. $t0, $s2) instead of indices (e.g $8, $17). For branch instructions, show offset in place of label, e.g. beq $t1, $t2, 92.
Encode the following instruction opcode: 100011 (1) identify the instruction format that will be used (2)...
Encode the following instruction opcode: 100011 (1) identify the instruction format that will be used (2) indicate the values of each of the fields for that format in decimal (3) convert each of these decimal values to binary (4) represent the entire instruction as one hexadecimal value. subu $t3,$v1,$s2
Please answer all question for the feedback. 1. What is an Instruction Specifier (or opcode)? What...
Please answer all question for the feedback. 1. What is an Instruction Specifier (or opcode)? What is an Operand Specifier? 2. What is the difference between aaa and a? 3. How do you grow the stack? How do you shrink the stack? 4. Given: int xyz(int a) {      int b;      ... some code     return b; } What would the stack look like after the function allocates its local variable of b? 5. The debugger has trace commands...
Question 3 (a) Identify the location of the following corresponding operand if the address field in...
Question 3 (a) Identify the location of the following corresponding operand if the address field in an instruction contains decimal value 15. i. immediate addressing ii. direct addressing iii. indirect addressing iv. register addressing v. register indirect addressing (b) Differentiate the characteristics between CISC and RISC architecture. (c) Discuss the stages involved in fetch-decode-execute cycles.
6.35 (Computer-Assisted Instruction) The use of computers in education is referred to as computer-assisted instruction (CAI)....
6.35 (Computer-Assisted Instruction) The use of computers in education is referred to as computer-assisted instruction (CAI). Write a program that will help an elementary school student learn multiplication. Use a SecureRandom object to produce two positive one-digit integers. The program should then prompt the user with a question, such as How much is 6 times 7? The student then inputs the answer. Next, the program checks the student’s answer. If it’s correct, display the message "Very good!" and ask another...
In a computer instruction format, the instruction length is 11 bits and the size of an...
In a computer instruction format, the instruction length is 11 bits and the size of an address field is 4 bits. Is it possible to have 5 two-address instructions 45 one-address instructions 32 zero-address instructions using the specified format? Justify your answer.
In a computer instruction format, the instruction length is 12 bits and the size of an...
In a computer instruction format, the instruction length is 12 bits and the size of an address field is 5 bits. The system architect has already designed three 2-address instructions and thirty one 1-address instructions. How many 0-address instructions can still be possibly accommodated?
Example: A 3-address computer has 40 instructions, 16 Registers, and 256KB memory. Assume each instruction has...
Example: A 3-address computer has 40 instructions, 16 Registers, and 256KB memory. Assume each instruction has three operands. Two registers and the third operand is a direct address location of a memory. Find minimum size of PC, MAR, MDR, IR. Solution: OPCODE R1, R2, address OPCODE is 6 bits since 2^6>40 Register field is 4 bits since 2^4 =16 Memory field is 18 bits since 2^18=256K Instruction length =6+4+4+18=32 bits MDR=32 bits IR=32 bits MAR=18 PC=18 Please explain
Explain the significance of different fields of an instruction with an example. Discuss the different addressing...
Explain the significance of different fields of an instruction with an example. Discuss the different addressing modes of an instruction. (20marks)   
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT