diff options
| author | Cayetano Santos <csantosb@inventati.org> | 2026-01-25 11:57:45 +0100 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:31:35 +0100 |
| commit | b57b68aba645181b78bbdbef4ad908d60da03aa7 (patch) | |
| tree | 1dec169b7ce6ad404c4e1aea2f0313cd3fe92811 | |
| parent | e72ccef56625fbaf8a80bea9af60bee6a0d6e806 (diff) | |
gnu: open-logic: Move to hdl
* gnu/packages/electronics.scm (open-logic): Move from here ...
* gnu/packages/hdl.scm: ... to here.
Change-Id: I733fd20cf2059e2f4392bcbe23d6070306549ae8
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
| -rw-r--r-- | gnu/packages/electronics.scm | 66 | ||||
| -rw-r--r-- | gnu/packages/hdl.scm | 66 |
2 files changed, 66 insertions, 66 deletions
diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index d19a32cb942..f7fe58432ea 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm | |||
| @@ -2056,72 +2056,6 @@ library, scripting API, and co-simulation capability for FPGA or ASIC | |||
| 2056 | verification.") | 2056 | verification.") |
| 2057 | (license license:asl2.0))) | 2057 | (license license:asl2.0))) |
| 2058 | 2058 | ||
| 2059 | (define-public open-logic | ||
| 2060 | (package | ||
| 2061 | (name "open-logic") | ||
| 2062 | (version "4.2.0") | ||
| 2063 | (source | ||
| 2064 | (origin | ||
| 2065 | (method git-fetch) | ||
| 2066 | (uri (git-reference | ||
| 2067 | (url "https://github.com/open-logic/open-logic/") | ||
| 2068 | (commit version) | ||
| 2069 | ;; Required by the en_cl_fix submodule. | ||
| 2070 | (recursive? #t))) | ||
| 2071 | (file-name (git-file-name name version)) | ||
| 2072 | (sha256 | ||
| 2073 | (base32 | ||
| 2074 | "1792a6i9jq2yawipmk0nr01z092kx3kkav9v5sjf34khk3biav6q")))) | ||
| 2075 | (outputs | ||
| 2076 | '("out" "olo")) | ||
| 2077 | (properties | ||
| 2078 | `((output-synopsis "out" "Instance this design library as work") | ||
| 2079 | (output-synopsis "olo" "Instance this design library as olo"))) | ||
| 2080 | (build-system copy-build-system) | ||
| 2081 | (arguments | ||
| 2082 | (list | ||
| 2083 | #:phases | ||
| 2084 | #~(modify-phases %standard-phases | ||
| 2085 | (add-after 'install 'check | ||
| 2086 | (lambda* (#:key tests? inputs #:allow-other-keys) | ||
| 2087 | (when tests? | ||
| 2088 | (with-directory-excursion "3rdParty/en_cl_fix/sim" | ||
| 2089 | (invoke "python3" "run.py" "--simulator" "nvc" | ||
| 2090 | "--simulator-path" | ||
| 2091 | (dirname (search-input-file inputs "bin/nvc")))) | ||
| 2092 | (with-directory-excursion "sim" | ||
| 2093 | (substitute* "run.py" | ||
| 2094 | ;; This is required to comply with current VUnit, see: | ||
| 2095 | ;; https://github.com/VUnit/vunit/issues/777 | ||
| 2096 | (("compile_builtins=False, ") | ||
| 2097 | "")) | ||
| 2098 | (invoke "python3" "run.py" "--nvc" "-v")))))) | ||
| 2099 | #:install-plan | ||
| 2100 | #~'(;; Library work. | ||
| 2101 | ("src" "share/open-logic/work/src" | ||
| 2102 | #:include ("vhd")) | ||
| 2103 | ("3rdParty" "share/open-logic/work/3rdParty" | ||
| 2104 | #:include ("vhd")) | ||
| 2105 | ;; Library olo. | ||
| 2106 | ("src" "share/open-logic/olo/src" | ||
| 2107 | #:include ("vhd") #:output "olo") | ||
| 2108 | ("3rdParty" "share/open-logic/olo/3rdParty" | ||
| 2109 | #:include ("vhd") #:output "olo")))) | ||
| 2110 | (native-inputs | ||
| 2111 | (list nvc python-matplotlib python-minimal python-vunit)) | ||
| 2112 | (native-search-paths | ||
| 2113 | (list (search-path-specification | ||
| 2114 | (variable "FW_OPEN_LOGIC") | ||
| 2115 | (separator #f) | ||
| 2116 | (files (list "share/open-logic"))))) | ||
| 2117 | (home-page "https://github.com/open-logic/open-logic/") | ||
| 2118 | (synopsis "Open library of VHDL standard components") | ||
| 2119 | (description "Open Logic implements commonly used design units in a | ||
| 2120 | reusable and vendor/tool-independent way. It is written following the VHDL | ||
| 2121 | 2008 standard, but can also be used from System Verilog.") | ||
| 2122 | (license (list license:lgpl2.1 | ||
| 2123 | license:expat)))) ;en_cl_fix uses Expat license | ||
| 2124 | |||
| 2125 | ;;; Required by python-vunit. | 2059 | ;;; Required by python-vunit. |
| 2126 | (define osvvm-2023.04 | 2060 | (define osvvm-2023.04 |
| 2127 | (package | 2061 | (package |
diff --git a/gnu/packages/hdl.scm b/gnu/packages/hdl.scm index c8ad7c22231..82c96b7a6a0 100644 --- a/gnu/packages/hdl.scm +++ b/gnu/packages/hdl.scm | |||
| @@ -87,3 +87,69 @@ chip written in platform-independent VHDL.") | |||
| 87 | `((output-synopsis "out" "Instance this design library as work") | 87 | `((output-synopsis "out" "Instance this design library as work") |
| 88 | (output-synopsis "neorv32" "Instance this design library as neorv32"))) | 88 | (output-synopsis "neorv32" "Instance this design library as neorv32"))) |
| 89 | (license license:bsd-3))) | 89 | (license license:bsd-3))) |
| 90 | |||
| 91 | (define-public open-logic | ||
| 92 | (package | ||
| 93 | (name "open-logic") | ||
| 94 | (version "4.2.0") | ||
| 95 | (source | ||
| 96 | (origin | ||
| 97 | (method git-fetch) | ||
| 98 | (uri (git-reference | ||
| 99 | (url "https://github.com/open-logic/open-logic/") | ||
| 100 | (commit version) | ||
| 101 | ;; Required by the en_cl_fix submodule. | ||
| 102 | (recursive? #t))) | ||
| 103 | (file-name (git-file-name name version)) | ||
| 104 | (sha256 | ||
| 105 | (base32 | ||
| 106 | "1792a6i9jq2yawipmk0nr01z092kx3kkav9v5sjf34khk3biav6q")))) | ||
| 107 | (outputs | ||
| 108 | '("out" "olo")) | ||
| 109 | (properties | ||
| 110 | `((output-synopsis "out" "Instance this design library as work") | ||
| 111 | (output-synopsis "olo" "Instance this design library as olo"))) | ||
| 112 | (build-system copy-build-system) | ||
| 113 | (arguments | ||
| 114 | (list | ||
| 115 | #:phases | ||
| 116 | #~(modify-phases %standard-phases | ||
| 117 | (add-after 'install 'check | ||
| 118 | (lambda* (#:key tests? inputs #:allow-other-keys) | ||
| 119 | (when tests? | ||
| 120 | (with-directory-excursion "3rdParty/en_cl_fix/sim" | ||
| 121 | (invoke "python3" "run.py" "--simulator" "nvc" | ||
| 122 | "--simulator-path" | ||
| 123 | (dirname (search-input-file inputs "bin/nvc")))) | ||
| 124 | (with-directory-excursion "sim" | ||
| 125 | (substitute* "run.py" | ||
| 126 | ;; This is required to comply with current VUnit, see: | ||
| 127 | ;; https://github.com/VUnit/vunit/issues/777 | ||
| 128 | (("compile_builtins=False, ") | ||
| 129 | "")) | ||
| 130 | (invoke "python3" "run.py" "--nvc" "-v")))))) | ||
| 131 | #:install-plan | ||
| 132 | #~'(;; Library work. | ||
| 133 | ("src" "share/open-logic/work/src" | ||
| 134 | #:include ("vhd")) | ||
| 135 | ("3rdParty" "share/open-logic/work/3rdParty" | ||
| 136 | #:include ("vhd")) | ||
| 137 | ;; Library olo. | ||
| 138 | ("src" "share/open-logic/olo/src" | ||
| 139 | #:include ("vhd") #:output "olo") | ||
| 140 | ("3rdParty" "share/open-logic/olo/3rdParty" | ||
| 141 | #:include ("vhd") #:output "olo")))) | ||
| 142 | (native-inputs | ||
| 143 | (list nvc python-matplotlib python-minimal python-vunit)) | ||
| 144 | (native-search-paths | ||
| 145 | (list (search-path-specification | ||
| 146 | (variable "FW_OPEN_LOGIC") | ||
| 147 | (separator #f) | ||
| 148 | (files (list "share/open-logic"))))) | ||
| 149 | (home-page "https://github.com/open-logic/open-logic/") | ||
| 150 | (synopsis "Open library of VHDL standard components") | ||
| 151 | (description "Open Logic implements commonly used design units in a | ||
| 152 | reusable and vendor/tool-independent way. It is written following the VHDL | ||
| 153 | 2008 standard, but can also be used from System Verilog.") | ||
| 154 | (license (list license:lgpl2.1 | ||
| 155 | license:expat)))) ;en_cl_fix uses Expat license | ||
