current_time - 2024.1 English

Vivado Design Suite Tcl Command Reference Guide (UG835)

Document ID
UG835
Release Date
2024-05-30
Version
2024.1 English

Report current simulation time

Syntax

current_time [‑s] [‑quiet] [‑verbose]

Returns

Prints the current simulation time on the console in textual format.

Usage

Name Description
[-s] Short -- suppress the space between numeric part and unit part
[-quiet] Ignore command errors
[-verbose] Suspend message limits during command execution

Categories

Description

Returns the current simulation time to the Tcl Console or Vivado™ Design Suite Tcl shell.

Arguments

-s - (Optional) Suppress the space between the numeric portion of the time and the unit portion of the time to make it easier to parse.

-quiet - (Optional) Execute the command quietly, returning no messages from the command. The command also returns TCL_OK regardless of any errors encountered during execution.
Note: Any errors encountered on the command-line, while launching the command, will be returned. Only errors occurring inside the command will be trapped.
-verbose - (Optional) Temporarily override any message limits and return all messages from this command.
Note: Message limits can be defined with the set_msg_config command.

Examples

The following example returns the current time of the current simulation:

current_time

See Also