加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

代做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精品视频在线| 欧美人与牛zoz0性行为| 亚洲精品69| 日韩中文字幕1| 欧美色图国产精品| 日韩有码av| 国产日韩一区二区三区在线播放| 蜜臀av一级做a爰片久久| 神马日本精品| av一级久久| 欧美一区二区三区婷婷| 亚洲专区一区二区三区| 色综合久久中文| 日韩影片在线观看| 一区二区三区毛片免费| 成人国产精品一区二区免费麻豆 | 2019中文亚洲字幕| 韩国精品主播一区二区在线观看| 香蕉精品视频在线观看| jizz性欧美23| 亚洲bt欧美bt精品777| 捆绑调教美女网站视频一区| 日韩免费视频| 日韩av专区| 亚洲精品在线观看91| 亚洲a在线视频| 天堂va在线高清一区| 国产精品视频一区视频二区| 日韩精品五月天| 日韩精品一区二区三区av| 免费观看一级特黄欧美大片| 一本色道久久综合| 欧美日韩中文字幕一区二区三区| 成人在线免费视频观看| 午夜欧洲一区| 国产一区2区| 国产精品mm| 日韩高清不卡一区二区三区| 精品美女一区| 欧美一区影院| 国产情侣久久| 久久一区激情| 麻豆精品视频在线| 日本免费在线视频不卡一不卡二| 久久国产免费看| 美女一区二区久久| 日韩免费在线电影| 九九久久国产| 久久精品二区亚洲w码| 日韩三级成人| 欧美亚洲一区二区三区| 日韩福利视频网| 日本视频免费一区| 欧美精品国产一区| 国产精品视频一区二区三区| 欧美区一区二区| 国产亚洲精aa在线看| 亚瑟一区二区三区四区| 日韩福利视频导航| 亚洲日本va午夜在线电影| 加勒比色老久久爱综合网| 精品国产一区二区三区久久久蜜臀| 成人av影音| 精品人人人人| 亚洲五月婷婷| 美女久久网站| 狼人综合视频| 日韩美女在线| 欧美黄色一区二区| 精品国产乱码久久久久久樱花| jizz国产精品| 亚洲欧美伊人| 欧美bbbbb| 超碰超碰人人人人精品| 97成人超碰| 99re8精品视频在线观看| 国产精品一线天粉嫩av| 91蜜桃臀久久一区二区 | 欧美高清不卡| 丝袜亚洲精品中文字幕一区| 9999国产精品| 久久中文字幕一区二区三区| 欧美黄免费看| 荡女精品导航| 狠狠爱综合网| 久久夜夜操妹子| 麻豆精品视频在线观看免费| 亚洲黄色录像| 99免费精品| 免费在线观看视频一区| 国产激情欧美| 欧美女优在线视频| 国产真实久久| 欲香欲色天天天综合和网| 日本在线一区二区| 亚洲精品进入| 欧美成人午夜| 自拍偷自拍亚洲精品被多人伦好爽 | 在线一区免费| 亚洲天堂手机| 国产亚洲电影| 国产真实久久| 深夜福利视频一区二区| 亚洲一区二区| 99精品在线免费在线观看| 免费一级欧美片在线观看| 欧美一区不卡| 在线精品国产亚洲| 国产精品呻吟| 欧美a级理论片| 精品国产18久久久久久二百| 在线视频亚洲| 国产亚洲人成a在线v网站| 日韩av高清在线观看| 亚洲高清资源在线观看| 成人性片免费| 99re8这里有精品热视频8在线| 国产精品毛片一区二区三区| 欧美一区影院| 久久国产欧美| 亚洲伦乱视频| 一区二区精彩视频| 国产精品高颜值在线观看| 伊人久久大香伊蕉在人线观看热v 伊人久久大香线蕉综合影院首页 伊人久久大香 | 亚洲激情中文在线| 国产精品第一| 加勒比色综合久久久久久久久| 日产午夜精品一线二线三线| 欧美日韩1区| 亚洲女同中文字幕| 一区二区三区福利| 久久精品不卡| 99久久婷婷国产综合精品首页| 日韩一区二区三区精品| 日韩综合一区| 日韩电影不卡一区| 日韩在线播放一区二区| 国产精品视频一区视频二区| 狠狠色丁香久久综合频道| 日本怡春院一区二区| jvid福利在线一区二区| 麻豆成人久久精品二区三区红| 色婷婷久久久| 美日韩一区二区| 久久免费av| 麻豆成人在线观看| 欧美精品一线| 欧美激情1区| 日韩制服丝袜av| 精品欧美视频| 日本精品另类| 久久久久国产精品一区三寸| 日韩黄色在线| 波多野结衣的一区二区三区| 欧美日一区二区三区在线观看国产免| 欧美成人高清| 国产精品成人**免费视频| 亚洲欧美日韩精品一区二区| 亚洲男人都懂第一日本| 日本精品黄色| av日韩在线播放| 欧美a视频在线| 亚洲激情成人| 日韩三级av| 99蜜月精品久久91| 亚洲精品久久| 欧美三级一区| 另类图片综合电影| 国产99久久精品一区二区300| 日本在线不卡视频| 老**午夜毛片一区二区三区| 日本一区二区三区播放| 亚洲精品555| 在线一区视频| 国产免费av国片精品草莓男男| 精品成人免费一区二区在线播放| 99国产精品免费视频观看| 久久男人av| 亚洲啊v在线| 亚洲手机视频| 日韩中文av| 三级不卡在线观看| 美女视频一区免费观看| 精品久久97| 中文字幕一区二区精品区| 日韩伦理视频| 欧美不卡视频| 日本在线中文字幕一区| 成人在线高清| 人人狠狠综合久久亚洲| 久久在线免费| 亚洲人成亚洲精品| 欧美亚洲一区| 日韩大片在线观看| 午夜欧美视频| 国产一区调教| 国产精品日本一区二区三区在线 |