Top "Riscv" questions

For questions related to RISC-V assembler, compiler specifics and HDL (hardware description language) implementation and use.

What is the definition of JAL in RISC-V and how does one use it?

I don't get how JAL works in RISC-V as I've been seeing multiple conflicting definitions. For example, if I refer …

architecture hardware cpu-architecture riscv
RISC-V assembly simulator

I'm trying to learn the RISC-V ISA. Is there a way to simulate RISC-V assembly code just like in MARS …

mips riscv risc
RISC-V difference between jal and jalr

I came across the instruction named jal and jalr while studying RISC-V assembly language. I quite having hard times to …

riscv
RISC-V build 32-bit constants with LUI and ADDI

LUI (load upper immediate) is used to build 32-bit constants and uses the U-type format. LUI places the U-immediate value …

assembly riscv
How can I compile C code to get a bare-metal skeleton of a minimal RISC-V assembly program?

I have the following simple C code: void main(){ int A = 333; int B=244; int sum; sum = A + B; } When I …

riscv
Where are the actual RISC-V instruction codes?

I have downloaded the latest... RISC-V Instruction Set Manual, Volume 1: User-Level ISA ...which is interesting but it never actually gives …

riscv
RISC-V assembly - stack layout - function call

currently I am working with a RISC-V processor implementation. I need to run partially hand-crafted assembly code. (Finally there will …

c assembly calling-convention riscv stack-frame