diff options
Diffstat (limited to 'libraries/openieee')
-rw-r--r-- | libraries/openieee/upf-body.vhdl | 26 | ||||
-rw-r--r-- | libraries/openieee/upf.vhdl | 19 |
2 files changed, 45 insertions, 0 deletions
diff --git a/libraries/openieee/upf-body.vhdl b/libraries/openieee/upf-body.vhdl new file mode 100644 index 000000000..039299bfc --- /dev/null +++ b/libraries/openieee/upf-body.vhdl @@ -0,0 +1,26 @@ +package body upf is + + function supply_on ( + constant supply_name : string; + constant voltage : real) + return boolean is + begin + return true; + end supply_on; + + function supply_partial_on ( + constant supply_name : string; + constant voltage : real) + return boolean is + begin + return true; + end supply_partial_on; + + function supply_off ( + constant supply_name : string) + return boolean is + begin + return true; + end supply_off; + +end upf; diff --git a/libraries/openieee/upf.vhdl b/libraries/openieee/upf.vhdl new file mode 100644 index 000000000..974798331 --- /dev/null +++ b/libraries/openieee/upf.vhdl @@ -0,0 +1,19 @@ +-- modelled according to IEEE Std 1801-2015, 11.2 + +package upf is + + function supply_on ( + constant supply_name : string; + constant voltage : real) + return boolean; + + function supply_partial_on ( + constant supply_name : string; + constant voltage : real) + return boolean; + + function supply_off ( + constant supply_name : string) + return boolean; + +end upf; |