diff options
author | Ambikeshwar Srivastava | 2015-08-18 12:33:58 +0530 |
---|---|---|
committer | Ambikeshwar Srivastava | 2015-08-18 12:33:58 +0530 |
commit | faca8212697a03f5870b1746a9cdba7c169080c6 (patch) | |
tree | 9cf92ebf2f35e446b1cc439970e7d58a730f5c0e | |
parent | 97569bc07138ec4ae025a6d2a64017c8e8bc4bfd (diff) | |
parent | 8fbf1fc8ea70f0e960e0da26218a7bb83dbd4aa3 (diff) | |
download | nghdl-faca8212697a03f5870b1746a9cdba7c169080c6.tar.gz nghdl-faca8212697a03f5870b1746a9cdba7c169080c6.tar.bz2 nghdl-faca8212697a03f5870b1746a9cdba7c169080c6.zip |
Merge pull request #14 from ambikeshwar1991/master
changes in ngspice_ghdl.py for flexible client server port option
-rwxr-xr-x | src/model_generation.py | 2 | ||||
-rwxr-xr-x | src/ngspice_ghdl.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/model_generation.py b/src/model_generation.py index df9ba57..5531005 100755 --- a/src/model_generation.py +++ b/src/model_generation.py @@ -794,7 +794,7 @@ sock_pkg_create.write("\t\t\t\tsock_id := $1;\n") sock_pkg_create.write("\t\t\t\treturn sock_id;\n") sock_pkg_create.write("\t\t\tend function;\n") sock_pkg_create.write("\t\tend package body;\" > sock_pkg.vhdl") - +sock_pkg_create.close() diff --git a/src/ngspice_ghdl.py b/src/ngspice_ghdl.py index 905d7fc..311ec4d 100755 --- a/src/ngspice_ghdl.py +++ b/src/ngspice_ghdl.py @@ -172,6 +172,7 @@ class Mainwindow(QtGui.QWidget): os.mkdir(path+"/DUTghdl/") shutil.move("connection_info.txt",path+"/DUTghdl/") shutil.move("start_server.sh",path+"/DUTghdl/") + shutil.move("sock_pkg_create.sh",path+"/DUTghdl/") shutil.move(self.modelname+"_tb.vhdl",path+"/DUTghdl/") shutil.copy(str(self.filename),path+"/DUTghdl/") @@ -188,6 +189,7 @@ class Mainwindow(QtGui.QWidget): os.chdir(path+"/DUTghdl") subprocess.call("bash "+path+"/DUTghdl/compile.sh", shell=True) subprocess.call("chmod a+x start_server.sh",shell=True) + subprocess.call("chmod a+x sock_pkg_create.sh",shell=True) os.remove("compile.sh") os.remove("ghdlserver.c") #os.remove("ghdlserver.h") |