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

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

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

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

          9000px;">

                国产三区在线成人av| 首页国产丝袜综合| 国模少妇一区二区三区| 久久夜色精品国产欧美乱极品| 国产美女在线观看一区| 中文在线一区二区| 欧美三区在线视频| 国产精品一二二区| 6080yy午夜一二三区久久| 99国产一区二区三精品乱码| 成人美女视频在线观看18| 777午夜精品免费视频| 国产午夜一区二区三区| 天天综合色天天综合色h| 欧美无乱码久久久免费午夜一区| 日本一区二区三区电影| 亚洲v精品v日韩v欧美v专区| 国内精品免费**视频| 亚洲精品免费在线播放| 精品免费日韩av| 在线观看91视频| 国产成人福利片| 久久精品国产亚洲高清剧情介绍| 中文字幕在线不卡视频| 欧美一区二区成人6969| 91久久一区二区| 成人18精品视频| 粉嫩av一区二区三区粉嫩| 免费人成网站在线观看欧美高清| 亚洲欧美日韩国产综合| 国产喷白浆一区二区三区| 4438成人网| 欧美精品一二三| 欧美做爰猛烈大尺度电影无法无天| 国产成人鲁色资源国产91色综| 日本aⅴ免费视频一区二区三区| 亚洲欧洲一区二区在线播放| 日韩欧美国产一区二区在线播放| 欧美亚州韩日在线看免费版国语版| 不卡在线观看av| 波多野结衣在线一区| 国产精品一区二区不卡| 蜜臀av国产精品久久久久 | 亚洲第一福利视频在线| 亚洲欧美偷拍卡通变态| 日本一区二区综合亚洲| 国产精品全国免费观看高清| 久久午夜羞羞影院免费观看| 亚洲精品一区二区三区福利| 日韩一级在线观看| 久久久久久久电影| 亚洲国产高清在线观看视频| 亚洲天堂a在线| 一区二区三区欧美视频| 亚洲伊人伊色伊影伊综合网| 偷拍自拍另类欧美| 久久99精品国产麻豆婷婷| 国产麻豆精品在线| 99久久99精品久久久久久| av在线这里只有精品| 欧美最新大片在线看| 欧美男同性恋视频网站| 精品国产91九色蝌蚪| 国产女同性恋一区二区| 最新热久久免费视频| 五月天激情综合网| 激情综合色综合久久| www.综合网.com| 在线播放中文一区| 久久精品一区二区三区不卡| 国产精品国产三级国产普通话三级 | 亚洲欧洲精品天堂一级| 亚洲乱码一区二区三区在线观看| 一区二区久久久久久| 美日韩一区二区| 成人a免费在线看| 欧美三级日韩三级| 精品欧美乱码久久久久久 | 制服丝袜av成人在线看| 精品久久国产97色综合| 亚洲视频中文字幕| 蜜臀精品一区二区三区在线观看 | 国产91丝袜在线观看| 在线观看av一区二区| 久久久欧美精品sm网站| 亚洲高清免费观看| 成人午夜在线播放| 精品嫩草影院久久| 午夜精品国产更新| 成人激情免费视频| 日韩欧美国产1| 亚洲国产精品影院| 91蜜桃免费观看视频| 久久久精品2019中文字幕之3| 亚洲午夜日本在线观看| 高潮精品一区videoshd| 欧美一区在线视频| 一区二区三区四区视频精品免费| 国产精品2024| 欧美成人乱码一区二区三区| 亚洲福利电影网| 色噜噜狠狠色综合中国| 亚洲视频小说图片| 不卡一区在线观看| 国产精品高潮呻吟| 春色校园综合激情亚洲| 久久精品一级爱片| 国产精品99久久久久久有的能看| 欧美一区二区网站| 三级欧美韩日大片在线看| 欧美三级三级三级| 午夜久久久久久电影| 欧美色欧美亚洲另类二区| 亚洲欧美偷拍三级| 91美女片黄在线观看| 国产精品热久久久久夜色精品三区 | 欧美精品v国产精品v日韩精品 | 一区二区三区免费网站| 成人av第一页| 自拍偷拍欧美激情| 91美女在线视频| 亚洲第一综合色| 欧美日韩你懂得| 日韩国产欧美三级| 欧美一级搡bbbb搡bbbb| 免费在线成人网| 欧美mv和日韩mv国产网站| 久草这里只有精品视频| 国产日韩欧美一区二区三区乱码| 丁香天五香天堂综合| 国产精品国产自产拍高清av王其| 99久久久久免费精品国产 | 国产成人8x视频一区二区| 国产日韩v精品一区二区| 国产成人在线网站| 亚洲图片另类小说| 在线观看91av| 国产jizzjizz一区二区| 亚洲精品乱码久久久久久| 在线电影一区二区三区| 国产馆精品极品| 亚洲精品免费一二三区| 日韩三级在线免费观看| 国产999精品久久久久久| 亚洲永久免费视频| 亚洲精品一区二区三区四区高清| 粉嫩欧美一区二区三区高清影视 | 国产黄色91视频| 亚洲视频香蕉人妖| 欧美一区二区免费观在线| 国产精品自在在线| 亚洲成人黄色小说| 国产人成亚洲第一网站在线播放 | 韩国中文字幕2020精品| 亚洲国产精品黑人久久久| 欧美区在线观看| www.欧美.com| 蜜臀av性久久久久蜜臀av麻豆| 国产精品―色哟哟| 日韩精品在线网站| 在线观看日韩国产| 成人黄色免费短视频| 日韩不卡一区二区三区| 国产精品亲子乱子伦xxxx裸| 欧美一级黄色录像| 在线亚洲人成电影网站色www| 狠狠色综合播放一区二区| 亚洲成人在线网站| 亚洲欧美区自拍先锋| 精品88久久久久88久久久| aaa亚洲精品一二三区| 国产不卡高清在线观看视频| 国产美女精品人人做人人爽 | 中文字幕日韩一区| 精品国产一区二区三区久久久蜜月| 99久久久久久| 高清在线不卡av| 久草这里只有精品视频| 日韩国产欧美在线观看| 一区二区三区四区高清精品免费观看 | 欧美日韩一区二区三区高清| 大胆欧美人体老妇| 国产激情一区二区三区| 美女脱光内衣内裤视频久久网站| 亚洲最新在线观看| 国产精品沙发午睡系列990531| 精品99久久久久久| 精品电影一区二区三区| 欧美大片日本大片免费观看| 337p亚洲精品色噜噜| 欧美日韩精品一区二区三区蜜桃| 91在线观看高清| 91视频免费看| 色欧美片视频在线观看| 色呦呦国产精品| 在线免费视频一区二区| 欧美无砖砖区免费| 欧美二区三区91| 精品国产乱码久久久久久免费| 日韩三级电影网址|