-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added helper scripts for view generation, and added ECO section in th…
…e README
- Loading branch information
1 parent
28b57b0
commit 69ec83d
Showing
3 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
#!/bin/bash | ||
|
||
# run this script from caravel root | ||
|
||
echo ${PDK_ROOT:=/usr/share/pdk} > /dev/null | ||
echo ${PDK:=sky130A} > /dev/null | ||
echo ${MCW_ROOT:=$(pwd)} > /dev/null | ||
|
||
echo "Run this script from mgmt_core_wrapper root" | ||
echo "generating gds for mgmt_core_wrapper from mag" | ||
magic -dnull -noconsole -rcfile $PDK_ROOT/$PDK/libs.tech/magic/$PDK.magicrc << EOF | ||
cd $MCW_ROOT/mag | ||
drc off; | ||
crashbackups stop; | ||
addpath hexdigits; | ||
addpath $MCW_ROOT/mag; | ||
load mgmt_core_wrapper -dereference; | ||
select top cell; | ||
expand; | ||
cif *hier write disable; | ||
cif *array write disable; | ||
gds write $MCW_ROOT/gds/mgmt_core_wrapper.gds; | ||
quit -noprompt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
#!/bin/bash | ||
|
||
# run this script from caravel root | ||
|
||
echo ${PDK_ROOT:=/usr/share/pdk} > /dev/null | ||
echo ${PDK:=sky130A} > /dev/null | ||
|
||
echo "Run this script from mgmt_core_wrapper root" | ||
echo "Writing $1 lef, def and mag view from gds" | ||
magic -dnull -noconsole -rcfile $PDK_ROOT/$PDK/libs.tech/magic/$PDK.magicrc << EOF | ||
drc off | ||
gds read gds/$1.gds | ||
load $1 | ||
lef write lef/$1.lef | ||
save mag/$1.mag | ||
select top cell | ||
extract no all | ||
extract do local | ||
extract all | ||
def write def/$1.def | ||
EOF | ||
rm *.ext | ||
exit 0 |