Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
kazoo
Commits
ff27696b
Commit
ff27696b
authored
Nov 23, 2021
by
Maxime Perrotin
Browse files
Simu: Better interface to C code
parent
10ad52f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/concurrency_view/simulation-adb/block.tmplt
View file @
ff27696b
...
...
@@ -44,11 +44,13 @@ package body @_CAPITALIZE:Name_@_Events is
@
_CAPITALIZE
:
Name_
@
_PI
.@
_CAPITALIZE
:
List_Of_ASync_PIs_
@
(
Global_State
=>
Global_State
);
@@
END_IF
@@
@@
END_TABLE
@@
@@
IF
@@
@
_Language_
@
/=
Timer_Manager
@@
TABLE
@@
@@--
Do
the
timers
too
when
@
_CAPITALIZE
:
Timers_
@
_PRESENT
=>
@@--
Timer
expiration
for
blocks
except
for
the
timer
manager
block
itself
when
@
_CAPITALIZE
:
Timers_
@
_PRESENT
=>
--
Timer
expiration
@
_CAPITALIZE
:
Name_
@
_PI
.@
_CAPITALIZE
:
Timers_
@
(
Global_State
=>
Global_State
);
@@
END_TABLE
@@
@@
END_IF
@@
end
case
;
@@
END_IF
@@
@@
IF
@@
@
_List_Of_ASync_RIs
'Length_@ > 0
...
...
@@ -76,11 +78,12 @@ package body @_CAPITALIZE:Name_@_Events is
Put_Line
(
"()"
);
@@
END_IF
@@
@@
END_TABLE
@@
@@
IF
@@
@
_Language_
@
/=
Timer_Manager
@@
TABLE
@@
@@--
Do
the
timers
too
when
@
_CAPITALIZE
:
Timers_
@
_PRESENT
=>
when
@
_CAPITALIZE
:
Timers_
@
_PRESENT
=>
--
Timer
expiration
Put
(
"@_Name_@: TIMEOUT @_CAPITALIZE:Timers_@"
);
@@
END_TABLE
@@
@@
END_IF
@@
end
case
;
@@
END_IF
@@
@@
IF
@@
@
_List_Of_ASync_RIs
'Length_@ > 0
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment