summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahul P2022-02-08 18:56:59 +0530
committerGitHub2022-02-08 18:56:59 +0530
commit90029afc1ce4452cd343b1f78931157f5958704b (patch)
treec80c91a3834df5c3707f108ddda4271744de6eeb
parent536407d5e932bc3ba94b0286d1ee659205088520 (diff)
parent62824b56e5f299064346c6422cfbf684e6687c54 (diff)
downloadeSim-90029afc1ce4452cd343b1f78931157f5958704b.tar.gz
eSim-90029afc1ce4452cd343b1f78931157f5958704b.tar.bz2
eSim-90029afc1ce4452cd343b1f78931157f5958704b.zip
Merge pull request #184 from rohinthram/master
Report status on compiling verilog model
-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