summaryrefslogtreecommitdiff
path: root/src/model_generation.py
diff options
context:
space:
mode:
authorambikeshwar2015-08-19 09:46:39 +0530
committerambikeshwar2015-08-19 09:46:39 +0530
commit8f4b21cc15ffb590449131f1e31dc57a66e2f888 (patch)
tree60ec5c6740357a949806cba83779f6594cac0ad3 /src/model_generation.py
parente0f0237b9f960f4b581cab36359209d780fedfae (diff)
downloadnghdl-8f4b21cc15ffb590449131f1e31dc57a66e2f888.tar.gz
nghdl-8f4b21cc15ffb590449131f1e31dc57a66e2f888.tar.bz2
nghdl-8f4b21cc15ffb590449131f1e31dc57a66e2f888.zip
error resolved
Diffstat (limited to 'src/model_generation.py')
-rw-r--r--[-rwxr-xr-x]src/model_generation.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/model_generation.py b/src/model_generation.py
index dc05b73..c520708 100755..100644
--- a/src/model_generation.py
+++ b/src/model_generation.py
@@ -781,21 +781,22 @@ start_server.close()
##################################### Creating and writing in sock_pkg_create.sh ########################################
sock_pkg_create = open('sock_pkg_create.sh','w')
-sock_pkg_create.write("#!/bin/sh")
-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("#!/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("echo \"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 function sock_pkg_fun return integer is")
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")
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()
+