mirror of
https://github.com/lowRISC/ibex.git
synced 2025-06-27 17:00:41 -04:00
This improves portability across different unix-like operating systems by using bash from the PATH, instead of bash from a hardcoded location. Signed-off-by: Harry Callahan <hcallahan@lowrisc.org>
24 lines
724 B
Bash
Executable file
24 lines
724 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Copyright lowRISC contributors.
|
|
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if [ $# -eq 1 ]; then
|
|
export LR_SYNTH_OUT_DIR=$1
|
|
elif [ $# -eq 0 ]; then
|
|
export LR_SYNTH_OUT_DIR_PREFIX="syn_out/ibex"
|
|
LR_SYNTH_OUT_DIR=$(date +"${LR_SYNTH_OUT_DIR_PREFIX}_%d_%m_%Y_%H_%M_%S")
|
|
export LR_SYNTH_OUT_DIR
|
|
else
|
|
echo "Usage $0 [synth_out_dir]"
|
|
exit 1
|
|
fi
|
|
|
|
export LR_SYNTH_TIMING_RUN=1
|
|
export LR_SYNTH_FLATTEN=1
|
|
|
|
# SETUP CELL LIBRARY PATH
|
|
# Uncomment the lines below and set the path to an appropriate .lib file
|
|
# export LR_SYNTH_CELL_LIBRARY_PATH=/path/to/NangateOpenCellLibrary_typical.lib
|
|
# export LR_SYNTH_CELL_LIBRARY_NAME=nangate
|