GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

How many times the loop will execute ?

How many times the loop will execute ?

Read Details

What is the correct syntax to call a function multiply with…

What is the correct syntax to call a function multiply with two arguments 5  and 10?

Read Details

Select that image that correctly identifies the areas of Mr….

Select that image that correctly identifies the areas of Mr. Saint’s skin abnormalities.

Read Details

The family of drugs known as Lidocaine are popular local ane…

The family of drugs known as Lidocaine are popular local anesthetics. Lidocaine blocks transmission of pain by binding to neuron Na+ channels and preventing Na+ ions from being able to travel through the channels. Considering the information you have compiled above, hypothesize the effect lidocaine has on the rate of neuron depolarization. Be sure to discuss why this change to depolarization would be an effective way to block pain. For full credit, your answer should be in full sentences and clearly discuss how you arrived at this conclusion.

Read Details

Suppose we will design a new deeply pipelined processor, for…

Suppose we will design a new deeply pipelined processor, for which we will have a branch-target buffer for the conditional branches only. Assume that the misprediction penalty is always four cycles and the buffer miss penalty is always three cycles. Assume a 80% hit rate, 90% accuracy, and 15% branch frequency. How much faster will the processor be with the branch-target buffer compared to the existing processor that has a fixed two-cycle branch penalty? Assume a base CPI without branch stalls is one.

Read Details

The 1854 Kansas-Nebraska Act instituted popular sovereignty…

The 1854 Kansas-Nebraska Act instituted popular sovereignty to 

Read Details

Assign the correct for adolescent adjustment reaction, with…

Assign the correct for adolescent adjustment reaction, with mixed disturbance of conduct.

Read Details

Work through the following snippet of code on your scratch p…

Work through the following snippet of code on your scratch paper, noting the state of the reservation stations and register file for each of the first 7 clock cycles (show as much or as little detail as you need to attain the correct answers, keeping in mind that partial credit can only be given for incorrect answers if you show the details and I can identify your mistakes.) You may assume that add/sub and load/store take 1 cycle for execution and mult/div instructions take 20 cycles for execution. For the register file and the Q fields, you may identify the instruction producing results being waited on with the instruction number. (HINT – remember the timing required for instructions waiting on operand values – the waiting instructions cannot begin execution on the same clock cycle that the instruction producing the operand value commits.)   The state column represents the current execution state that the instruction is in. Possible states are: (I) Issue, (W) Waiting for operands, (R) Ready to execute (all operands are available), (E) Executing, and (C) Commit results.  Note that an instruction may be in both Issued and Ready at the same time if all operands are available upon instruction issue. That instruction can go directly from Issued to Executing if other constraints are met (i.e., not all instructions will be in the Ready state specifically).   The register file contains a starting value of r6 = 10. Please propagate all values through all subsequent clock cycles.     Inst #         Instruction                      Notes A1              load r4, 60(r6)               # The value at memory location 60+r6 is 3 A2              add r4, r4, r6                 # OP result, j, k (same format for all ALU Instr.) A3              load r2, 40(r6)               # The value at memory location 40+r6 is 7 A4              mult r5, r2, r4 A5              store r5, 60(r3)              # Assume the value of r3 = 20   For an example first clock cycle is completed for you.   Cock cycle 1: Name Inst. # Vj Vk Qj Qk State Add/Sub 1 Mult/Div1 Name Inst. # Address V (for stores) Q (for stores) State Load/Store 1 A1 70 Load/Store 2 r0 r1 r2 r3 r4 r5 r6 A1 10   Answer the following questions:   a) At which clock cycle, r4 will have a numeric value? (3 points)   b) In which clock cycle, does instruction A3 begin execution? Provide a numeric value. (3 points)   c) What clock cycle does r4 update to the value 13? (3 points)   d) In which clock cycle, does instruction A4 begin execution? Provide a numeric value. (3 points)   e) How many total clock cycles does the system take to complete execution, write all results back to the register file and/or memory, and leave all reservation stations empty? You don’t have to show all the clock cycles in your scratch pad to answer the question. (8 points)

Read Details

Declare a two-dimensional array named data of 3 rows and 4 c…

Declare a two-dimensional array named data of 3 rows and 4 columns of type float, and initialize it as follows: First row: 4.1, 2.3, 7.5, 1.2 Second row: 9.8, 6.6, 3.4, 8.7 Third row: 2.4, 5.9, 6.1, 7.3

Read Details

Fill in the blanks from the options below : In C++, a ______…

Fill in the blanks from the options below : In C++, a _______ loop is used when the number of iterations is not  known .

Read Details

Posts pagination

Newer posts 1 … 33,047 33,048 33,049 33,050 33,051 … 72,648 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top