Suppose we have just found yet another representation for fl…
Suppose we have just found yet another representation for floating point numbers. Using this representation, a 12-bit floating point number has 1 bit for the sign of the number, 4 bits for the exponent and 7 bits for the mantissa, which is normalized as in the Simple Model so that the first digit to the right of the radix points must be a 1. Numbers in the exponent are in signed 2’s complement representation. No bias is used and there are no implied bits. Show the representation for the smallest positive number this machine can represent using the following format. What decimal number does this equate to?
Read DetailsWrite a MIPS program that always checks the bit 0 of a memor…
Write a MIPS program that always checks the bit 0 of a memory data at address 0x0BF81234. If it is equal to one add nth and (n+1)th elements of an array and store it to memory address 0x0BF85678 . Suppose $t0 contains the address of the 0th element of an array of 32-bit data and $t1 = n.
Read DetailsExamine the function prototype and MIPS implementation below…
Examine the function prototype and MIPS implementation below. // sets *value = (*value) * 2^pow using shifting instructions int multMemPow2(int *value, unsigned int pow); multMemPow2: 1 lw $v0, 0($a0) # load value 2 loop: beq $a1, $0, exit # exit condition 3 sll $v0, $v0, 1 # multiply by 2 4 addi $a1, $a1, -1 # decrement counter 5 sw $v0, 0($a0) # store result 6 j loop 7 exit: jr $ra We are using a 5 – stage MIPS pipelined datapath with separate I$ and D$ that can read and write to registers in a single cycle. Assume no other optimizations (no forwarding, no branch prediction, etc.). The default behavior is to stall when necessary. Branch checking is done during the Execute stage. For parts (1)‐(3), let pow=1. When we ask for clock cycles to execute multMemPow2, we mean from the instruction fetch of lw up to and including the write back of jr. How many instructions are executed in multMemPow2?
Read DetailsConsider each of the following sets of instructions. Decide…
Consider each of the following sets of instructions. Decide the minimum number of stalls needed in each case with and without forwarding. Assume the five stage MIPS pipeline discussed in class and that equality for branches are checked at the Decode stage. Assume delayed branching. Number of stalls required? Without forwarding With forwarding addiu $t1, $t0, 5 addu $t4, $t3, $t1 addu $t0, $t3, $t0 lw $t0, 4($s0) addu $t1, $t2, $t3 beq t0, t1, Done addu $t5, $t5, $s5 lw t1, 0($s0) sw t1, 0($s1) addu $t0, $s0, $t1 lw $t1 8($t0)
Read DetailsIn an attempt to improve cache performance, you try a new st…
In an attempt to improve cache performance, you try a new strategy. You think that because your L1 cache has a hit rate of 90%, you could improve the AMAT by randomly going straight to memory 10% of the time instead of first checking the L1 cache. Assuming the cache has a hit time of 5 cycles, and memory has an access time of 100 cycles, calculate the AMAT for this “improved” system. Average Memory Access Time = cycles
Read DetailsAdvance heads-up: Look for an ad to share. In next week’s C…
Advance heads-up: Look for an ad to share. In next week’s Class Discussion, Monday-Tuesday, you’ll find, post and critique an ad. It can be a video/TV ad, a radio commercial, a billboard ad, or a newspaper ad. I’ll share some ads with you from time to time. This is your chance to share one with us and evaluate its effectiveness.
Read DetailsA victim’s estate filed a wrongful death action against a de…
A victim’s estate filed a wrongful death action against a defendant, alleging that she murdered the victim. The victim was killed at 3:00pm, and the defendant has claimed that she could not have done it because she was at work when it happened. At trial, the victim’s estate called the defendant’s co-worker to the stand, expecting him to say that he noticed the defendant leave the office at 2:00pm on the day of the murder. However, on direct examination, the co- worker testified that he saw the defendant leave the office at around 4:00pm. After giving theco-worker the opportunity to explain or deny his statement made at his deposition that the defendant left the office at 2:00pm on the day of the murder, the victim’s estate seeks to introduce the deposition statement into evidence. Is the co-worker’s statement from the deposition admissible?
Read DetailsMoe’s current on-premises server often crashes during peak t…
Moe’s current on-premises server often crashes during peak times, After researching cloud services, Moe discovered that cloud platforms can automatically add more computing power during busy periods, he would only pay for what he actually uses, and if one server fails, another one takes over immediately without any downtime. These are the exact features he needs so Moe has begun the process of moving his servers to the cloud. Which combination of cloud characteristics would provide Moe with the specific benefits he is interested in?
Read Details