summaryrefslogtreecommitdiff
path: root/src/model_generation.py
diff options
context:
space:
mode:
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()
+