mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-24 04:42:51 -04:00
limits the number of lut inputs to 20, see #726
This commit is contained in:
parent
f52236ce29
commit
0b1f538190
@ -105,6 +105,15 @@ public final class Keys {
|
|||||||
.setComboBoxValues(2, 3, 4, 5)
|
.setComboBoxValues(2, 3, 4, 5)
|
||||||
.setMin(2);
|
.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
|
* The counter max value
|
||||||
|
@ -34,7 +34,7 @@ public class LookUpTable extends Node implements Element {
|
|||||||
}
|
}
|
||||||
.addAttribute(Keys.ROTATE)
|
.addAttribute(Keys.ROTATE)
|
||||||
.addAttribute(Keys.BITS)
|
.addAttribute(Keys.BITS)
|
||||||
.addAttribute(Keys.INPUT_COUNT)
|
.addAttribute(Keys.LUT_INPUT_COUNT)
|
||||||
.addAttribute(Keys.LABEL)
|
.addAttribute(Keys.LABEL)
|
||||||
.addAttribute(Keys.DATA)
|
.addAttribute(Keys.DATA)
|
||||||
.supportsHDL();
|
.supportsHDL();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user