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

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

CSC3050代做、C++程序設計代寫
CSC3050代做、C++程序設計代寫

時間:2024-11-21  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



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.
6

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp




 

掃一掃在手機打開當前頁
  • 上一篇:24LLP109代做、代寫c/c++編程語言
  • 下一篇:代寫MATH36031、Python程序設計代做
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 寵物飼養 十大衛浴品牌排行 suno 豆包網頁版入口 wps 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国产精品视频精品| 日本精品免费| 91精品天堂| 北条麻妃av高潮尖叫在线观看| 狠狠色噜噜狠狠色综合久 | 久久手机免费视频| 日韩亚洲欧美中文高清在线| 日韩中文字幕视频在线观看| 久久综合伊人77777尤物| 菠萝蜜影院一区二区免费| 国产精品久久久久久影视| 精品伦精品一区二区三区视频| 精品国产乱码久久久久久88av| 精品高清视频| 精品麻豆av| 亚洲午夜精品国产| 色婷婷精品国产一区二区三区| 日本一区视频在线观看免费| 日韩欧美在线一区二区| 精品91免费| 国产欧美精品一区二区| 高清视频一区二区三区| 国产精品99久久久久久久久| 68精品久久久久久欧美| 国产传媒一区| 国产精品热视频| 欧美激情精品在线| 视频一区在线免费观看| 精品欧美一区二区三区久久久 | 日本在线视频www色| 欧美亚洲第一页| 国产免费一区二区三区香蕉精| 91.com在线| 国产精品久久91| 亚洲欧美日韩精品久久久| 日韩欧美手机在线| 国产在线观看福利| 国产精品91免费在线| 国产精品久久久久影院日本| 亚洲永久在线观看| 欧美国产亚洲一区| 99九九视频| 国产精品视频播放| 一女被多男玩喷潮视频| 日韩欧美激情一区二区| 国产欧美精品在线播放| 国产高清精品在线观看| 国产精品免费一区二区三区四区 | 国产亚洲综合视频| 91国产精品91| 国产精品高清在线| 欧美在线视频导航| 国产美女作爱全过程免费视频| 国产成人一区二区三区别| 久久中文字幕国产| 欧美一区三区二区在线观看| 91精品国产一区| 欧美日韩成人在线播放| 欧美性视频在线| 91精品国产综合久久久久久蜜臀| 久久精品人人爽| 日本伊人精品一区二区三区介绍| 国产九色91| 国产精品都在这里| 欧美中文字幕在线观看| 久久人91精品久久久久久不卡| 欧美日韩成人黄色| 人妻av无码专区| 国产极品精品在线观看| 自拍视频一区二区三区| 国产在线精品一区二区三区》| 日韩视频在线免费| 欧日韩在线观看| 国产成人avxxxxx在线看| 川上优av一区二区线观看| 国产精品一级久久久 | 日本999视频| 91美女片黄在线观| 在线视频一区观看| 国模视频一区二区| 久久久999国产精品| 日韩精品一区二区三区不卡| 国产精成人品localhost| 久久久久成人网| 国产欧美精品在线播放| 欧美精品一本久久男人的天堂| 欧美福利精品| 国产精品无码一区二区在线| 欧美一区二三区| 日韩一级裸体免费视频| 欧美专区在线观看| 久久久久99精品久久久久| 精品免费一区二区三区蜜桃| 国产精品三级在线| 欧美另类一区| 国产精品嫩草视频| 国产主播精品在线| 久精品免费视频| 91免费欧美精品| 日日摸日日碰夜夜爽无码| 久久久福利视频| 秋霞无码一区二区| 久青草国产97香蕉在线视频| 欧美韩国日本在线| 国产精品美女午夜av| 国产中文日韩欧美| 九九热r在线视频精品| 国产精品一 二 三| 亚洲精品久久区二区三区蜜桃臀 | 久久黄色片视频| 日本不卡久久| 久久精品免费播放| 国产在线精品自拍| 亚洲日本精品国产第一区| 国产精品1234| 性欧美亚洲xxxx乳在线观看 | 久久久久久久久久福利| 热门国产精品亚洲第一区在线| 久久精品电影一区二区| 国产亚洲福利社区| 亚洲二区三区四区| 久久精品这里热有精品| 国产精品一区久久久| 日本精品久久久久影院| 国产精品极品美女在线观看免费 | 国产精品久久久久久av下载红粉| 国产乱子伦精品| 日本一区二区久久精品| 国产精品免费视频久久久| 国产免费一区| 亚洲精品9999| 国产精品-区区久久久狼| 国产精品自产拍在线观看中文| 视频一区二区三区在线观看| 国产精品热视频| 91精品久久久久久久久久久久久 | 午夜在线视频免费观看| 久精品国产欧美| 国产伦精品一区二区三区四区免费| 天天成人综合网| 欧美猛交免费看| 国产高清在线不卡| 国产欧美综合精品一区二区| 日本精品一区在线观看| 国产av第一区| 丝袜一区二区三区| 99久久精品免费看国产一区二区三区 | 中文字幕中文字幕一区三区| 日韩中文字幕精品| 波多野结衣成人在线| 经典三级在线视频| 日韩久久久久久久久久久久久| 在线观看欧美亚洲| 国产精品啪视频| 久久久久久久影院| 91久久精品美女| 国产女人精品视频| 精品999在线观看| 日本高清一区| 日日摸日日碰夜夜爽av| 亚洲综合激情五月| 精品国产日本| 国产精品久久久久久久久久新婚| 国产成人黄色片| 91精品免费视频| 国产免费一区视频观看免费 | 欧美性受xxxx黑人猛交88| 亚洲欧美日韩国产成人综合一二三区| 国产精品美女免费看| 久久国产精品-国产精品| 91九色偷拍| av电影一区二区三区| 国产这里只有精品| 蜜桃视频成人在线观看| 激情视频综合网| 欧美精品尤物在线| 欧美在线视频观看| 欧美在线一区二区三区四区| 日韩av一二三四区| 日韩av一区二区三区在线观看 | 日韩在线观看精品| 日韩在线视频免费观看| 国产h视频在线播放| 久久免费高清视频| 久久久欧美一区二区| 91精品国产高清自在线看超| 97精品一区二区视频在线观看| 成人免费在线小视频| 超碰97在线播放| 91麻豆国产精品| 7777精品久久久大香线蕉小说| 成人a级免费视频| 91久久久一线二线三线品牌| 成人毛片网站| 91久久精品久久国产性色也91| 91精品免费久久久久久久久| 国产极品尤物在线| 国产xxx69麻豆国语对白| 久久久久久久av| 国产精品青青草|