Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 6/20/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

3.1.11.17. modify_lutmask (::quartus::eco)

The following table displays information for the modify_lutmask Tcl command:

Tcl Package and Version

Belongs to ::quartus::eco

Syntax modify_lutmask [-h | -help] [-long_help] [-eqn <equation> ] [-mask <mask> ] [-num <num_of_inputs> ] -to <dest_node_name>
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-eqn <equation> LUT equation
-mask <mask> New lutmask
-num <num_of_inputs> Number of inputs
-to <dest_node_name> Name of the destination node
Description
The modify_lutmask command will modify the LUT-mask of the matching node, 
with LUT-mask value in binary or hexadecimal, or with equivalent LUT-mask value 
computed from specified logical equation. 

modify_lutmask expects 2 arguments (1 from mask or eqn): 
to   - name of the destination atom
mask - the LUT-mask value to be modified - in binary or hexadecimal
eqn  - the logical equation of the inputs (A, B, C, D, E, F)
     - the supported lexical tokens include AND('&'), OR('|'), XOR('^'), NOT('!'), OPEN_BRACE('('), CLOSE_BRACE(')')
Example Usage
modify_lutmask -to top|lut_a -mask 0xFF00FF00
modify_lutmask -to top|lut_b -mask 0b111111111001010
modify_lutmask -to top|lut_c -eqn {a&b&c}
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful