diff options
author | Sumanto Kar | 2023-09-02 15:06:07 +0530 |
---|---|---|
committer | GitHub | 2023-09-02 15:06:07 +0530 |
commit | 7c92529d1576015d39a9fecfd85ae918baf3e62e (patch) | |
tree | cf7cb7dd966e48f432ee44134d39817f8bf81d60 /src/maker | |
parent | bd4cc2f8ab427ebfaf88b518dbe50a28880bb5b9 (diff) | |
parent | ddffb22e52db5e3ebc61262b1ae5e8a6d6e770df (diff) | |
download | eSim-7c92529d1576015d39a9fecfd85ae918baf3e62e.tar.gz eSim-7c92529d1576015d39a9fecfd85ae918baf3e62e.tar.bz2 eSim-7c92529d1576015d39a9fecfd85ae918baf3e62e.zip |
Merge branch 'master' into master
Diffstat (limited to 'src/maker')
-rwxr-xr-x | src/maker/ModelGeneration.py | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/maker/ModelGeneration.py b/src/maker/ModelGeneration.py index 2591b26b..7dce1de7 100755 --- a/src/maker/ModelGeneration.py +++ b/src/maker/ModelGeneration.py @@ -23,7 +23,7 @@ # Nalinkumar S., Madras Institue of Technology # ORGANIZATION: eSim Team at FOSSEE, IIT Bombay # CREATED: Monday 29, November 2021 -# REVISION: Tuesday 25, January 2022 +# REVISION: Tuesday 2nd, September 2023 # ========================================================================= @@ -717,6 +717,9 @@ and set the load for input ports */ foo_func = ''' int foo_''' + self.fname.split('.')[0] + '''(int init,int count) { + int argc=1; + char* argv[]={"fullverbose"}; + Verilated::commandArgs(argc, argv); static VerilatedContext* contextp = new VerilatedContext; static V''' + self.fname.split('.')[0] + "* " + \ self.fname.split('.')[0] + '''[1024]; @@ -849,9 +852,16 @@ and set the load for input ports */ 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.cmd = self.cmd + "verilator -Wall " + wno + " \ + # --cc --exe --no-MMD --Mdir . -CFLAGS -fPIC sim_main_" + \ + # self.fname.split('.')[0] + ".cpp " + self.fname + self.cmd = self.cmd + "verilator --stats -O3 -CFLAGS\ + -O3 -LDFLAGS \"-static\" --x-assign fast \ + --x-initial fast --noassert --bbox-sys -Wall " + wno + "\ + --cc --exe --no-MMD --Mdir . -CFLAGS\ + -fPIC -output-split 0 sim_main_" + \ + self.fname.split('.')[0] + ".cpp --autoflush \ + -DBSV_RESET_FIFO_HEAD -DBSV_RESET_FIFO_ARRAY " + self.fname self.process = QtCore.QProcess(self) self.process.readyReadStandardOutput.connect(self.readAllStandard) self.process.start('sh', ['-c', self.cmd]) |