国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

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

時(shí)間:2024-11-16  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



CSC3050 Project 3: RISC-V Simulator with RVV
1 Background
RISC-V, an open standard instruction set architecture (ISA), has rapidly become a
pivotal force in academic research and industrial development due to its flexibility
and open-source nature. Unlike proprietary ISAs, RISC-V offers the freedom for
developers to customize and extend the architecture, making it an ideal platform
for innovation in research, education, and the design of specialized hardware. One
of its most impactful extensions is the RISC-V Vector Extension (RVV), which
introduces efficient vector processing capabilities—a cornerstone of modern high performance computing. This is especially critical for applications like machine
learning, cryptography, and scientific simulations, where parallel data processing is
essential for improving computational speed and efficiency.
In this project, you are tasked with extending the QTRVSim RISC-V simulator
to support vector operations by implementing some of the RVV instructions.
After reviewing the number of cycles, you will get a feeling of how this is faster
than conducting element-wise operations.
Start early, this project can be time-consuming if you are not familiar with
simulators.
2 QTRVSim
QTRVSim is a RISC-V CPU simulator for education, where you can try its online
version on this link. Just in case you want to try different instructions, you can refer
to this page: RISC-V Instruction Set Specifications. A helpful video about using
QTRVSim can be found on Youtube
After familiarizing yourself with the QtRVSim manual, you can begin planning how
to integrate RVV instructions into the existing implementation. The simulator’s
source code, written in C++ and including both the core simulation functions and
graphical user interfaces (GUIs), can be found in the repository at this link. To test
your modifications, QtRVSim offers two methods for simulating assembly code: GUI
or command-line prompts.
Note: For this project, you are not required to modify any of the GUI components.
Your primary goal is to ensure that the RVV instructions function correctly when
using command-line prompts. Another objective in this project is to save the number
of cycles; the smaller the number you get, the better the score you get.
1
2.1 How to run
We give the example of running QTRVSim on Ubuntu with the terminal. You can
follow these steps:
1. We assume you already have the necessary packages for compiling cpp. If
not, you can easily find tutorial for them on the internet.
2. Install QT6 (QT5 does not work in most cases) with sudo apt install qt6-
base-dev. You might need sudo apt update first, and make sure you are
installing QT6, not QT5.
3. Download QTRVSim from the given repository.
4. Make a new directory for building files (mkdir build; cd build)
5. cmake -DCMAKE BUILD TYPE=Release /path/to/qtrvsim
6. make -j X, where X is the number of threads you want to use
7. If everything goes correctly, you can use ./target/qtrvsim cli –asm XXXXX.S
to run your .S file.
8. Via ./target/qtrvsim cli –help, you can check all helpful arguments.
3 RVV Instructions
In this assignment, you are required to implement the following RVV instructions
(suppose max vector size is **):
1. vsetvl rd, rs1, rs2: sets the length register vl to rs1 and rd, also sets the
register holding the type of vector to rs2 (8/16/**).
2. vadd.vv vd, vs2, vs1: adds two vectors vs2 and vs1, and stores the result
in vd
3. vadd.vx vd, vs2, rs1: adds rs1 to each element of vector vs2, and stores
the result in vd
4. vadd.vi vd, vs2, imm: adds the scalar value imm to each element of vector
vs2, and stores the result in vd
5. vmul.vv vd, vs2, vs1: conducts dot production on two vectors vs2 and vs1,
and stores the result in vd
6. vlw.v vd, (rs1): loads elements stored starting at rs1 into vector vd. The
length to load is dependent on the length stored at vl and the unit length
specified earlier.
7. vsw.v vs3, (rs1): stores vector elements of vs3 into memory starting at rs1.
The length to load is dependent on the length stored at vl and the unit length
specified earlier.
2
Figure 1: Matrix stored as vector
The whole point of this project is that, through the implementation, you will
understand why are vector operations is much faster than manipulate each ele ment individually. For example, writing 100 elements into memory will require 100
individual store instructions if in an element-wise manner. However, using vector
write, you only need to do one vector store instruction.
A detailed explanation of RVV instructions can be found at this manual. Reminder:
Do not forget to update vl when switching to operate on vectors with different
lengths.
4 Matrix Multiplication
After implementing and testing the aforementioned functionalities, you are required
to write a .S file that conduct matrix to matrix multiplication.
Ci,j =
X Ai,kBk,j
k
The actual matrix will be stored as a vector in memory, as shown in Figure 1. In
order to conduct vector multiplication, the size of the matrix n × m will be given.
We require you to generate two random matrices with sizes of 20 × 46 and
46 × 50 where elements can be of your own choice.
5 Tricks
There are several tricks you can apply to reduce cycle counts.
1. Reduction (required): This is similar to calculate the summation of a
vector, but more efficiently. The basic requirement is that you conduct this
summation on each element one-by-one, which leads to excessive cycles.
Another approach is to do binary split, i.e. repeatedly decompose the a vector
of size n into 2 vectors of size n//2, and then conduct vadd. There are also
other trick for conducting reduction, and you can explore any of them.
3
Possible reduction:
(a) scalar loop
(b) vector shift
(c) reduction instruction
(d) ...
2. Chaining (Extra credit): When conducting vector operations, it is not nec essary to wait for the entire instruction to complete. As shown in Figure 2, it
is possible to conduct VADD on the first element, right after obtaining the
first element of VMUL. A much better illustration can be found at Prof.Hsu’s
slides at this link.
Figure 2: chaining
6 Instruction on Implementation
The code involved in QTRVSim is quite complicated. Luckily, you only need to
focus on few script files.
1. src/machine/instruction.cpp: Edit this file to add new instructions. The
boxed fields are:
• instruction name
• instruction enum type (you can edit this by yourself; no need to follow
the example)
• input types (you can go through instruction.cpp to see what char is for
what type)
• machine code (hexadecimal)
• mask for effective bits for instruction (hexadecimal)
• customize flags (you can edit this by yourself; no need to follow the
example)
2. src/machine/core.cpp: Main pipeline of the simulator. You can find fetch,
decode, execute, writeback, memory in it, and edit these codes for your con venience.
4
3. src/machine/execute/alu.cpp: specify what to do for each alu operation.
You can create/edit these codes for your own convenience.
Other files might also interest you, but we will not go through all of them here.
Feel free to modify any codes as long as they work.
Notice: you need to use state.cycle count++; in core.cpp when needed.
Notice2: If you want to use v1,v2... as the vector register, you can modify
parse reg from string() in instruction.cpp.
Notice3: You might want to check dt.num rt, dt.num rd, dt.num rs for specific
register indexing.
Notice4: The largest vector register length is **. Load instruction will have a
memory latency of **. Besides, the cycles for multiplication is 4. (This means that,
to load a vector of length 10, the total cycles will be 1 + 1 + ** + 10 + 1 + 1 = 46)
7 Grading Criteria
The maximum score you can get for this lab is 100 points. We will first exam ine the correctness of your outputs to test cases. Since hard-coding each opera tion is fairly easy in C++, we will check the execution information, such as the
number of cycles, and content in memories/registers. Using of ChatGPT to im prove writing/generate codes/provide ideas is allowed and highly-recommended
as ChatGPT has become one of the best productivity tools.
Conducting ”higher-level” reduction or finishing the task with less number of cycles
will be granted with extra credit.
You are also required to compose a report, where you should show the results
of your test case executions. Besides you also need to show the total number of
cycles and explain where those cycles come from. (few sentences, no need to be
super specific.)
The deadline of this project is 23:59, Tuesday, 2024/11/19. For each day after
the deadline, 10 points will be deducted from your final score up to 30 points, after
which you will get 0 points.
Besides, if anyone is interested in developing with QT, you are more than welcome
to implement GUI support for RVV instruction. If done properly, you will earn extra
credits, and might contribute to future contents of this class.
Feel free to ask questions if you find anything confusing.
5
8 Submission
You should make sure your code compiles and runs. Then, it should be compressed
into a .zip file and submitted to BlackBoard. Any necessary instructions to
compile and run your code should also be documented and included. Finally, you are
also required to include a report containing the results of your test case execution.



請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp






 

掃一掃在手機(jī)打開當(dāng)前頁(yè)
  • 上一篇:ENGG1110代做、R編程語言代寫
  • 下一篇:代寫CCIT4020、代做python語言編程
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場(chǎng)仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲勞振動(dòng)
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個(gè)行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開團(tuán)助手,多多出評(píng)軟件徽y1698861
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開團(tuán)助手
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服務(wù)平臺(tái)
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗(yàn)證碼 寵物飼養(yǎng) 十大衛(wèi)浴品牌排行 suno 豆包網(wǎng)頁(yè)版入口 wps 目錄網(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號(hào)-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    欧美精品一区二区三区三州| 黄在线观看网站| 国产a一区二区| 99视频在线免费播放| 高清一区二区三区日本久| 国产麻豆一区二区三区在线观看| 国产综合第一页| 国产欧美一区二区三区在线| 国产伦理久久久| av网址在线观看免费| 91久久久一线二线三线品牌| 国产激情999| www.男人天堂网| 91精品国产自产在线观看永久| 97免费高清电视剧观看| 国产成人精品电影| 久热99视频在线观看| 国产精品久久久| 中文字幕精品—区二区日日骚| 欧美激情极品视频| 亚洲精品日产aⅴ| 日韩欧美精品在线观看视频| 日韩久久不卡| 国产中文日韩欧美| 91精品国产综合久久香蕉的用户体验 | 国产免费黄视频| 久久久久久国产精品美女| 一本色道久久99精品综合| 精品国产一区二区三区麻豆免费观看完整版 | 国产精品区一区二区三在线播放| 国产福利视频一区二区| 久久九九国产视频| 国产精品免费入口| 中文字幕欧美人妻精品一区| 亚洲 高清 成人 动漫| 日韩精品一区二区三区四区五区| 国产在线一区二| 国产精品999视频| 国产精品爽爽爽| 亚洲一区二区三区毛片| 欧美日韩另类综合| 成人在线一区二区| 日韩亚洲欧美成人| 中文字幕无码精品亚洲35| 人人澡人人澡人人看欧美| 国产伦精品一区二区三区免 | 国产精品久久久久久久久| 亚洲国产精品www| 欧美视频1区| 超碰在线观看97| 久久久久久久久电影| 美女久久久久久久久久久| 日韩免费一区二区三区| 国产精品一区二区女厕厕| 久久久久久久久久久久久久久久久久av| 久久在线精品视频| 日本不卡一区二区三区四区| 国产一级片黄色| 日韩最新免费不卡| 九九精品在线播放| 青青视频在线播放| 81精品国产乱码久久久久久| 精品国产无码在线| 秋霞久久久久久一区二区| 国产精品亚洲αv天堂无码| 国产精品日韩av| 日本一区二区三区视频免费看 | 国产精品久久久久久久乖乖| 日日噜噜噜夜夜爽爽| 蜜桃av噜噜一区二区三区| 97欧洲一区二区精品免费| 久久在精品线影院精品国产| 欧美在线免费观看| 久久久视频精品| 中文字幕在线中文| 国产精品一区二区电影| 国产精品久久精品国产| 欧美做受高潮1| 九九九久久久| 欧美一区二区三区艳史| 97激碰免费视频| 中文字幕免费在线不卡| 国内精品视频免费| 国产精品男女猛烈高潮激情| 人妻有码中文字幕| 九色91视频| 日日噜噜夜夜狠狠久久丁香五月| 91久久精品美女| 污视频在线免费观看一区二区三区| 99电影在线观看| 亚洲永久激情精品| 91精品国产高清久久久久久| 亚洲国产日韩综合一区| 91精品视频免费观看| 午夜精品久久久久久久久久久久| 91精品国产一区| 天堂资源在线亚洲资源| 国产成人精品av| 欧美日韩第二页| 国产精品福利久久久| 国产视色精品亚洲一区二区| 国产精品福利在线观看| 精品一区二区三区视频日产| 国产精品成人v| 国产九色精品| 午夜dv内射一区二区| 久久综合九色欧美狠狠| 日本视频精品一区| 日韩最新av在线| 激情网站五月天| 精品国产一区二区三区久久久久久| 国产欧美一区二区三区四区| 一区二区三区久久网| 91精品国产91久久久久久吃药 | 欧美尤物巨大精品爽| 国产精品免费福利| 国产一区欧美二区三区| 亚洲一区二区中文字幕| 久久精品日产第一区二区三区乱码| 日韩免费在线看| 国产精品福利小视频| 成年丰满熟妇午夜免费视频| 无码内射中文字幕岛国片| 久久久久久欧美精品色一二三四| 青草青草久热精品视频在线观看| 国产精品美女主播在线观看纯欲 | 国产欧美一区二区三区久久人妖 | 免费观看国产成人| 精品不卡在线| 99久久精品无码一区二区毛片| 无码播放一区二区三区| 国产成人精品午夜| 国产剧情日韩欧美| 日本精品一区二区三区在线播放视频| 国产精品伦子伦免费视频 | 国产欧美精品xxxx另类| 国产精品久久电影观看| 99精品在线直播| 青青草国产精品一区二区| 国产99久久九九精品无码| 久久99影院| www婷婷av久久久影片| 欧美一区二区中文字幕| 中文字幕在线观看一区二区三区| 色偷偷9999www| 黄色一级二级三级| 亚洲高清精品中出| 国产精品久久国产精品99gif| 国产极品精品在线观看| 男人天堂新网址| 色噜噜狠狠一区二区三区| 久久亚洲精品一区二区| 久久国产精品高清| 国产伦精品一区二区三区视频免费 | 久久久久久久久久久网站| 女女同性女同一区二区三区91| 亚洲欧美日韩不卡一区二区三区| 国产精品美腿一区在线看| 国产成人一区二区三区免费看| 国产精品一区二区欧美| 狠狠色噜噜狠狠色综合久| 日韩av片免费在线观看| 欧美精品电影在线| 日韩视频免费大全中文字幕| 91久久久久久久| 国产精品一区二区三区免费观看| 欧美亚洲精品一区二区| 日韩啊v在线| 色之综合天天综合色天天棕色| 久久夜色撩人精品| 久久精品色欧美aⅴ一区二区| 久久久精品在线视频| 99超碰麻豆| 99久久国产宗和精品1上映| 国产女人18毛片水18精品| 国内精品久久国产| 免费毛片网站在线观看| 黄色影视在线观看| 精品一区二区中文字幕| 国内少妇毛片视频| 国内精品久久久久久久果冻传媒| 欧美怡红院视频一区二区三区| 日韩精品一区二区三区外面| 日韩人妻精品无码一区二区三区| 亚洲国产成人不卡| 午夜精品在线观看| 亚洲va码欧洲m码| 亚洲v国产v在线观看| 天堂精品视频| 日本精品福利视频| 日韩久久精品一区二区三区| 人妻少妇精品久久| 欧美亚洲另类在线一区二区三区| 日韩美女免费视频| 欧美午夜视频在线| 黄在线观看网站| 国模吧一区二区三区| 国产欧美亚洲视频| 99久久精品免费看国产一区二区三区| 白嫩少妇丰满一区二区|