Skip to content

Commit

Permalink
Merge pull request #469 from mosa11aei/test/fpp-to-json/patternedConn…
Browse files Browse the repository at this point in the history
…ections

fpp-to-json Patterned Connection Graph test case
  • Loading branch information
bocchino authored Jul 18, 2024
2 parents 56d8f6b + 0c96730 commit 26bfc10
Show file tree
Hide file tree
Showing 6 changed files with 6,361 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,54 @@
"name":"fpp.compiler.codegen.AnalysisJsonEncoder$$anon$134",
"fields":[{"name":"0bitmap$166"}]
},
{
"name":"fpp.compiler.codegen.AnalysisJsonEncoder$$anon$1340",
"fields":[{"name":"0bitmap$1248"}]
},
{
"name":"fpp.compiler.codegen.AnalysisJsonEncoder$$anon$1341",
"fields":[{"name":"0bitmap$1238"}]
},
{
"name":"fpp.compiler.codegen.AnalysisJsonEncoder$$anon$135",
"fields":[{"name":"0bitmap$152"}]
},
{
"name":"fpp.compiler.codegen.AnalysisJsonEncoder$$anon$1356",
"fields":[{"name":"0bitmap$1247"}]
},
{
"name":"fpp.compiler.codegen.AnalysisJsonEncoder$$anon$1357",
"fields":[{"name":"0bitmap$1246"}]
},
{
"name":"fpp.compiler.codegen.AnalysisJsonEncoder$$anon$1358",
"fields":[{"name":"0bitmap$1239"}]
},
{
"name":"fpp.compiler.codegen.AnalysisJsonEncoder$$anon$1359",
"fields":[{"name":"0bitmap$1240"}]
},
{
"name":"fpp.compiler.codegen.AnalysisJsonEncoder$$anon$1360",
"fields":[{"name":"0bitmap$1241"}]
},
{
"name":"fpp.compiler.codegen.AnalysisJsonEncoder$$anon$1361",
"fields":[{"name":"0bitmap$1242"}]
},
{
"name":"fpp.compiler.codegen.AnalysisJsonEncoder$$anon$1362",
"fields":[{"name":"0bitmap$1243"}]
},
{
"name":"fpp.compiler.codegen.AnalysisJsonEncoder$$anon$1363",
"fields":[{"name":"0bitmap$1244"}]
},
{
"name":"fpp.compiler.codegen.AnalysisJsonEncoder$$anon$1364",
"fields":[{"name":"0bitmap$1245"}]
},
{
"name":"fpp.compiler.codegen.AnalysisJsonEncoder$$anon$1368",
"fields":[{"name":"0bitmap$1252"}]
Expand Down
18 changes: 18 additions & 0 deletions compiler/tools/fpp-to-json/test/fprime/defs.fpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Placeholders for definitions provided by F Prime

module Fw {
port Cmd
port CmdReg
port CmdResponse
port Log
port LogText
port PrmGet
port PrmSet
port Time
port Tlm
port TlmGet
}

module Svc {
port Ping
}
58 changes: 58 additions & 0 deletions compiler/tools/fpp-to-json/test/patternedConnections.fpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
passive component Time {
sync input port timeGetPort: Fw.Time
}

passive component Command {
sync input port cmdIn: Fw.Cmd
sync input port cmdRegOut: Fw.CmdReg
sync input port cmdResponseOut: Fw.CmdResponse
output port cmdSend: Fw.Cmd
}

passive component Event {
sync input port eventLog: Fw.Log
}

passive component Health {
output port PingSend: Svc.Ping
sync input port PingReturn: Svc.Ping
}

passive component Param {
sync input port paramGet: Fw.PrmGet
sync input port paramSet: Fw.PrmSet
}

passive component Telemetry {
sync input port tlm: Fw.Tlm
}

passive component TextEvent {
sync input port textEventLog: Fw.LogText
}

instance c1: Time base id 0x100
instance c2: Command base id 0x200
instance c3: Event base id 0x300
instance c4: Health base id 0x400
instance c5: Param base id 0x500
instance c6: Telemetry base id 0x600
instance c7: TextEvent base id 0x700

topology T {
instance c1
instance c2
instance c3
instance c4
instance c5
instance c6
instance c7

time connections instance c1
command connections instance c2
event connections instance c3
health connections instance c4
param connections instance c5
telemetry connections instance c6
text event connections instance c7
}
Loading

0 comments on commit 26bfc10

Please sign in to comment.