Skip to content

Commit

Permalink
reorganized the sak (.wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkkassem committed Feb 15, 2022
1 parent 9d2a08a commit 1f950c7
Show file tree
Hide file tree
Showing 35 changed files with 56 additions and 25 deletions.
6 changes: 2 additions & 4 deletions images/foss-asic-tools/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@ FROM xyce as xyce
FROM covered as covered
FROM cvc as cvc
FROM opensta as opensta
FROM efabless/dv as dv
FROM irsim as irsim
FROM base
#FROM openroad as openroad
#FROM dv as dv


COPY --from=pdk /foss/pdks/ /foss/pdks/
Expand All @@ -77,9 +76,8 @@ COPY --from=xyce /foss/tools/ /foss/tools/
COPY --from=covered /foss/tools/ /foss/tools/
COPY --from=opensta /foss/tools/ /foss/tools/
COPY --from=cvc /foss/tools/ /foss/tools/
COPY --from=dv /foss/tools/ /foss/tools/
COPY --from=irsim /foss/tools/ /foss/tools/
#COPY --from=openroad /foss/tools/openroad /foss/tools/
#COPY --from=dv /foss/tools/ /foss/tools/


ADD ./addons/sak /foss/tools/sak
Expand Down
33 changes: 33 additions & 0 deletions images/foss-asic-tools/addons/sak/magic/ext-magic-c.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash
#

########################################################
###### Magic netlist extraction
########################################################

export MAGIC=magic
export PDKPATH=$PDK_ROOT/sky130A ;
export MAGTYPE=$2

$MAGIC -dnull -noconsole -rcfile $PDKPATH/libs.tech/magic/sky130A.magicrc << EOF
path
drc off
load $1
select top cell
extract do local
extract all
ext2sim labels on
ext2sim
#extresist tolerance 10
#extresist
ext2spice lvs
ext2spice cthresh 0
#ext2spice extresist on
ext2spice
ext2spice -o ${MAGTYPE}-extracted-${1%.mag}-c.spice
#########
EOF

\rm *.ext
2 changes: 2 additions & 0 deletions images/foss-asic-tools/scripts/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ cvc_path=$(get_path "cvc")
export PATH=$PATH:${magic_path}:${gtkwave_path}:${iverilog_path}:${klayout_path}:${netgen_path}:${openlane_tools_path}:${riscv32i_path}:${gaw3_path}:${ngscope_path}:${ngspice_path}:${xschem_path}:${xyce_path}:${covered_path}:${opensta_path}:${cvc_path}

export LD_LIBRARY_PATH=$(realpath $base_path/klayout/*/ )
export LC_ALL=en_US.utf-8 && export LANG=en_US.utf-8


export PDK_ROOT=/foss/pdks
export TOOLS=/foss/tools
Expand Down
8 changes: 5 additions & 3 deletions images/foss-asic-tools/scripts/miscellaneous.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/bash


pip install click pyyaml
############### Openlane / openroad

yum install -y libQt5Widgets.so* libtclreadline-2.1.0.*
pip install click pyyaml panda

yum install -y libQt5Widgets.so*
yum install -y libtclreadline-2.1.0.*

export LC_ALL=en_US.utf-8 && export LANG=en_US.utf-8

###############

Expand Down
2 changes: 1 addition & 1 deletion images/iverilog/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"BASE_IMAGE": "base",
"NAME": "iverilog",
"REPO_URL": "https://github.com/steveicarus/iverilog.git",
"REPO_COMMIT": "771d02bee1fe9faa21619ea83ddbba2cc9858f96"
"REPO_COMMIT": "96a1cbf7b2866c41ba8fcdcc0f76f22590d08030"
}
}
2 changes: 1 addition & 1 deletion images/klayout/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"BASE_IMAGE": "base",
"NAME": "klayout",
"REPO_URL": "https://github.com/KLayout/klayout",
"REPO_COMMIT": "d764adb1016f74d3e9cc8059cb183f5fc29b2a25"
"REPO_COMMIT": "0132ad08f7623e9fe39d614dae7134814a404d33"
}
}
2 changes: 1 addition & 1 deletion images/open_pdks/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"MAGIC_IMAGE": "magic",
"NAME": "open_pdks",
"REPO_URL": "https://github.com/RTimothyEdwards/open_pdks",
"REPO_COMMIT": "7519dfb04400f224f140749cda44ee7de6f5e095",
"REPO_COMMIT": "1bb26d935f86dbe4a385442e73ac073cf1e1a1fe",
"SKYWATER_IMAGE": "skywater-pdk"
}
}
2 changes: 1 addition & 1 deletion images/opensta/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"BASE_IMAGE": "base",
"NAME": "opensta",
"REPO_URL": "https://github.com/The-OpenROAD-Project/OpenSTA",
"REPO_COMMIT": "8627c6826d752ed864faafb71461d3c24ae66655"
"REPO_COMMIT": "3481d3c48bdb02bc3fd6271c62daf582a522bfd0"
}
}
2 changes: 1 addition & 1 deletion images/riscv-gnu-toolchain-rv32i/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"BASE_IMAGE": "base",
"NAME": "riscv-gnu-toolchain-rv32i",
"REPO_URL": "https://github.com/riscv/riscv-gnu-toolchain",
"REPO_COMMIT": "75b82e1f0b4fc8537305da7e5c6059cb8c73d54f"
"REPO_COMMIT": "217e7f3debe424d61374d31e33a091a630535937"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion images/xschem/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"BASE_IMAGE": "base",
"NAME": "xschem",
"REPO_URL": "https://github.com/StefanSchippers/xschem.git",
"REPO_COMMIT": "a24fbc36450205bae9e62c7dcc2bb61778aa0316"
"REPO_COMMIT": "cc9cfde7716398098082f64a8c799d715025dbff"
}
}
2 changes: 1 addition & 1 deletion images/xyce/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"BASE_IMAGE": "base",
"NAME": "xyce",
"REPO_URL": "https://github.com/Xyce/Xyce.git",
"REPO_COMMIT": "94f506b8a8c8415d7e76d63b5ef78c1f2fc3a899"
"REPO_COMMIT": "b7c684f988381a391b36619d716419b83163078b"
}
}
14 changes: 7 additions & 7 deletions recipes/recipe.csv
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
Name,Version
base,alpha
magic,6ecd077ab4e8a7b6ccd8922954cd56862a8d4c05
klayout,d764adb1016f74d3e9cc8059cb183f5fc29b2a25
klayout,0132ad08f7623e9fe39d614dae7134814a404d33
skywater-pdk,f70d8ca46961ff92719d8870a18a076370b85f6c
open_pdks,7519dfb04400f224f140749cda44ee7de6f5e095
open_pdks,1bb26d935f86dbe4a385442e73ac073cf1e1a1fe
gtkwave,48c6409ed001f28eae9dc5fe87bb0b6b1a7c1217
iverilog,771d02bee1fe9faa21619ea83ddbba2cc9858f96
iverilog,96a1cbf7b2866c41ba8fcdcc0f76f22590d08030
netgen,bfb01e032f668c09ff43e889f35d611ef0e4a317
riscv-gnu-toolchain-rv32i,75b82e1f0b4fc8537305da7e5c6059cb8c73d54f
riscv-gnu-toolchain-rv32i,217e7f3debe424d61374d31e33a091a630535937
openlane,2022.02.08_01.48.52
gaw3-xschem,a3239fdcc700e7b33331051eb22f47904112e849
ngscope,0.9.5
ngspice,1a6a9e6bb60ad8d07ecbfb3f35dea22379fb73e9
xschem,a24fbc36450205bae9e62c7dcc2bb61778aa0316
xyce,94f506b8a8c8415d7e76d63b5ef78c1f2fc3a899
xschem,cc9cfde7716398098082f64a8c799d715025dbff
xyce,b7c684f988381a391b36619d716419b83163078b
covered,93bee2e0d89c1beb5943a329109dcf24d59498e6
irsim,3813495e55a21a024e62e21bd6993fac068a61b9
opensta,8627c6826d752ed864faafb71461d3c24ae66655
opensta,3481d3c48bdb02bc3fd6271c62daf582a522bfd0
cvc,d01c4abd446aaac3fe7f9465611d654536a20a7a
foss-asic-tools,alpha
4 changes: 0 additions & 4 deletions recipes/~recipe.csv

This file was deleted.

0 comments on commit 1f950c7

Please sign in to comment.