diff options
Diffstat (limited to 'libraries/openieee/numeric_bit-body.proto')
-rw-r--r-- | libraries/openieee/numeric_bit-body.proto | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libraries/openieee/numeric_bit-body.proto b/libraries/openieee/numeric_bit-body.proto index 715f9f5..91a5bd6 100644 --- a/libraries/openieee/numeric_bit-body.proto +++ b/libraries/openieee/numeric_bit-body.proto @@ -177,4 +177,14 @@ package body NUMERIC_BIT is @ARITH @LOG + + function rising_edge (signal s : bit) return boolean is + begin + return s'event and s = '1'; + end rising_edge; + + function falling_edge (signal s : bit) return boolean is + begin + return s'event and s = '0'; + end falling_edge; end NUMERIC_BIT; |