Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic description of RISC-V32 I + M + ZIFENCEI ISA #698

Open
16 of 22 tasks
clebreto opened this issue Jan 24, 2024 · 2 comments · May be fixed by #781
Open
16 of 22 tasks

Basic description of RISC-V32 I + M + ZIFENCEI ISA #698

clebreto opened this issue Jan 24, 2024 · 2 comments · May be fixed by #781

Comments

@clebreto
Copy link
Contributor

clebreto commented Jan 24, 2024

Provide:

Docs:

  • riscv-spec-20191213.pdf
  • a cheatsheet
  • As decribed on the GCC RISC-V Options pages : General-purpose computing base extension, ‘g’ will expand to ‘i’, ‘m’, ‘a’, ‘f’, ‘d’, ‘zicsr’ and ‘zifencei’.
  • Assembly and execution of risc-v assembly code generated by jasminc compiler can be easily achieved on Macos arm M1 / M2 / M3 with the homebrew precompiled binaries of riscv-tools (compiler and spike) for Sonoma : bottle
./jasminc -arch=risc-v ./tests/success/risc-v/basics.jazz -o basics.s
/opt/homebrew/bin/riscv64-unknown-elf-gcc basics -o basics
/opt/homebrew/bin/spike pk basics

To dump objdump:

/opt/homebrew/bin/riscv64-unknown-elf-objdump execution.o -D

To check if the assembly code syntaxically valid with respect to risc-v isa, use /opt/homebrew/bin/riscv64-unknown-elf-as

@clebreto clebreto added this to the Jasmin for RISC-V milestone Jan 24, 2024
@clebreto clebreto changed the title Basic description of RISC-V ISA Basic description of RISC-V32I + G ISA Jan 24, 2024
@vbgl vbgl added the risc-v label Jan 24, 2024
@clebreto clebreto changed the title Basic description of RISC-V32I + G ISA Basic description of RISC-V32 I + M + ZIFENCEI ISA Apr 9, 2024
@eponier
Copy link
Contributor

eponier commented Dec 17, 2024

@clebreto In PR #781, we don't have Zifencei, is this really needed?

@clebreto
Copy link
Contributor Author

@clebreto In PR #781, we don't have Zifencei, is this really needed?

More a question @bgregoir could answer.
Could this be added when first needed while implementing crypto primitives ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants