99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代做CSC3050、代寫C/C++程序語言
代做CSC3050、代寫C/C++程序語言

時間:2024-11-28  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



CSC3050 Project 4: Cache Simulation
CSC3050 Teaching Group
November 20, 2024
1 Introduction
Cache is an important component of a CPU system that has a signiffcant impact on computer
performance by reducing memory access times. The focus of this project is to simulate the
cache in the RISC-V architecture to give you hands-on experience with the cache system
and its role in improving system performance.
2 Overview
This project is divided into three main parts:
1. Single-Level Cache Simulation: In this part, you are required to design and implement
 a cache simulator that enables the single-level cache simulation. Moreover,
you need to use the single-level cache simulator you implemented to compare the cache
performance under different cache parameters.
2. Multi-level Cache Simulation: In this part, based on the single-level cache simulator,
 you are required to further implement a multi-level cache simulator. You need
to examine further how a multi-level cache can improve performance compared to a
single-level cache.
3. Implementation of Pre-fetching: In this section, you are required to implement
a critical technique known as pre-fetching. Moreover, you need to compare the cache
performance with and without pre-fetching.
3 Single-Level Cache Simulation
• Implementation Requirements: You are required to implement a Cache class for
simulating a single-level cache (The code from [1] is a reference code for your). The
ffle structure and description you may use are shown in Table 1.
The simulated cache should be able to perform some parameter tuning, such as cache
size, block size, and associativity level. Besides that, you are required to simulate
1ffle name Discription
include/Cache.h Statement of the Cache class.
src/Cache.cpp Implementation of Cache class.
src/MainSinCache.cpp Main entrance of the single-level cache simulator.
src/MainMulCache.cpp Main entrance of the multi-level cache simulator.
Table 1: File structure and description of single-level and multi-level cache simulation.
Parameter Values
Cache Size 4KB to 1MB, incremented by 4X.
Block Size **Bytes to 256Bytes incremented by 2X.
Associativity 2 to ** incremented by 2X
Write Back True or False.
Write Allocate True of False.
Table 2: Parameters used in single-level cache simulation.
Write Back and Write Allocate policies using the LRU replacement algorithm in your
simulation. The parameters that are tunable and their ranges are listed in Table 2.
Finally, some performance data (e.g. miss rate of the cache and total access latency)
needs to be saved in a CSV ffle.
• Performance Evaluation: After the implementation, you are required to evaluate
the cache performance based on your simulator. We will provide you with a test trace
(test.trace) to facilitate the performance evaluation. What you can do includes but is
not limited to
– Analyzing the trend of Miss Rate with Block Size under different cache sizes
– Analyzing the change of Associativity with Miss Rate under different cache sizes
– Analyzing the amount of cache misses per thousand instructions under different
cache sizes
You are also free to design scenarios for performance evaluation as you wish. But
please analyze the performance in at least two different scenarios. You should provide
graphical or tabular data and conduct the analysis based on the data mentioned above.
The results and analysis should be given in your report.
4 Multi-Level Cache Simulation
• Implementation Requirements: You are required to simulate the multi-level cache
in this part based on your single-level cache simulator.
• Performance Evaluation: You should conduct the comparison between the singlelevel
 and multi-level cache system whose parameters are given in Table 3 and Table
