their calculators All work must be shown for full credit Det
Solution
ANSWER:
1. A. A = 4\'b1111;
If any bit of the select is a binary 1, the true part will be assigned.
B. A = 4\'b0101
C. A = 4\'b1010.
A is a 4-bit net. So, when you try to put in 5-bits, there would be an overflow of bits and the most significant bits could be lost.
D. A = 4\'b1000
When there is no radix specified, it means that the value is an integer. In this case, 0011 is nothing but 11 in decimal, i.e. \'b 1011. Anding woud give the result mentioned above.
E. A = 0;
If any of the bits in signal of !(signal) is set, the answer would be 0
2. Instruction set describes the various commands which the processor/controller understands and executes them for us.
3. module register_file (input bit [9:0] addr, output [31:0] data);
4. module combo_ex (input A, B, C, output D);
bit A,B,C,D;
wire notB, notC, op1, op2, op3;
not (notB, B);
not (notC, C);
and (op2, A, C);
or (op3, notB, notC);
and (op1, A, B, notC);
or (D, op1, op2, op3);
endmodule
