summaryrefslogtreecommitdiff
path: root/src/maker/ModelGeneration.py
diff options
context:
space:
mode:
authorrahulp132022-02-22 01:09:58 +0530
committerrahulp132022-02-22 01:09:58 +0530
commit5f60ee2aa4f865a9ea005d69d30e51e771050d66 (patch)
treeddfddababe3750351d357fb89a9803943750402b /src/maker/ModelGeneration.py
parent1b42df112e9d13afd092d9f415e7e446a2102e85 (diff)
downloadeSim-5f60ee2aa4f865a9ea005d69d30e51e771050d66.tar.gz
eSim-5f60ee2aa4f865a9ea005d69d30e51e771050d66.tar.bz2
eSim-5f60ee2aa4f865a9ea005d69d30e51e771050d66.zip
Updated Verilator and Sandpiper-SaaS commands to work on Windows OS
Diffstat (limited to 'src/maker/ModelGeneration.py')
-rwxr-xr-xsrc/maker/ModelGeneration.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/maker/ModelGeneration.py b/src/maker/ModelGeneration.py
index 0f0f5c58..a87a04e1 100755
--- a/src/maker/ModelGeneration.py
+++ b/src/maker/ModelGeneration.py
@@ -137,8 +137,9 @@ class ModelGeneration(QtWidgets.QWidget):
self.cmd = "sandpiper-saas -i " + \
self.fname.split('.')[0] + ".tlv -o "\
+ self.fname.split('.')[0] + ".sv"
- self.args = ['-c', self.cmd]
- self.process.start('sh', self.args)
+ # self.args = ['-c', self.cmd]
+ # self.process.start('sh', self.args)
+ self.process.start(self.cmd)
self.termtitle("RUN SANDPIPER-SAAS")
self.termtext("Current Directory: " + self.modelpath)
self.termtext("Command: " + self.cmd)
@@ -814,8 +815,14 @@ and set the load for input ports */
self.release_home = self.parser.get('NGHDL', 'RELEASE')
# print(self.modelpath)
- self.cmd = "verilator -Wall " + wno + "\
- --cc --exe --no-MMD --Mdir . -CFLAGS -fPIC sim_main_" + \
+ if os.name == 'nt':
+ self.msys_home = self.parser.get('COMPILER', 'MSYS_HOME')
+ self.cmd = "export VERILATOR_ROOT=" + self.msys_home + "/mingw64; "
+ else:
+ self.cmd = ''
+
+ self.cmd = self.cmd + "verilator -Wall " + wno + " \
+ --cc --exe --no-MMD --Mdir . -CFLAGS -fPIC sim_main_" + \
self.fname.split('.')[0] + ".cpp " + self.fname
self.process = QtCore.QProcess(self)
self.process.readyReadStandardOutput.connect(self.readAllStandard)