Question: Design a 4-bit processor which consists of 4 data registers each of 4 bits and an instruction register (IR) of 7 bits. The first

Design a 4-bit processor which consists of 4 data registers each of 4 bits and an instruction register (IR)of 7 bits. The fi 

Design a 4-bit processor which consists of 4 data registers each of 4 bits and an instruction register (IR) of 7 bits. The first 3 bits of the instruction tells which operation is to be performed, the next 2 bits signifies the first register and the last two bits signifies the second register. Operation Code 4bit register 4-bit register operand 2 (R2) operand 1(R1) The following operations are performed by the processor. Operation Operation Description Code Performed 000 R1-A Load the contents of input A in to the register operand 1. 001 R1 = R2 Move the contents of register operand 2 in to register operand 1. Add the contents of register operand 1 and register operand 2 and load in register operand 1. 010 R1 = R1 + R2 011 R1 R1 - R2 Subtract the contents of register operand 2 from register operand 1 and load in register operand 1. Multiply the contents of register operand 1 and register operand 2 and load in register operand 1 and 2. (As the result is of 8 bits) 100 R1- RI R2 101 R1- R1/2 Divide the register contents of register operand 1 with 2 (1is an input) and load the result in register operand 1. 110 R1=RI 2 Multiply the register contents of register operand 1 with 2 (1 is an input) and load the result in register operand 1. Logical OR the contents of register operand 1 and register operand 2 and load in register operand 1. 111 R1 - R1 + R2 Inputs: Clock Pulse (CP), 7-bits Instruction, A, i Output: Contents of each register

Step by Step Solution

3.48 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The four bit processor is implemented using different languages a ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Physics Questions!