summaryrefslogtreecommitdiff
path: root/src/createKicadLibrary.py
diff options
context:
space:
mode:
authorrahulp132022-02-20 22:55:42 +0530
committerrahulp132022-02-20 23:26:18 +0530
commitf0d7b8e454357f8c84abce339dbedd65084572e7 (patch)
treed1bb008d1a8fe38af5ae60833b1511df4eedbd75 /src/createKicadLibrary.py
parent07143b304e672d375dca58f96a72b6612c93cfe5 (diff)
downloadnghdl-f0d7b8e454357f8c84abce339dbedd65084572e7.tar.gz
nghdl-f0d7b8e454357f8c84abce339dbedd65084572e7.tar.bz2
nghdl-f0d7b8e454357f8c84abce339dbedd65084572e7.zip
Restructured config paths and updated build commands on Windows OS
Diffstat (limited to 'src/createKicadLibrary.py')
-rwxr-xr-xsrc/createKicadLibrary.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/createKicadLibrary.py b/src/createKicadLibrary.py
index 174668c..c78d41e 100755
--- a/src/createKicadLibrary.py
+++ b/src/createKicadLibrary.py
@@ -16,7 +16,7 @@ class AutoSchematic(QtWidgets.QWidget):
self.lib_loc = Appconfig.lib_loc
if os.name == 'nt':
eSim_src = Appconfig.src_home
- inst_dir = eSim_src.replace('\eSim', '')
+ inst_dir = eSim_src.replace('\\eSim', '')
self.kicad_nghdl_lib = \
inst_dir + '/KiCad/share/kicad/library/eSim_Nghdl.lib'
else:
@@ -245,12 +245,14 @@ class AutoSchematic(QtWidgets.QWidget):
class PortInfo:
def __init__(self, model):
self.modelname = model.modelname
- self.model_loc = model.parser.get('NGSPICE', 'DIGITAL_MODEL')
+ self.model_loc = os.path.join(
+ model.parser.get('NGHDL', 'DIGITAL_MODEL'), 'ghdl'
+ )
self.bit_list = []
self.input_len = 0
def getPortInfo(self):
- info_loc = os.path.join(self.model_loc, self.modelname+'/DUTghdl/')
+ info_loc = os.path.join(self.model_loc, self.modelname + '/DUTghdl/')
input_list = []
output_list = []
read_file = open(info_loc + 'connection_info.txt', 'r')