Visible to Intel only — GUID: bhc1411109485023
Ixiasoft
Visible to Intel only — GUID: bhc1411109485023
Ixiasoft
Design Example: Offloading Hardwired Revision Information
Because the 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 Quartus® Prime software using the Device and Pin Options dialog box.