diff options
author | athulappadan | 2017-04-24 09:56:38 +0530 |
---|---|---|
committer | athulappadan | 2017-04-24 09:56:38 +0530 |
commit | 2f85255b7f7ddc774b07fb13f38cc16bc6e6d5da (patch) | |
tree | 77b585b5d616a66395c19a13811a063cb3aabb17 /src/model_generation.py | |
parent | f7001d9f6c039846ca9fd99bda53e31b51c749bb (diff) | |
download | nghdl-2f85255b7f7ddc774b07fb13f38cc16bc6e6d5da.tar.gz nghdl-2f85255b7f7ddc774b07fb13f38cc16bc6e6d5da.tar.bz2 nghdl-2f85255b7f7ddc774b07fb13f38cc16bc6e6d5da.zip |
multiple output: plotting fixed
Diffstat (limited to 'src/model_generation.py')
-rw-r--r-- | src/model_generation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model_generation.py b/src/model_generation.py index 4f2d7dd..15dc3e6 100644 --- a/src/model_generation.py +++ b/src/model_generation.py @@ -215,10 +215,10 @@ init_else=''' /* retrieve storage for output ports. */ ''' -els_evt_count1=0 -els_evt_count2=0 els_evt_ptr=[] +els_evt_count1=[] for item in output_port: + els_evt_count2=0 els_evt_ptr.append("_op_"+item.split(":")[0]+" = cm_event_get_ptr("+str(els_evt_count1)+","+str(els_evt_count2)+");") els_evt_count2=els_evt_count2+1 els_evt_ptr.append("_op_"+item.split(":")[0]+"_old"+" = cm_event_get_ptr("+str(els_evt_count1)+","+str(els_evt_count2)+");") |