mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-13 14:56:29 -04:00
added rotation to XOr and XNOr
This commit is contained in:
parent
bec935acb2
commit
3d693845ea
@ -10,7 +10,10 @@ import de.neemann.digital.core.element.ElementTypeDescription;
|
|||||||
*/
|
*/
|
||||||
public class XNOr extends XOr {
|
public class XNOr extends XOr {
|
||||||
|
|
||||||
public static final ElementTypeDescription DESCRIPTION = new ElementTypeDescription(XNOr.class, "a", "b").addAttribute(AttributeKey.Bits);
|
public static final ElementTypeDescription DESCRIPTION
|
||||||
|
= new ElementTypeDescription(XNOr.class, "a", "b")
|
||||||
|
.addAttribute(AttributeKey.Rotate)
|
||||||
|
.addAttribute(AttributeKey.Bits);
|
||||||
|
|
||||||
public XNOr(ElementAttributes attributes) {
|
public XNOr(ElementAttributes attributes) {
|
||||||
super(attributes);
|
super(attributes);
|
||||||
|
@ -14,7 +14,11 @@ import de.neemann.digital.core.element.ElementTypeDescription;
|
|||||||
*/
|
*/
|
||||||
public class XOr extends Node implements Element {
|
public class XOr extends Node implements Element {
|
||||||
|
|
||||||
public static final ElementTypeDescription DESCRIPTION = new ElementTypeDescription(XOr.class, "a", "b").addAttribute(AttributeKey.Bits);
|
public static final ElementTypeDescription DESCRIPTION
|
||||||
|
= new ElementTypeDescription(XOr.class, "a", "b")
|
||||||
|
.addAttribute(AttributeKey.Rotate)
|
||||||
|
.addAttribute(AttributeKey.Bits);
|
||||||
|
|
||||||
private final int bits;
|
private final int bits;
|
||||||
private final ObservableValue out;
|
private final ObservableValue out;
|
||||||
protected ObservableValue a;
|
protected ObservableValue a;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user