Skip to main content

Questions tagged [risc-v]

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

3 votes
2 answers
317 views

CH32V003 max GPIO current

I am trying to find what current can a GPIO of CH32V003 (the 10cent MCU) output. Its noticeably chinese english datasheet states (on p.21) GPIO (General-Purpose Input/Output Port) can sink or output ...
Osman-pasha's user avatar
4 votes
1 answer
363 views

What does this mean in RISC-V opcode table

I want to check my understanding of how the imm[20|10:1|11|19:12] specifies the bit arrangements in the JAL (jump and link) instruction in RISC-V architecture? I ...
David777's user avatar
  • 1,555
0 votes
0 answers
29 views

What is the injector pipeline stage in this RISC-V core?

The cores in the Efinix Sapphire SOC FPGA IP core have 6 pipeline stages (fetch, injector, decode, execute, memory and write back). What is or might be the injector stage? I can't find it explained ...
AtonDuke's user avatar
0 votes
0 answers
39 views

What Specific Optimizations Can ARM Implementations Do That x86 Ones Cannot (And Vice-Versa And Risc-V)

I believe this question is slightly different from others (ex: Why exactly does the x86 (primarily x86-64) instruction set consume more power than reduced instruction sets like arm?) This question is ...
ScottMichaud's user avatar
3 votes
2 answers
232 views

Memcopy Instruction in Risc V

I designed a Risc V 32-bit single cycle processor without pipelining for a project. We are given to implement a new instruction called "Memcopy". It copies an array of size N from one ...
KS Hewa's user avatar
  • 49
0 votes
1 answer
1k views

RISC-V byte load and store

I have the confusion in the following RISC V programming statements. Can someone explain that why does the contents of s0 in the last comment shown. shouldn't it be 0x00000180 the same as we are not ...
kam1212's user avatar
  • 669
3 votes
2 answers
143 views

What is a PCS accumulator?

I'm currently doing my bachelor's thesis in electronics. While reading an article, I stumbled upon the sentence "The FPU is based on a PCS accumulator...". What does PCS stand for? I can't ...
user294957's user avatar
2 votes
1 answer
142 views

What is a chip generator?

I've been trying to learn more about the RISC-V environment. I've encountered a chip generator called Rocket Chip. What is a chip generator, and how does it differ from a core? I'm trying to ...
user294957's user avatar
1 vote
1 answer
157 views

Why do we shift by three in RISC-V loops?

In this youtube video, the instructor explained some basic code in RISC-V assembly, but i didn't understand why in the first line, he is shifting i by 3. Why do we have to multiply it by 8?? I feel ...
Denis's user avatar
  • 111
1 vote
0 answers
115 views

Signal not Showing State Changes on Intergrated Logic Analyser (Vivado)

I have been using the Integrated Logic Analyser (ILA) on Vivado 2021.2 to log some signals from a RISC-V processor running on an FPGA (BASYS 3 FPGA development board). The signals I am monitoring are ...
David777's user avatar
  • 1,555
0 votes
1 answer
140 views

Why using RISC-V over off-the-shelf chips is more energy efficient?

I am not an expert on the world of chips, but as a developer, I understand quite well how they work and what problem each chip solves. I have been increasingly curious about RISC-V and, among other ...
Valerio Leo's user avatar
10 votes
2 answers
3k views

RISC-V Zero Instruction Question

I have seen a table of opcodes for RISC-V instructions (for base I 32 bit ISA). I am working with a RISC-V core on FPGA and had BRAM for instructions set to all zeros. Does anybody know what happens ...
David777's user avatar
  • 1,555
0 votes
0 answers
43 views

How different layers of cache connect in hardware?

I had a RISC-V CPU with L1 Instruction Cache and L1 Data Cache, and I want to connect these two L1 Caches to unified L2 Cache. I have the following questions: Does the unified L2 Cache have dual port ...
Johnson_NCKU_EE's user avatar
0 votes
1 answer
82 views

Generating Control Signals via Case statement vs Boolean function

I'm building a RISC-V processor recently, and I've encountered a question when constructing the control unit. That is, what's the difference between generating control signals through: Case statement,...
Calvin Lin's user avatar
3 votes
0 answers
311 views

How to using JAL in RISCV in this example?

Write a "replace" function that replaces every character in the source string between the first occurrence of character "(" and the first following ")" with character &...
黑旗Vlland's user avatar

15 30 50 per page