加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

合肥生活安徽新聞合肥交通合肥房產(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.



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






 

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

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

    99视频精品全部免费在线视频| 亚欧美中日韩视频| 久久久亚洲人| 亚洲+变态+欧美+另类+精品| 日韩在线看片| 伊人久久大香线蕉av超碰演员| 亚洲精品动态| 国产精品传媒麻豆hd| 视频一区欧美精品| 久久国产精品成人免费观看的软件| 国产精久久久| 久久精品国产成人一区二区三区| 免费看黄裸体一级大秀欧美| 久久精品青草| 一区二区三区四区精品视频| 国产亚洲久久| 欧美一级二区| 日韩成人亚洲| 福利在线免费视频| 丝袜诱惑制服诱惑色一区在线观看 | 欧美一站二站| 麻豆一区在线| 日韩三区视频| 成人黄色91| 国语精品一区| 麻豆精品一区二区| 亚洲tv在线| 精精国产xxxx视频在线野外| 欧美高清在线| 老司机午夜精品视频在线观看| 一本一道久久综合狠狠老| 精品久久电影| 精品国产精品国产偷麻豆| 日韩精品一区二区三区中文字幕| 久久免费视频66| 日本va欧美va精品| 国产精品久久久久久久免费软件| 日韩视频网站在线观看| 蜜桃一区二区三区在线观看| 午夜在线精品偷拍| 日韩视频不卡| 亚洲欧美清纯在线制服| 欧美日韩国内| 国产亚洲在线观看| 奶水喷射视频一区| 国产视频亚洲| 日韩精品一卡二卡三卡四卡无卡| 9国产精品视频| 国产毛片一区| 蜜桃视频免费观看一区| 成人精品视频| 亚洲一二三四| 美女网站视频一区| 亚洲精品乱码日韩| 欧美亚洲免费| 9999精品视频| 日日狠狠久久偷偷综合色| 在线一区二区三区视频| 97久久综合区小说区图片区| av综合网站| 亚洲成av人片一区二区密柚| 天天射成人网| 午夜亚洲一区| 中文字幕在线视频网站| 日韩电影二区| 国产日韩欧美三级| 亚洲乱码久久| 亚洲大片精品免费| 日韩免费一级| 久久久精品性| 天天射综合网视频| 热久久国产精品| 成人片免费看| 久久国产人妖系列| 亚洲综合伊人| 国产精品午夜av| 91精品天堂福利在线观看| 午夜精品婷婷| 91精品综合久久久久久久久久久 | 麻豆久久精品| 日韩大片在线播放| 日韩高清欧美激情| 日韩av一区二区三区| 久久国产日韩| 亚洲少妇一区| 亚洲国产伊人| 国产成人一区二区三区影院| 国产精品极品国产中出| 亚洲精品中文字幕乱码| 日韩不卡一区| 日韩综合一区二区| 日韩欧美激情电影| 亚洲黑丝一区二区| 玖玖在线播放| 亚洲另类视频| 97青娱国产盛宴精品视频| 宅男在线一区| 亚洲深夜视频| 97久久精品一区二区三区的观看方式| 综合视频一区| 99香蕉国产精品偷在线观看 | 先锋影音久久久| 电影天堂国产精品| 国产精选一区| 天天精品视频| 福利精品在线| 永久免费精品视频| 一本久久综合| 欧美亚洲综合视频| 日韩激情中文字幕| 夜夜爽av福利精品导航| yy6080久久伦理一区二区| 警花av一区二区三区| 99av国产精品欲麻豆| 欧美成人免费全部网站| 精品国产欧美| 日本大胆欧美人术艺术动态| 日本成人在线一区| 色爱av综合网| 日韩精品二区| 蜜桃精品一区二区三区| 久久性天堂网| 亚洲图片小说区| 一区在线视频观看| 三级久久三级久久| 精品国产精品| 99热播精品免费| 国产精品任我爽爆在线播放| 手机亚洲手机国产手机日韩| 伊人久久大香| 亚洲免费高清| 欧美激情四色| 黄色av日韩| 亚洲在线资源| 怡红院精品视频在线观看极品| 久久精品麻豆| 亚洲第一网站| 99精品免费视频| 欧美精品一二| 国内精品久久久久久久影视麻豆 | www成人在线视频| 日韩成人av影视| 国产精品精品国产一区二区| 亚洲精品亚洲人成在线观看| 午夜在线一区| 亚洲黄页在线观看| 蜜臀久久99精品久久久画质超高清| 国产精一区二区| 久久国产精品毛片| 日韩av午夜在线观看| 伊人成综合网站| 精品视频97| 久久精品国产免费| 图片小说视频色综合| 亚洲有吗中文字幕| 久久国产88| 免费精品一区| 91久久久久久白丝白浆欲热蜜臀| 精品国产美女| 日本伊人午夜精品| 老鸭窝毛片一区二区三区| 亚洲免费专区| 校园春色亚洲| 国产一区二区中文| 国产精久久一区二区| 国产网站在线| 99精品视频精品精品视频| 日本不卡中文字幕| 视频一区视频二区中文| 亚洲精品一区国产| 国产精品综合| 久久国产精品久久w女人spa| 久久久久久爱| 一级成人国产| 免费欧美日韩国产三级电影| 一区二区免费| 亚洲乱码久久| 欧美1级2级| 免费av一区| 激情不卡一区二区三区视频在线| 日韩欧乱色一区二区三区在线| 亚洲美女少妇无套啪啪呻吟| 精品欧美视频| 国产日韩免费| 蜜臀av性久久久久蜜臀aⅴ流畅| 精品视频网站| 欧美影院在线| 精品女同一区二区三区在线观看| 激情五月***国产精品| 日韩**一区毛片| 美女网站一区二区| 四虎国产精品免费观看 | 日韩有码一区二区三区| 欧美成人专区| 国产日产一区| 日日摸夜夜添夜夜添亚洲女人| 日韩av密桃| 亚洲激情网址| 成人综合久久| 日韩有码一区|