91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

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

時間:2024-11-28  來源:合肥網(wǎng)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



 

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

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

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號-3 公安備 42010502001045

    91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区
    久久综合九色综合欧美就去吻| 从欧美一区二区三区| 国产成人亚洲综合色影视| 欧美一区成人| 一本大道综合伊人精品热热| 欧美变态tickle挠乳网站| 亚洲日本乱码在线观看| 美女精品一区二区| 欧美日韩理论| 欧美群妇大交群中文字幕| 国产精品伦一区| 国产精品一区二区三区99| 亚洲午夜一区| 欧美一区二区三区视频免费播放| 亚洲欧美一区二区久久 | 国产精品免费看| 日韩三级视频中文字幕| 亚洲午夜电影在线观看| 94色蜜桃网一区二区三区| 欧美午夜一区二区三区| 一区视频在线播放| 成人avav影音| 欧美色老头old∨ideo| 亚洲青青青在线视频| 成人午夜视频在线观看| 91久久精品午夜一区二区| 成人欧美一区二区三区在线播放| 国产不卡视频在线观看| 色国产精品一区在线观看| 亚洲欧美日韩久久精品| 成人av在线电影| 欧美挠脚心视频网站| 五月综合激情网| 亚洲精品1区| 国产视频911| 成人av中文字幕| 91精品国产麻豆| 免费的成人av| 久久精品动漫| 亚洲国产精品麻豆| 中日韩视频在线观看| 国产欧美精品一区二区色综合朱莉| 国产黑丝在线一区二区三区| 在线观看91视频| 三级欧美在线一区| 亚洲少妇诱惑| 亚洲综合图片区| 一本久道综合久久精品| 亚洲三级电影全部在线观看高清| 欧美不卡一卡二卡免费版| 精品盗摄一区二区三区| 国产成人在线色| 日韩视频免费观看高清在线视频| 国产老妇另类xxxxx| 欧美日韩国产综合视频在线观看| 麻豆成人在线观看| 欧美亚洲国产一区二区三区va | 欧美一区二区免费| 国产精品888| 欧美成人一级视频| 粉嫩高潮美女一区二区三区 | 欧美日韩在线高清| 美女视频黄频大全不卡视频在线播放| 在线亚洲一区| 日韩中文字幕亚洲一区二区va在线| 国产精品一级| 亚洲成人av一区二区| 一道本成人在线| 美女国产一区二区三区| 这里只有精品视频在线观看| 国产自产视频一区二区三区| 欧美一区二区三区在线电影| 成人a级免费电影| 欧美激情一区二区在线| 亚洲国产mv| 亚洲国产欧美日韩另类综合 | 成人免费不卡视频| 久久九九影视网| 亚洲第一在线| 亚洲va韩国va欧美va| 欧美在线free| 懂色av噜噜一区二区三区av| 国产欧美一二三区| 99视频+国产日韩欧美| 水蜜桃久久夜色精品一区的特点| 欧美在线一区二区三区| 福利一区二区在线| 国产人伦精品一区二区| 亚洲国产高清一区二区三区| 亚洲777理论| 7777精品伊人久久久大香线蕉 | 天堂蜜桃一区二区三区| 欧美精品久久99| 午夜精品999| 亚洲一区二区三区激情| 欧美区在线观看| 韩日视频一区| 奇米色一区二区| 亚洲精品在线三区| 亚洲一区免费看| 国产美女娇喘av呻吟久久 | 一本一本a久久| 国产一区二区影院| 中文字幕乱码亚洲精品一区 | 国产成人午夜高潮毛片| 国产精品丝袜91| 欧美亚洲丝袜传媒另类| 91麻豆蜜桃一区二区三区| 亚洲国产一区二区三区| 日韩视频免费观看高清完整版在线观看| 欧美日本韩国在线| 免费在线观看成人| 国产日韩欧美精品一区| 色婷婷综合久久久久中文| 91丨九色丨尤物| 日韩精品午夜视频| 欧美国产综合色视频| 欧洲精品视频在线观看| 国产精品成人观看视频免费| 免费成人在线视频观看| 国产精品免费久久| 在线成人av网站| 亚洲一区黄色| av中文一区二区三区| 日本女人一区二区三区| 国产精品丝袜久久久久久app| 欧美日韩亚洲丝袜制服| 999亚洲国产精| 欧美 日韩 国产在线| 毛片av一区二区| 玉米视频成人免费看| 久久久久久久久久久久电影| 在线精品视频免费播放| 99视频精品| 欧美1区视频| 国产电影一区在线| 日产精品久久久久久久性色 | 久久人人97超碰人人澡爱香蕉 | 亚洲成人免费av| 国产精品传媒入口麻豆| 精品国产一区二区三区不卡| 色噜噜偷拍精品综合在线| 亚洲韩日在线| 91丨porny丨中文| 国产福利91精品一区| 日本视频一区二区| 亚洲一区在线观看免费| 欧美激情综合五月色丁香| 欧美电影免费提供在线观看| 日本韩国一区二区三区| 性欧美暴力猛交另类hd| 亚洲视频日本| 欧美精品一区在线| 成人av在线播放网址| 黄色精品一二区| 精品综合久久久久久8888| 天堂成人免费av电影一区| 一区二区三区在线观看国产| 中文在线免费一区三区高中清不卡| 5月丁香婷婷综合| 欧美精品久久久久久久多人混战 | 国产精品 日产精品 欧美精品| 免费av成人在线| 日韩影视精彩在线| 午夜精品久久久久久久99樱桃| 一区二区三区**美女毛片| 亚洲色图视频网站| 亚洲免费电影在线| 亚洲人123区| 一区二区三区视频在线看| 亚洲丝袜自拍清纯另类| 亚洲欧美偷拍三级| 亚洲精品国产视频| 一区二区三区四区激情| 亚洲国产精品天堂| 视频一区视频二区中文字幕| 天堂精品中文字幕在线| 日韩精品一级二级| 精品制服美女久久| 国产一区二三区好的| 国产成人亚洲综合a∨婷婷图片 | 国产女人18毛片水真多成人如厕 | 色欧美片视频在线观看| 在线国产电影不卡| 欧美高清视频一二三区| 日韩三级伦理片妻子的秘密按摩| 日韩欧美国产综合| 久久精品一区二区三区不卡 | 久久免费高清| 欧美日本一区二区在线观看| 欧美刺激脚交jootjob| 国产午夜精品久久久久久免费视| 中国色在线观看另类| 一区二区成人在线视频| 人人狠狠综合久久亚洲| 国产成人啪免费观看软件| 99天天综合性| 一区二区福利| 欧美亚洲日本一区| 久久男人中文字幕资源站|