riscv-software-src / riscof

BSD 3-Clause "New" or "Revised" License
63 stars 40 forks source link

Quick start fails DUT -- DUT-spike.signature does not exist #89

Open EagleTw opened 1 year ago

EagleTw commented 1 year ago

When trying to follow the quickstart guide as in: https://riscof.readthedocs.io/en/stable/installation.html# the riscof run command at the very end fails.

I'm running on ubuntu a arm machine.

riscv_sim_RV32 successfully build with sail c emulator

  1. git clone https://github.com/riscv-non-isa/riscv-arch-test
  2. riscof validateyaml --config=config.ini
  3. riscof testlist --config=config.ini --suite=riscv-arch-test/riscv-test-suite/ --env=riscv-arch-test/riscv-test-suite/env
  4. riscof run --config=config.ini --suite=riscv-arch-test/riscv-test-suite/ --env=riscv-arch-test/riscv-test-suite/env

Trace as follows:

$ riscof run --config=config.ini --suite=riscv-arch-test/riscv-test-suite/ --env=riscv-arch-test/riscv-test-suite/env
    INFO | ****** RISCOF: RISC-V Architectural Test Framework 1.25.3 *******
    INFO | using riscv_isac version : 0.17.0
    INFO | using riscv_config version : 3.7.2
    INFO | Reading configuration from: /home/clarity/ypaskell_playground/test-riscof/config.ini
    INFO | Preparing Models
    INFO | Input-ISA file
    INFO | Loading input file: /home/clarity/ypaskell_playground/test-riscof/spike/spike_isa.yaml
    INFO | Load Schema /home/clarity/.local/lib/python3.10/site-packages/riscv_config/schemas/schema_isa.yaml
    INFO | Processing Hart: hart0
    INFO | Initiating Validation
    INFO | No errors for Hart: 0 :)
    INFO |  Updating fields node for each CSR
    INFO | Initiating WARL legality checks.
    INFO | Initiating post processing and reset value checks.
    INFO | Initiating validation checks for indexed csrs
    INFO | Initiating validation checks for shadow fields
    INFO | Performing Checks on PMP CSRs
    INFO | Dumping out Normalized Checked YAML: /home/clarity/ypaskell_playground/test-riscof/riscof_work/spike_isa_checked.yaml
    INFO | Input-Platform file
    INFO | Loading input file: /home/clarity/ypaskell_playground/test-riscof/spike/spike_platform.yaml
    INFO | Load Schema /home/clarity/.local/lib/python3.10/site-packages/riscv_config/schemas/schema_platform.yaml
    INFO | Initiating Validation
    INFO | No Syntax errors in Input Platform Yaml. :)
    INFO | Dumping out Normalized Checked YAML: /home/clarity/ypaskell_playground/test-riscof/riscof_work/spike_platform_checked.yaml
    INFO | Generating database for suite: /home/clarity/ypaskell_playground/test-riscof/riscv-arch-test/riscv-test-suite
    INFO | Database File Generated: /home/clarity/ypaskell_playground/test-riscof/riscof_work/database.yaml
    INFO | Env path set to/home/clarity/ypaskell_playground/test-riscof/riscv-arch-test/riscv-test-suite/env
    INFO | Running Build for DUT
    INFO | Running Build for Reference
    INFO | Selecting Tests.
    INFO | Running Tests on DUT.
    INFO | Initiating signature checking.
   ERROR | Signature file : /home/clarity/ypaskell_playground/test-riscof/riscof_work/rv32i_m/C/src/cadd-01.S/dut/DUT-spike.signature does not exist

If anybody has an idea how to solve this issue, or if you need more information about my file structure, do let me know! Thanks!

neelgala commented 12 months ago

can you share the config.ini and python plugin files here. This will help understand the issue better.