summaryrefslogtreecommitdiff
path: root/src/model_generation.py
diff options
context:
space:
mode:
authorambikeshwar2015-08-18 12:51:37 +0530
committerambikeshwar2015-08-18 12:51:37 +0530
commitfa3fc0f78b92744e621deac821ad4285086bb220 (patch)
tree73474d8f9fc0dee973e48c0cdfce001dd5a31272 /src/model_generation.py
parent03250e5ea349d03895f3a2d62085e557545d26f5 (diff)
downloadnghdl-fa3fc0f78b92744e621deac821ad4285086bb220.tar.gz
nghdl-fa3fc0f78b92744e621deac821ad4285086bb220.tar.bz2
nghdl-fa3fc0f78b92744e621deac821ad4285086bb220.zip
error resolved
Diffstat (limited to 'src/model_generation.py')
-rwxr-xr-xsrc/model_generation.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/model_generation.py b/src/model_generation.py
index ac598c6..ce4d2d8 100755
--- a/src/model_generation.py
+++ b/src/model_generation.py
@@ -769,7 +769,7 @@ start_server.write("#ghdl -a Utility_Package.vhdl &&\n")
start_server.write("#ghdl -a Vhpi_Package.vhdl &&\n")
start_server.write("cd "+home+"/ngspice-26/src/xspice/icm/ghdl/"+fname.split('.')[0]+"/DUTghdl/\n")
start_server.write("chmod 775 sock_pkg_create.sh &&\n")
-start_server.write("./sock_pkg_create.sh &&\n")
+start_server.write("./sock_pkg_create.sh $1 &&\n")
start_server.write("ghdl -a sock_pkg.vhdl &&\n")
start_server.write("ghdl -a "+fname+" &&\n")
start_server.write("ghdl -a "+fname.split('.')[0]+"_tb.vhdl &&\n")
@@ -789,6 +789,7 @@ sock_pkg_create.write("package sock_pkg is\n")
sock_pkg_create.write("\tfunction sock_pkg_fun return integer;\n")
sock_pkg_create.write("end;\n\n")
sock_pkg_create.write("\tpackage body sock_pkg is\n")
+sock_pkg_create.write("\tfunction sock_pkg_fun return integer is\n")
sock_pkg_create.write("\t\tvariable sock_id : integer;\n")
sock_pkg_create.write("\t\t\tbegin\n")
sock_pkg_create.write("\t\t\t\tsock_id := $1;\n")