computer architecture The sum of the two 32 bit integers may not be representable in 32 bits. In this case, we say that an overflow has occurred. Write MIPS instructions that adds two numbers stor...
The sum of the two 32 bit integers may not be representable in 32 bits. In this case, we say that an overflow has occurred. Write MIPS instructions that adds two numbers stored in registers Ss1 and Ss2, stores the sum in register $s3, and sets register Sto to 1 if an overflow occurs and to 0 otherwise. 5. (16pts) 6. Show the IEEE 754 binary representation of the number -7.425 in a single and double 7. If you multiply 16 bit by 16 bit and the result represented in single precision, do you get 8. Show through algorithm, when the overflow and underflow may occur in arithmetic (8pts) precision. dobpt 5pts) overflow? Explain you answer. operation (7pts) Parity is a function in which the output depends on the number of 1s in the input. For an every parity function, the output is 1 if the input has an even number of ones. Suppose a ROM is used to implement an even parity function with a 4 bit input. Which of A B, C, or D represents the contents of the ROM? Show your work. 9. 9pts) 10. Consider a logic function with three inputs, A, B, C, and three outputs, D E, And F. The function is defined as follow: D is true if at least one input is true, E is true if exactly two inputs are true, and F is true only is all three inputs are true. Show the truth table and logic diagram for this function. (11pts)
The sum of the two 32 bit integers may not be representable in 32 bits. In this case, we say that an overflow has occurred. Write MIPS instructions that adds two numbers stored in registers Ss1 and Ss2, stores the sum in register $s3, and sets register Sto to 1 if an overflow occurs and to 0 otherwise. 5. (16pts) 6. Show the IEEE 754 binary representation of the number -7.425 in a single and double 7. If you multiply 16 bit by 16 bit and the result represented in single precision, do you get 8. Show through algorithm, when the overflow and underflow may occur in arithmetic (8pts) precision. dobpt 5pts) overflow? Explain you answer. operation (7pts) Parity is a function in which the output depends on the number of 1s in the input. For an every parity function, the output is 1 if the input has an even number of ones. Suppose a ROM is used to implement an even parity function with a 4 bit input. Which of A B, C, or D represents the contents of the ROM? Show your work. 9. 9pts) 10. Consider a logic function with three inputs, A, B, C, and three outputs, D E, And F. The function is defined as follow: D is true if at least one input is true, E is true if exactly two inputs are true, and F is true only is all three inputs are true. Show the truth table and logic diagram for this function. (11pts)