Skip to content

Commit 69ec83d

Browse files
added helper scripts for view generation, and added ECO section in the README
1 parent 28b57b0 commit 69ec83d

File tree

3 files changed

+61
-1
lines changed

3 files changed

+61
-1
lines changed

README.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,16 @@ To simulate
1717
```
1818
cd sim
1919
make clean sim
20-
```
20+
```
21+
22+
## ECO done in DFFRAMS to get antenna clean
23+
24+
The ECOs were done on both DFFRAMs to clean antenna violations, these ECOs were only on metal layers and were done using the jumper method for antenna avoidance
25+
26+
The non-eco'd views coming out of OpenLane is postfixed by `-openlane`, for example: `gds/RAM128-openlane.gds.gz`
27+
28+
The eco'd views are the views that doesn't have postfix
29+
30+
After the eco `scripts/update_views.sh` was ran to produce mag, lef and def views for the eco'd gds
31+
32+
`scripts/build_mgmt_core_wrapper.sh` was ran to produce the final gds for mgmt_core_wrapper

scripts/build_mgmt_core_wrapper.sh

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
#!/bin/bash
3+
4+
# run this script from caravel root
5+
6+
echo ${PDK_ROOT:=/usr/share/pdk} > /dev/null
7+
echo ${PDK:=sky130A} > /dev/null
8+
echo ${MCW_ROOT:=$(pwd)} > /dev/null
9+
10+
echo "Run this script from mgmt_core_wrapper root"
11+
echo "generating gds for mgmt_core_wrapper from mag"
12+
magic -dnull -noconsole -rcfile $PDK_ROOT/$PDK/libs.tech/magic/$PDK.magicrc << EOF
13+
cd $MCW_ROOT/mag
14+
drc off;
15+
crashbackups stop;
16+
addpath hexdigits;
17+
addpath $MCW_ROOT/mag;
18+
load mgmt_core_wrapper -dereference;
19+
select top cell;
20+
expand;
21+
cif *hier write disable;
22+
cif *array write disable;
23+
gds write $MCW_ROOT/gds/mgmt_core_wrapper.gds;
24+
quit -noprompt;

scripts/update_views.sh

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
#!/bin/bash
3+
4+
# run this script from caravel root
5+
6+
echo ${PDK_ROOT:=/usr/share/pdk} > /dev/null
7+
echo ${PDK:=sky130A} > /dev/null
8+
9+
echo "Run this script from mgmt_core_wrapper root"
10+
echo "Writing $1 lef, def and mag view from gds"
11+
magic -dnull -noconsole -rcfile $PDK_ROOT/$PDK/libs.tech/magic/$PDK.magicrc << EOF
12+
drc off
13+
gds read gds/$1.gds
14+
load $1
15+
lef write lef/$1.lef
16+
save mag/$1.mag
17+
select top cell
18+
extract no all
19+
extract do local
20+
extract all
21+
def write def/$1.def
22+
EOF
23+
rm *.ext
24+
exit 0

0 commit comments

Comments
 (0)