3 Star 5 Fork 2

chaujohnthan/liberate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
spectre2 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
chaujohnthan 提交于 2020-05-18 22:31 +08:00 . liberate example
#!/bin/sh
workdir=".."
# echo "$*" >> $workdir/cmdlist
sim=$workdir/sim
mkdir -p $sim
slot="10000"
for i in {10001..11000}; do
if [ ! -d $sim/$i ]; then
slot="$i"
mkdir $sim/$slot
break
fi
done
sed -i '5 i .global 0 gnd! GND! VDD!' sim.sp
cp * $sim/$slot -a
if [ ! -x $sim/$slot/devmap ]; then
cat > $sim/$slot/devmap << eofa
devSelect := capacitor cap
devSelect := nch nmos4
devSelect := pch pmos4
eofa
fi
# \`masterCellForGnd "gnd"
cat > $sim/$slot/paramf << eofc
spiceInParams = list(nil
\`netlistFile "sim.sp"
\`devmapFile "devmap"
\`outputLib "testlib"
\`overwriteCells "all"
\`conn2schArgs "+PLACE_ONLY +NOXTRSCH -asg"
\`language "spice"
\`topCell "$slot"
\`reflibList "analogLib"
)
eofc
cat > $sim/$slot/spicein.sh << eofb
#!/bin/sh
spiceIn -param paramf
eofb
(
cd $sim/$slot
sh spicein.sh
# spiceIn -param paramf -noasg
# spiceIn -netlistFile sim.sp -outputLib "testlib" -reflibList analogLib -devmapFile devmap -language spice -noasg -topCell $slot
)
# head sim.sp >> $workdir/cmdlist
# exec
spectre $*
cp * $sim/$slot -a
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chaujohnthan/liberate.git
git@gitee.com:chaujohnthan/liberate.git
chaujohnthan
liberate
liberate
master

搜索帮助