diff options
author | Rahul Paknikar | 2019-06-25 09:40:43 +0530 |
---|---|---|
committer | GitHub | 2019-06-25 09:40:43 +0530 |
commit | 055431e4bee9a273bd5cff72b4f600033d0d09fb (patch) | |
tree | 9d4df3183f6f2004ebfba69013cdddc91b01c14a /src/createKicadLibrary.py | |
parent | b86bc3c6f6121e0cbbc7fa1f47813047088a6ee3 (diff) | |
download | nghdl-055431e4bee9a273bd5cff72b4f600033d0d09fb.tar.gz nghdl-055431e4bee9a273bd5cff72b4f600033d0d09fb.tar.bz2 nghdl-055431e4bee9a273bd5cff72b4f600033d0d09fb.zip |
Add files via upload
Diffstat (limited to 'src/createKicadLibrary.py')
-rw-r--r-- | src/createKicadLibrary.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/createKicadLibrary.py b/src/createKicadLibrary.py index bf520d1..d229066 100644 --- a/src/createKicadLibrary.py +++ b/src/createKicadLibrary.py @@ -21,11 +21,12 @@ class AutoSchematic(QtGui.QWidget): for root, dirs, files in os.walk(self.xml_loc): if (str(self.modelname) + '.xml') in files: xmlFound = root + print(xmlFound) if (xmlFound == None): self.getPortInformation() self.createXML() self.createLib() - elif (xmlFound == self.xml_loc + 'Nghdl'): + elif (xmlFound == self.xml_loc + '/Nghdl'): print 'Library already exists...' ret = QtGui.QMessageBox.critical(self, "Critical",'''<b>The Libraries of this model already exist.Do you want to overwrite it?</b><br/> <b>If yes press ok else cancel it and change the name of your vhdl file</b>''', QtGui.QMessageBox.Ok, QtGui.QMessageBox.Cancel) @@ -43,7 +44,7 @@ class AutoSchematic(QtGui.QWidget): ret = QtGui.QMessageBox.critical(self, "Error",'''<b>A standard library already exists in this name.</b><br/> <b>Please change the name of your vhdl file and upload it again</b>''', QtGui.QMessageBox.Ok) - quit() + # quit() def getPortInformation(self): portInformation = PortInfo(self) @@ -164,8 +165,14 @@ class AutoSchematic(QtGui.QWidget): output_port = output_port.split() inputs = self.portInfo[0: self.input_length] outputs = self.portInfo[self.input_length:] + + print "INPUTS AND OUTPUTS " + print inputs + print outputs + inputs = self.char_sum(inputs) outputs= self.char_sum(outputs) + total = inputs+outputs port_list = [] |