正在加载图片...
Q1: Where can a block be placed in the pper level? Block 12 placed in 8 block cache Fully associative direct mapped 2-way set associative S.A. Mapping Block Number Modulo Number Sets Fully associative Direct mapped Set associative block 12 can go block 12 can go block 12 can go anywhere only into block 4 anywhere in set O (12mod8) (12mod4) Block 01234567 Block 01234567 B|ocK01234567 no no SetSet setSet Block-frame address 0123 Block 111111111222222222233 no 01234567890123456789012345678901 2021-2-4 计算机体系结构Q1: Where can a block be placed in the upper level? • Block 12 placed in 8 block cache: − Fully associative, direct mapped, 2-way set associative − S.A. Mapping = Block Number Modulo Number Sets 2021-2-4 计算机体系结构 22 0 1 2 3 4 5 6 7 Block no. Fully associative: block 12 can go anywhere 0 1 2 3 4 5 6 7 Block no. Direct mapped: block 12 can go only into block 4 (12 mod 8) 0 1 2 3 4 5 6 7 Block no. Set associative: block 12 can go anywhere in set 0 (12 mod 4) Set 0 Set 1 Set 2 Set 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 Block-frame address 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 Block no
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有