-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun_all.sh
41 lines (31 loc) · 1017 Bytes
/
run_all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# =====================================================
# Author: Simon Dorrer
# Last Modified: 05.12.2024
# Description: This .sh file runs all self-written shell scripts (vhdl2verilog, run_orfs, verilog2xspice) for the given folder structure.
# This is a convenient way to design analog-digital ASICs.
# =====================================================
set -e -x
cd $(dirname "$0")
name=${name:-counter_board}
VERILOG=${VERILOG:-verilog/rtl}
ORFS=${ORFS:-orfs}
XSPICE=${XSPICE:-xspice}
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
# First, clean all
./clean_all.sh "$name" || true
# Run "vhdl2verilog.sh"
cd "$VERILOG"
./vhdl2verilog.sh
cd "$SCRIPT_DIR"
# Run "run_orfs.sh"
cd "$ORFS"
# export SYNTH_HIERARCHICAL=1 # do not flatten top-level, not working with Xschem simulation!
./run_orfs.sh
cd "$SCRIPT_DIR"
# Run "verilog2xspice.sh"
cd "$XSPICE"
./verilog2xspice.sh "$name"
cd "$SCRIPT_DIR"
# Finish
echo "------ The complete flow was successful! ------"