Metis Smart Modeling - Rules
From Metis Documentation
(→Single Selection) |
(→Single Selection) |
||
Line 271: | Line 271: | ||
| Only the input value will be considered by the range filter. | | Only the input value will be considered by the range filter. | ||
}} | }} | ||
+ | |||
+ | |||
+ | In the “Modeling” menu, make sure that the “Rules” sub-menu has been selected. | ||
+ | On the left, in the “Groups of rules” dropdown list, select “D-Basic Hardware.” | ||
+ | Click on add. A window opens where the new rule will be created. | ||
+ | In the “Type” field, select “Single” from the dropdown list. In the “comment” field, enter a name for the rule, for example, “Configure Memory.” | ||
+ | The goal of this example rule is to generate the number of memory modules required based on the desired quantity of memory provided in a mask. | ||
+ | Click on the add button near the “input” field. A window opens where it is possible to select positions, variables, and attributes. Select “Variables.” | ||
+ | Select “$Memory” from the list and confirm. | ||
+ | Click on the add button near the “Output” field. The same window from before opens, but it is only possible to select positions or variables. In this example a position is added. | ||
+ | In the description field, enter “ddr” and click on filter. | ||
+ | Select “DDR2 1GB” from the list and confirm. | ||
+ | In the field “Q in” enter the value “1.” | ||
+ | To test this new rule, click on the “test” button. | ||
+ | The test window opens. | ||
+ | In the “test value” field for “$Memory” enter “4.” | ||
+ | Click on the test button. The results appear below. | ||
+ | In this example the result value is also “4” because “Q in” and “Q out” were both set to“1.” | ||
+ | Close the test window. | ||
+ | Now click on confirm to save the rule. It now appears in the list of rules. | ||
+ | |||