aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/upf
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2021-01-16 08:35:38 +0100
committertgingold <tgingold@users.noreply.github.com>2021-01-16 13:53:13 +0100
commite5c609f31d485dcb5796103d5b8b0cf332960070 (patch)
tree40aae76e24c05da8aad0f93d63d72fe5b6cdee0d /libraries/upf
parent173171d2b31111452446c6ee3e4ee21768cf41cf (diff)
downloadghdl-e5c609f31d485dcb5796103d5b8b0cf332960070.tar.gz
ghdl-e5c609f31d485dcb5796103d5b8b0cf332960070.tar.bz2
ghdl-e5c609f31d485dcb5796103d5b8b0cf332960070.zip
libraries: unuse 'openieee', rename enable_openieee to enable_gplcompat
Diffstat (limited to 'libraries/upf')
-rw-r--r--libraries/upf/upf-body.vhdl26
-rw-r--r--libraries/upf/upf.vhdl19
2 files changed, 45 insertions, 0 deletions
diff --git a/libraries/upf/upf-body.vhdl b/libraries/upf/upf-body.vhdl
new file mode 100644
index 000000000..039299bfc
--- /dev/null
+++ b/libraries/upf/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/upf/upf.vhdl b/libraries/upf/upf.vhdl
new file mode 100644
index 000000000..974798331
--- /dev/null
+++ b/libraries/upf/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;