update to sail simulator build instructions and plugin, necessary for newer version of sail#137
update to sail simulator build instructions and plugin, necessary for newer version of sail#137jeras wants to merge 1 commit intoriscv-software-src:masterfrom
Conversation
… newer version of sail
|
Looks good to me, the version of OCaml listed there is 7 years old at this point so I suspect those instructions haven't worked in quite a while. We only very recently switched (within the last month or so) to using cmake in the sail-riscv repo, so there may be some teething problems with the switch, please let us know over there if you run into further issues! |
|
It probably makes sense to direct most users to install the sail compiler using the precompiled binary instead of making everyone deal with opam. See the releases page of the Sail repo: https://github.com/rems-project/sail/releases. |
|
I agree with @jordancarlin, regarding using the binary, it should be the recommended option in the RISCOF instructions. I only checked how NEORV32 is handling it and a binary is used there. Installing another package manager on your PC is a lot of storage and maintenance overhead. The current instructions could probably replace the use of docker images with using a binary. I suspect the docker image is also an antique. While following instructions I also encountered some other issues:
|
|
First of all: Thank you @jeras for your updated documentation, it was very helpful in my recent struggles with the SAIL Quickstart section. Secondly: This needs to be updated further as, per the 0.8 version Release Notes, SAIL-RISCV now has one single executable rather than separate ones for 32-bit and 64-bit and that requires changes to the /sail_cSim/riscof_sail_cSim.py file. The new, singular executable is named "sail_riscv_sim" and launches into 64-bit mode by default. The Quickstart setup is Thus, in the "/sail_cSim/riscof_sail_cSim.py" file, make the following changes:
Obviously, the line-numbers might get changed etc. but this should give a good hint at what needs to be done.
I hope this is helpful to somebody. |
|
Just a heads up to anyone trying to start using RISCOF: RISCOF (which was used with version 3 of the riscv-arch-test suite) is being deprecated as part of the update to riscv-arch-test version 4 (ACT4). All necessary tooling and instructions for ACT4 are directly in the https://github.com/riscv/riscv-arch-test repository now instead of requiring tools from several different repos. |
|
@jordancarlin Thank you. That is useful information. If you don't mind: Where is the best source for finding what is the current standard with regards to RISC-V testing / certification and the like? I am working on a research project in which we use various RISC-V cores, both soft and hardened, but none of us are RISC-V experts. |
It is a rapidly evolving space at the moment, so unfortunately there is no great single spot to look at. The riscv-arch-test repo is where most of the development is currently being done, but several other test suites will be pulled together to create the final certification test suite that is in process right now. |
|
@jordancarlin Thanks for getting back to me on that though. I'll be looking into the riscv-arch-test repo. |
Yes. We are working on getting deprecation notices added and archiving these repos. Should be done in the next few weeks. |
|
@jordancarlin Glad to hear it. Thanks again for replying to me =) |


The instructions for building sail did not work properly.
I updated the instructions and the names of the executables created by the newer version of sail.