This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os, sys | |
if len(sys.argv) != 4: | |
print('lvs: You must specify two netlist filenames and a subcircuit to compare.') | |
sys.exit(1) | |
os.system('netgen -batch lvs \"{} {top}\" \"{} {top}\" /usr/local/share/pdk/sky130A/libs.tech/netgen/sky130A_setup.tcl'.format(sys.argv[1], sys.argv[2],top=sys.argv[3])) | |
sys.exit(0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$1" == "-h" ]; then | |
echo -e "Pre-commit test script for python files. \n Input files to test like so: ../../../test.sh file" | |
exit | |
fi | |
coverage run -m pytest *.py | |
coverage report | |
black . | |
pylint *.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logger = console.log; | |
console.log = (msg, ...others) => { | |
speechSynthesis.speak(new window.SpeechSynthesisUtterance(msg)) | |
logger(msg, ...others) | |
}; |