OpenSPP¶
OpenSPP is an open implementation of the CCSDS Space Packet Protocol (CCSDS 133.0-B-2) that is based on the Open
Logic VHDL Library. It provides the Packet Service and the Octet String Service on a configurable number of user
ports, assembles Space Packets with a Packet Sequence Count per APID, multiplexes them onto one link, and at the
receiving end validates every packet, routes it by its APID to a user port and indicates lost packets. The SpaceWire
CCSDS Packet Transfer Protocol (ECSS-E-ST-50-53C) is the transfer layer for SpaceWire and SpaceFibre networks; a generic
removes it for other subnetworks. All streams are AXI4-Stream ports of 8 to 128 bits, the managed parameters and the
APID tables are in a register file behind an AXI4-Lite port, and all buffers and tables use the fault-tolerant entities
of Open Logic (SECDED ECC, scrubbing). The packetizer spp_packetizer in
front of a send port cuts data units of any length, for example compressed images, into Space Packets whose Sequence
Flags mark the segments, with an optional Packet Secondary Header and an optional CRC.
Status¶
Technology readiness level: TRL 3 (fully verified by simulation). The core has not been tested on hardware yet and has no flight heritage; see what the levels mean and the next steps in the roadmap.
The core is complete and verified in simulation (GHDL and QuestaSim, 93 test cases at unit and core level in 668 test
runs over every stream width, port, destination and address count, branch and condition coverage closed, the remaining
misses justified in docs/coverage.md); the compliance matrix traces every
clause of CCSDS 133.0-B-2 and ECSS-E-ST-50-53C in scope to its requirements and test cases. Two cores exchange both
services through link models in both directions, also through the N-Char adapter, at one beat per clock cycle; injected
link faults, malformed packets and double bit errors are detected and reported with their reason. The data path reset
DpRst restarts a core while its link stays in operation: a packet on the link ends with an EEP. The
user guide contains the conformance statement with the PICS proforma of CCSDS 133.0-B-2 Annex A.
The packetizer is verified in the same way (13 test cases in 24 configurations, the bounds of its generics and an
integration test with the core).
Synthesis results on a target device and a hardware test as part of a reference system of the family are open; see
docs/roadmap.md.
Documentation¶
The documents are also published as a website: openspacehdl.org/openspp (built
from this repository by tools/docs/).
| Document | Content |
|---|---|
| docs/architecture.md | Architecture: building blocks, owned clauses, Open Logic usage, verification, traceability matrix |
| docs/user_guide.md | Integration: sources, generics, interfaces, programming sequence, integration constraints, conformance statement |
| docs/conventions.md | Coding, verification and repository conventions |
| docs/roadmap.md | Technology readiness, module status and open items |
| docs/compliance.md | Compliance matrix: requirements and test cases of every clause (generated) |
| docs/coverage.md | Code coverage of the regression with QuestaSim |
| hdl/spp_mib/docs/register_map.md | Register map (generated; C header sw/spp_regs.h) |
hdl/<module>/docs/ |
Specification, architecture, verification plan and verification report of each module |
Repository structure¶
openspp/
|-- docs/ Top-level documentation
|-- hdl/<module>/ One folder per module: src/, tb/, docs/
|-- tb/ Verification components shared by the testbenches (SPP and CPTP model, stream models)
|-- lint/ VSG configuration (Open Logic rules), synthesizability check
|-- tools/ Compliance matrix and register map generators
| `-- docs/ Documentation website (MkDocs)
|-- sw/ C header of the register map (generated)
|-- open-logic/ Git submodule: Open Logic (fault-tolerant entities branch)
|-- uvvm/ Git submodule: UVVM verification framework
|-- compile_order.txt Synthesis sources in compile order (generated by run.py)
|-- component_list.txt Modules in dependency order
`-- run.py VUnit regression runner
Running the tests¶
Prerequisites: Python 3, GHDL on the PATH and the Python packages of
requirements.txt.
git submodule update --init
python -m pip install -r requirements.txt
python run.py -p 4 # full regression with GHDL, 4 parallel simulations
python run.py "*spp_send*" # one module
python run.py --questa <test> # QuestaSim
run.py compiles Open Logic into the VHDL library olo, the required UVVM components into their own libraries and
all OpenSPP sources into the library openspp. --questa takes QuestaSim from VUNIT_MODELSIM_PATH (the directory
of vsim) or from vsim on the PATH. SPP_GHDL_SIM_FLAGS passes extra flags to the GHDL simulation, for example
--vcd=wave.vcd for a waveform.
Checks besides the regression:
python lint/lint.py # VSG, no errors and no warnings
python lint/synth_check.py # synthesizability of five core configurations with GHDL
python tools/compliance.py --check # every clause and requirement traced to a test case
python tools/regmap.py --check # generated register map files match hdl/spp_mib/regs/spp_regs.yml
python run.py --compile-order # compile_order.txt; the CI fails when the file changes
python -m mkdocs build -f tools/docs/mkdocs.yml # documentation website, fails on broken links
Licence¶
OpenSPP is licensed under the PSI HDL Library License, Version 1.0, the licence of Open Logic (LGPL 2.1 with an exception for binaries, see LGPL2_1.txt).