Consider the following truth table for 3 logic operations NO…

Consider the following truth table for 3 logic operations NO, NAND, and XOR  on single bit a and b.     Also consider the following 1-bit ALU that performs AND, OR, and addition on a and b.                           Note that one can select between three values using the Operation select line to the Result multiplexor. Assume that the Ainvert and Binvert signals can be asserted or de-asserted and that the CarryIn signal can be de-asserted or taken from the CarryOut of the preceding 1-bit ALU.  Pick a set of control signals for each Boolean logic operator. Some will go unused.

When the following program (written in C) being compiled and…

When the following program (written in C) being compiled and loaded into memory for execution, where local variables “i” and “temp”  will be allocated in the process address space? int nums[10] = {1, 2, 3, 4, 5, 6, 7, 8. 9, 10};void main() {   int i, temp;   int arrays[10];   i = 0;LOOP:   if (i < 10)      goto L1;   else      goto L2;L1:   temp = nums[i];   arrays[i] = temp;   i++; goto LOOP;L2:   foo(arrays);   return;}

What will be displayed to console when the following MIPS as…

What will be displayed to console when the following MIPS assembly program executes?         .datavalues: .word   -4, 1, 2, -1, 2 .text .globl mainmain:     li      $t0,0 li      $t1,5 la      $t2,values li $t3,0LOOP:      slt     $t5,$t0,$t1 beq     $t5,$zero,L1 lw      $t4,0($t2) addu $t3,$t3,$t4 addiu $t2,$t2,4 addiu $t0,$t0,1 j       LOOPL1:     move    $a0,$t3 li      $v0,1 syscall jr      $31