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不卡免费电影| 中文字幕av一区 二区| 美国一区二区三区在线播放| 成人欧美一区二区三区在线播放| 欧美一级在线免费| 欧美午夜不卡视频| 色综合久久久网| 色婷婷综合久色| 99久久99久久精品国产片果冻| 成人av在线资源网站| 国产aⅴ综合色| 豆国产96在线|亚洲| 国产成人免费视| 不卡视频在线看| 99久久99久久精品国产片果冻| 色综合一个色综合亚洲| 91黄视频在线观看| 日本久久电影网| 欧美在线影院一区二区| 欧美人妖巨大在线| 在线播放中文字幕一区| 日韩视频在线你懂得| 3d成人h动漫网站入口| 精品免费视频一区二区| 国产精品乱人伦一区二区| 国产精品入口麻豆原神| 一区二区不卡在线视频 午夜欧美不卡在| 国产精品午夜在线观看| 蜜臀av一区二区三区| 亚洲成av人在线观看| 国产综合一区二区| 日韩精品自拍偷拍| 精品日产卡一卡二卡麻豆| 欧美成人女星排名| 国产精品国产三级国产普通话三级| 亚洲色图在线播放| 日韩成人av影视| 懂色av噜噜一区二区三区av| 激情五月激情综合网| 国产不卡视频一区| 欧美区视频在线观看| 国产色综合一区| 亚洲电影中文字幕在线观看| 日本在线观看不卡视频| 国产不卡视频在线播放| 欧美日韩一区不卡| 免费成人在线播放| 成人av电影在线观看| 日本欧美一区二区在线观看| 91麻豆精品在线观看| 制服视频三区第一页精品| 欧美日本免费一区二区三区| 久久免费的精品国产v∧| 亚洲精品亚洲人成人网在线播放| 亚洲成年人网站在线观看| 国产真实乱对白精彩久久| 日本久久电影网| 中文字幕成人av| 激情综合网激情| 欧美亚洲另类激情小说| 国产精品每日更新在线播放网址 | 亚洲国产精品久久人人爱蜜臀| 国产乱人伦偷精品视频不卡| 99久久综合国产精品| 91在线无精精品入口| 在线观看91精品国产麻豆| 中文字幕一区二区三区乱码在线| 精东粉嫩av免费一区二区三区| 欧美日韩精品一区二区三区四区| 自拍偷在线精品自拍偷无码专区| 国产在线精品一区二区| 日韩欧美区一区二| 日韩精品欧美精品| 欧美巨大另类极品videosbest | 成人三级在线视频| 日韩女优av电影在线观看| 亚洲午夜精品久久久久久久久| 成人免费福利片| 欧美一区二区免费| 亚洲一区二区三区四区的| 五月婷婷色综合| 91在线国产观看| 欧美日韩在线三级| 国产精品免费免费| 精品影视av免费| 91精品一区二区三区久久久久久 | aaa国产一区| 日韩欧美一级在线播放| 亚洲综合视频在线观看| 91国偷自产一区二区三区成为亚洲经典| 国产欧美一区二区精品性色 | 国产一二三精品| 欧美图区在线视频| 亚洲成人av一区| 5858s免费视频成人| 免费在线看一区| 久久精品亚洲国产奇米99 | 日韩欧美国产不卡| 老司机精品视频导航| 国产亚洲精品aa午夜观看| 99久久精品国产毛片| 亚洲福中文字幕伊人影院| 日韩视频国产视频| 国产成人午夜片在线观看高清观看| 国产精品久久久久天堂| 色哦色哦哦色天天综合| 日本91福利区| 国产精品久久福利| 欧美高清dvd| 国产在线日韩欧美| 日本一区二区免费在线| 在线一区二区三区做爰视频网站| 日本va欧美va欧美va精品| 日韩免费观看高清完整版在线观看| 国产精品一区二区久久不卡 | 亚洲二区在线视频| 精品精品国产高清a毛片牛牛| 国产成人综合在线播放| 亚洲四区在线观看| 欧美日韩国产在线观看| 老司机午夜精品99久久| 久久久久久久久免费| 日本高清不卡在线观看| 精品一区二区在线免费观看| 精品盗摄一区二区三区| 在线视频一区二区三区| 九九国产精品视频| 国产精品久久久久久久岛一牛影视| 色婷婷久久一区二区三区麻豆| 有坂深雪av一区二区精品| 欧美色综合影院| 高清av一区二区| 日日骚欧美日韩| 国产精品另类一区| 欧美一区二区三区性视频| 国产精品亚洲视频| 依依成人综合视频| 国产视频视频一区| 日韩精品在线一区二区| 色婷婷综合久久久| 国产永久精品大片wwwapp| 中文字幕高清一区| 极品少妇一区二区三区精品视频 | 成人白浆超碰人人人人| 日产精品久久久久久久性色| 国产精品久久久久影院| 欧美久久久久久蜜桃| 北条麻妃一区二区三区| 国产美女一区二区| 久久国产精品免费| 日本不卡一区二区| 亚洲国产欧美一区二区三区丁香婷| 国产精品国产三级国产aⅴ无密码| 日韩一区二区在线观看视频播放| 欧美午夜寂寞影院| 欧美精品久久一区二区三区| 在线观看视频91| 99久久精品免费看国产| 91女厕偷拍女厕偷拍高清| 不卡av在线网| 欧美男女性生活在线直播观看| 亚洲狠狠丁香婷婷综合久久久| 91精品国产综合久久精品| 高清不卡一区二区在线| 激情综合网最新| 蜜臀91精品一区二区三区| 亚洲一区二区三区免费视频| 中文字幕一区在线观看视频| 久久这里只有精品6| www欧美成人18+| xfplay精品久久| 国产精品入口麻豆九色| 国产精品乱码一区二三区小蝌蚪| 亚洲欧洲av在线| 亚洲激情中文1区| 亚洲电影在线播放| 亚洲va韩国va欧美va精品| 日本不卡123| 精久久久久久久久久久| 国产91富婆露脸刺激对白| 不卡的电视剧免费网站有什么| 99精品欧美一区二区蜜桃免费| 99re成人精品视频| 91免费在线视频观看| 蜜桃视频在线一区| 日本中文字幕一区| 亚洲天堂av老司机| 欧美日韩亚洲丝袜制服| 欧美人成免费网站| 日韩一区二区三区高清免费看看| 欧美一区二区在线视频| 日韩美女视频在线| 中文字幕免费不卡| 亚洲香肠在线观看| 极品尤物av久久免费看| 99riav一区二区三区| 制服丝袜亚洲精品中文字幕| 男女男精品网站| 成人黄色av网站在线| 欧美日本不卡视频|