I am trying to compile noel-v systest using ‘make soft’
with ncc-1.0.4-gcc (the single compiler for noel-v that i’ve found on the gasiler.com site)
i get the following error
laur@laurPC-100:noelv-generic$ make soft
riscv-gaisler-elf-gcc -I./…/…/software/noelv/systest/sw -I./…/…/software/greth/ -I./…/…/software/l2c/ -mcmodel=medany -static -std=gnu99 -O2 -march=rv64ima_zicsr_zifencei -mabi=lp64 -Wl,–no-gc-sections -nostdlib -T./…/…/software/noelv/systest/prom.link ./…/…/software/noelv/systest/prom.S -o prom.elf
cc1: error: ‘-march=rv64ima_zicsr_zifencei’: unsupported ISA subset ‘z’
Please, also tell me if prom.srec and ram.srec that come by default with grlib 2024.2
for noelv-generic are for riscv 32 or 64. However, when I try to simulate using ghdl 5.0 I get segmentation fault
no matter if I choose 32 or 64 in make xconfig.
Hi, did you succeed in simulate noelv-generic with ghdl? What version of ghdl have you used and what changes to the makefile are necessary in order to successfully test ‘make soft’
if i set -march=rv64imac in the makefile i get core dumped in simulation
We know there have been some issues with simulating with GHDL before. This should hopefully have been fixed in the 2024.4 release. Let me know if you are still having issues after this release.
I can’t replicate the issue you are having I was however wrong about the ram model being updated in the 2024.4 release.
Once I applied the patch found here I could successfully launch a simulation with ghdl GHDL 5.0.0-dev (4.1.0.r479.gc319b79b5) [Dunoon edition]
I am running the design found in designs/noelv-generic with CFG_DISAS=3 (config.vhd)
That is the expected behavior, if you want to see the instructions that are executed you can set CFG_DISAS=1 in designs/noelv-generic/config.vhd
If you want to load your own program you can convert your elf file to an srec, name it ram.srec and then do make ghdl-run.