Question: Consider the single-cycle 8-bit data path shown below. The A/B-buses carry operand data from internal registers, and the R-bus carries result data to be

Consider the single-cycle 8-bit data path shown below. The A/B-buses carry operand data from internal 

Consider the single-cycle 8-bit data path shown below. The A/B-buses carry operand data from internal registers, and the R-bus carries result data to be stored into internal registers. The control unit drives 3-bit register select lines for each bus, sets the ALU function, and so on. A-bus Register file RO-R7 Shifter ALU R-bus snq-g Adjust Control unit A-b (20) Op4(2:0) Op(1:0) Carryin OpAlu(10) R-ban(2:0) CarryFlag OpA 0 6+ (2+3) * 4-3 1 to 6 7 OpB 00 01 10 11 Operand adjust 01 10 11 OpAlu 00 Function Operand adjust Write a short program using a general-purpose register architecture to: (a) Evaluate the expression: No change Shift left N All zeros Function All zeroes B NOT B All ones ALU operation Function B A AND B A XOR B SUM A+B+Cin (b) Encrypt and decrypt a value stored in a register using a simple XOR based symmetric encryption algorithm. For both (a) and (b), indicate the control signals needed to perform each instruction in your program and clearly explain your rationale including the registers (RO, R1, R2 etc.) you intend using.

Step by Step Solution

3.35 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a Evaluati... 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 Programming Questions!