From 2f9442097a47ef7c330207ea6363db63f044a192 Mon Sep 17 00:00:00 2001 From: Julian T Date: Wed, 24 Mar 2021 16:55:30 +0100 Subject: Fixed mistake in assignments --- sem6/dig/mpc2/opgaver.tex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sem6/dig/mpc2/opgaver.tex') diff --git a/sem6/dig/mpc2/opgaver.tex b/sem6/dig/mpc2/opgaver.tex index 8e9a30d..6d0826e 100644 --- a/sem6/dig/mpc2/opgaver.tex +++ b/sem6/dig/mpc2/opgaver.tex @@ -60,12 +60,12 @@ First we "compile" the java statement :-). Then we can add how many microinstructions each takes (\textbf{bold} number) multiplied with how many times it is used. \begin{equation} - \underbrace{\mathbf 1 \cdot 4}_{MAIN} + \underbrace{\mathbf 5 \cdot 2}_{ILOAD} + \underbrace{\mathbf 3}_{IADD} + \underbrace{\mathbf 6 \cdot 2}_{ISTORE} = 29 + \underbrace{\mathbf 1 \cdot 4}_{MAIN} + \underbrace{\mathbf 5 \cdot 2}_{ILOAD} + \underbrace{\mathbf 3}_{IADD} + \underbrace{\mathbf 6}_{ISTORE} = 23 \end{equation} Then we can multiply with the nanoseconds a single instruction takes \begin{equation} - \frac 1 {2.5 \cdot 10^9} \cdot 29 = 11.6 \cdot 10^{-9}\,, + \frac 1 {2.5 \cdot 10^9} \cdot 23 = 9.2 \cdot 10^{-9}\,, \end{equation} -which is 11.6 Nanoseconds. +which is 9.2 Nanoseconds. -- cgit v1.2.3