Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions artifacts/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1153,4 +1153,19 @@ artifacts:
status: planned
tags: [migration, track-e, v080, audit]

- id: REQ-NETWORK-004
type: requirement
title: Typed network graph extraction from a SystemInstance
description: >
System shall extract a typed network graph (nodes + links) from
a SystemInstance for downstream WCTT analysis. Nodes classify as
switches (bus components carrying Spar_Network::Switch_Type) or
end stations (devices/processors connected to a switched bus);
links carry the per-hop bandwidth, forwarding-latency range, and
queue-depth annotations from Spar_Network::*. The graph is the
bridge between the AADL ItemTree and the Network Calculus
primitives that follow in subsequent Track D commits.
status: planned
tags: [network, wctt, v080]

# Research findings tracked separately in research/findings.yaml
31 changes: 31 additions & 0 deletions artifacts/verification.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1445,3 +1445,34 @@ artifacts:
target: REQ-MIGRATION-001
- type: satisfies
target: REQ-MIGRATION-002

- id: TEST-SPAR-NETWORK-GRAPH
type: feature
title: Network graph extraction tests
description: >
Integration tests in crates/spar-network/tests/extract_tests.rs
that drive small inline AADL fixtures through the spar-hir-def
pipeline and call extract_network_graph on the resulting
SystemInstance. Coverage includes a simple FIFO topology
(switch + two end stations), a Priority switch classification,
a TSN switch (classified but otherwise opaque per Phase 1), an
unannotated bus that must be skipped, and a Forwarding_Latency
range that must lower to a (BCET, WCET) tuple in picoseconds.
Backed by unit tests in spar-network's types and extract modules
that exercise the SwitchType enum parsing and the typed-first /
string-fallback property accessors.
fields:
method: automated-test
steps:
- run: cargo test -p spar-network
status: passing
tags: [v0.8.0, network, wctt, tsn, extract]
links:
- type: satisfies
target: REQ-NETWORK-001
- type: satisfies
target: REQ-NETWORK-002
- type: satisfies
target: REQ-NETWORK-003
- type: satisfies
target: REQ-NETWORK-004
2 changes: 2 additions & 0 deletions crates/spar-network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ repository.workspace = true
description = "Network Calculus primitives for AADL WCTT analysis (TSN/Ethernet, Track D)"

[dependencies]
spar-hir-def.workspace = true

[dev-dependencies]
spar-base-db.workspace = true
Loading
Loading