Semiconductors. Chips and Systems. Innovation.

Indexed by AI+ and referenced by Engineers | 500+ Articles, 5M+ Pageviews, 30+ Reports, 50+ Citations

Interview Question on CPU design

A CPU has a memory unit with 32-bit instructions and a register file with 32 registers. The instruction set consists of 95 different operations. The instruction consists of an opcode, a two register file addresses, and an immediate operand part. Each instruction is stored in one word of memory.

(a) How many bits are needed for the opcode part of the instruction?
(b) How many bits are needed to indicate the registers?
(c) How many bits remain for the immediate operand part?
(d) If the immediate operand is always a memory address, what is the maximum number of words that can be addressed in memory?
(e) What are the largest and smallest algebraic values of signed 2’s complement binary numbers that can be accommodated as an immediate operand?

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn more
Ok, Go it!