Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 7/08/2024
Public
Document Table of Contents

2.9.2. Variables

Assign a value to a variable with the set command. You do not have to declare a variable before using it. Tcl variable names are case-sensitive.
set a 1

To access the contents of a variable, use a dollar sign (“$”) before the variable name. The following example prints "Hello world" in a different way.

set a Hello
set b world
puts "$a $b"