Question: Question 1 : Bitwise XOR Instruction Instruction: xor R 0 , R 1 , R 2 This instruction performs a bitwise XOR operation between the

Question 1: Bitwise XOR Instruction
Instruction: xor R0, R1, R2
This instruction performs a bitwise XOR operation between the values in registers R1 and R2 and stores the result in register R0.
Group of answer choices:
a) MUX1: src1 reg (data), MUX2: immd, MUX3: NPC, MUX4: Mem (data)
b) MUX1: src1 reg (data), MUX2: immd, MUX3: NPC, MUX4: none
c) MUX1: src1 reg (data), MUX2: src2 reg (data), MUX3: NPC, MUX4: ALU_Out
d) MUX1: NPC, MUX2: immd, MUX3: NPC, MUX4: none
e) MUX1: NPC, MUX2: immd, MUX3: ALU_Out, MUX4: none
Question 2: Conditional Branch Instruction
Instruction: jnz 100(assume the branch is not taken)
This instruction performs a conditional branch to address 100 if the zero flag is not set.
Group of answer choices:
a) MUX1: src1 reg (data), MUX2: immd, MUX3: NPC, MUX4: Mem (data)
b) MUX1: src1 reg (data), MUX2: immd, MUX3: NPC, MUX4: none
c) MUX1: src1 reg (data), MUX2: src2 reg (data), MUX3: NPC, MUX4: ALU_Out
d) MUX1: NPC, MUX2: immd, MUX3: NPC, MUX4: none
e) MUX1: NPC, MUX2: immd, MUX3: ALU_Out, MUX4: none
Question 3: Unconditional Branch Instruction
Instruction: jmp 100(unconditional branches are always taken)
This instruction performs an unconditional branch to address 100.
Group of answer choices:
a) MUX1: src1 reg (data), MUX2: immd, MUX3: NPC, MUX4: Mem (data)
b) MUX1: src1 reg (data), MUX2: immd, MUX3: NPC, MUX4: none
c) MUX1: src1 reg (data), MUX2: src2 reg (data), MUX3: NPC, MUX4: ALU_Out
d) MUX1: NPC, MUX2: immd, MUX3: NPC, MUX4: none
e) MUX1: NPC, MUX2: immd, MUX3: ALU_Out, MUX4: none
Question 4: Multiplexer 2 Inputs
Question: Please give the two inputs of each multiplexer 2.
Group of answer choices:
a) MUX2: Input 1: NPC, Input 2: Src1 Reg (data)
b) MUX2: Input 1: Src2 Reg (data), Input 2: immd (immediate value)
c) MUX2: Input 1: NPC, Input 2: ALU Out2
d) MUX2: Input 1: ALU Out, Input 2: Mem (data)
Question 1 : Bitwise XOR Instruction Instruction:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!