lowRISC / lowRISC/ibex

Error in Simple system VCS+Verdi simulation, Failed to find the Verdi database

Open
#2,143 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type:Bug
Dominant language
SystemVerilog
Stars
2.1k
Forks
810
Avg merge
5d 23h
Merged PRs (30d)
9

Description

## Observed Behavior

I simulated the simple system example using VCS, following the guide in https://github.com/lowRISC/ibex/blob/master/examples/simple_system/README.md

I build the simulation with:
`fusesoc --cores-root=. run --target=sim --tool=vcs --setup --build lowrisc:ibex:ibex_simple_system --RV32E=0 --RV32M=ibex_pkg::RV32MFast --SRAMInitFile=./examples/sw/simple_system/hello_test/hello_test.vmem`
It showed success.

Then I run the simulator as:
`/build/lowrisc_ibex_ibex_simple_system_0/sim-vcs/lowrisc_ibex_ibex_simple_system_0 -gui &`
Then I came across the error:
> Error - Failed to find the Verdi database in ./build/lowrisc_ibex_ibex_simple_system_0/sim-vcs/lowrisc_ibex_ibex_simple_system_0.daidir. To solve the issue, generate the simulation database using VCS tools with the -kdb option.

If I don't use the DVE GUI,
`./build/lowrisc_ibex_ibex_simple_system_0/sim-vcs/lowrisc_ibex_ibex_simple_system_0`
It seems OK
> Chronologic VCS simulator copyright 1991-2022
Contains Synopsys proprietary information.
Compiler version T-2022.06_Full64; Runtime version T-2022.06_Full64; Feb 19 23:21 2024
Initializing memory ibex_simple_system.u_ram.u_ram.gen_generic.u_impl_generic.unnamed$$_2.gen_meminit from file './examples/sw/simple_system/hello_test/hello_test.vmem'.
ibex_simple_system.u_top.u_ibex_tracer.unnamed$$_1.unnamed$$_2: Writing execution trace to trace_core_00000000.log
Terminating simulation by software request.
$finish called from file "../src/lowrisc_ibex_sim_shared_0/./rtl/sim/simulator_ctrl.sv", line 93.
$finish at simulation time 26276
V C S S i m u l a t i o n R e p o r t
Time: 26276
CPU Time: 0.270 seconds; Data structure size: 0.1Mb
Mon Feb 19 23:21:53 2024

So I would really appriciate it if you could help me solve this problem.

## My Environment

**EDA tool and version:**

Synopsys VCS T-2022.06
Synopsys Verdi T-2022.06 for linux64 - May 29, 2022

**Operating system:**

Ubuntu Linux 20.04

**Version of the Ibex source code:**

5a8a1a9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with examples/simple_system/README.md and the FuseSoC VCS command shown in the report, then reproduce the -gui launch using Synopsys VCS and Verdi T-2022.06 on Ubuntu 20.04. Compare the generated simulation artifacts with the GUI's expected database, and consider the issue resolved when the documented flow launches the Verdi GUI successfully or clearly documents the required setup.

Written by the indexing model from the issue text.

Assessment

Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.