lowRISC / lowRISC/opentitan

[component] it doesn't generate .fst file when i run smoke test with bazel

Open
#26,963 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
SystemVerilog
Stars
3.6k
Forks
1.1k
Avg merge
2d 22h
Merged PRs (30d)
141

Description

### Description

I want to run a test and generate waveforms with this command
```
bazel test //sw/device/tests:uart_smoketest_sim_verilator \
--test_output=streamed \
--test_timeout=1000 \
--test_arg=--verilator-args=--trace=/tmp/sim.fst
```
this test passed but does not generate sim.fst , to be more exact can't find tmp file.

This is partial log files
```
INFO: Found 1 test target...
Target //sw/device/tests:uart_smoketest_sim_verilator up-to-date:
bazel-bin/sw/device/tests/uart_smoketest_sim_verilator.bash
INFO: Elapsed time: 93.330s, Critical Path: 92.51s
INFO: 2 processes: 10 action cache hit, 2 linux-sandbox.
INFO: Build completed successfully, 2 total actions
//sw/device/tests:uart_smoketest_sim_verilator PASSED in 92.4s

Executed 1 out of 1 test: 1 test passes.
```
some additions:
Ubuntu 22.04.5 LTS
Verilator 4.210 2021-07-07 rev v4.210
GTKWave Analyzer v3.3.104 (w)1999-2020 BSI
[https://github.com/lowRISC/opentitan/commit/7ccad35c329c05490ae1c0c982806163ec65275f](url)

Do I need to modify the EDA tool version or the code version, or take other actions to solve the problem?

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the stated bazel test target and --verilator-args=--trace=/tmp/sim.fst command on Ubuntu 22.04. Inspect how the test handles Verilator trace output and where Bazel runs it, then verify that a waveform file is produced at the expected location after the test passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
ubuntu
Domain
build-system, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.