AN 922: Using the ECO Compilation Flow

ID 683873
Date 3/31/2022
Public

1.3.1. Modify the Lutmask

You can specify the modify_lutmask command to modify the lutmask to invert a pin in your design.

Run the eco_demo_1.tcl Tcl script to modify node i16 with a lutmask hexadecimal value of 2. eco_demo_1.tcl makes changes regarding this RTL in eco_demo.v:

lab_and6 <= (inputa_6_reg[2] && inputa_6_reg[1] && inputa_6_reg[0] && \
     inputb_6_reg[2] && inputb_6_reg[1] && inputb_6_reg[0]);
  1. To locate node i16, click View > Node Finder, type i16 in the Named field, and then click Search. i16 appears in the Nodes Found results.
  2. In the Node Finder, right-click the i16 in Nodes Found, and then click Locate Node > Locate in Resource Property Viewer. The i16 node highlights in the Resource Property Viewer.
    Figure 4.  i16 in Resource Property Viewer Before Lutmask ECO
  3. View the current LUT mask values in the Bottom Combinational tab, and then close Resource Property Viewer.
  4. Click Processing > Start > Perform ECO Compilation.
  5. For ECO Tcl Script, select eco_demo_1.tcl in the project directory, click Open, and then click OK. eco_demo_1.tcl contains the following modify_lutmask ECO commands. You can either modify the mask bits directly (line 2), or modify the equation (line 3).
    ###locate i16 from node finder
    modify_lutmask -to i16 -mask 0x0000000000000002 
    #modify_lutmask -to i16 -eqn { !a & !b & c & !d & !e & !f }
  6. Repeat steps 1 through 2 to view the change in Resource Property Viewer.
    Figure 5.  i16 in Resource Property Editor After Lutmask ECO Complete