Skip to content

make run-simple-system failure #2288

Open
@ekigwana

Description

@ekigwana

Observed Behavior

make run-simple-system fails to compile simple program

ibex/examples/sw/simple_system/common/simple_system_common.c:40: Error: unrecognized opcode csrw minstret,x0', extension zicsr' required

Expected Behavior

make run-simple-system compiles simple program

Steps to reproduce the issue

Setup virtual environment

  1. python -m venv ~/.ibex-eda/
  2. . ~/.ibex-eda/bin/activate
  3. pip install mako
  4. pip install packaging

build system

  1. . ~/.ibex-eda/bin/activate
  2. git clone https://github.com/olofk/edalize.git
  3. cd edalize
  4. pip install .
  5. cd ..
  6. git clone https://github.com/lowRISC/fusesoc.git
  7. cd fusesoc
  8. pip install .
  9. cd ..
  10. git clone https://github.com/lowRISC/ibex.git
  11. ./util/ibex_config.py small fusesoc_opts

--RV32E=0 --RV32M=ibex_pkg::RV32MFast --RV32B=ibex_pkg::RV32BNone --RegFile=ibex_pkg::RegFileFF --BranchTargetALU=0 --WritebackStage=0 --ICache=0 --ICacheECC=0 --ICacheScramble=0 --BranchPredictor=0 --DbgTriggerEn=0 --SecureIbex=0 --PMPEnable=0 --PMPGranularity=0 --PMPNumRegions=4 --MHPMCounterNum=0 --MHPMCounterWidth=40

  1. ./util/check_tool_requirements.py
    INFO: Tool verilator present: Sufficiently recent version (found 5.028; needed 4.210) INFO: Tool edalize present: Sufficiently recent version (found 0.6.2.dev2+g1eedb7f; needed 0.2.0)

  2. make build-simple-system

  3. make run-simple-system

As a quick aside having the above steps would be helpful in the documentation.

No modifications to any sources.
No parameters set.

My Environment

Nothing special
riscv32-unknown-elf-gcc: gcc version 15.1.0 (Gentoo 15.1.0 p55)

Using Ibex as a micro controller in an FPGA

EDA tool and version:
Xilinx Vivado 2025.1

Operating system:
Gentoo

Version of the Ibex source code:
git master db07ab1

no modifications to source

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions