blob: aca0eed8c0ef6ce383738ae8d712639797f68237 [file] [log] [blame]
Rupert Swarbrick299cae52020-05-05 11:11:06 +01001# Copyright lowRISC contributors.
2# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3# SPDX-License-Identifier: Apache-2.0
4
5# TCL file invoked from VCS's simv at run-time using this: -ucli -do <this file>
6
7# Get some environment variables we need.
8set en_waves 0
9set tool_srcs_dir ""
10if {[info exists ::env(EN_WAVES)]} {
11 set en_waves "$::env(EN_WAVES)"
12}
13if {[info exists ::env(TOOL_SRCS_DIR)]} {
14 set tool_srcs_dir "$::env(TOOL_SRCS_DIR)"
15} else {
16 puts "ERROR: tool script run without TOOL_SRCS_DIR environment variable."
17 quit
18}
19
20# If wave dumping is enabled, run waves.tcl
21if {"$en_waves" == 1} {
22 source "${tool_srcs_dir}/waves.tcl"
23}
24
25run
26quit