| #! /usr/bin/env bash |
| # Copyright 2019-2021 SkyWater PDK Authors |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # https://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # |
| # This code is *alternatively* available under a BSD-3-Clause license, see |
| # details in the README.md at the top level and the license text at |
| # https://github.com/google/skywater-pdk-libs-sky130_bag3_pr/blob/master/LICENSE.alternative |
| # |
| # SPDX-License-Identifier: BSD-3-Clause OR Apache 2.0 |
| |
| export BAG_WORK_DIR=$(pwd) |
| export BAG_TOOLS_ROOT=/tools/C/bag/miniconda3/envs/latest |
| export BAG_FRAMEWORK=${BAG_WORK_DIR}/BAG_framework |
| export BAG_TECH_CONFIG_DIR=${BAG_WORK_DIR}/skywater130 |
| export BAG_TEMP_DIR=/path/to/scratch/${USER}/BAGTMP/skywater130 |
| export IPYTHONDIR=${BAG_WORK_DIR}/.ipython |
| |
| # disable hash-salting. We need stable hashing across sessions for caching purposes. |
| export PYTHONHASHSEED=0 |
| # set program locations |
| export BAG_PYTHON=${BAG_TOOLS_ROOT}/bin/python3 |
| |
| # set location of BAG configuration file |
| export BAG_CONFIG_PATH=${BAG_WORK_DIR}/bag_config.yaml |
| |
| # setup pybag |
| export PYBAG_PYTHON=${BAG_PYTHON} |