Design Example: Offloading Hardwired Revision Information
Because the Intel® Quartus® Prime software ships with an installation of Tcl/Tk, you can use the Tk package to build a custom GUI to interact with your design. In many cases, the JTAG port is a convenient interface to use, since it is present in most designs for debug purposes. By leveraging Tk and the virtual JTAG interface, you perform rapid prototyping such as creating virtual front panels or creating simple software applications. The figure below shows the organization of the design.
A Tcl script creates and updates the verilog file containing the hardcoded version control information every time the project goes through a full compile. The Tcl script is executed automatically by adding the following assignment to the project’s .qsf file.
The USERCODE value shifted out by this design example is a user‑configurable 32-bit JTAG register. This value is configured in the Intel® Quartus® Prime software using the Device and Pin Options dialog box.
Did you find the information on this page useful?