build_kdb
Auto-build a missing or stale Verdi KDB from an Xcelium compile log using vericom and elabcom, enabling waveform analysis.
Instructions
Auto-build a Verdi KDB from a parsed compile log using vericom + elabcom. Use this when the simulator is Xcelium (xrun) and the NPI backend reports no KDB, or to force-refresh a stale cached KDB. Output is cached under TRACEWEAVE_CACHE_DIR (default ~/.cache/traceweave/kdb//); cache hits reuse the previous KDB without re-invoking Verdi. When TRACEWEAVE_NPI_EXECUTION=lsf, every cache-miss/rebuild runs on the configured LSF queue and never falls back to a local licensed build. A runnable build.sh is written next to the KDB for inspection or reproduction. Requires VERDI_HOME with bin/vericom and bin/elabcom.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_hint | No | Override the top module. Defaults to the first non-recorder top in compile_result. | |
| simulator | No | vcs / xcelium / auto. Optional — auto-detected from the log when omitted. | |
| compile_log | Yes | Absolute path to the compile/elaborate log to drive the build from. | |
| force_rebuild | No | Rebuild even if the cache key matches an existing KDB. Default: false. |