From 8fbf1fc8ea70f0e960e0da26218a7bb83dbd4aa3 Mon Sep 17 00:00:00 2001 From: ambikeshwar Date: Tue, 18 Aug 2015 12:32:57 +0530 Subject: changes in ngspice_ghdl.py for flexible client server port option --- src/model_generation.py | 2 +- src/ngspice_ghdl.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 6791cc1..3cab011 100755 --- a/src/ngspice_ghdl.py +++ b/src/ngspice_ghdl.py @@ -175,6 +175,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/") @@ -191,6 +192,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") -- cgit