|
1 | 1 | module ComFprime { |
2 | 2 |
|
3 | | -# Usage Note: |
4 | | -# |
5 | | -# When importing this subtopology, users shall establish 5 port connections with a component implementing |
6 | | -# the Svc.Com (Svc/Interfaces/Com.fpp) interface. They are as follows: |
7 | | -# |
8 | | -# 1) Outputs: |
9 | | -# - ComFprime.framer.dataOut -> [Svc.Com].dataIn |
10 | | -# - ComFprime.frameAccumulator.dataReturnOut -> [Svc.Com].dataReturnIn |
11 | | -# 2) Inputs: |
12 | | -# - [Svc.Com].dataReturnOut -> ComFprime.framer.dataReturnIn |
13 | | -# - [Svc.Com].comStatusOut -> ComFprime.framer.comStatusIn |
14 | | -# - [Svc.Com].dataOut -> ComFprime.frameAccumulator.dataIn |
15 | | - |
16 | 3 | enum Ports_ComPacketQueue { |
17 | 4 | EVENTS, |
18 | 5 | TELEMETRY, |
@@ -105,7 +92,22 @@ module ComFprime { |
105 | 92 |
|
106 | 93 | instance fprimeRouter: Svc.FprimeRouter base id ComFprimeConfig.BASE_ID + 0x05000 |
107 | 94 |
|
108 | | - topology Subtopology { |
| 95 | + instance comStub: Svc.ComStub base id ComFprimeConfig.BASE_ID + 0x06000 |
| 96 | + |
| 97 | + topology FramingSubtopology { |
| 98 | + # Usage Note: |
| 99 | + # |
| 100 | + # When importing this subtopology, users shall establish 5 port connections with a component implementing |
| 101 | + # the Svc.Com (Svc/Interfaces/Com.fpp) interface. They are as follows: |
| 102 | + # |
| 103 | + # 1) Outputs: |
| 104 | + # - ComFprime.framer.dataOut -> [Svc.Com].dataIn |
| 105 | + # - ComFprime.frameAccumulator.dataReturnOut -> [Svc.Com].dataReturnIn |
| 106 | + # 2) Inputs: |
| 107 | + # - [Svc.Com].dataReturnOut -> ComFprime.framer.dataReturnIn |
| 108 | + # - [Svc.Com].comStatusOut -> ComFprime.framer.comStatusIn |
| 109 | + # - [Svc.Com].dataOut -> ComFprime.frameAccumulator.dataIn |
| 110 | + |
109 | 111 | # Active Components |
110 | 112 | instance comQueue |
111 | 113 |
|
@@ -145,5 +147,24 @@ module ComFprime { |
145 | 147 | } |
146 | 148 |
|
147 | 149 |
|
148 | | - } # end topology |
| 150 | + } # end FramingSubtopology |
| 151 | + |
| 152 | + # This subtopology uses FramingSubtopology with a ComStub component for Com Interface |
| 153 | + topology Subtopology { |
| 154 | + import FramingSubtopology |
| 155 | + |
| 156 | + instance comStub |
| 157 | + |
| 158 | + connections ComStub { |
| 159 | + # Framer <-> ComStub (Downlink) |
| 160 | + ComFprime.framer.dataOut -> comStub.dataIn |
| 161 | + comStub.dataReturnOut -> ComFprime.framer.dataReturnIn |
| 162 | + comStub.comStatusOut -> ComFprime.framer.comStatusIn |
| 163 | + |
| 164 | + # ComStub <-> FrameAccumulator (Uplink) |
| 165 | + comStub.dataOut -> ComFprime.frameAccumulator.dataIn |
| 166 | + ComFprime.frameAccumulator.dataReturnOut -> comStub.dataReturnIn |
| 167 | + } |
| 168 | + |
| 169 | + } # end Subtopology |
149 | 170 | } # end ComFprime Subtopology |
0 commit comments