Draft
Conversation
lethalNeutrino
requested changes
Nov 20, 2025
| - section: RISC-V | ||
| href: content/RISC-V/index.qmd | ||
| contents: | ||
| - href: content/RISC-V/instruction_formats.qmd |
Contributor
| such as addition of two numbers or storing data to memory. Below is a comparison between RISCV code and its equivalent C code: | ||
|
|
||
|
|
||
| ::: {layout-ncol=2} |
Contributor
There was a problem hiding this comment.
Landrew layout nit: add tailwindcss
| --- | ||
| --- | ||
| title: "RISC-V Instruction Formats" | ||
| subtitle: "UC Berkeley, CS 61C" |
Contributor
There was a problem hiding this comment.
why is this like tripled
| **2. Which fields decide the ALU operation for R-type instructions?** | ||
|
|
||
| ::: {.callout-note collapse="true" title="Check Answer"} | ||
| **funct3, funct7, and opcode.** |
Contributor
There was a problem hiding this comment.
monospace funct3 etc.
| ::: {.callout-note collapse="true" title="Check Answer"} | ||
| **funct3, funct7, and opcode.** | ||
|
|
||
| While the opcode identifies the instruction as R-Type, the `funct` fields select the specific operation (Add vs Sub vs Xor). |
|
|
||
| ### Conceptual Pre-Check | ||
|
|
||
| **1.1 True or False: The opcode field determines the instruction type (R, I, I$\star$, S, etc.).** |
Contributor
There was a problem hiding this comment.
you should just use an asterisk instead of
| #### R-Type: Register Operations | ||
|
|
||
| **Structure:** | ||
| ``` |
Contributor
There was a problem hiding this comment.
Make this into a table possbly a @lethalNeutrino
|
|
||
| ### Format Summary Table | ||
|
|
||
| | Format | Registers | Immediate Bits | Use Case | Example | |
Contributor
There was a problem hiding this comment.
Run markdown formatter on these tables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.