4, respectively. The cache miss latency is set to 100 CPU cycles. Also, graphical or
2tabular data are required and you should put the comparisons and analysis in your
report.
Level Capacity Associativity Block Size Write Policy Hit Latency
L1 16 KB 1 way 64 Bytes Write Back 1 CPU Cycle
Table 3: Cache parameters for single-level cache.
Level Capacity Associativity Block Size Write Policy Hit Latency
L1 16 KB 1 way 64 Bytes Write Back 1 CPU Cycle
L2 128 KB 8 ways 64 Bytes Write Back 8 CPU Cycle
L3 2 MB 16 ways 64 Bytes Write Back 20 CPU Cycle
Table 4: Cache parameters for multi-level cache.
5 Pre-Fetching Implementation
• Implementation Requirements: Based on the multi-level cache simulation, you are
required to further add the pre-fetching technique. Specifically, the mechanism is to
prefetch data in advance based on a detected memory access pattern. In this project,
you will implement a pre-fetching algorithm capable of detecting fixed-stride memory
access patterns; the pseudo-code of the algorithm is summarized in Algorithm 1.
Algorithm 1 Stride-Based Pre-fetching Algorithm
1: initialize: stride = 0, is prefetch = false.
2: for Each Memory Access do
3: Calculate the memory access stride (the distance between the current memory access
address and the address of the previous memory access with the same operation).
4: if is prefetch = false and there are more than three times with the same stride then
5: is prefetch = true
6: prefetch address = current address + stride
7: Prefetching(prefetch address)
8: end if
9: if is prefetch = true and more than three times the different strides are detected
then
10: is prefetch = false.
11: Stop prefecting.
12: end if
13: end for
• Performance Evaluation: You are required to compare the performance of a multilevel
cache with and without pre-fetching. The setting of the multi-level cache is the
same as that in the previous part. Moreover, the test prefetch.trace is the test trace
3specifically designed for prefetching; you can do the performance comparison based on
it. The results should be included in your report.
6 Submission
For this project, you must use C/C++ to implement the cache simulator. If you use other
languages, you will get a 0 score. You need to submit the following files:
• src/*: include all source code files
• include/*: include all header files
• CMakelists.txt: the cmake file for your project
• project-report.pdf: a detailed description of your implementation. The specific things
that need to be included are as follows:
– The implementation details of your simulator.
– Performance evaluation and analysis mentioned above.
Please compress all files into a single zip file and submit it to the BlackBoard. The file name
should be your student ID, like 22101**40.zip.
7 Grading Details
The overall score will be calculated as follows:
• Single-level cache simulation code: 20%
• Multi-level cache simulation code: 20%
• Pre-Fetching implementation code: 40%
• Report: 20%
For the code, we will check whether your code can run or not. Please make sure that your
code runs correctly. If the code does not run, it will be directly marked as 0 points.
8 About the reference code
To reduce the difficulty and complexity of implementation, we encourage you to refer to
existing code like [1]. This project is also designed based on [1]. However, if you simply
submit the code from the reference [1] or only do simple tasks like adding comments, we
consider that you haven’t put much effort and your grade will be directly marked as zero.
References
[1] Hao He, “RISCV-Simulator,” https://github.com/hehao98/RISCV-Simulator, 2019.
4

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp



 

掃一掃在手機打開當前頁
  • 上一篇:CS 551代寫、c/c++設計編程代做
  • 下一篇:MS3251代寫、代做Python/Java程序
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                国产精品欧美亚洲| 一级特黄aaa大片在线观看| 成人福利小视频| 91精产国品一二三产区别沈先生| 一二三区在线播放| 国产精品一区二区三区在线免费观看| 日本va欧美va国产激情| 人妻少妇精品视频一区二区三区 | 亚洲 精品 综合 精品 自拍| 亚洲女人毛茸茸高潮| 久草视频手机在线| 亚洲欧美一区二区三区四区五区| 欧产日产国产v| 久久青青草视频| 依依成人在线视频| 亚洲天堂成人av| 日韩激情小视频| 丰满熟女人妻一区二区三区| 国产aⅴ爽av久久久久成人| 精品人妻一区二区三区四区不卡| 久草国产在线视频| 香蕉视频免费在线看| 国产精品99精品| 日本高清一二三区| 波多野结衣在线观看一区| 视频国产一区二区| 久久久久久久久久久久91| 亚洲精品视频网| 午夜影院在线看| 国产精品 欧美激情| 国产人妻人伦精品1国产丝袜| 九九热视频免费| 日本免费不卡视频| 中文字幕视频在线播放| 不卡的免费av| 开心激情五月网| 天天色综合天天色| a天堂中文在线观看| 性色av浪潮av| 日韩精品视频一区二区| 永久免费看片在线播放| 久久偷拍免费视频| 欧美 日韩 成人| 国产一级淫片a视频免费观看| 91人人澡人人爽| 69视频免费看| 东京热av一区| 国产免费黄色录像| 97精品人人妻人人| 一区二区三区在线免费观看视频| 97精品人妻一区二区三区香蕉 | 午夜精品一区二区三级视频| 亚洲av成人精品一区二区三区 | 男人天堂手机在线观看| 99久久人妻无码中文字幕系列| 性色av一区二区三区四区| 免费黄色在线播放| 精品人妻午夜一区二区三区四区| 97人人爽人人| 亚洲免费av一区| 伊人网在线综合| 婷婷在线精品视频| 日本人妻一区二区三区| 免费看日批视频| 精品手机在线视频| 国产在线观看免费av| 国产精品国产av| 91麻豆免费视频网站| 亚洲一级免费观看| 中文无码精品一区二区三区| 五月天丁香社区| 三级全黄做爰视频| 任你操精品视频| 欧美福利视频一区二区| 蜜臀久久精品久久久用户群体| 国产一区二区小视频| 国产精品9191| 国产精品久久久久精| 国产黄色三级网站| 国产99对白在线播放| 国产激情视频网站| 国产精品一区二区在线免费观看| 国产99久一区二区三区a片| www.超碰在线观看| 国产91av在线播放| 国产亚洲精品精品精品| 国产男男chinese网站| 亚洲中文字幕一区二区| 国产精品久久久久久久免费看| 国产主播av在线| 亚洲AV无码片久久精品| 中文字幕在线播放不卡| 亚洲欧美小视频| www欧美激情| 色免费在线视频| 国产人成视频在线观看| 亚洲熟女乱综合一区二区 | 国产日产在线观看| 亚洲精品国产手机| 亚洲最大成人综合网| 91禁在线观看| 国产情侣av在线| 国产精品久久久久久久久久久久久久久久久 | 国产精品揄拍100视频| 国产婷婷一区二区三区久久| 女同久久另类69精品国产| 色婷婷综合网站| 中文字幕 91| 999精品视频在线| 国产一区二区视频免费观看| 久久久久久久久久免费视频| 色婷婷国产精品免| 亚洲黄色小说网址| 丰满大乳奶做爰ⅹxx视频| 精品国自产在线观看| 日韩精品xxx| 亚洲精品成人无码熟妇在线| www五月天com| 久久偷拍免费视频| 五十路在线视频| 中文字幕 亚洲一区| 亚洲精品在线视频播放| 97精品在线播放| 好男人www社区| 日本精品人妻无码77777| 中文字幕黄色片| 国产精品系列视频| 日本激情一区二区| 亚洲精品午夜视频| 国产小视频一区| 三区视频在线观看| 91丨porny丨对白| 久久久综合久久久| 亚洲va欧美va| 黄色aaa毛片| 天堂在线视频免费观看| 久久精品视频5| 精品区在线观看| 日本人妻熟妇久久久久久| 国产亚洲精品熟女国产成人| 熟妇人妻久久中文字幕| 国产免费一区二区三区最新6| 亚洲一区和二区| 亚欧精品视频一区二区三区| 妺妺窝人体色www在线观看| 黄色av小说在线观看| 欧美成人另类视频| 亚洲AV第二区国产精品| 日本a级片视频| 国产盗摄一区二区三区在线| 欧美特级一级片| 国产精品久久久久久无人区| 久久久久久久久久一区二区| 久久久综合久久久| 天堂在线中文网| 永久久久久久久| 亚洲视频中文字幕在线观看| 69av视频在线观看| 性色av无码久久一区二区三区| 欧美一级特黄a| 亚洲最大天堂网| 欧美日韩一二三四区| 国产精品天天干| 中文字幕在线观看日| 欧美黄色免费观看| 亚洲一区二区激情| 怡春院在线视频| 国产精品视频123| 亚洲视频在线免费播放| 国产精品密蕾丝袜| 国产精品伊人久久| 五月天综合激情| 国产三级精品在线观看| 五月天视频在线观看| 国产精品色综合| 中文字幕第15页| 美女网站视频色| 99精品在线视频观看| 蜜臀av午夜精品久久| 北条麻妃亚洲一区| 无码人妻精品一区二区50| 国产日产精品一区二区三区的介绍| 网站一区二区三区| 加勒比av在线播放| 一个色综合久久| 天堂中文在线资源| 黄色av一区二区三区| 91日韩中文字幕| 午夜精品一二三区| 久久久久久无码精品大片| www.av天天| 中文字幕精品一区二区精| 嫩草av久久伊人妇女超级a| 非洲一级黄色片| 亚洲黄色一区二区| 日韩福利视频在线| 久久r这里只有精品| 国产高潮久久久| 亚洲一级黄色录像| 性久久久久久久久久|