Skip to content

Commit

Permalink
Adding expressions for unary reduction operators added in VHDL-2008
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Cenova committed Sep 26, 2024
1 parent 7a63b07 commit 169d548
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions pyVHDLModel/Expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,36 @@ class InverseExpression(UnaryExpression):
_FORMAT = ("not ", "")


@export
class UnaryAndExpression(UnaryExpression):
_FORMAT = ("and ", "")


@export
class UnaryNandExpression(UnaryExpression):
_FORMAT = ("nand ", "")


@export
class UnaryOrExpression(UnaryExpression):
_FORMAT = ("or ", "")


@export
class UnaryNorExpression(UnaryExpression):
_FORMAT = ("nor ", "")


@export
class UnaryXorExpression(UnaryExpression):
_FORMAT = ("xor ", "")


@export
class UnaryXnorExpression(UnaryExpression):
_FORMAT = ("xnor ", "")


@export
class AbsoluteExpression(UnaryExpression):
_FORMAT = ("abs ", "")
Expand Down

0 comments on commit 169d548

Please sign in to comment.