日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

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

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

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

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        国产在线观看精品一区二区三区| 亚洲欧美日韩国产成人精品影院| 99视频在线观看一区三区| 亚洲影音一区| 欧美va天堂va视频va在线| 亚洲乱码精品一二三四区日韩在线| 老司机免费视频一区二区| 欧美一区二区高清在线观看| 麻豆精品一区二区综合av| 欧美精品日韩www.p站| 久久精品国产2020观看福利| 久久成人免费日本黄色| 欧美一区二区三区在线| 久久9热精品视频| 美女精品一区| 男女精品视频| 国产午夜精品理论片a级大结局| 久久久久久黄| 亚洲视频在线视频| 欧美了一区在线观看| 亚洲精品资源美女情侣酒店| 在线视频成人| 老司机一区二区三区| 亚洲精品一品区二品区三品区| 一本久久知道综合久久| 久久精品网址| 亚洲欧美日韩国产综合在线| 亚洲日本中文字幕免费在线不卡| 亚洲三级免费| 亚洲黄色影片| 亚洲午夜精品福利| 国产亚洲欧美一区二区| 国产日韩专区| 欧美一区二区三区四区高清| 国产伦精品一区二区三区视频黑人| 国产欧美一区二区精品仙草咪| 好看不卡的中文字幕| 亚洲免费在线电影| 一区二区三区在线高清| 欧美男人的天堂| 国产精品一级二级三级| 亚洲精品在线三区| 一区二区三区四区蜜桃| 欧美日韩三区四区| 麻豆成人小视频| 在线午夜精品| 午夜精品区一区二区三| 亚洲人成人一区二区在线观看| 国产精品男人爽免费视频1| 久久国产高清| 久久国产精品色婷婷| 久久人人爽国产| 精品动漫3d一区二区三区免费版| 久久精品视频一| 久久漫画官网| 欧美日韩日日夜夜| 久久久精品动漫| 国产精品国码视频| 国产精品99久久99久久久二8| 国产精品盗摄一区二区三区| 国产日韩欧美91| 亚洲午夜一二三区视频| 欧美风情在线| 欧美性色视频在线| 国产精品婷婷| 日韩一区二区精品在线观看| 亚洲另类黄色| 国产婷婷色一区二区三区| 欧美精品久久99久久在免费线| 欧美破处大片在线视频| 国产日韩精品视频一区二区三区| 亚洲视频福利| 老司机午夜精品视频| 国产欧美日韩在线观看| 亚洲永久免费观看| 亚洲视频香蕉人妖| 久久成人精品一区二区三区| 性高湖久久久久久久久| 亚洲国产91| 欧美一区二区高清在线观看| 久久久久天天天天| 国产一区二区三区电影在线观看| 欧美国产综合视频| 亚洲美女视频| 久久成人国产| 国产精品毛片a∨一区二区三区|国| 国产精品理论片| 性久久久久久久久| 亚洲欧洲一二三| 久久亚洲精品一区二区| 欧美精品粉嫩高潮一区二区| 狂野欧美性猛交xxxx巴西| 99精品久久久| 欧美美女喷水视频| 亚洲精品一区二区三区不| 一本久道久久综合婷婷鲸鱼| 欧美大片18| 日韩一区二区高清| 日韩一区二区高清| 亚洲电影天堂av| 久久久噜噜噜久久| 亚洲午夜久久久久久久久电影网| 国产精品自在欧美一区| 国产日韩欧美综合精品| 亚洲欧美制服另类日韩| 免费一级欧美片在线播放| 久久久久国产精品人| 亚洲欧美日韩一区二区在线| 亚洲欧美一区二区原创| 国产在线观看精品一区二区三区| 国产婷婷成人久久av免费高清| 久久久女女女女999久久| 亚洲一区二区三区高清不卡| 欧美高清在线视频观看不卡| 国产欧美日韩亚洲| 国产精品进线69影院| 精品成人一区二区三区| 久久精品官网| 欧美激情一二三区| 99综合电影在线视频| 亚洲大胆在线| 国产精品爽爽ⅴa在线观看| 老色鬼精品视频在线观看播放| 国产综合久久久久久| 亚洲成色777777在线观看影院| 最新成人av网站| 欧美一区网站| 在线观看成人网| 亚洲精品视频在线看| 快she精品国产999| 欧美先锋影音| 亚洲精品在线观看视频| 欧美性猛交一区二区三区精品| 久久久久久国产精品mv| 国产美女搞久久| 欧美精品乱码久久久久久按摩| 新狼窝色av性久久久久久| 在线国产亚洲欧美| 中文在线不卡| 欧美日韩国产在线播放网站| 欧美日韩精品免费看| 亚洲日本成人网| 国产一区二区三区高清播放| 香蕉久久夜色精品国产| 韩日精品中文字幕| 欧美专区在线播放| 欧美调教视频| 亚洲天堂网站在线观看视频| 黄色欧美日韩| 欧美老女人xx| 韩国免费一区| 亚洲一区二区视频在线观看| 亚洲国产另类 国产精品国产免费| 老司机aⅴ在线精品导航| 亚洲美女在线视频| 激情欧美一区| 在线免费观看视频一区| 激情六月婷婷久久| 欧美在线视频一区二区| 亚洲韩国精品一区| 亚洲一区二区三区乱码aⅴ蜜桃女| 国产精品视频在线观看| 久久久蜜臀国产一区二区| 欧美精品情趣视频|