Question

In: Computer Science

A digital computer has a memory unit with 32 bits per word. The instruction set consists...

A digital computer has a memory unit with 32 bits per word. The instruction set consists of 122 different operations. All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word of memory.

  1. a) How many bits are needed for the opcode?

  2. b) How many bits are left for the address part of the instruction?

  3. c) What is the maximum allowable size for memory?

  4. d) What is the largest unsigned binary number that can be accommodated in one word of memory?

Solutions

Expert Solution

First of all we will see the instruction format. Each word consists of opcode and operand.

Opcode operand address

Opcode is responsible for the different operations and operand refers the address of operands.

a)

Given that instruction set consists of 122 different operations. To represent these 122 different operations we need log2(122) bits.

Therefore log2(122) = 6.931 7 bits.

b)

From part a) it is clear that opcode takes 7 bits and word length is 32 bits.

Therefore remaining bits for address part (operands) = 32 bit - opcode  = 32 bit - 7 bits = 25 bits.

c)

From part b) it is clear that we have 25 bits for operands. which means we have 225 different operands and each takes 32 bit long word.

Therefore maximum allowable size for memory = 225 * 32 bits = 128 Mb.

d)

The largest unsigned number that can be represented with 'n' bit word is 2n - 1.

Therefore with 32 bit long word we can have 232 - 1 = .


Related Solutions

13. A digital computer has a memory unit with 32 bits per word. The instruction set...
13. A digital computer has a memory unit with 32 bits per word. The instruction set consists of 260 different operations. All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word of memory. a) How many bits are needed for the opcode? b) How many bits are left for the address part of the instruction? c) What is the maximum allowable size for memory? d) What...
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?
A digital signal has four levels. How many bits are needed per level? Draw the digital...
A digital signal has four levels. How many bits are needed per level? Draw the digital signal assume the baud rate is 8 baud per second. Increasing the levels of a signal increases the probability of an error occurring, in other words it reduces the reliability of the system. Why and how can this be resolve? What determines how successful a receiver will be in interpreting an incoming signal? Spectrum of a channel between 5 MHz and 4 MHz; SNRdB...
Computer Architecture 1. Define what a "word" is in computer architecture: The size (number of bits)...
Computer Architecture 1. Define what a "word" is in computer architecture: The size (number of bits) of the address The total number of bits of an instruction (e.g. 16 bits) Word and width are synonymous. A word is the contents of a memory register. 2. What is the difference between a register’s width and a register’s address? (choose all that apply - there may be more than one correct answer) They are both the same! Address is the same for...
A 64 bit computer uses a memory of 32KB. Work out the number of bits of...
A 64 bit computer uses a memory of 32KB. Work out the number of bits of AR, DR, PC, AC, and the HEX code of the address of last memory location. b) The memory attached to a processor has access time of 400ns. When a cache memory is introduced in the system, it is found that on average the access time for the computer was 30% greater than the cache access time for a miss ratio of 0.10. Work out...
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
Design a random-access digital memory that can write or read single bits in two addressable SRFFs...
Design a random-access digital memory that can write or read single bits in two addressable SRFFs having 3-bit addresses 5 and 7. The memory has the following inputs and outputs. Address input lines A2, A1, A0, Data input line DIN, and Data output line DOUT, Read/Write input line RW (RW = 0 stores DIN into addressed memory. RW = 1 puts addressed memory data on DOUT)
Assume that a floating-point number system has base 2, word length 32 bits, mantissa length 24...
Assume that a floating-point number system has base 2, word length 32 bits, mantissa length 24 bits, and does rounding. Assume also that the first bit is implicit. Represent the numbers 1/2, 2/3 and 3/5 as floating-point numbers in this system. (Hint: For less confusion, you might want to write out all 25 binary digits.) Could you please me give me full procedure?
Write the logical expression for the control signal RF_Write assuming the instruction set consists only of...
Write the logical expression for the control signal RF_Write assuming the instruction set consists only of the instructions below. The answer should be similar to "B_Select = T3 ∙ (Load + Store + AddImm + …) + …" Add R3,R4,R5 Load R5,X(R7) Store R6,X(R8) Unconditional Branch Conditional Branch (Branch_if_[R5]=[R6] Loop) Subroutine Call (Call_Register R9)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT