From e63db54b9c28505779fc726fd0cd6e5b69b5d4dd Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Fri, 19 Jul 2019 15:03:28 -0700 Subject: [PATCH 1/3] Add first-time-run instructions to vlsi/README --- scripts/init-vlsi.sh | 6 ++++++ vlsi/README.md | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 scripts/init-vlsi.sh diff --git a/scripts/init-vlsi.sh b/scripts/init-vlsi.sh new file mode 100755 index 00000000..ab947dd1 --- /dev/null +++ b/scripts/init-vlsi.sh @@ -0,0 +1,6 @@ +# Initialize HAMMER and CAD-plugins +git submodule update --init --recursive vlsi/hammer +git submodule update --init --recursive vlsi/hammer-cad-plugins + +# Initialize HAMMER tech plugin +git submodule update --init --recursive vlsi/hammer-$1-plugin \ No newline at end of file diff --git a/vlsi/README.md b/vlsi/README.md index d09fb5d8..aa07dd0f 100644 --- a/vlsi/README.md +++ b/vlsi/README.md @@ -2,4 +2,8 @@ This is the starting point for a vlsi flow from this repository. This flow will not work without the necessary CAD and technology plugins for HAMMER. -If you are a UCB-affiliate, you may be able to acquire access to the tech-plugins. \ No newline at end of file +If you are a UCB-affiliate, you may be able to acquire access to the tech-plugins. + +# Initial Setup Instructions (For All technologies) +Run the `init-vlsi.sh` script to pull correct versions of hammer, hammer-cad-plugins, and the hammer-tech-plugins +```scripts/init-vlsi.sh TECH_NAME``` \ No newline at end of file From b923617f644eed0d1777b1ffa50662f02369acba Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Fri, 19 Jul 2019 15:06:51 -0700 Subject: [PATCH 2/3] Fixup init-vlsi.sh --- scripts/init-vlsi.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/init-vlsi.sh b/scripts/init-vlsi.sh index ab947dd1..294f8628 100755 --- a/scripts/init-vlsi.sh +++ b/scripts/init-vlsi.sh @@ -1,3 +1,10 @@ +#!/usr/bin/env bash +# exit script if any command fails +set -e +set -o pipefail + + + # Initialize HAMMER and CAD-plugins git submodule update --init --recursive vlsi/hammer git submodule update --init --recursive vlsi/hammer-cad-plugins From 0894919404fccc0e34e8f936778f6f053945113e Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Fri, 19 Jul 2019 15:07:03 -0700 Subject: [PATCH 3/3] Ignore emacs temp files --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 8450e9b8..08493eec 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ target env.sh riscv-tools-install tags +*~ \ No newline at end of file