summaryrefslogtreecommitdiff
path: root/src/model_generation.py
diff options
context:
space:
mode:
authorambikeshwar2015-08-13 13:21:20 +0530
committerambikeshwar2015-08-13 13:21:20 +0530
commit8e9305f8c9ac26ef004743ba68654b31e74ed2d7 (patch)
tree66fef7742eae5ca89ac3c80ce91f9e653523859d /src/model_generation.py
parent4e86b4d23080b2f6b3ff6b7a8d0de7259b0b515d (diff)
downloadnghdl-8e9305f8c9ac26ef004743ba68654b31e74ed2d7.tar.gz
nghdl-8e9305f8c9ac26ef004743ba68654b31e74ed2d7.tar.bz2
nghdl-8e9305f8c9ac26ef004743ba68654b31e74ed2d7.zip
added sock_port variable with instance id
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 c5350c0..4e377d1 100755
--- a/src/model_generation.py
+++ b/src/model_generation.py
@@ -170,7 +170,8 @@ var_section='''
char *key_iter;
struct hostent *host;
struct sockaddr_in server_addr;
- double time_limit = PARAM(stop_time);
+ double time_limit = PARAM(stop_time);
+ int sock_port = 5000+PARAM(instance_id);
'''
temp_input_var=[]
for item in input_port: