8000 Add `--trace-saif` for SAIF power traces (#5812) · antmicro/verilator@254bdd5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 254bdd5

Browse files
committed
Add --trace-saif for SAIF power traces (verilator#5812)
1 parent 7da0589 commit 254bdd5

File tree

64 files changed

+8467
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+8467
-7
lines changed

bin/verilator

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ detailed descriptions of these arguments.
470470
--trace-max-array <depth> Maximum array depth for tracing
471471
--trace-max-width <width> Maximum bit width for tracing
472472
--trace-params Enable tracing of parameters
473+
--trace-saif Enable SAIF file creation
473474
--trace-structs Enable tracing structure names
474475
--trace-threads <threads> Enable FST waveform creation on separate threads
475476
--no-trace-top Do not emit traces for signals in the top module generated by verilator

ci/ci-script.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ elif [ "$CI_BUILD_STAGE_NAME" = "test" ]; then
9898
export VERILATOR_ROOT="$RELOC_DIR/relocated-install/share/verilator"
9999
TEST_REGRESS="$RELOC_DIR/test_regress"
100100
mv test_regress "$TEST_REGRESS"
101+
NODIST="$RELOC_DIR/nodist"
102+
mv nodist "$NODIST"
101103
# Feeling brave?
102104
find . -delete
103105
ls -la .

docs/CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ Marlon James
146146
Marshal Qiao
147147
Martin Schmidt
148148
Martin Stadler
149+
Mateusz Gancarz
149150
Matthew Ballance
150151
Michael Bikovitsky
151152
Michael Killough

docs/guide/exe_verilator.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,6 +1549,11 @@ Summary:
15491549

15501550
Disable tracing of parameters.
15511551

1552+
.. option:: --trace-saif
1553+
1554+
Enable SAIF tracing in the model. This overrides :vlopt:`--trace`.
1555+
Specification of this format can be found in `IEEE 1801-2018<https://ieeexplore.ieee.org/document/8686430>`_ (see Annex I).
1556+
15521557
.. option:: --trace-structs
15531558

15541559
Enable tracing to show the name of packed structure, union, and packed

docs/guide/verilating.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,11 @@ SystemC include directories and link to the SystemC libraries.
462462
Optional. Enables FST tracing if present, equivalent to "VERILATOR_ARGS
463463
--trace-fst".
464464

465+
.. describe:: TRACE_SAIF
466+
467+
Optional. Enables SAIF tracing if present, equivalent to "VERILATOR_ARGS
468+
--trace-saif".
469+
465470
.. describe:: VERILATOR_ARGS
466471

467472
Optional. Extra arguments to Verilator. Do not specify :vlopt:`--Mdir`

include/verilated.mk.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ VK_CPPFLAGS_ALWAYS += \
9090
-DVM_TRACE=$(VM_TRACE) \
9191
-DVM_TRACE_FST=$(VM_TRACE_FST) \
9292
-DVM_TRACE_VCD=$(VM_TRACE_VCD) \
93+
-DVM_TRACE_SAIF=$(VM_TRACE_SAIF) \
9394
$(CFG_CXXFLAGS_NO_UNUSED) \
9495

9596
ifeq ($(CFG_WITH_CCWARN),yes) # Local... Else don't burden users

0 commit comments

Comments
 (0)
0