Open Logic FT¶
Open Logic FT is the fault-tolerant fork of Open Logic, the VHDL standard library of FPGA building blocks. It adds the ft area: building blocks for designs in radiation environments such as spacecraft, where single event upsets flip bits in RAM cells and registers. The RAMs and FIFOs of the area are protected by a SECDED code (single error correction, double error detection). The synchronizers of the clock domain crossings, of the reset generator and of the input synchronizer are excluded from the automatic TMR of the synthesis tool and can be triplicated with majority voting (TMR). General building blocks needed by the Open Space HDL cores complete the fork: stream chunking, packing and segmentation, a Reed-Solomon codec, a CAN 2.0B controller and an AXI4-Lite register decoder.
The fork is maintained by Open Space HDL. Finished entities go to upstream Open Logic, one pull request at a time. Fixes of Open Logic entities go upstream too and are part of the fork until upstream merges them; everything else in the fork is identical to Open Logic.
What the fork adds¶
The cross-cutting concepts (codeword layout, error injection, status flags, ECC pipeline) are described once in the fault-tolerance principles. The entity list describes every entity in one line. The comparison with Open Logic 4.8.0 lists every entity that differs from the release and where each change stands upstream.
| Group | Entities | Upstream Open Logic |
|---|---|---|
| ECC package and codec | olo_ft_pkg_ecc, olo_ft_ecc_encode, olo_ft_ecc_decode | Since 4.7.0 |
| RAMs | olo_ft_ram_sp, olo_ft_ram_sdp, olo_ft_ram_tdp | Since 4.7.0 |
| RAMs with background scrubbing | olo_ft_ram_sp_scrub, olo_ft_ram_sdp_scrub | Since 4.7.0 |
| FIFOs | olo_ft_fifo_sync, olo_ft_fifo_packet | Since 4.7.0 |
| Asynchronous FIFO | olo_ft_fifo_async | Fork only |
| Synchronizers excluded from automatic TMR | olo_base_cc_bits, olo_base_cc_reset, olo_base_reset_gen, olo_intf_sync and every entity built on them | Fork only |
Triplicated synchronizers (SyncTmr_g) |
All clock crossings, olo_base_fifo_async, olo_ft_fifo_async, olo_base_reset_gen, olo_intf_sync and the intf entities with internal synchronizers | Fork only |
| Delays | olo_ft_delay, olo_ft_delay_cfg | Fork only |
| AXI masters | olo_ft_axi_master_simple, olo_ft_axi_master_full | Fork only |
| EDAC monitoring | olo_ft_ecc_monitor, olo_ft_ecc_monitor_axi | Fork only |
| Commanded reset | olo_ft_reset_ctrl_axi | Fork only |
| Stream chunking, packing and segmentation | olo_base_chunker, olo_base_stream_join, olo_base_stream_split | Fork only |
| Reed-Solomon codec | olo_base_pkg_gf, olo_base_rs_encode, olo_base_rs_decode | Fork only |
| CAN controller | olo_intf_can | Fork only |
| Register access decoder | olo_axi_lite_decoder | Fork only |
Where an ft entity has a base counterpart, it keeps that interface and adds only what fault tolerance needs: error injection inputs, single and double error status outputs and the ECC pipeline settings. The ft AXI masters also set the depth of the internal FIFOs of the wrapped base master, which decides the read throughput at high latency.
Besides the ft area, the fork changes entities of the other areas. The synchronizer registers are excluded from
automatic TMR, so the tool does not insert voters between the synchronizer stages. With the default
SyncTmr_g = false every synchronizer is implemented once; SyncTmr_g = true implements it three times with a voter
after the last stage, which masks a single upset. All entities with internal synchronizers expose SyncStages_g and
SyncTmr_g. The clock crossing principles describe both
variants and the stability condition under which the voter masks an upset. In addition, the state machines of several
base, intf, fix and axi entities have a safe recovery state, and the AXI masters support FIXED bursts and report the
response code of a failed command.
Using the fork¶
The fork replaces Open Logic in a project; the library name (olo), the compile order and the tool scripts are the
same, see How to. Projects include it as a git submodule and pin a tag. Tags are named
<upstream version>-ft.<n> and mark a state of the branch fault-tolerant whose checks passed; the current one is
4.8.0-ft.2.
git submodule add -b fault-tolerant https://github.com/open-space-hdl/open-logic-ft.git open-logic
git -C open-logic checkout 4.8.0-ft.2
git add open-logic
| Branch | Content |
|---|---|
fault-tolerant |
Default branch: the Open Logic release (currently 4.8.0) plus all ft entities as a linear series of commits |
feature/<name> |
One upstream pull request each, cut from upstream develop |
main, develop |
Unchanged mirrors of upstream Open Logic |
Verification¶
Every push to fault-tolerant runs the workflow FT-Backlog-Check: GHDL simulation of all tests of all areas (the
full regression), VSG linting, markdownlint and the check that every ft entity is part of the synthesis inference
test. The SEU testbenches of the synchronizers force upsets into the registers of single chains:
with SyncTmr_g = true the voted output is not affected, with a single synchronizer the upset is visible. The tag
4.8.0-ft.2 passed the full regression of the library (11704 tests) with GHDL. From 4.7.0-ft.7 on, the testbenches
of the entities changed since the previous tag also pass in QuestaSim, with and without code coverage.
Technology readiness¶
The ft entities are at TRL 3: fully verified by simulation (including the injected errors and upsets described above), not yet tested on hardware, no flight heritage. This also applies to the ft entities that are already part of Open Logic. The TRL page explains what the levels mean for an IP core.
| Next level | What is needed | State |
|---|---|---|
| TRL 4 | The ft entities in operation inside a reference system of the family on an evaluation board; errors injected through the error injection inputs on hardware, scrubbers running; hardware test report | Open |
| TRL 5 | Single-event effects test (beam test) on a radiation-tolerant FPGA that confirms the effectiveness of ECC, scrubbing and TMR and quantifies the error rates | Open |
Used by¶
| Project | Content |
|---|---|
| OpenWire | Open SpaceWire implementation based on the Open Logic VHDL library |
| OpenFibre | Open SpaceFibre implementation based on the Open Logic VHDL library |
| OpenRMAP | Open implementation of the Remote Memory Access Protocol for SpaceWire and SpaceFibre networks |
| OpenSPP | Open Space Packet Protocol implementation according to CCSDS 133.0-B-2 |
| OpenCompact | Open hyperspectral image compression core according to CCSDS 123.0-B-2 |
| OpenCrypto | Open AES-GCM implementation for encryption and decryption of real-time data streams |
Licence¶
Open Logic FT 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). The other pages of this site are the
documentation of Open Logic, rendered from the branch fault-tolerant; About Open Logic introduces the
library and its maintainer.