Skip to content

Commit

Permalink
New assignment for lab 8
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoppens committed May 14, 2014
1 parent e662f15 commit a9f7f30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pract08/CacheSim.java
Expand Up @@ -136,11 +136,11 @@ private static boolean sendCacheRequest(Cache cache, String matrix, int i, int j
if (matrix.compareTo("A")==0)
base = 0;
else if (matrix.compareTo("B")==0)
base = 4*size*size + 64;
base = 4*size*size + 32;
else if (matrix.compareTo("Cread")==0)
base = 8*size*size + 96 ;
base = 8*size*size + 128 ;
else if (matrix.compareTo("Cwrite")==0)
base = 8*size*size + 96 ;
base = 8*size*size + 128;
else
{
System.err.println("Matrix " + matrix + "not recognized, please use A, B or C");
Expand Down

0 comments on commit a9f7f30

Please sign in to comment.