summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmbikeshwar Srivastava2015-08-18 12:52:59 +0530
committerAmbikeshwar Srivastava2015-08-18 12:52:59 +0530
commit9e2dff71bd92a95e3dc540e7c1cba5db540906ce (patch)
tree1d7527a9289947cdbcbee6528e017008500312b4
parentfaca8212697a03f5870b1746a9cdba7c169080c6 (diff)
parentfa3fc0f78b92744e621deac821ad4285086bb220 (diff)
downloadnghdl-9e2dff71bd92a95e3dc540e7c1cba5db540906ce.tar.gz
nghdl-9e2dff71bd92a95e3dc540e7c1cba5db540906ce.tar.bz2
nghdl-9e2dff71bd92a95e3dc540e7c1cba5db540906ce.zip
Merge pull request #15 from ambikeshwar1991/master
error resolved
-rwxr-xr-xsrc/model_generation.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/model_generation.py b/src/model_generation.py
index 5531005..ce4d2d8 100755
--- a/src/model_generation.py
+++ b/src/model_generation.py
@@ -768,7 +768,8 @@ start_server.write("#gcc -c ghdlserver.c\n")
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("./sock_pkg_create.sh &&\n")
+start_server.write("chmod 775 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")
@@ -782,12 +783,13 @@ start_server.close()
sock_pkg_create = open('sock_pkg_create.sh','w')
sock_pkg_create.write("echo \"#!/bin/bash\n\n")
-sock_pkg_create.write("###This file create sock_pkg_create.vhdl file and set the instance id from parameter based on parameter\n\n")
+sock_pkg_create.write("---This file create sock_pkg_create.vhdl file and set the instance id from parameter based on parameter\n\n")
sock_pkg_create.write("library ieee;\n")
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")