Open1553¶
Open1553 is an open MIL-STD-1553B terminal for spacecraft data buses that follows ECSS-E-ST-50-13C and is based on the Open Logic VHDL Library. It covers the remote terminal (RT), the bus controller (BC) and the bus monitor (BM) on a dual-redundant bus, with the Manchester II codec, the mode codes, the response timing and the ECSS-E-ST-50-13C services in the core. The core is vendor-independent VHDL-2008; the transceivers connect to plain logic ports, and the buffer memory uses the fault-tolerant entities of Open Logic (SECDED ECC with scrubbing).
Status¶
Technology readiness level: TRL 3 (fully verified by simulation) for the remote terminal (phase a), the bus
controller (phase b) and the bus monitor (phase c): the bus interface o1553_codec, the remote terminal o1553_rt,
the bus controller o1553_bc, the bus monitor o1553_bm, the host interface o1553_host and the core top level
o1553_core, each with its specification, architecture, verification plan and verification report. The 424 tests of
the testbenches pass in GHDL and in QuestaSim, with and without code coverage. They run the RT protocol on both buses
against bus models written from the standards (the mode codes, the response and time-out timing, RT to RT transfers,
superseding commands, invalid words and gaps, shut-down transmitters), the BC with its communication frames, time
synchronization, message lists and every message format against a remote terminal model, with no-response, late and
invalid responses, and the BM on the traffic of both buses with deviations of the words and their timing, its filter
table and its ring, each record checked word by word against the words on the bus; the role change between RT and BC
with an injected role error; the programming sequences of the user guide on the host port; and single and double bit
errors injected into the buffer memory. Code coverage is closed or every remaining miss is justified
(coverage). The compliance matrix assigns every clause of both standards to
a building block of the architecture or marks it out of scope, and traces every clause in the scope of the remote
terminal, the bus controller and the bus monitor to its requirements and test cases. The core has not been tested on
hardware and has no flight heritage; see what the levels mean and the steps to the
next level in the roadmap. The user guide describes the
integration, the programming sequences of the host and the conformance. The data block transfer engines follow in
phase d.
Documentation¶
| Document | Content |
|---|---|
| docs/user_guide.md | Integration, programming sequences, protection scope, performance, conformance |
| docs/architecture.md | Architecture: building blocks, decisions, interpretations of the standards, traceability matrix |
| docs/compliance.md | Compliance matrix with MIL-STD-1553B and ECSS-E-ST-50-13C (generated) |
| docs/coverage.md | Code coverage: method, result, closed gaps and the justification of every remaining miss |
| docs/roadmap.md | Development phases and module status |
| docs/conventions.md | Coding, verification and repository conventions |
| CHANGELOG.md | Changes of every release |
Repository structure¶
open1553/
|-- docs/ Top-level documentation
|-- hdl/<module>/ One folder per module: src/, tb/, docs/
|-- tb/ Verification components shared by the testbenches
|-- sw/ C header of the register map (generated)
|-- lint/ VSG configuration (Open Logic rules)
|-- tools/ Tools of the repository
| `-- docs/ Documentation website (MkDocs)
|-- open-logic/ Git submodule: Open Logic (fault-tolerant entities branch)
|-- uvvm/ Git submodule: UVVM verification framework
|-- component_list.txt Modules in dependency order
|-- compile_order.txt Synthesis sources in compile order (generated by run.py)
`-- 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 8 # full regression with GHDL, 8 parallel simulations
python run.py "*o1553_<module>*" # 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 Open1553 sources into the library open1553. O1553_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 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¶
Open1553 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).