limits the number of lut inputs to 20, see #726

This commit is contained in:
hneemann 2021-04-29 18:32:36 +02:00
parent f52236ce29
commit 0b1f538190
2 changed files with 10 additions and 1 deletions

View File

@ -105,6 +105,15 @@ public final class Keys {
.setComboBoxValues(2, 3, 4, 5)
.setMin(2);
/**
* number of inputs in the LUT
*/
public static final Key.KeyInteger LUT_INPUT_COUNT
= new Key.KeyInteger("Inputs", 6)
.setComboBoxValues(2, 3, 4, 5, 6)
.setMax(20)
.setMin(2);
/**
* The counter max value

View File

@ -34,7 +34,7 @@ public class LookUpTable extends Node implements Element {
}
.addAttribute(Keys.ROTATE)
.addAttribute(Keys.BITS)
.addAttribute(Keys.INPUT_COUNT)
.addAttribute(Keys.LUT_INPUT_COUNT)
.addAttribute(Keys.LABEL)
.addAttribute(Keys.DATA)
.supportsHDL();