summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/maker/NgVeri.py39
1 files changed, 27 insertions, 12 deletions
diff --git a/src/maker/NgVeri.py b/src/maker/NgVeri.py
index c67ab45c..d26c9338 100755
--- a/src/maker/NgVeri.py
+++ b/src/maker/NgVeri.py
@@ -103,7 +103,7 @@ class NgVeri(QtWidgets.QWidget):
self.entry_var[1].addItem(file)
model.verilogfile()
error = model.verilogParse()
- if error is not "Error":
+ if error != "Error":
model.getPortInfo()
model.cfuncmod()
model.ifspecwrite()
@@ -115,6 +115,21 @@ class NgVeri(QtWidgets.QWidget):
model.copy_verilator()
model.runMake()
model.runMakeInstall()
+ txt = self.entry_var[0].toPlainText()
+ if "error" not in txt.lower():
+ self.entry_var[0].append('''
+ <p style=\"font-size:20pt; font-weight:1000; color:#00FF00;\" >
+ Model Created Successfully !
+ </p>
+ ''')
+ else:
+ self.entry_var[0].append('''
+ <p style=\"font-size:20pt; font-weight:1000; color:#FF0000;\" >
+ There was an error during model creation,
+ <br/>
+ Please rectify the error and try again !
+ </p>
+ ''')
# This function is used to add additional files required by the verilog
# top module
@@ -176,29 +191,29 @@ class NgVeri(QtWidgets.QWidget):
self.optionsgroupbtn.addButton(self.addverilogbutton)
self.addverilogbutton.clicked.connect(self.addverilog)
self.optionsgrid.addWidget(self.addverilogbutton, 0, 1)
- self.optionsbox.setLayout(self.optionsgrid)
- self.grid.addWidget(self.creategroup(), 1, 0, 5, 0)
+ # self.optionsbox.setLayout(self.optionsgrid)
+ # self.grid.addWidget(self.creategroup(), 1, 0, 5, 0)
self.addfilebutton = QtWidgets.QPushButton("Add Other file")
self.optionsgroupbtn.addButton(self.addfilebutton)
self.addfilebutton.clicked.connect(self.addfile)
self.optionsgrid.addWidget(self.addfilebutton, 0, 2)
- self.optionsbox.setLayout(self.optionsgrid)
- self.grid.addWidget(self.creategroup(), 1, 0, 5, 0)
+ # self.optionsbox.setLayout(self.optionsgrid)
+ # self.grid.addWidget(self.creategroup(), 1, 0, 5, 0)
self.addfolderbutton = QtWidgets.QPushButton("Add Folder")
self.optionsgroupbtn.addButton(self.addfolderbutton)
self.addfolderbutton.clicked.connect(self.addfolder)
self.optionsgrid.addWidget(self.addfolderbutton, 0, 3)
- self.optionsbox.setLayout(self.optionsgrid)
- self.grid.addWidget(self.creategroup(), 1, 0, 5, 0)
+ # self.optionsbox.setLayout(self.optionsgrid)
+ # self.grid.addWidget(self.creategroup(), 1, 0, 5, 0)
self.clearTerminalBtn = QtWidgets.QPushButton("Clear Terminal")
self.optionsgroupbtn.addButton(self.clearTerminalBtn)
self.clearTerminalBtn.clicked.connect(self.clearTerminal)
self.optionsgrid.addWidget(self.clearTerminalBtn, 0, 4)
self.optionsbox.setLayout(self.optionsgrid)
- self.grid.addWidget(self.creategroup(), 1, 0, 5, 0)
+ # self.grid.addWidget(self.creategroup(), 1, 0, 5, 0)
return self.optionsbox
@@ -231,8 +246,8 @@ class NgVeri(QtWidgets.QWidget):
model.runMakeInstall()
return
- else:
- return
+ # else:
+ # return
# This is to remove lint_off comments needed by the verilator warnings
# This function writes to the lint_off.txt here in the same folder
@@ -260,8 +275,8 @@ class NgVeri(QtWidgets.QWidget):
file.write(item)
return
- else:
- return
+ # else:
+ # return
# This is to add lint_off comments needed by the verilator warnings
# This function writes to the lint_off.txt here in the same folder