Design a datapath which will do one of the following 1 add


Design a datapath which will do one of the following. (1) add the value in register A to the calue in one of the registers R0 through R3 and store the result back in A, (2) subtract the value of one of the four registers R0 through R3 into register A. The input to the datapath should be control signals op, sel, and in. The signal op is 1-bit: if op is 1 then add, if op is 0 then subtract. The signal sel is two bits and chooses which of the four registers will be involved in the operation. The signal "in" is one bit: if in = 1 then preform addition or subtraction. if in = 0 then preform the move operation.

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: Design a datapath which will do one of the following 1 add
Reference No:- TGS0624839

Expected delivery within 24 Hours