Skip to content

Commit 547597b

Browse files
committed
Revise control structure
- Add feedback - Compiler CA applies to all comnponents - Hardware is not only interrupt source - Cosmetic improvements Signed-off-by: Paul Albertella <[email protected]>
1 parent db06be2 commit 547597b

File tree

2 files changed

+38
-27
lines changed

2 files changed

+38
-27
lines changed

stack-memory/control-structure.dot

Lines changed: 38 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,59 @@
11
digraph G {
2-
node [shape=box width=1.5 height=0.5 fontname=arial fontsize=18]
3-
graph [splines=ortho ranksep=0.8 nodesep=1]
2+
node [shape=box width=2 height=0.5 fontname=arial fontsize=18
3+
style=filled fillcolor=white]
4+
graph [splines=ortho ranksep=0.9 nodesep=1]
45
edge [fontname=arial fontsize=12]
5-
layout=dot; overlap=false; ordering=out;
6+
layout=dot; overlap=false; compound=true;
67

78
{rank=same
8-
Developer [width=3]
9+
Developer [width=3.5]
910
Architect [label="System architect"] }
1011

11-
Compiler [width=3.5]
12-
Build [label="System construction" width=6]
12+
Compiler [width=3]
13+
Build [label="System construction" width=5]
1314

14-
subgraph cluster_0 { style=dotted margin=15
15+
subgraph cluster_0 { style=dotted margin=15 bgcolor=lightgrey
1516
label=<<i>System</i>> labelloc=b
1617
fontname="arial" fontsize=18
17-
Manager [label="System/Service Manager" width=4]
18+
Manager [label="System/Service Manager" width=5]
1819
{ rank=same
1920
Application [label="Safety application"]
2021
Other [label="Other process"] }
2122
ASub [label="Application subroutine"]
22-
TSub [label="Subroutine"]
23-
{ rank=same
24-
Hardware
25-
Kernel [width=4] }
23+
TSub [label="Other subroutine"]
24+
Interrupt [label="Interrupt source"]
25+
Kernel [width=6]
2626
KSub [label="Kernel subroutine"]
2727
}
2828

29-
Developer -> Build [taillabel="\rBuild \rapplication \r" weight=2]
30-
Developer -> Compiler [dir=back style=dashed taillabel="\rErrors, \rWarnings \r"]
31-
Architect -> Build [taillabel="\rSpecify \rsystem \r"]
32-
Build -> Manager [taillabel="\rConfigure process \rlaunch parameters \r"]
33-
Build-> Kernel [taillabel="\rConfigure default \rstack params \r"]
34-
Build -> Compiler [taillabel="\rCompile \rapplication \r" weight=3]
35-
Compiler -> Application [taillabel="\rImplement stack \rmemory operations \r"]
36-
Compiler -> Manager [style=invis]
29+
Developer -> Build [taillabel="\rBuild system \rBuild component \r" weight=2]
30+
Developer -> Compiler [dir=back style=dashed headlabel="\r(Errors, \lwarnings) \r\r"]
31+
Architect -> Build [taillabel="\rSpecify default stack params \rSpecify launch params \r"]
32+
33+
Build -> Manager [taillabel="\rConfigure \llaunch params \r"]
34+
Build-> Kernel [taillabel="\rConfigure \ldefault \lstack params \l"]
35+
Build -> Compiler [taillabel="\rCompile \lcomponent \r" weight=3]
36+
37+
Compiler -> Manager [lhead=cluster_0 taillabel="\rImplement stack \lmemory operations \r"]
38+
3739
Manager -> Application [taillabel="\rStart \r" weight=4]
3840
Manager -> Other [taillabel="\rStart \r"]
39-
Manager -> Kernel [taillabel="\rLaunch \rprocess \r"]
40-
Application -> ASub [taillabel="\r(Call) \r"]
41+
Manager -> Kernel [taillabel="\r(Syscalls) \r"]
42+
Manager -> Kernel [dir=back style=dashed]
43+
44+
Application -> ASub [taillabel="\r(Calls) \r"]
45+
Application -> ASub [dir=back style=dashed]
46+
47+
ASub -> Kernel [taillabel="\r(Syscalls) \r"]
48+
ASub -> Kernel [dir=back style=dashed]
49+
50+
Other -> TSub [taillabel="\r(Calls) \r"]
51+
Other -> TSub [dir=back style=dashed]
52+
53+
TSub -> Kernel [taillabel="\r(Syscalls) \r"]
54+
TSub -> Kernel [dir=back style=dashed]
4155

42-
ASub -> Kernel [taillabel="\r(System call) \r"]
43-
Other -> TSub [taillabel="\r(Call) \r"]
44-
TSub -> Kernel [taillabel="\r(System call) \r"]
45-
Kernel -> KSub [taillabel="\r(Call) \r"]
56+
Kernel -> KSub [taillabel="\r(Calls) \r"]
4657
Kernel -> KSub [dir=back style=dashed]
47-
Hardware -> Kernel[taillabel="\n (IRQ)\n" ]
58+
Kernel-> Interrupt[dir=back style=dashed headlabel="\r(IRQ) \r\r" ]
4859
}
7.3 KB
Loading

0 commit comments

Comments
 (0)