diff --git a/assignment-6/bin/configuration/config.xml b/assignment-6/bin/configuration/config.xml new file mode 100644 index 0000000..002c97c --- /dev/null +++ b/assignment-6/bin/configuration/config.xml @@ -0,0 +1,43 @@ + + + + + 2 + 1 + 1 + + + 1 + 4 + 1 + + + 1 + 10 + 1 + + + + + 256 + 2 + 4 + LRU + + + + 256 + 2 + 4 + LRU + + + + 2048 + 10 + 4 + LRU + + + 40 + \ No newline at end of file diff --git a/assignment-6/bin/hello.txt b/assignment-6/bin/hello.txt new file mode 100644 index 0000000..35fbc24 --- /dev/null +++ b/assignment-6/bin/hello.txt @@ -0,0 +1,4 @@ +Number of instructions executed = 340 +Number of cycles taken = 15080 +Number of data hazards = 373 +Number of control hazards = 166 diff --git a/assignment-6/report.pdf b/assignment-6/report.pdf new file mode 100644 index 0000000..5aedfc1 Binary files /dev/null and b/assignment-6/report.pdf differ diff --git a/assignment-6/src/hello.txt b/assignment-6/src/hello.txt index 56f5c94..286e835 100644 --- a/assignment-6/src/hello.txt +++ b/assignment-6/src/hello.txt @@ -1,4 +1,4 @@ -Number of instructions executed = 5 -Number of cycles taken = 224 -Number of data hazards = 5 -Number of control hazards = 0 +Number of instructions executed = 365 +Number of cycles taken = 15815 +Number of data hazards = 393 +Number of control hazards = 176 diff --git a/assignment-6/src/processor/Processor.java b/assignment-6/src/processor/Processor.java index 049df56..9df3113 100644 --- a/assignment-6/src/processor/Processor.java +++ b/assignment-6/src/processor/Processor.java @@ -47,8 +47,8 @@ public class Processor { EX_IF_Latch = new EX_IF_LatchType(); MA_RW_Latch = new MA_RW_LatchType(); - l1iCache = new Cache(this, 1, 16); - l1dCache = new Cache(this, 4, 1024); + l1iCache = new Cache(this, 0, 16); + l1dCache = new Cache(this, 0, 16); IFUnit = new InstructionFetch(this, IF_EnableLatch, IF_OF_Latch, EX_IF_Latch); OFUnit = new OperandFetch(this, IF_OF_Latch, OF_EX_Latch, IF_EnableLatch);