starting work on gf
This commit is contained in:
parent
c4ae60e08c
commit
9a216710a1
20
convert.sh
20
convert.sh
@ -2,12 +2,24 @@
|
||||
|
||||
for FILE in $(find . -name '*.l'); do
|
||||
echo "$FILE"
|
||||
~/workspace/broccoli/pr/hspice2xyce $FILE > tmp
|
||||
mv tmp $FILE
|
||||
/home/nbingham/workspace/broccoli/scripts/hspice2xyce $FILE > tmp
|
||||
yes | mv tmp $FILE
|
||||
done
|
||||
|
||||
for FILE in $(find . -name '*.inc'); do
|
||||
echo "$FILE"
|
||||
/home/nbingham/workspace/broccoli/scripts/hspice2xyce $FILE > tmp
|
||||
yes | mv tmp $FILE
|
||||
done
|
||||
|
||||
for FILE in $(find . -name '*.lib'); do
|
||||
echo "$FILE"
|
||||
/home/nbingham/workspace/broccoli/scripts/hspice2xyce $FILE > tmp
|
||||
yes | mv tmp $FILE
|
||||
done
|
||||
|
||||
for FILE in $(find . -name '*.spice'); do
|
||||
echo "$FILE"
|
||||
~/workspace/broccoli/pr/hspice2xyce $FILE > tmp
|
||||
mv tmp $FILE
|
||||
/home/nbingham/workspace/broccoli/scripts/hspice2xyce $FILE > tmp
|
||||
yes | mv tmp $FILE
|
||||
done
|
||||
|
@ -13,6 +13,8 @@ def emitOperation(number, command, operation, stack):
|
||||
return # Xyce does not support these commands
|
||||
elif command == ".option":
|
||||
operation = fixOption(number, operation, stack)
|
||||
elif command in [".if", ".elif", ".elsif", ".else", ".endif"]:
|
||||
pass
|
||||
else:
|
||||
operation = fixParams(number, operation, stack)
|
||||
|
||||
@ -45,7 +47,9 @@ def fixParams(number, operation, stack):
|
||||
if name == "dev/gauss":
|
||||
continue
|
||||
elif name in ["vt", "Vt", "vT", "VT"]:
|
||||
name = "local_" + name
|
||||
name = "local_" + name
|
||||
#elif name.lower().endswith("_fc"):
|
||||
# continue
|
||||
|
||||
if definition:
|
||||
if ":" in definition:
|
||||
|
Loading…
Reference in New Issue
Block a user