Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

A1Q8 Solution is wrong

7 views
Skip to first unread message

Bojan

unread,
Feb 12, 2012, 11:28:09 PM2/12/12
to
In the solution, f = M- 1-9/M is not correct.

It should be f = M - N (1 + 9) / M.

This is because draining and filling takes N cycles each time.

Tatiana

unread,
Feb 13, 2012, 1:29:57 PM2/13/12
to
Is this question or statement?
Did you check with prof or TA?

Bojan

unread,
Feb 13, 2012, 1:56:43 PM2/13/12
to
Statement. I did it by hand, and verified with another student.

I did not check with prof or TA.
(with brackets correctly placed)
{M - N( 1 + 9 ) } /M

Bojan

unread,
Feb 13, 2012, 1:58:54 PM2/13/12
to
statement, checked it by hand and verified with another student.

did not check with ta or prof.

proper brackets:

f = {M - N (1+ 9)}/M

On Feb 13, 1:29 pm, Tatiana <tosta...@uwaterloo.ca> wrote:

Tatiana

unread,
Feb 13, 2012, 2:30:34 PM2/13/12
to
The way I understand it is:

f is fraction of instructions that are executed in parallel

M = total # of instr.
s = # of instr. that are executed sequentially
M - s = # of instr. that are executed in parallel

f = (M-s)/M

In class we saw that initial filling and final draining together cause 1
sequential instructions (by applying Amdahl's law).
Also in class we saw that each N-1 cycle stall causes 1 additional
sequential instruction (by Amdahl's law).

9 sequential instr. for 9 stalls and 1 for initial filling and final
draining.
So s = 9+1 = 10

and f = (M-9-1)/M


- Tatiana

Bojan

unread,
Feb 13, 2012, 2:58:50 PM2/13/12
to
1 sequential instruction has to go through N stages. hence it takes N
blocks on the niagram.

Tatiana

unread,
Feb 13, 2012, 3:13:11 PM2/13/12
to
Yes, but (M-s)/M is calculated in terms of number of instructions and
not cycles.
M is total number of instructions and s is number of instructions that
are sequential.
Why would you subtract number of cycles stalled from total number of
instructions?
0 new messages