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
|
for FILE in $(find . -name '*.l'); do
|
||||||
echo "$FILE"
|
echo "$FILE"
|
||||||
~/workspace/broccoli/pr/hspice2xyce $FILE > tmp
|
/home/nbingham/workspace/broccoli/scripts/hspice2xyce $FILE > tmp
|
||||||
mv tmp $FILE
|
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
|
done
|
||||||
|
|
||||||
for FILE in $(find . -name '*.spice'); do
|
for FILE in $(find . -name '*.spice'); do
|
||||||
echo "$FILE"
|
echo "$FILE"
|
||||||
~/workspace/broccoli/pr/hspice2xyce $FILE > tmp
|
/home/nbingham/workspace/broccoli/scripts/hspice2xyce $FILE > tmp
|
||||||
mv tmp $FILE
|
yes | mv tmp $FILE
|
||||||
done
|
done
|
||||||
|
@ -13,6 +13,8 @@ def emitOperation(number, command, operation, stack):
|
|||||||
return # Xyce does not support these commands
|
return # Xyce does not support these commands
|
||||||
elif command == ".option":
|
elif command == ".option":
|
||||||
operation = fixOption(number, operation, stack)
|
operation = fixOption(number, operation, stack)
|
||||||
|
elif command in [".if", ".elif", ".elsif", ".else", ".endif"]:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
operation = fixParams(number, operation, stack)
|
operation = fixParams(number, operation, stack)
|
||||||
|
|
||||||
@ -46,6 +48,8 @@ def fixParams(number, operation, stack):
|
|||||||
continue
|
continue
|
||||||
elif name in ["vt", "Vt", "vT", "VT"]:
|
elif name in ["vt", "Vt", "vT", "VT"]:
|
||||||
name = "local_" + name
|
name = "local_" + name
|
||||||
|
#elif name.lower().endswith("_fc"):
|
||||||
|
# continue
|
||||||
|
|
||||||
if definition:
|
if definition:
|
||||||
if ":" in definition:
|
if ":" in definition:
|
||||||
|
Loading…
Reference in New Issue
Block a user