diff options
author | Dave Keeshan <96727608+davekeeshan@users.noreply.github.com> | 2023-12-07 17:18:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 09:18:58 -0800 |
commit | b9f63ab40bb9eb68f320d517fb81fb5bdfc3405c (patch) | |
tree | 34eb52962312f73b5dfb9ef9170d5aaca13c04fb /var | |
parent | 4417b1f9eeb4f82451a850b25b2aa871bd6babdf (diff) | |
download | spack-b9f63ab40bb9eb68f320d517fb81fb5bdfc3405c.tar.gz spack-b9f63ab40bb9eb68f320d517fb81fb5bdfc3405c.tar.bz2 spack-b9f63ab40bb9eb68f320d517fb81fb5bdfc3405c.tar.xz spack-b9f63ab40bb9eb68f320d517fb81fb5bdfc3405c.zip |
opensta: add new package (#41484)
* Add opensta, is allows 2 variants, zlib and cudd, but they are both enabled by default
* Remove unused import, os
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/opensta/package.py | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/opensta/package.py b/var/spack/repos/builtin/packages/opensta/package.py new file mode 100644 index 0000000000..691910cf04 --- /dev/null +++ b/var/spack/repos/builtin/packages/opensta/package.py @@ -0,0 +1,47 @@ +# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.package import * + + +class Opensta(CMakePackage): + """ + OpenSTA is a gate level static timing verifier. As a stand-alone executable + it can be used to verify the timing of a design using standard file formats. + + * Verilog netlist + * Liberty library + * SDC timing constraints + * SDF delay annotation + * SPEF parasitics + + """ + + homepage = "https://github.com/parallaxsw/OpenSTA" + git = "https://github.com/parallaxsw/OpenSTA.git" + + maintainers("davekeeshan") + + version("master", branch="master") + + variant("zlib", default=True, description="build with zlib support") + variant("cudd", default=True, description="build with cudd support") + + depends_on("tcl@8.6.11", type="build") + depends_on("flex", type="build") + depends_on("swig", type="build") + depends_on("llvm") + depends_on("zlib", type="build", when="+zlib") + depends_on("cudd", type="build", when="+cudd") + + def cmake_args(self): + args = [] + if self.spec.satisfies("+zlib"): + args.append(f"-DZLIB_ROOT={self.spec['zlib'].prefix}") + if self.spec.satisfies("+cudd"): + args.append("-DUSE_CUDD=ON ") + args.append(f"-DCUDD_DIR={self.spec['cudd'].prefix}") + + return args |