Skip to content

Commit

Permalink
fix for initialization of the clock variables
Browse files Browse the repository at this point in the history
  • Loading branch information
niklwors committed Mar 16, 2016
1 parent eeff847 commit 1a7228c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/Template/CodegenCpp.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9806,7 +9806,7 @@ case SIMCODE(modelInfo = MODELINFO(__)) then
case SUBPARTITION(subClock=SUBCLOCK(factor=RATIONAL(nom=fnom, denom=fres), shift=RATIONAL(nom=snom, denom=sres))) then
<<
<%preExp%>
_clockInterval[<%i%>] = <%intvl%> * <%fnom%>.0 / <%fres%>.0;
_clockInterval[<%i%>] =0.0/* <%intvl%> * <%fnom%>.0 / <%fres%>.0*/;
_clockShift[<%i%>] = 0.0;/*<%snom%>.0 / <%sres%>.0;*/
_clockTime[<%i%>] = _simTime; /*+ _clockShift[<%i%>] * _clockInterval[<%i%>];*/
<%i%> ++;
Expand Down

0 comments on commit 1a7228c

Please sign in to comment.