Question: Need to design a 4 bit processor with the following instructions given. Design a 4-bit processor which consists of 4 data registers each of 4

Design a 4-bit processor which consists of 4 data registers each of

Need to design a 4 bit processor with the following instructions given.

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 4-bit register operand 1(R1) 4-bit register operand 2 (R2) 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=R1 2 Multiply the register contents of register operand 1 with 2 (i is an input) and load the result in register operand 1. 111 R1 - R1 + R2 Logical OR the contents of register operand 1 and register operand 2 and load in register operand 1. Inputs: Clock Pulse (CP), 7-bits Instruction, A, i Output: Contents of each register

Step by Step Solution

3.43 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To design a 4bit processor with the specified instructions follow these steps Step 1 Components Over... 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 Computer Network Questions!