From 40ed4c7f9394c9881577f18f91b6db131752c9ba Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sat, 19 Dec 2015 14:17:48 +0100 Subject: openieee: fix missing subprograms, fix wrong interface name. --- libraries/openieee/numeric_bit-body.proto | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libraries/openieee/numeric_bit-body.proto') diff --git a/libraries/openieee/numeric_bit-body.proto b/libraries/openieee/numeric_bit-body.proto index 715f9f573..91a5bd6a7 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; -- cgit v1.2.3