dsa-riscv-ext's People
dsa-riscv-ext's Issues
[RFC] Simplifying the ISA and Fitting in Chipyard Convention
Motivation
When @SihaoLiu and I was preparing for the MICRO tutorial, we realized that our current ISA design is:
- Complicated: Too many reserved slots are occupied, and
- Broken: Violates the semantics of Chipyard convention. The
FUNCT3
opcode cannot be randomly given, it depends on the number of registers communicated between the host and the accelerator.
FUNCT3
is a 3-bit binary number composed by xs0
, xs1
, and xd
, which indicates the number of registers that receive/send between host and accelerator. Moreover, xs1
cannot be 1
alone, since the accelerator can only receive value from host Rs1
.
Proposed Solution
Configuration Instructions
All the configuration instructions can be merged into one.
I propose we have a 64-register file in the accelerator and each register is dedicated to its semantics to avoid register allocation. To set the register we only need an S-type instruction. The 12-bit imm value will be shared by two 6-bit register indices --- low half for rs1
and high half for rs2
. The register[0] is reserved for an 0-register like x0
, when we only want to set one register.
imm[11:5] | rs1 | rs2 | func3 | imm[4:0] | opcode
TODO: We need to decide the semantics of each register. It takes a while to collect the intrinsics, and assign them to a slot in the register file.
Synchronization Instructions
Synchronized instructions like SS_WAIT_ALL
and SS_RECV
should have xd=1
set.
Events
Events include everything asynchronous, like barriers and stream instantiation.
We just use the imm as a flag of event and we do not want to send/receive any data?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.