summaryrefslogtreecommitdiff
path: root/src/maker/NgVeri.py
diff options
context:
space:
mode:
authorRahul P2023-06-13 18:24:33 +0530
committerGitHub2023-06-13 18:24:33 +0530
commit4a276b252d84a0b7dd24588e56dc7e214ea2d7c6 (patch)
treee9cf9d33ed2c137f3ac463c7b272e27fe23be75d /src/maker/NgVeri.py
parent9a5f3dabc357277b384c51ccf047f5580772f454 (diff)
parent3436aa4615dcc1310db8dc8a85f36418db641fb4 (diff)
downloadeSim-4a276b252d84a0b7dd24588e56dc7e214ea2d7c6.tar.gz
eSim-4a276b252d84a0b7dd24588e56dc7e214ea2d7c6.tar.bz2
eSim-4a276b252d84a0b7dd24588e56dc7e214ea2d7c6.zip
Merge pull request #251 from FOSSEE/sky130-dev
Merge Sky130 PDK development
Diffstat (limited to 'src/maker/NgVeri.py')
-rwxr-xr-xsrc/maker/NgVeri.py46
1 files changed, 27 insertions, 19 deletions
diff --git a/src/maker/NgVeri.py b/src/maker/NgVeri.py
index 4a221964..c5756e7d 100755
--- a/src/maker/NgVeri.py
+++ b/src/maker/NgVeri.py
@@ -37,10 +37,10 @@ from configuration.Appconfig import Appconfig
from configparser import ConfigParser
-# beginning class NgVeri. This class create the NgVeri Tab
class NgVeri(QtWidgets.QWidget):
-
- # initialising the variables
+ '''
+ This class create the NgVeri Tab
+ '''
def __init__(self, filecount):
QtWidgets.QWidget.__init__(self)
# Maker.addverilog(self)
@@ -67,10 +67,10 @@ class NgVeri(QtWidgets.QWidget):
self.fname = ""
self.filecount = filecount
- # Creating the various components of the Widget(Ngveri Tab)
-
def createNgveriWidget(self):
-
+ '''
+ Creating the various components of the Widget(Ngveri Tab)
+ '''
self.grid = QtWidgets.QGridLayout()
self.setLayout(self.grid)
@@ -79,8 +79,10 @@ class NgVeri(QtWidgets.QWidget):
self.show()
- # Adding the verilog file in Maker tab to Ngveri Tab automatically
def addverilog(self):
+ '''
+ Adding the verilog file in Maker tab to Ngveri Tab automatically
+ '''
# b=Maker.Maker(self)
print(Maker.verilogFile)
if Maker.verilogFile[self.filecount] == "":
@@ -194,9 +196,11 @@ class NgVeri(QtWidgets.QWidget):
# model.verilogfile()
model.addfile()
- # This function is used to add additional folder required by the verilog
- # top module
def addfolder(self):
+ '''
+ This function is used to add additional folder required
+ by the verilog top module.
+ '''
if len(Maker.verilogFile) < (self.filecount + 1):
reply = QtWidgets.QMessageBox.critical(
None,
@@ -214,14 +218,16 @@ class NgVeri(QtWidgets.QWidget):
# model.verilogfile()
model.addfolder()
- # This function is used to clear the terminal
-
def clearTerminal(self):
+ '''
+ This function is used to clear the terminal
+ '''
self.entry_var[0].setText("")
- # This function is used to create buttons/options
def createoptionsBox(self):
-
+ '''
+ This function is used to create buttons/options
+ '''
self.optionsbox = QtWidgets.QGroupBox()
self.optionsbox.setTitle("Select Options")
self.optionsgrid = QtWidgets.QGridLayout()
@@ -263,9 +269,11 @@ class NgVeri(QtWidgets.QWidget):
return self.optionsbox
- # This function is used to remove models in modlst of Ngspice folder if
- # the user wants to remove a model. Note: files do not get removed
def edit_modlst(self, text):
+ '''
+ This is used to remove models in modlst of Ngspice folder if
+ the user wants to remove a model. Note: files do not get removed.
+ '''
if text == "Remove Verilog Models":
return
index = self.entry_var[1].findText(text)
@@ -357,11 +365,11 @@ class NgVeri(QtWidgets.QWidget):
file.close()
self.entry_var[3].setText("")
- # creating various other groups like terminal, remove modlst, remove lint_off
- # and add lint_off
-
def creategroup(self):
-
+ '''
+ Creates various other groups like terminal, remove modlst,
+ remove lint_off and add lint_off
+ '''
self.trbox = QtWidgets.QGroupBox()
self.trbox.setTitle("Terminal")
# self.trbox.setDisabled(True)