国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

代做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程序
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国产精品久久久久久av福利 | 人妻无码视频一区二区三区| 国内精品久久久| 欧美专区一二三| 欧美在线视频网站| 人偷久久久久久久偷女厕| 国产黑人绿帽在线第一区| 国产精品美乳一区二区免费| 日本精品久久久久中文字幕| 99热在线这里只有精品| 九九九热精品免费视频观看网站| 欧美亚洲国产另类| 男人的天堂99| 国产欧美一区二区三区不卡高清| 欧美精品在线免费观看| 国产一区二区三区黄| 国产精品久久久久久久久久三级| 国产一区二区在线网站| 国产精品久久久久久久小唯西川| 人人妻人人澡人人爽欧美一区双| 韩国视频理论视频久久| 国产精品久久久久久久av电影| 欧美亚洲成人网| 免费特级黄色片| 亚洲人体一区| 亚洲中文字幕无码一区二区三区| 91久久久久久久久久久| 亚洲一区二区三区精品视频| av中文字幕av| 久久99影院| 欧美成人全部免费| 日韩欧美黄色大片| 国产三级精品网站| 久久久久久国产精品一区| 黄色一级视频片| 国产精品99久久久久久大便| 欧美性久久久久| 99久久国产综合精品五月天喷水| 欧美动漫一区二区| 97精品国产97久久久久久春色 | 日本一本a高清免费不卡| 国产精品久久电影观看| 国产精彩精品视频| 精品综合久久久久久97| 国产精品视频公开费视频| 国产精品一线二线三线| 欧美一二三视频| 久久免费精品日本久久中文字幕| 国产女人18毛片| 北条麻妃久久精品| 青青视频在线播放| 久久久国内精品| 亚洲精品免费一区二区三区| 国产精品伦子伦免费视频| 国产成人精品免费久久久久| 美女久久久久久久| 国产一区二区三区小说| 欧美性一区二区三区| 日本少妇高潮喷水视频| 水蜜桃亚洲精品| 91国产在线免费观看| 久久综合中文色婷婷| 成人a在线视频| 国产99久久九九精品无码| 国产精品久久久久久久午夜| 色婷婷久久av| 日日鲁鲁鲁夜夜爽爽狠狠视频97| 日韩av免费网站| 久久99久久99精品蜜柚传媒| 精品产品国产在线不卡| 国产激情综合五月久久| 99中文字幕| 日韩中文在线不卡| 青青视频在线播放| 国产精品无码免费专区午夜| 精品国产一区二区三区四区在线观看| 日本一区免费看| 久久天天躁狠狠躁老女人| 久久中文久久字幕| 国产女同一区二区| 亚洲欧美精品| 国产精品毛片一区视频| 欧美成人全部免费| 久久免费精品日本久久中文字幕| 色乱码一区二区三区熟女| 午夜欧美大片免费观看| 国产精品毛片a∨一区二区三区|国| 欧美大码xxxx| 久久精品第九区免费观看| 国产精品久久久久久久av大片 | 久久综合国产精品台湾中文娱乐网| 久久成人人人人精品欧| 亚洲欧洲日韩综合二区| 91九色在线视频| 在线免费观看一区二区三区| 日韩欧美一区三区| 久久99精品国产99久久6尤物| 欧美一区二区三区……| 欧美日韩精品不卡| 亚洲图片欧洲图片日韩av| 日韩偷拍一区二区| 亚洲砖区区免费| 久久亚洲精品一区二区| 日韩福利在线| 午夜在线视频免费观看| 国产精品一区二区你懂得| 国产精品高清网站| xxx一区二区| 国产传媒一区二区三区| 久久久久久久久久久免费精品| 欧美在线www| 色噜噜狠狠一区二区三区 | 国产成人精品综合| 久久视频中文字幕| 国产精品日韩在线| 久久精品国产亚洲7777| 欧美日韩第二页| 日韩日韩日韩日韩日韩| 日韩一区视频在线| 视频直播国产精品| 久久手机精品视频| 国产精品国产三级国产aⅴ浪潮| 日韩精品资源| 欧美一级黑人aaaaaaa做受| 久久精品99久久香蕉国产色戒| 日韩精品极品视频在线观看免费| 日韩视频第一页| 国产精品丝袜视频| 欧美精品www| 日韩av一区二区三区在线| 日韩一二三在线视频播| 欧美日韩精品免费观看视一区二区| 国产精品亚洲综合天堂夜夜| 在线码字幕一区| 色就是色欧美| 国产一区二区免费在线观看| 亚洲最新在线| 日韩网址在线观看| 国产精自产拍久久久久久| 青青青国产在线视频| 国产精品久久久久aaaa九色| 成人亚洲综合色就1024| 日韩视频免费在线播放| 日韩视频在线免费| 亚洲视频在线观看日本a| 久久精品99久久久久久久久| 超碰97在线播放| 97久久精品视频| 久热99视频在线观看| 国产在线视频91| 91成人精品网站| 久久亚洲精品网站| 男人添女人下部视频免费| 日韩亚洲一区在线播放| 欧美激情久久久久| 欧美国产一二三区| 亚洲三级一区| 成人在线国产精品| 精品国产一区二区三区久久久久久 | 亚洲乱码一区二区三区| 久久香蕉国产线看观看av| 日韩视频―中文字幕| 99在线精品免费视频| 国产在线观看一区二区三区| 欧洲日本亚洲国产区| 亚洲www在线| 97免费视频观看| 亚洲精品欧美日韩专区| 亚洲欧美在线网| 超碰在线观看97| 色欲色香天天天综合网www | 韩日午夜在线资源一区二区| 日韩欧美一区三区| 8050国产精品久久久久久| 131美女爱做视频| 亚洲国产精品毛片| 国产大尺度在线观看| 久久这里只有精品23| 久久久久久www| 色中色综合成人| 国产精品视频男人的天堂| 欧美成人四级hd版| 国产精品一区二区三区在线| 91久久久在线| 日韩精品 欧美| 精品国产一区二区三区在线| 亚洲综合在线做性| 国产精品综合久久久久久| 国产不卡一区二区视频| 国产成人精品一区二区在线| 国产精品久久久久久超碰| 精品中文字幕乱| 91精品91久久久中77777老牛| 国产高清www| 国产又黄又爽免费视频| 国产成人艳妇aa视频在线| 国产精品麻豆免费版| 亚洲欧洲免费无码| 操91在线视频| 久操手机在线视频|