aboutsummaryrefslogtreecommitdiff
path: root/sem6/dig/mpc2
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-03-24 16:55:30 +0100
committerJulian T <julian@jtle.dk>2021-03-24 16:55:30 +0100
commit2f9442097a47ef7c330207ea6363db63f044a192 (patch)
tree1002f3512abda69a51eb1c4088045b8a601b46e7 /sem6/dig/mpc2
parentd596b67e48e7c85379e1283187687edc2fc19b8f (diff)
Fixed mistake in assignments
Diffstat (limited to 'sem6/dig/mpc2')
-rw-r--r--sem6/dig/mpc2/opgaver.tex6
1 files changed, 3 insertions, 3 deletions
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.