mirror of
https://github.com/Rushilwiz/comp211.git
synced 2025-04-04 03:10:16 -04:00
192 lines
4.2 KiB
Plaintext
192 lines
4.2 KiB
Plaintext
------------------------
|
|
[STEP 1] Setting up physical memory
|
|
------------------------
|
|
Physical memory addressable bits = 8, total number of blocks = 64
|
|
|
|
------------------------
|
|
[STEP 2] Determining physical memory block locations
|
|
------------------------
|
|
|
|
------------------------
|
|
[STEP 3] Select cache mapping function (CMF)
|
|
------------------------
|
|
1 = Direct mapping
|
|
2 = Fully associative
|
|
------------------------
|
|
Please enter 1 or 2:
|
|
------------------------
|
|
[STEP 4] initializing cache
|
|
------------------------
|
|
|
|
------------------------
|
|
[STEP 5] Starting simulation
|
|
------------------------
|
|
CMF is Fully Associative
|
|
To exit simulation, press Ctrl+C
|
|
|
|
Please enter 8-bit hexadecimal address: Entered Hexadecimal (Base-16) address 00 (Base-10 value 0)
|
|
|
|
---------------------------------------------
|
|
line tag num of hits
|
|
---------------------------------------------
|
|
0 00 1
|
|
1 -1 0
|
|
2 -1 0
|
|
3 -1 0
|
|
4 -1 0
|
|
5 -1 0
|
|
6 -1 0
|
|
7 -1 0
|
|
[MISS:No Replacement] The byte value at memory address 00 is 7F
|
|
|
|
Please enter 8-bit hexadecimal address: Entered Hexadecimal (Base-16) address 01 (Base-10 value 1)
|
|
|
|
---------------------------------------------
|
|
line tag num of hits
|
|
---------------------------------------------
|
|
0 00 2
|
|
1 -1 0
|
|
2 -1 0
|
|
3 -1 0
|
|
4 -1 0
|
|
5 -1 0
|
|
6 -1 0
|
|
7 -1 0
|
|
[HIT:No Replacement] The byte value at memory address 01 is 24
|
|
|
|
Please enter 8-bit hexadecimal address: Entered Hexadecimal (Base-16) address 02 (Base-10 value 2)
|
|
|
|
---------------------------------------------
|
|
line tag num of hits
|
|
---------------------------------------------
|
|
0 00 3
|
|
1 -1 0
|
|
2 -1 0
|
|
3 -1 0
|
|
4 -1 0
|
|
5 -1 0
|
|
6 -1 0
|
|
7 -1 0
|
|
[HIT:No Replacement] The byte value at memory address 02 is 7A
|
|
|
|
Please enter 8-bit hexadecimal address: Entered Hexadecimal (Base-16) address 03 (Base-10 value 3)
|
|
|
|
---------------------------------------------
|
|
line tag num of hits
|
|
---------------------------------------------
|
|
0 00 4
|
|
1 -1 0
|
|
2 -1 0
|
|
3 -1 0
|
|
4 -1 0
|
|
5 -1 0
|
|
6 -1 0
|
|
7 -1 0
|
|
[HIT:No Replacement] The byte value at memory address 03 is 41
|
|
|
|
Please enter 8-bit hexadecimal address: Entered Hexadecimal (Base-16) address 09 (Base-10 value 9)
|
|
|
|
---------------------------------------------
|
|
line tag num of hits
|
|
---------------------------------------------
|
|
0 00 4
|
|
1 02 1
|
|
2 -1 0
|
|
3 -1 0
|
|
4 -1 0
|
|
5 -1 0
|
|
6 -1 0
|
|
7 -1 0
|
|
[MISS:No Replacement] The byte value at memory address 09 is 32
|
|
|
|
Please enter 8-bit hexadecimal address: Entered Hexadecimal (Base-16) address 0A (Base-10 value 10)
|
|
|
|
---------------------------------------------
|
|
line tag num of hits
|
|
---------------------------------------------
|
|
0 00 4
|
|
1 02 2
|
|
2 -1 0
|
|
3 -1 0
|
|
4 -1 0
|
|
5 -1 0
|
|
6 -1 0
|
|
7 -1 0
|
|
[HIT:No Replacement] The byte value at memory address 0A is 53
|
|
|
|
Please enter 8-bit hexadecimal address: Entered Hexadecimal (Base-16) address 0B (Base-10 value 11)
|
|
|
|
---------------------------------------------
|
|
line tag num of hits
|
|
---------------------------------------------
|
|
0 00 4
|
|
1 02 3
|
|
2 -1 0
|
|
3 -1 0
|
|
4 -1 0
|
|
5 -1 0
|
|
6 -1 0
|
|
7 -1 0
|
|
[HIT:No Replacement] The byte value at memory address 0B is 7F
|
|
|
|
Please enter 8-bit hexadecimal address: Entered Hexadecimal (Base-16) address 10 (Base-10 value 16)
|
|
|
|
---------------------------------------------
|
|
line tag num of hits
|
|
---------------------------------------------
|
|
0 00 4
|
|
1 02 3
|
|
2 04 1
|
|
3 -1 0
|
|
4 -1 0
|
|
5 -1 0
|
|
6 -1 0
|
|
7 -1 0
|
|
[MISS:No Replacement] The byte value at memory address 10 is 68
|
|
|
|
Please enter 8-bit hexadecimal address: Entered Hexadecimal (Base-16) address 20 (Base-10 value 32)
|
|
|
|
---------------------------------------------
|
|
line tag num of hits
|
|
---------------------------------------------
|
|
0 00 4
|
|
1 02 3
|
|
2 04 1
|
|
3 08 1
|
|
4 -1 0
|
|
5 -1 0
|
|
6 -1 0
|
|
7 -1 0
|
|
[MISS:No Replacement] The byte value at memory address 20 is 7F
|
|
|
|
Please enter 8-bit hexadecimal address: Entered Hexadecimal (Base-16) address 20 (Base-10 value 32)
|
|
|
|
---------------------------------------------
|
|
line tag num of hits
|
|
---------------------------------------------
|
|
0 00 4
|
|
1 02 3
|
|
2 04 1
|
|
3 08 2
|
|
4 -1 0
|
|
5 -1 0
|
|
6 -1 0
|
|
7 -1 0
|
|
[HIT:No Replacement] The byte value at memory address 20 is 7F
|
|
|
|
Please enter 8-bit hexadecimal address: Entered Hexadecimal (Base-16) address 40 (Base-10 value 64)
|
|
|
|
---------------------------------------------
|
|
line tag num of hits
|
|
---------------------------------------------
|
|
0 00 4
|
|
1 02 3
|
|
2 04 1
|
|
3 08 2
|
|
4 10 1
|
|
5 -1 0
|
|
6 -1 0
|
|
7 -1 0
|
|
[MISS:No Replacement] The byte value at memory address 40 is 3A
|
|
|