{
  "$schema": "https://openspacehdl.org/composer/schema/system-1.json",
  "format": "open-space-composer-system",
  "formatVersion": 1,
  "generator": {
    "name": "Open Space Composer",
    "version": "0.11.3-beta",
    "catalog": "75afe851b7e7"
  },
  "system": {
    "name": "encrypted_spp_over_spw",
    "description": "Encrypted packets over SpaceWire: the OpenCrypto framer cuts every input packet (for example a compressed image) into chunks, the AES-GCM core encrypts every chunk with a generated IV and a 4-byte position in the AAD, and OpenSPP sends every encrypted chunk as one Space Packet through an N-Char adapter and an OpenWire port. An ECC monitor reports the corrected and detected errors of the buffers of the framer.",
    "faultTolerance": true
  },
  "sources": [
    {
      "id": "openwire",
      "name": "OpenWire",
      "url": "https://github.com/open-space-hdl/openwire",
      "commit": "32544f70b71187ea3b519b637483ac854c3d18a1",
      "library": "openwire",
      "fileList": "compile_order.txt",
      "fileListFormat": "files",
      "verifiedWith": "4.8.0-ft.2"
    },
    {
      "id": "openspp",
      "name": "OpenSPP",
      "url": "https://github.com/open-space-hdl/openspp",
      "commit": "c385fc0d000434368b8bd471ec7e07287c1e01f6",
      "library": "openspp",
      "fileList": "compile_order.txt",
      "fileListFormat": "files",
      "verifiedWith": "4.8.0-ft.2"
    },
    {
      "id": "opencrypto",
      "name": "OpenCrypto",
      "url": "https://github.com/open-space-hdl/opencrypto",
      "commit": "e40e3e354493a23f0da651952fdc66b8dbb2ff7b",
      "library": "opencrypto",
      "fileList": "compile_order.txt",
      "fileListFormat": "files",
      "verifiedWith": "4.8.0-ft.2"
    },
    {
      "id": "olo",
      "name": "Open Logic FT",
      "url": "https://github.com/open-space-hdl/open-logic-ft",
      "tag": "4.8.0-ft.2",
      "commit": "1f4a6c3b363151c30e754d4f413b8ee5e1febb95",
      "library": "olo",
      "fileList": "compile_order.txt",
      "fileListFormat": "files"
    }
  ],
  "clockDomains": [
    {
      "id": "sys",
      "name": "System clock",
      "frequencyHz": 100000000,
      "source": {
        "kind": "external"
      }
    },
    {
      "id": "link",
      "name": "Link clock",
      "frequencyHz": 200000000,
      "source": {
        "kind": "external"
      }
    }
  ],
  "instances": [
    {
      "id": "frm0",
      "block": "opencrypto/ocr_framer",
      "generics": {},
      "clocks": {
        "Clk": "sys"
      }
    },
    {
      "id": "ocr0",
      "block": "opencrypto/ocr_core",
      "generics": {
        "DenseOutput_g": true,
        "ReleaseBuffer_g": true,
        "ReleaseBytes_g": 16384
      },
      "clocks": {
        "Clk": "sys"
      }
    },
    {
      "id": "spp0",
      "block": "openspp/spp_core",
      "generics": {
        "TxBufferBytes_g": 8192,
        "RxBufferBytes_g": 8192
      },
      "clocks": {
        "Clk": "sys"
      }
    },
    {
      "id": "nchar0",
      "block": "openspp/spp_nchar",
      "generics": {},
      "clocks": {
        "Clk": "sys"
      }
    },
    {
      "id": "spw0",
      "block": "openwire/owr_core",
      "generics": {
        "RunDiv_g": 2
      },
      "clocks": {
        "UserClk": "sys",
        "LinkClk": "link",
        "MgmtClk": "sys"
      }
    },
    {
      "id": "edac0",
      "block": "olo/olo_ft_ecc_monitor_axi",
      "generics": {
        "Channels_g": 2
      },
      "clocks": {
        "Clk": "sys"
      }
    }
  ],
  "connections": [
    {
      "id": "c1",
      "from": "frm0.M_Ctx",
      "to": "ocr0.S_Ctx"
    },
    {
      "id": "c2",
      "from": "frm0.M_Out",
      "to": "ocr0.S_In"
    },
    {
      "id": "c3",
      "from": "ocr0.M_Out",
      "to": "spp0.S_Tx[0]",
      "sideband": {
        "apid": 291,
        "shi": false,
        "type": false,
        "nameValid": false,
        "name": 0
      }
    },
    {
      "id": "c4",
      "from": "spp0.M_Link",
      "to": "nchar0.S_Link"
    },
    {
      "id": "c5",
      "from": "nchar0.M_Link",
      "to": "spp0.S_Link"
    },
    {
      "id": "c6",
      "from": "nchar0.M_NChar",
      "to": "spw0.S_Pkt"
    },
    {
      "id": "c7",
      "from": "spw0.M_Pkt",
      "to": "nchar0.S_NChar"
    },
    {
      "id": "c8",
      "from": "frm0.Ecc[0]",
      "to": "edac0.In[0]"
    },
    {
      "id": "c9",
      "from": "frm0.Ecc[1]",
      "to": "edac0.In[1]"
    }
  ],
  "externals": [
    {
      "interface": "frm0.S_In",
      "prefix": "pkt_"
    },
    {
      "interface": "spp0.M_Rx[0]",
      "prefix": "rx0_"
    },
    {
      "interface": "ocr0.S_AxiLite",
      "prefix": "ocr_reg_"
    },
    {
      "interface": "spp0.S_AxiLite",
      "prefix": "spp_reg_"
    },
    {
      "interface": "spw0.S_AxiLite",
      "prefix": "spw_reg_"
    },
    {
      "interface": "edac0.S_AxiLite",
      "prefix": "edac_reg_"
    }
  ],
  "resolved": {
    "version": 1,
    "catalog": "75afe851b7e7",
    "entity": "encrypted_spp_over_spw",
    "ports": [
      {
        "name": "Rst",
        "dir": "in",
        "type": "std_logic",
        "kind": "reset"
      },
      {
        "name": "Clk_sys",
        "dir": "in",
        "type": "std_logic",
        "kind": "clock",
        "domain": "sys"
      },
      {
        "name": "Clk_link",
        "dir": "in",
        "type": "std_logic",
        "kind": "clock",
        "domain": "link"
      },
      {
        "name": "pkt_S_In_Data",
        "dir": "in",
        "type": "std_logic_vector(31 downto 0)",
        "kind": "interface",
        "interface": "frm0.S_In",
        "domain": "sys",
        "signal": "data"
      },
      {
        "name": "pkt_S_In_Keep",
        "dir": "in",
        "type": "std_logic_vector(3 downto 0)",
        "kind": "interface",
        "interface": "frm0.S_In",
        "domain": "sys",
        "signal": "keep"
      },
      {
        "name": "pkt_S_In_Last",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "frm0.S_In",
        "domain": "sys",
        "signal": "last"
      },
      {
        "name": "pkt_S_In_Valid",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "frm0.S_In",
        "domain": "sys",
        "signal": "valid"
      },
      {
        "name": "pkt_S_In_Ready",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "frm0.S_In",
        "domain": "sys",
        "signal": "ready"
      },
      {
        "name": "ocr_reg_S_AxiLite_AwAddr",
        "dir": "in",
        "type": "std_logic_vector(7 downto 0)",
        "kind": "interface",
        "interface": "ocr0.S_AxiLite",
        "domain": "sys",
        "signal": "AwAddr"
      },
      {
        "name": "ocr_reg_S_AxiLite_AwValid",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "ocr0.S_AxiLite",
        "domain": "sys",
        "signal": "AwValid"
      },
      {
        "name": "ocr_reg_S_AxiLite_AwReady",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "ocr0.S_AxiLite",
        "domain": "sys",
        "signal": "AwReady"
      },
      {
        "name": "ocr_reg_S_AxiLite_WData",
        "dir": "in",
        "type": "std_logic_vector(31 downto 0)",
        "kind": "interface",
        "interface": "ocr0.S_AxiLite",
        "domain": "sys",
        "signal": "WData"
      },
      {
        "name": "ocr_reg_S_AxiLite_WStrb",
        "dir": "in",
        "type": "std_logic_vector(3 downto 0)",
        "kind": "interface",
        "interface": "ocr0.S_AxiLite",
        "domain": "sys",
        "signal": "WStrb"
      },
      {
        "name": "ocr_reg_S_AxiLite_WValid",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "ocr0.S_AxiLite",
        "domain": "sys",
        "signal": "WValid"
      },
      {
        "name": "ocr_reg_S_AxiLite_WReady",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "ocr0.S_AxiLite",
        "domain": "sys",
        "signal": "WReady"
      },
      {
        "name": "ocr_reg_S_AxiLite_BResp",
        "dir": "out",
        "type": "std_logic_vector(1 downto 0)",
        "kind": "interface",
        "interface": "ocr0.S_AxiLite",
        "domain": "sys",
        "signal": "BResp"
      },
      {
        "name": "ocr_reg_S_AxiLite_BValid",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "ocr0.S_AxiLite",
        "domain": "sys",
        "signal": "BValid"
      },
      {
        "name": "ocr_reg_S_AxiLite_BReady",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "ocr0.S_AxiLite",
        "domain": "sys",
        "signal": "BReady"
      },
      {
        "name": "ocr_reg_S_AxiLite_ArAddr",
        "dir": "in",
        "type": "std_logic_vector(7 downto 0)",
        "kind": "interface",
        "interface": "ocr0.S_AxiLite",
        "domain": "sys",
        "signal": "ArAddr"
      },
      {
        "name": "ocr_reg_S_AxiLite_ArValid",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "ocr0.S_AxiLite",
        "domain": "sys",
        "signal": "ArValid"
      },
      {
        "name": "ocr_reg_S_AxiLite_ArReady",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "ocr0.S_AxiLite",
        "domain": "sys",
        "signal": "ArReady"
      },
      {
        "name": "ocr_reg_S_AxiLite_RData",
        "dir": "out",
        "type": "std_logic_vector(31 downto 0)",
        "kind": "interface",
        "interface": "ocr0.S_AxiLite",
        "domain": "sys",
        "signal": "RData"
      },
      {
        "name": "ocr_reg_S_AxiLite_RResp",
        "dir": "out",
        "type": "std_logic_vector(1 downto 0)",
        "kind": "interface",
        "interface": "ocr0.S_AxiLite",
        "domain": "sys",
        "signal": "RResp"
      },
      {
        "name": "ocr_reg_S_AxiLite_RValid",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "ocr0.S_AxiLite",
        "domain": "sys",
        "signal": "RValid"
      },
      {
        "name": "ocr_reg_S_AxiLite_RReady",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "ocr0.S_AxiLite",
        "domain": "sys",
        "signal": "RReady"
      },
      {
        "name": "rx0_M_Rx_Data_0",
        "dir": "out",
        "type": "std_logic_vector(31 downto 0)",
        "kind": "interface",
        "interface": "spp0.M_Rx[0]",
        "domain": "sys",
        "signal": "data"
      },
      {
        "name": "rx0_M_Rx_Keep_0",
        "dir": "out",
        "type": "std_logic_vector(3 downto 0)",
        "kind": "interface",
        "interface": "spp0.M_Rx[0]",
        "domain": "sys",
        "signal": "keep"
      },
      {
        "name": "rx0_M_Rx_Last_0",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spp0.M_Rx[0]",
        "domain": "sys",
        "signal": "last"
      },
      {
        "name": "rx0_M_Rx_User_0",
        "dir": "out",
        "type": "std_logic_vector(21 downto 0)",
        "kind": "interface",
        "interface": "spp0.M_Rx[0]",
        "domain": "sys",
        "signal": "user",
        "fields": [
          {
            "name": "apid",
            "label": "APID",
            "lsb": 0,
            "bits": 11
          },
          {
            "name": "shi",
            "label": "Secondary Header Indicator (Octet String Service)",
            "lsb": 11,
            "bits": 1
          },
          {
            "name": "loss",
            "label": "Packet Loss or Data Loss Indicator",
            "lsb": 12,
            "bits": 1
          },
          {
            "name": "error",
            "label": "Double bit error in the receive buffer during this SDU, valid with last",
            "lsb": 13,
            "bits": 1
          },
          {
            "name": "ua",
            "label": "User Application value of the CPTP packet (0 without the CPTP layer)",
            "lsb": 14,
            "bits": 8
          }
        ]
      },
      {
        "name": "rx0_M_Rx_Valid_0",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spp0.M_Rx[0]",
        "domain": "sys",
        "signal": "valid"
      },
      {
        "name": "rx0_M_Rx_Ready_0",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spp0.M_Rx[0]",
        "domain": "sys",
        "signal": "ready"
      },
      {
        "name": "spp_reg_S_AxiLite_AwAddr",
        "dir": "in",
        "type": "std_logic_vector(10 downto 0)",
        "kind": "interface",
        "interface": "spp0.S_AxiLite",
        "domain": "sys",
        "signal": "AwAddr"
      },
      {
        "name": "spp_reg_S_AxiLite_AwValid",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spp0.S_AxiLite",
        "domain": "sys",
        "signal": "AwValid"
      },
      {
        "name": "spp_reg_S_AxiLite_AwReady",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spp0.S_AxiLite",
        "domain": "sys",
        "signal": "AwReady"
      },
      {
        "name": "spp_reg_S_AxiLite_WData",
        "dir": "in",
        "type": "std_logic_vector(31 downto 0)",
        "kind": "interface",
        "interface": "spp0.S_AxiLite",
        "domain": "sys",
        "signal": "WData"
      },
      {
        "name": "spp_reg_S_AxiLite_WStrb",
        "dir": "in",
        "type": "std_logic_vector(3 downto 0)",
        "kind": "interface",
        "interface": "spp0.S_AxiLite",
        "domain": "sys",
        "signal": "WStrb"
      },
      {
        "name": "spp_reg_S_AxiLite_WValid",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spp0.S_AxiLite",
        "domain": "sys",
        "signal": "WValid"
      },
      {
        "name": "spp_reg_S_AxiLite_WReady",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spp0.S_AxiLite",
        "domain": "sys",
        "signal": "WReady"
      },
      {
        "name": "spp_reg_S_AxiLite_BResp",
        "dir": "out",
        "type": "std_logic_vector(1 downto 0)",
        "kind": "interface",
        "interface": "spp0.S_AxiLite",
        "domain": "sys",
        "signal": "BResp"
      },
      {
        "name": "spp_reg_S_AxiLite_BValid",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spp0.S_AxiLite",
        "domain": "sys",
        "signal": "BValid"
      },
      {
        "name": "spp_reg_S_AxiLite_BReady",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spp0.S_AxiLite",
        "domain": "sys",
        "signal": "BReady"
      },
      {
        "name": "spp_reg_S_AxiLite_ArAddr",
        "dir": "in",
        "type": "std_logic_vector(10 downto 0)",
        "kind": "interface",
        "interface": "spp0.S_AxiLite",
        "domain": "sys",
        "signal": "ArAddr"
      },
      {
        "name": "spp_reg_S_AxiLite_ArValid",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spp0.S_AxiLite",
        "domain": "sys",
        "signal": "ArValid"
      },
      {
        "name": "spp_reg_S_AxiLite_ArReady",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spp0.S_AxiLite",
        "domain": "sys",
        "signal": "ArReady"
      },
      {
        "name": "spp_reg_S_AxiLite_RData",
        "dir": "out",
        "type": "std_logic_vector(31 downto 0)",
        "kind": "interface",
        "interface": "spp0.S_AxiLite",
        "domain": "sys",
        "signal": "RData"
      },
      {
        "name": "spp_reg_S_AxiLite_RResp",
        "dir": "out",
        "type": "std_logic_vector(1 downto 0)",
        "kind": "interface",
        "interface": "spp0.S_AxiLite",
        "domain": "sys",
        "signal": "RResp"
      },
      {
        "name": "spp_reg_S_AxiLite_RValid",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spp0.S_AxiLite",
        "domain": "sys",
        "signal": "RValid"
      },
      {
        "name": "spp_reg_S_AxiLite_RReady",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spp0.S_AxiLite",
        "domain": "sys",
        "signal": "RReady"
      },
      {
        "name": "spw_reg_S_AxiLite_AwAddr",
        "dir": "in",
        "type": "std_logic_vector(7 downto 0)",
        "kind": "interface",
        "interface": "spw0.S_AxiLite",
        "domain": "sys",
        "signal": "AwAddr"
      },
      {
        "name": "spw_reg_S_AxiLite_AwValid",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spw0.S_AxiLite",
        "domain": "sys",
        "signal": "AwValid"
      },
      {
        "name": "spw_reg_S_AxiLite_AwReady",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spw0.S_AxiLite",
        "domain": "sys",
        "signal": "AwReady"
      },
      {
        "name": "spw_reg_S_AxiLite_WData",
        "dir": "in",
        "type": "std_logic_vector(31 downto 0)",
        "kind": "interface",
        "interface": "spw0.S_AxiLite",
        "domain": "sys",
        "signal": "WData"
      },
      {
        "name": "spw_reg_S_AxiLite_WStrb",
        "dir": "in",
        "type": "std_logic_vector(3 downto 0)",
        "kind": "interface",
        "interface": "spw0.S_AxiLite",
        "domain": "sys",
        "signal": "WStrb"
      },
      {
        "name": "spw_reg_S_AxiLite_WValid",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spw0.S_AxiLite",
        "domain": "sys",
        "signal": "WValid"
      },
      {
        "name": "spw_reg_S_AxiLite_WReady",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spw0.S_AxiLite",
        "domain": "sys",
        "signal": "WReady"
      },
      {
        "name": "spw_reg_S_AxiLite_BResp",
        "dir": "out",
        "type": "std_logic_vector(1 downto 0)",
        "kind": "interface",
        "interface": "spw0.S_AxiLite",
        "domain": "sys",
        "signal": "BResp"
      },
      {
        "name": "spw_reg_S_AxiLite_BValid",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spw0.S_AxiLite",
        "domain": "sys",
        "signal": "BValid"
      },
      {
        "name": "spw_reg_S_AxiLite_BReady",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spw0.S_AxiLite",
        "domain": "sys",
        "signal": "BReady"
      },
      {
        "name": "spw_reg_S_AxiLite_ArAddr",
        "dir": "in",
        "type": "std_logic_vector(7 downto 0)",
        "kind": "interface",
        "interface": "spw0.S_AxiLite",
        "domain": "sys",
        "signal": "ArAddr"
      },
      {
        "name": "spw_reg_S_AxiLite_ArValid",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spw0.S_AxiLite",
        "domain": "sys",
        "signal": "ArValid"
      },
      {
        "name": "spw_reg_S_AxiLite_ArReady",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spw0.S_AxiLite",
        "domain": "sys",
        "signal": "ArReady"
      },
      {
        "name": "spw_reg_S_AxiLite_RData",
        "dir": "out",
        "type": "std_logic_vector(31 downto 0)",
        "kind": "interface",
        "interface": "spw0.S_AxiLite",
        "domain": "sys",
        "signal": "RData"
      },
      {
        "name": "spw_reg_S_AxiLite_RResp",
        "dir": "out",
        "type": "std_logic_vector(1 downto 0)",
        "kind": "interface",
        "interface": "spw0.S_AxiLite",
        "domain": "sys",
        "signal": "RResp"
      },
      {
        "name": "spw_reg_S_AxiLite_RValid",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spw0.S_AxiLite",
        "domain": "sys",
        "signal": "RValid"
      },
      {
        "name": "spw_reg_S_AxiLite_RReady",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spw0.S_AxiLite",
        "domain": "sys",
        "signal": "RReady"
      },
      {
        "name": "spw0_Spw_DOut",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spw0.Spw",
        "domain": "link",
        "signal": "d_out"
      },
      {
        "name": "spw0_Spw_SOut",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spw0.Spw",
        "domain": "link",
        "signal": "s_out"
      },
      {
        "name": "spw0_Spw_DIn",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spw0.Spw",
        "domain": "link",
        "signal": "d_in"
      },
      {
        "name": "spw0_Spw_SIn",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spw0.Spw",
        "domain": "link",
        "signal": "s_in"
      },
      {
        "name": "spw0_Phy_TxEn",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spw0.Spw",
        "domain": "link",
        "signal": "tx_en"
      },
      {
        "name": "spw0_Phy_RxEn",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "spw0.Spw",
        "domain": "link",
        "signal": "rx_en"
      },
      {
        "name": "edac_reg_S_AxiLite_AwAddr",
        "dir": "in",
        "type": "std_logic_vector(11 downto 0)",
        "kind": "interface",
        "interface": "edac0.S_AxiLite",
        "domain": "sys",
        "signal": "AwAddr"
      },
      {
        "name": "edac_reg_S_AxiLite_AwValid",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "edac0.S_AxiLite",
        "domain": "sys",
        "signal": "AwValid"
      },
      {
        "name": "edac_reg_S_AxiLite_AwReady",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "edac0.S_AxiLite",
        "domain": "sys",
        "signal": "AwReady"
      },
      {
        "name": "edac_reg_S_AxiLite_WData",
        "dir": "in",
        "type": "std_logic_vector(31 downto 0)",
        "kind": "interface",
        "interface": "edac0.S_AxiLite",
        "domain": "sys",
        "signal": "WData"
      },
      {
        "name": "edac_reg_S_AxiLite_WStrb",
        "dir": "in",
        "type": "std_logic_vector(3 downto 0)",
        "kind": "interface",
        "interface": "edac0.S_AxiLite",
        "domain": "sys",
        "signal": "WStrb"
      },
      {
        "name": "edac_reg_S_AxiLite_WValid",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "edac0.S_AxiLite",
        "domain": "sys",
        "signal": "WValid"
      },
      {
        "name": "edac_reg_S_AxiLite_WReady",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "edac0.S_AxiLite",
        "domain": "sys",
        "signal": "WReady"
      },
      {
        "name": "edac_reg_S_AxiLite_BResp",
        "dir": "out",
        "type": "std_logic_vector(1 downto 0)",
        "kind": "interface",
        "interface": "edac0.S_AxiLite",
        "domain": "sys",
        "signal": "BResp"
      },
      {
        "name": "edac_reg_S_AxiLite_BValid",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "edac0.S_AxiLite",
        "domain": "sys",
        "signal": "BValid"
      },
      {
        "name": "edac_reg_S_AxiLite_BReady",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "edac0.S_AxiLite",
        "domain": "sys",
        "signal": "BReady"
      },
      {
        "name": "edac_reg_S_AxiLite_ArAddr",
        "dir": "in",
        "type": "std_logic_vector(11 downto 0)",
        "kind": "interface",
        "interface": "edac0.S_AxiLite",
        "domain": "sys",
        "signal": "ArAddr"
      },
      {
        "name": "edac_reg_S_AxiLite_ArValid",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "edac0.S_AxiLite",
        "domain": "sys",
        "signal": "ArValid"
      },
      {
        "name": "edac_reg_S_AxiLite_ArReady",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "edac0.S_AxiLite",
        "domain": "sys",
        "signal": "ArReady"
      },
      {
        "name": "edac_reg_S_AxiLite_RData",
        "dir": "out",
        "type": "std_logic_vector(31 downto 0)",
        "kind": "interface",
        "interface": "edac0.S_AxiLite",
        "domain": "sys",
        "signal": "RData"
      },
      {
        "name": "edac_reg_S_AxiLite_RResp",
        "dir": "out",
        "type": "std_logic_vector(1 downto 0)",
        "kind": "interface",
        "interface": "edac0.S_AxiLite",
        "domain": "sys",
        "signal": "RResp"
      },
      {
        "name": "edac_reg_S_AxiLite_RValid",
        "dir": "out",
        "type": "std_logic",
        "kind": "interface",
        "interface": "edac0.S_AxiLite",
        "domain": "sys",
        "signal": "RValid"
      },
      {
        "name": "edac_reg_S_AxiLite_RReady",
        "dir": "in",
        "type": "std_logic",
        "kind": "interface",
        "interface": "edac0.S_AxiLite",
        "domain": "sys",
        "signal": "RReady"
      }
    ],
    "clocks": [
      {
        "id": "sys",
        "name": "System clock",
        "frequencyHz": 100000000,
        "actual": "Clk_sys",
        "source": "top"
      },
      {
        "id": "link",
        "name": "Link clock",
        "frequencyHz": 200000000,
        "actual": "Clk_link",
        "source": "top"
      }
    ],
    "resets": [
      {
        "domain": "sys",
        "generator": "auto_rst_sys",
        "input": "Rst",
        "output": "auto_rst_sys_RstOut_s"
      }
    ],
    "instances": [
      {
        "id": "frm0",
        "entity": "ocr_framer",
        "library": "opencrypto",
        "block": "opencrypto/ocr_framer",
        "origin": "user",
        "domain": "sys",
        "generics": [
          {
            "name": "DataWidth_g",
            "value": 32,
            "vhdl": "32",
            "default": true
          },
          {
            "name": "NumKeys_g",
            "value": 4,
            "vhdl": "4",
            "default": true
          },
          {
            "name": "ChunkBytes_g",
            "value": 4096,
            "vhdl": "4096",
            "default": true
          },
          {
            "name": "BufferChunks_g",
            "value": 2,
            "vhdl": "2",
            "default": true
          },
          {
            "name": "RamStyle_g",
            "value": "auto",
            "vhdl": "\"auto\"",
            "default": true
          }
        ],
        "ports": [
          {
            "name": "Clk",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "Clk_sys"
          },
          {
            "name": "Rst",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "reset": {
              "kind": "sync",
              "note": "Synchronous reset in the clock domain System clock (clock Clk): the output of the reset generator auto_rst_sys."
            },
            "actual": "auto_rst_sys_RstOut_s"
          },
          {
            "name": "Cfg_Slot",
            "dir": "in",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "frm0_Cfg_Slot_s"
          },
          {
            "name": "S_In_Valid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "frm0_S_In_Valid_s"
          },
          {
            "name": "S_In_Ready",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "frm0_S_In_Ready_s"
          },
          {
            "name": "S_In_Data",
            "dir": "in",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "frm0_S_In_Data_s"
          },
          {
            "name": "S_In_Keep",
            "dir": "in",
            "type": "std_logic_vector(3 downto 0)",
            "domain": "sys",
            "actual": "frm0_S_In_Keep_s"
          },
          {
            "name": "S_In_Last",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "frm0_S_In_Last_s"
          },
          {
            "name": "M_Ctx_Valid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "frm0_M_Ctx_Valid_s"
          },
          {
            "name": "M_Ctx_Ready",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "frm0_M_Ctx_Ready_s"
          },
          {
            "name": "M_Ctx_Decrypt",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "frm0_M_Ctx_Decrypt_s"
          },
          {
            "name": "M_Ctx_Slot",
            "dir": "out",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "frm0_M_Ctx_Slot_s"
          },
          {
            "name": "M_Ctx_IvGen",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "frm0_M_Ctx_IvGen_s"
          },
          {
            "name": "M_Ctx_Iv",
            "dir": "out",
            "type": "std_logic_vector(95 downto 0)",
            "domain": "sys",
            "actual": "frm0_M_Ctx_Iv_s"
          },
          {
            "name": "M_Out_Valid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "frm0_M_Out_Valid_s"
          },
          {
            "name": "M_Out_Ready",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "frm0_M_Out_Ready_s"
          },
          {
            "name": "M_Out_Data",
            "dir": "out",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "frm0_M_Out_Data_s"
          },
          {
            "name": "M_Out_Keep",
            "dir": "out",
            "type": "std_logic_vector(3 downto 0)",
            "domain": "sys",
            "actual": "frm0_M_Out_Keep_s"
          },
          {
            "name": "M_Out_Last",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "frm0_M_Out_Last_s"
          },
          {
            "name": "M_Out_User",
            "dir": "out",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "frm0_M_Out_User_s"
          },
          {
            "name": "Ecc_Sec",
            "dir": "out",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "frm0_Ecc_Sec_s"
          },
          {
            "name": "Ecc_Ded",
            "dir": "out",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "frm0_Ecc_Ded_s"
          },
          {
            "name": "ErrInj_Sel",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": null,
            "useDefault": true,
            "default": "'0'"
          },
          {
            "name": "ErrInj_BitFlip",
            "dir": "in",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": null,
            "useDefault": true,
            "default": "(others => '0')"
          },
          {
            "name": "ErrInj_Valid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": null,
            "useDefault": true,
            "default": "'0'"
          }
        ]
      },
      {
        "id": "ocr0",
        "entity": "ocr_core",
        "library": "opencrypto",
        "block": "opencrypto/ocr_core",
        "origin": "user",
        "domain": "sys",
        "generics": [
          {
            "name": "DataWidth_g",
            "value": 32,
            "vhdl": "32",
            "default": true
          },
          {
            "name": "KeyBits_g",
            "value": 256,
            "vhdl": "256",
            "default": true
          },
          {
            "name": "NumKeys_g",
            "value": 4,
            "vhdl": "4",
            "default": true
          },
          {
            "name": "AesUnits_g",
            "value": 0,
            "vhdl": "0",
            "default": true
          },
          {
            "name": "GhashDigit_g",
            "value": 0,
            "vhdl": "0",
            "default": true
          },
          {
            "name": "LenBits_g",
            "value": 32,
            "vhdl": "32",
            "default": true
          },
          {
            "name": "ReleaseBuffer_g",
            "value": true,
            "vhdl": "true",
            "default": false
          },
          {
            "name": "ReleaseBytes_g",
            "value": 16384,
            "vhdl": "16384",
            "default": false
          },
          {
            "name": "DenseOutput_g",
            "value": true,
            "vhdl": "true",
            "default": false
          },
          {
            "name": "ClkFreqHz_g",
            "value": 100000000,
            "vhdl": "100.0e6",
            "default": true
          },
          {
            "name": "ScrubPeriod_g",
            "value": 0,
            "vhdl": "0.0",
            "default": true
          }
        ],
        "ports": [
          {
            "name": "Clk",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "Clk_sys"
          },
          {
            "name": "Rst",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "reset": {
              "kind": "sync",
              "note": "Synchronous reset in the clock domain System clock (clock Clk): the output of the reset generator auto_rst_sys."
            },
            "actual": "auto_rst_sys_RstOut_s"
          },
          {
            "name": "S_Ctx_Valid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_S_Ctx_Valid_s"
          },
          {
            "name": "S_Ctx_Ready",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_S_Ctx_Ready_s"
          },
          {
            "name": "S_Ctx_Decrypt",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_S_Ctx_Decrypt_s"
          },
          {
            "name": "S_Ctx_Slot",
            "dir": "in",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "ocr0_S_Ctx_Slot_s"
          },
          {
            "name": "S_Ctx_IvGen",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_S_Ctx_IvGen_s"
          },
          {
            "name": "S_Ctx_Iv",
            "dir": "in",
            "type": "std_logic_vector(95 downto 0)",
            "domain": "sys",
            "actual": "ocr0_S_Ctx_Iv_s"
          },
          {
            "name": "S_In_Valid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_S_In_Valid_s"
          },
          {
            "name": "S_In_Ready",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_S_In_Ready_s"
          },
          {
            "name": "S_In_Data",
            "dir": "in",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "ocr0_S_In_Data_s"
          },
          {
            "name": "S_In_Keep",
            "dir": "in",
            "type": "std_logic_vector(3 downto 0)",
            "domain": "sys",
            "actual": "ocr0_S_In_Keep_s"
          },
          {
            "name": "S_In_Last",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_S_In_Last_s"
          },
          {
            "name": "S_In_User",
            "dir": "in",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "ocr0_S_In_User_s"
          },
          {
            "name": "M_Out_Valid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_M_Out_Valid_s"
          },
          {
            "name": "M_Out_Ready",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_M_Out_Ready_s"
          },
          {
            "name": "M_Out_Data",
            "dir": "out",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "ocr0_M_Out_Data_s"
          },
          {
            "name": "M_Out_Keep",
            "dir": "out",
            "type": "std_logic_vector(3 downto 0)",
            "domain": "sys",
            "actual": "ocr0_M_Out_Keep_s"
          },
          {
            "name": "M_Out_Last",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_M_Out_Last_s"
          },
          {
            "name": "M_Out_User",
            "dir": "out",
            "type": "std_logic_vector(2 downto 0)",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "M_Sts_Valid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "M_Sts_Ready",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": null,
            "useDefault": true,
            "default": "'1'"
          },
          {
            "name": "M_Sts_Code",
            "dir": "out",
            "type": "std_logic_vector(3 downto 0)",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "M_Sts_Decrypt",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "M_Sts_Slot",
            "dir": "out",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "M_Sts_Iv",
            "dir": "out",
            "type": "std_logic_vector(95 downto 0)",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "M_Sts_AadBytes",
            "dir": "out",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "M_Sts_DataBytes",
            "dir": "out",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "S_AxiLite_ArAddr",
            "dir": "in",
            "type": "std_logic_vector(7 downto 0)",
            "domain": "sys",
            "actual": "ocr0_S_AxiLite_ArAddr_s"
          },
          {
            "name": "S_AxiLite_ArValid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_S_AxiLite_ArValid_s"
          },
          {
            "name": "S_AxiLite_ArReady",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_S_AxiLite_ArReady_s"
          },
          {
            "name": "S_AxiLite_AwAddr",
            "dir": "in",
            "type": "std_logic_vector(7 downto 0)",
            "domain": "sys",
            "actual": "ocr0_S_AxiLite_AwAddr_s"
          },
          {
            "name": "S_AxiLite_AwValid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_S_AxiLite_AwValid_s"
          },
          {
            "name": "S_AxiLite_AwReady",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_S_AxiLite_AwReady_s"
          },
          {
            "name": "S_AxiLite_WData",
            "dir": "in",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "ocr0_S_AxiLite_WData_s"
          },
          {
            "name": "S_AxiLite_WStrb",
            "dir": "in",
            "type": "std_logic_vector(3 downto 0)",
            "domain": "sys",
            "actual": "ocr0_S_AxiLite_WStrb_s"
          },
          {
            "name": "S_AxiLite_WValid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_S_AxiLite_WValid_s"
          },
          {
            "name": "S_AxiLite_WReady",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_S_AxiLite_WReady_s"
          },
          {
            "name": "S_AxiLite_BResp",
            "dir": "out",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "ocr0_S_AxiLite_BResp_s"
          },
          {
            "name": "S_AxiLite_BValid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_S_AxiLite_BValid_s"
          },
          {
            "name": "S_AxiLite_BReady",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_S_AxiLite_BReady_s"
          },
          {
            "name": "S_AxiLite_RData",
            "dir": "out",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "ocr0_S_AxiLite_RData_s"
          },
          {
            "name": "S_AxiLite_RResp",
            "dir": "out",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "ocr0_S_AxiLite_RResp_s"
          },
          {
            "name": "S_AxiLite_RValid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_S_AxiLite_RValid_s"
          },
          {
            "name": "S_AxiLite_RReady",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "ocr0_S_AxiLite_RReady_s"
          },
          {
            "name": "Irq",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "open"
          }
        ]
      },
      {
        "id": "spp0",
        "entity": "spp_core",
        "library": "openspp",
        "block": "openspp/spp_core",
        "origin": "user",
        "domain": "sys",
        "generics": [
          {
            "name": "DataWidth_g",
            "value": 32,
            "vhdl": "32",
            "default": true
          },
          {
            "name": "NumTx_g",
            "value": 1,
            "vhdl": "1",
            "default": true
          },
          {
            "name": "NumRx_g",
            "value": 1,
            "vhdl": "1",
            "default": true
          },
          {
            "name": "TxOctetString_g",
            "value": "(others => '1')",
            "vhdl": "(others => '1')",
            "default": true
          },
          {
            "name": "RxOctetString_g",
            "value": "(others => '1')",
            "vhdl": "(others => '1')",
            "default": true
          },
          {
            "name": "TxBufferBytes_g",
            "value": 8192,
            "vhdl": "8192",
            "default": false
          },
          {
            "name": "TxMaxPackets_g",
            "value": 8,
            "vhdl": "8",
            "default": true
          },
          {
            "name": "RxBufferBytes_g",
            "value": 8192,
            "vhdl": "8192",
            "default": false
          },
          {
            "name": "RxMaxPackets_g",
            "value": 8,
            "vhdl": "8",
            "default": true
          },
          {
            "name": "Encapsulation_g",
            "value": true,
            "vhdl": "true",
            "default": true
          },
          {
            "name": "NumDest_g",
            "value": 1,
            "vhdl": "1",
            "default": true
          },
          {
            "name": "SpwAddrBytes_g",
            "value": 4,
            "vhdl": "4",
            "default": true
          },
          {
            "name": "MaxLength_g",
            "value": 65542,
            "vhdl": "65542",
            "default": true
          },
          {
            "name": "RoundRobin_g",
            "value": "0",
            "vhdl": "'0'",
            "default": true
          },
          {
            "name": "Tla_g",
            "value": "x\"FE\"",
            "vhdl": "x\"FE\"",
            "default": true
          },
          {
            "name": "TxPathDefault_g",
            "value": true,
            "vhdl": "true",
            "default": true
          },
          {
            "name": "RxPathDefault_g",
            "value": true,
            "vhdl": "true",
            "default": true
          },
          {
            "name": "ClkFreqHz_g",
            "value": 100000000,
            "vhdl": "100.0e6",
            "default": true
          }
        ],
        "ports": [
          {
            "name": "Clk",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "Clk_sys"
          },
          {
            "name": "Rst",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "reset": {
              "kind": "sync",
              "note": "Synchronous reset in the clock domain System clock (clock Clk): the output of the reset generator auto_rst_sys."
            },
            "actual": "auto_rst_sys_RstOut_s"
          },
          {
            "name": "DpRst",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "reset": {
              "kind": "sync",
              "note": "Synchronous reset in the clock domain System clock (clock Clk), for a reset group; spp0 is in none, so the port keeps its default."
            },
            "actual": null,
            "useDefault": true,
            "default": "'0'"
          },
          {
            "name": "S_Tx_Valid",
            "dir": "in",
            "type": "std_logic_vector(0 downto 0)",
            "domain": "sys",
            "actual": "spp0_S_Tx_Valid_s"
          },
          {
            "name": "S_Tx_Ready",
            "dir": "out",
            "type": "std_logic_vector(0 downto 0)",
            "domain": "sys",
            "actual": "spp0_S_Tx_Ready_s"
          },
          {
            "name": "S_Tx_Data",
            "dir": "in",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "spp0_S_Tx_Data_s"
          },
          {
            "name": "S_Tx_Keep",
            "dir": "in",
            "type": "std_logic_vector(3 downto 0)",
            "domain": "sys",
            "actual": "spp0_S_Tx_Keep_s"
          },
          {
            "name": "S_Tx_Last",
            "dir": "in",
            "type": "std_logic_vector(0 downto 0)",
            "domain": "sys",
            "actual": "spp0_S_Tx_Last_s"
          },
          {
            "name": "S_Tx_User",
            "dir": "in",
            "type": "std_logic_vector(27 downto 0)",
            "domain": "sys",
            "actual": "spp0_S_Tx_User_s"
          },
          {
            "name": "M_Rx_Valid",
            "dir": "out",
            "type": "std_logic_vector(0 downto 0)",
            "domain": "sys",
            "actual": "spp0_M_Rx_Valid_s"
          },
          {
            "name": "M_Rx_Ready",
            "dir": "in",
            "type": "std_logic_vector(0 downto 0)",
            "domain": "sys",
            "actual": "spp0_M_Rx_Ready_s"
          },
          {
            "name": "M_Rx_Data",
            "dir": "out",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "spp0_M_Rx_Data_s"
          },
          {
            "name": "M_Rx_Keep",
            "dir": "out",
            "type": "std_logic_vector(3 downto 0)",
            "domain": "sys",
            "actual": "spp0_M_Rx_Keep_s"
          },
          {
            "name": "M_Rx_Last",
            "dir": "out",
            "type": "std_logic_vector(0 downto 0)",
            "domain": "sys",
            "actual": "spp0_M_Rx_Last_s"
          },
          {
            "name": "M_Rx_User",
            "dir": "out",
            "type": "std_logic_vector(21 downto 0)",
            "domain": "sys",
            "actual": "spp0_M_Rx_User_s"
          },
          {
            "name": "M_Link_Valid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spp0_M_Link_Valid_s"
          },
          {
            "name": "M_Link_Ready",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spp0_M_Link_Ready_s"
          },
          {
            "name": "M_Link_Data",
            "dir": "out",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "spp0_M_Link_Data_s"
          },
          {
            "name": "M_Link_Keep",
            "dir": "out",
            "type": "std_logic_vector(3 downto 0)",
            "domain": "sys",
            "actual": "spp0_M_Link_Keep_s"
          },
          {
            "name": "M_Link_Last",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spp0_M_Link_Last_s"
          },
          {
            "name": "M_Link_User",
            "dir": "out",
            "type": "std_logic_vector(4 downto 0)",
            "domain": "sys",
            "actual": "spp0_M_Link_User_s"
          },
          {
            "name": "S_Link_Valid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spp0_S_Link_Valid_s"
          },
          {
            "name": "S_Link_Ready",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spp0_S_Link_Ready_s"
          },
          {
            "name": "S_Link_Data",
            "dir": "in",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "spp0_S_Link_Data_s"
          },
          {
            "name": "S_Link_Keep",
            "dir": "in",
            "type": "std_logic_vector(3 downto 0)",
            "domain": "sys",
            "actual": "spp0_S_Link_Keep_s"
          },
          {
            "name": "S_Link_Last",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spp0_S_Link_Last_s"
          },
          {
            "name": "S_Link_User",
            "dir": "in",
            "type": "std_logic_vector(0 downto 0)",
            "domain": "sys",
            "actual": "spp0_S_Link_User_s"
          },
          {
            "name": "S_AxiLite_ArAddr",
            "dir": "in",
            "type": "std_logic_vector(10 downto 0)",
            "domain": "sys",
            "actual": "spp0_S_AxiLite_ArAddr_s"
          },
          {
            "name": "S_AxiLite_ArValid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spp0_S_AxiLite_ArValid_s"
          },
          {
            "name": "S_AxiLite_ArReady",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spp0_S_AxiLite_ArReady_s"
          },
          {
            "name": "S_AxiLite_AwAddr",
            "dir": "in",
            "type": "std_logic_vector(10 downto 0)",
            "domain": "sys",
            "actual": "spp0_S_AxiLite_AwAddr_s"
          },
          {
            "name": "S_AxiLite_AwValid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spp0_S_AxiLite_AwValid_s"
          },
          {
            "name": "S_AxiLite_AwReady",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spp0_S_AxiLite_AwReady_s"
          },
          {
            "name": "S_AxiLite_WData",
            "dir": "in",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "spp0_S_AxiLite_WData_s"
          },
          {
            "name": "S_AxiLite_WStrb",
            "dir": "in",
            "type": "std_logic_vector(3 downto 0)",
            "domain": "sys",
            "actual": "spp0_S_AxiLite_WStrb_s"
          },
          {
            "name": "S_AxiLite_WValid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spp0_S_AxiLite_WValid_s"
          },
          {
            "name": "S_AxiLite_WReady",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spp0_S_AxiLite_WReady_s"
          },
          {
            "name": "S_AxiLite_BResp",
            "dir": "out",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "spp0_S_AxiLite_BResp_s"
          },
          {
            "name": "S_AxiLite_BValid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spp0_S_AxiLite_BValid_s"
          },
          {
            "name": "S_AxiLite_BReady",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spp0_S_AxiLite_BReady_s"
          },
          {
            "name": "S_AxiLite_RData",
            "dir": "out",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "spp0_S_AxiLite_RData_s"
          },
          {
            "name": "S_AxiLite_RResp",
            "dir": "out",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "spp0_S_AxiLite_RResp_s"
          },
          {
            "name": "S_AxiLite_RValid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spp0_S_AxiLite_RValid_s"
          },
          {
            "name": "S_AxiLite_RReady",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spp0_S_AxiLite_RReady_s"
          },
          {
            "name": "Irq",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "Err_Valid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "Err_Code",
            "dir": "out",
            "type": "std_logic_vector(4 downto 0)",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "Err_Port",
            "dir": "out",
            "type": "std_logic_vector(3 downto 0)",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "Err_Apid",
            "dir": "out",
            "type": "std_logic_vector(10 downto 0)",
            "domain": "sys",
            "actual": "open"
          }
        ]
      },
      {
        "id": "nchar0",
        "entity": "spp_nchar",
        "library": "openspp",
        "block": "openspp/spp_nchar",
        "origin": "user",
        "domain": "sys",
        "generics": [
          {
            "name": "DataWidth_g",
            "value": 32,
            "vhdl": "32",
            "default": true
          }
        ],
        "ports": [
          {
            "name": "Clk",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "Clk_sys"
          },
          {
            "name": "Rst",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "reset": {
              "kind": "sync",
              "note": "Synchronous reset in the clock domain System clock (clock Clk): the output of the reset generator auto_rst_sys."
            },
            "actual": "auto_rst_sys_RstOut_s"
          },
          {
            "name": "S_Link_Valid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "nchar0_S_Link_Valid_s"
          },
          {
            "name": "S_Link_Ready",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "nchar0_S_Link_Ready_s"
          },
          {
            "name": "S_Link_Data",
            "dir": "in",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "nchar0_S_Link_Data_s"
          },
          {
            "name": "S_Link_Keep",
            "dir": "in",
            "type": "std_logic_vector(3 downto 0)",
            "domain": "sys",
            "actual": "nchar0_S_Link_Keep_s"
          },
          {
            "name": "S_Link_Last",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "nchar0_S_Link_Last_s"
          },
          {
            "name": "S_Link_User",
            "dir": "in",
            "type": "std_logic_vector(4 downto 0)",
            "domain": "sys",
            "actual": "nchar0_S_Link_User_s"
          },
          {
            "name": "M_NChar_Valid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "nchar0_M_NChar_Valid_s"
          },
          {
            "name": "M_NChar_Ready",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "nchar0_M_NChar_Ready_s"
          },
          {
            "name": "M_NChar_Data",
            "dir": "out",
            "type": "std_logic_vector(7 downto 0)",
            "domain": "sys",
            "actual": "nchar0_M_NChar_Data_s"
          },
          {
            "name": "M_NChar_Last",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "nchar0_M_NChar_Last_s"
          },
          {
            "name": "S_NChar_Valid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "nchar0_S_NChar_Valid_s"
          },
          {
            "name": "S_NChar_Ready",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "nchar0_S_NChar_Ready_s"
          },
          {
            "name": "S_NChar_Data",
            "dir": "in",
            "type": "std_logic_vector(7 downto 0)",
            "domain": "sys",
            "actual": "nchar0_S_NChar_Data_s"
          },
          {
            "name": "S_NChar_Last",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "nchar0_S_NChar_Last_s"
          },
          {
            "name": "M_Link_Valid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "nchar0_M_Link_Valid_s"
          },
          {
            "name": "M_Link_Ready",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "nchar0_M_Link_Ready_s"
          },
          {
            "name": "M_Link_Data",
            "dir": "out",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "nchar0_M_Link_Data_s"
          },
          {
            "name": "M_Link_Keep",
            "dir": "out",
            "type": "std_logic_vector(3 downto 0)",
            "domain": "sys",
            "actual": "nchar0_M_Link_Keep_s"
          },
          {
            "name": "M_Link_Last",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "nchar0_M_Link_Last_s"
          },
          {
            "name": "M_Link_User",
            "dir": "out",
            "type": "std_logic_vector(0 downto 0)",
            "domain": "sys",
            "actual": "nchar0_M_Link_User_s"
          }
        ]
      },
      {
        "id": "spw0",
        "entity": "owr_core",
        "library": "openwire",
        "block": "openwire/owr_core",
        "origin": "user",
        "domain": "sys",
        "generics": [
          {
            "name": "LinkClkFreq_g",
            "value": 200000000,
            "vhdl": "200.0e6",
            "default": false
          },
          {
            "name": "TxFifoDepth_g",
            "value": 64,
            "vhdl": "64",
            "default": true
          },
          {
            "name": "RxFifoDepth_g",
            "value": 64,
            "vhdl": "64",
            "default": true
          },
          {
            "name": "TimeCodes_g",
            "value": true,
            "vhdl": "true",
            "default": true
          },
          {
            "name": "Interrupts_g",
            "value": true,
            "vhdl": "true",
            "default": true
          },
          {
            "name": "IntTimerWidth_g",
            "value": 16,
            "vhdl": "16",
            "default": true
          },
          {
            "name": "LinkDisabled_g",
            "value": false,
            "vhdl": "false",
            "default": true
          },
          {
            "name": "LinkStart_g",
            "value": false,
            "vhdl": "false",
            "default": true
          },
          {
            "name": "AutoStart_g",
            "value": false,
            "vhdl": "false",
            "default": true
          },
          {
            "name": "RunDiv_g",
            "value": 2,
            "vhdl": "2",
            "default": false
          },
          {
            "name": "SyncStages_g",
            "value": 2,
            "vhdl": "2",
            "default": true
          }
        ],
        "ports": [
          {
            "name": "Rst",
            "dir": "in",
            "type": "std_logic",
            "reset": {
              "kind": "async",
              "note": "Asynchronous reset; the core synchronises its release in every domain."
            },
            "actual": "Rst"
          },
          {
            "name": "UserClk",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "Clk_sys"
          },
          {
            "name": "LinkClk",
            "dir": "in",
            "type": "std_logic",
            "domain": "link",
            "actual": "Clk_link"
          },
          {
            "name": "MgmtClk",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "Clk_sys"
          },
          {
            "name": "S_Pkt_TData",
            "dir": "in",
            "type": "std_logic_vector(7 downto 0)",
            "domain": "sys",
            "actual": "spw0_S_Pkt_TData_s"
          },
          {
            "name": "S_Pkt_TLast",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spw0_S_Pkt_TLast_s"
          },
          {
            "name": "S_Pkt_TValid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spw0_S_Pkt_TValid_s"
          },
          {
            "name": "S_Pkt_TReady",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spw0_S_Pkt_TReady_s"
          },
          {
            "name": "M_Pkt_TData",
            "dir": "out",
            "type": "std_logic_vector(7 downto 0)",
            "domain": "sys",
            "actual": "spw0_M_Pkt_TData_s"
          },
          {
            "name": "M_Pkt_TLast",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spw0_M_Pkt_TLast_s"
          },
          {
            "name": "M_Pkt_TValid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spw0_M_Pkt_TValid_s"
          },
          {
            "name": "M_Pkt_TReady",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spw0_M_Pkt_TReady_s"
          },
          {
            "name": "S_Tc_TData",
            "dir": "in",
            "type": "std_logic_vector(5 downto 0)",
            "domain": "sys",
            "actual": null,
            "useDefault": true,
            "default": "(others => '0')"
          },
          {
            "name": "S_Tc_TValid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": null,
            "useDefault": true,
            "default": "'0'"
          },
          {
            "name": "S_Tc_TReady",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "M_Tc_TData",
            "dir": "out",
            "type": "std_logic_vector(5 downto 0)",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "M_Tc_TValid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "M_Tc_TReady",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": null,
            "useDefault": true,
            "default": "'1'"
          },
          {
            "name": "S_Int_TData",
            "dir": "in",
            "type": "std_logic_vector(4 downto 0)",
            "domain": "sys",
            "actual": null,
            "useDefault": true,
            "default": "(others => '0')"
          },
          {
            "name": "S_Int_TValid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": null,
            "useDefault": true,
            "default": "'0'"
          },
          {
            "name": "S_Int_TReady",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "S_IntAck_TData",
            "dir": "in",
            "type": "std_logic_vector(4 downto 0)",
            "domain": "sys",
            "actual": null,
            "useDefault": true,
            "default": "(others => '0')"
          },
          {
            "name": "S_IntAck_TValid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": null,
            "useDefault": true,
            "default": "'0'"
          },
          {
            "name": "S_IntAck_TReady",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "M_Int_TData",
            "dir": "out",
            "type": "std_logic_vector(4 downto 0)",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "M_Int_TValid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "M_Int_TReady",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": null,
            "useDefault": true,
            "default": "'1'"
          },
          {
            "name": "M_IntAck_TData",
            "dir": "out",
            "type": "std_logic_vector(4 downto 0)",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "M_IntAck_TValid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "M_IntAck_TReady",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": null,
            "useDefault": true,
            "default": "'1'"
          },
          {
            "name": "S_AxiLite_ArAddr",
            "dir": "in",
            "type": "std_logic_vector(7 downto 0)",
            "domain": "sys",
            "actual": "spw0_S_AxiLite_ArAddr_s"
          },
          {
            "name": "S_AxiLite_ArValid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spw0_S_AxiLite_ArValid_s"
          },
          {
            "name": "S_AxiLite_ArReady",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spw0_S_AxiLite_ArReady_s"
          },
          {
            "name": "S_AxiLite_AwAddr",
            "dir": "in",
            "type": "std_logic_vector(7 downto 0)",
            "domain": "sys",
            "actual": "spw0_S_AxiLite_AwAddr_s"
          },
          {
            "name": "S_AxiLite_AwValid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spw0_S_AxiLite_AwValid_s"
          },
          {
            "name": "S_AxiLite_AwReady",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spw0_S_AxiLite_AwReady_s"
          },
          {
            "name": "S_AxiLite_WData",
            "dir": "in",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "spw0_S_AxiLite_WData_s"
          },
          {
            "name": "S_AxiLite_WStrb",
            "dir": "in",
            "type": "std_logic_vector(3 downto 0)",
            "domain": "sys",
            "actual": "spw0_S_AxiLite_WStrb_s"
          },
          {
            "name": "S_AxiLite_WValid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spw0_S_AxiLite_WValid_s"
          },
          {
            "name": "S_AxiLite_WReady",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spw0_S_AxiLite_WReady_s"
          },
          {
            "name": "S_AxiLite_BResp",
            "dir": "out",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "spw0_S_AxiLite_BResp_s"
          },
          {
            "name": "S_AxiLite_BValid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spw0_S_AxiLite_BValid_s"
          },
          {
            "name": "S_AxiLite_BReady",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spw0_S_AxiLite_BReady_s"
          },
          {
            "name": "S_AxiLite_RData",
            "dir": "out",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "spw0_S_AxiLite_RData_s"
          },
          {
            "name": "S_AxiLite_RResp",
            "dir": "out",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "spw0_S_AxiLite_RResp_s"
          },
          {
            "name": "S_AxiLite_RValid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spw0_S_AxiLite_RValid_s"
          },
          {
            "name": "S_AxiLite_RReady",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "spw0_S_AxiLite_RReady_s"
          },
          {
            "name": "Irq",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "open"
          },
          {
            "name": "Spw_DOut",
            "dir": "out",
            "type": "std_logic",
            "domain": "link",
            "actual": "spw0_Spw_DOut_s"
          },
          {
            "name": "Spw_SOut",
            "dir": "out",
            "type": "std_logic",
            "domain": "link",
            "actual": "spw0_Spw_SOut_s"
          },
          {
            "name": "Spw_DIn",
            "dir": "in",
            "type": "std_logic",
            "domain": "link",
            "actual": "spw0_Spw_DIn_s"
          },
          {
            "name": "Spw_SIn",
            "dir": "in",
            "type": "std_logic",
            "domain": "link",
            "actual": "spw0_Spw_SIn_s"
          },
          {
            "name": "Phy_TxEn",
            "dir": "out",
            "type": "std_logic",
            "domain": "link",
            "actual": "spw0_Phy_TxEn_s"
          },
          {
            "name": "Phy_RxEn",
            "dir": "out",
            "type": "std_logic",
            "domain": "link",
            "actual": "spw0_Phy_RxEn_s"
          }
        ]
      },
      {
        "id": "edac0",
        "entity": "olo_ft_ecc_monitor_axi",
        "library": "olo",
        "block": "olo/olo_ft_ecc_monitor_axi",
        "origin": "user",
        "domain": "sys",
        "generics": [
          {
            "name": "Channels_g",
            "value": 2,
            "vhdl": "2",
            "default": false
          },
          {
            "name": "CounterWidth_g",
            "value": 16,
            "vhdl": "16",
            "default": true
          },
          {
            "name": "AxiAddrWidth_g",
            "value": 12,
            "vhdl": "12",
            "default": true
          },
          {
            "name": "ReadTimeoutClks_g",
            "value": 100,
            "vhdl": "100",
            "default": true
          }
        ],
        "ports": [
          {
            "name": "Clk",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "Clk_sys"
          },
          {
            "name": "Rst",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "reset": {
              "kind": "sync",
              "note": "Synchronous reset in the clock domain System clock (clock Clk): the output of the reset generator auto_rst_sys."
            },
            "actual": "auto_rst_sys_RstOut_s"
          },
          {
            "name": "S_AxiLite_ArAddr",
            "dir": "in",
            "type": "std_logic_vector(11 downto 0)",
            "domain": "sys",
            "actual": "edac0_S_AxiLite_ArAddr_s"
          },
          {
            "name": "S_AxiLite_ArValid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "edac0_S_AxiLite_ArValid_s"
          },
          {
            "name": "S_AxiLite_ArReady",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "edac0_S_AxiLite_ArReady_s"
          },
          {
            "name": "S_AxiLite_AwAddr",
            "dir": "in",
            "type": "std_logic_vector(11 downto 0)",
            "domain": "sys",
            "actual": "edac0_S_AxiLite_AwAddr_s"
          },
          {
            "name": "S_AxiLite_AwValid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "edac0_S_AxiLite_AwValid_s"
          },
          {
            "name": "S_AxiLite_AwReady",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "edac0_S_AxiLite_AwReady_s"
          },
          {
            "name": "S_AxiLite_WData",
            "dir": "in",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "edac0_S_AxiLite_WData_s"
          },
          {
            "name": "S_AxiLite_WStrb",
            "dir": "in",
            "type": "std_logic_vector(3 downto 0)",
            "domain": "sys",
            "actual": "edac0_S_AxiLite_WStrb_s"
          },
          {
            "name": "S_AxiLite_WValid",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "edac0_S_AxiLite_WValid_s"
          },
          {
            "name": "S_AxiLite_WReady",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "edac0_S_AxiLite_WReady_s"
          },
          {
            "name": "S_AxiLite_BResp",
            "dir": "out",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "edac0_S_AxiLite_BResp_s"
          },
          {
            "name": "S_AxiLite_BValid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "edac0_S_AxiLite_BValid_s"
          },
          {
            "name": "S_AxiLite_BReady",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "edac0_S_AxiLite_BReady_s"
          },
          {
            "name": "S_AxiLite_RData",
            "dir": "out",
            "type": "std_logic_vector(31 downto 0)",
            "domain": "sys",
            "actual": "edac0_S_AxiLite_RData_s"
          },
          {
            "name": "S_AxiLite_RResp",
            "dir": "out",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "edac0_S_AxiLite_RResp_s"
          },
          {
            "name": "S_AxiLite_RValid",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "edac0_S_AxiLite_RValid_s"
          },
          {
            "name": "S_AxiLite_RReady",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "edac0_S_AxiLite_RReady_s"
          },
          {
            "name": "In_EccSec",
            "dir": "in",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "edac0_In_EccSec_s"
          },
          {
            "name": "In_EccDed",
            "dir": "in",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "edac0_In_EccDed_s"
          },
          {
            "name": "In_Valid",
            "dir": "in",
            "type": "std_logic_vector(1 downto 0)",
            "domain": "sys",
            "actual": "edac0_In_Valid_s"
          },
          {
            "name": "Irq",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "open"
          }
        ]
      },
      {
        "id": "auto_rst_sys",
        "entity": "olo_base_reset_gen",
        "library": "olo",
        "block": "olo/olo_base_reset_gen",
        "origin": "auto",
        "role": "reset",
        "reason": "Synchronous reset of System clock.",
        "domain": "sys",
        "generics": [
          {
            "name": "RstPulseCycles_g",
            "value": 3,
            "vhdl": "3",
            "default": true
          },
          {
            "name": "RstInPolarity_g",
            "value": "1",
            "vhdl": "'1'",
            "default": true
          },
          {
            "name": "AsyncResetOutput_g",
            "value": false,
            "vhdl": "false",
            "default": true
          },
          {
            "name": "SyncStages_g",
            "value": 2,
            "vhdl": "2",
            "default": true
          },
          {
            "name": "SyncTmr_g",
            "value": true,
            "vhdl": "true",
            "default": false
          }
        ],
        "ports": [
          {
            "name": "Clk",
            "dir": "in",
            "type": "std_logic",
            "domain": "sys",
            "actual": "Clk_sys"
          },
          {
            "name": "RstOut",
            "dir": "out",
            "type": "std_logic",
            "domain": "sys",
            "actual": "auto_rst_sys_RstOut_s"
          },
          {
            "name": "RstIn",
            "dir": "in",
            "type": "std_logic",
            "reset": {
              "kind": "async",
              "note": "Asynchronous reset input (polarity from RstInPolarity_g)."
            },
            "actual": "Rst"
          }
        ]
      }
    ],
    "signals": [
      {
        "name": "auto_rst_sys_RstOut_s",
        "type": "std_logic"
      },
      {
        "name": "edac0_In_EccDed_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "edac0_In_EccSec_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "edac0_In_Valid_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "edac0_S_AxiLite_ArAddr_s",
        "type": "std_logic_vector(11 downto 0)"
      },
      {
        "name": "edac0_S_AxiLite_ArReady_s",
        "type": "std_logic"
      },
      {
        "name": "edac0_S_AxiLite_ArValid_s",
        "type": "std_logic"
      },
      {
        "name": "edac0_S_AxiLite_AwAddr_s",
        "type": "std_logic_vector(11 downto 0)"
      },
      {
        "name": "edac0_S_AxiLite_AwReady_s",
        "type": "std_logic"
      },
      {
        "name": "edac0_S_AxiLite_AwValid_s",
        "type": "std_logic"
      },
      {
        "name": "edac0_S_AxiLite_BReady_s",
        "type": "std_logic"
      },
      {
        "name": "edac0_S_AxiLite_BResp_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "edac0_S_AxiLite_BValid_s",
        "type": "std_logic"
      },
      {
        "name": "edac0_S_AxiLite_RData_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "edac0_S_AxiLite_RReady_s",
        "type": "std_logic"
      },
      {
        "name": "edac0_S_AxiLite_RResp_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "edac0_S_AxiLite_RValid_s",
        "type": "std_logic"
      },
      {
        "name": "edac0_S_AxiLite_WData_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "edac0_S_AxiLite_WReady_s",
        "type": "std_logic"
      },
      {
        "name": "edac0_S_AxiLite_WStrb_s",
        "type": "std_logic_vector(3 downto 0)"
      },
      {
        "name": "edac0_S_AxiLite_WValid_s",
        "type": "std_logic"
      },
      {
        "name": "frm0_Cfg_Slot_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "frm0_Ecc_Ded_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "frm0_Ecc_Sec_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "frm0_M_Ctx_Decrypt_s",
        "type": "std_logic"
      },
      {
        "name": "frm0_M_Ctx_Iv_s",
        "type": "std_logic_vector(95 downto 0)"
      },
      {
        "name": "frm0_M_Ctx_IvGen_s",
        "type": "std_logic"
      },
      {
        "name": "frm0_M_Ctx_Ready_s",
        "type": "std_logic"
      },
      {
        "name": "frm0_M_Ctx_Slot_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "frm0_M_Ctx_Valid_s",
        "type": "std_logic"
      },
      {
        "name": "frm0_M_Out_Data_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "frm0_M_Out_Keep_s",
        "type": "std_logic_vector(3 downto 0)"
      },
      {
        "name": "frm0_M_Out_Last_s",
        "type": "std_logic"
      },
      {
        "name": "frm0_M_Out_Ready_s",
        "type": "std_logic"
      },
      {
        "name": "frm0_M_Out_User_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "frm0_M_Out_Valid_s",
        "type": "std_logic"
      },
      {
        "name": "frm0_S_In_Data_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "frm0_S_In_Keep_s",
        "type": "std_logic_vector(3 downto 0)"
      },
      {
        "name": "frm0_S_In_Last_s",
        "type": "std_logic"
      },
      {
        "name": "frm0_S_In_Ready_s",
        "type": "std_logic"
      },
      {
        "name": "frm0_S_In_Valid_s",
        "type": "std_logic"
      },
      {
        "name": "nchar0_M_Link_Data_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "nchar0_M_Link_Keep_s",
        "type": "std_logic_vector(3 downto 0)"
      },
      {
        "name": "nchar0_M_Link_Last_s",
        "type": "std_logic"
      },
      {
        "name": "nchar0_M_Link_Ready_s",
        "type": "std_logic"
      },
      {
        "name": "nchar0_M_Link_User_s",
        "type": "std_logic_vector(0 downto 0)"
      },
      {
        "name": "nchar0_M_Link_Valid_s",
        "type": "std_logic"
      },
      {
        "name": "nchar0_M_NChar_Data_s",
        "type": "std_logic_vector(7 downto 0)"
      },
      {
        "name": "nchar0_M_NChar_Last_s",
        "type": "std_logic"
      },
      {
        "name": "nchar0_M_NChar_Ready_s",
        "type": "std_logic"
      },
      {
        "name": "nchar0_M_NChar_Valid_s",
        "type": "std_logic"
      },
      {
        "name": "nchar0_S_Link_Data_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "nchar0_S_Link_Keep_s",
        "type": "std_logic_vector(3 downto 0)"
      },
      {
        "name": "nchar0_S_Link_Last_s",
        "type": "std_logic"
      },
      {
        "name": "nchar0_S_Link_Ready_s",
        "type": "std_logic"
      },
      {
        "name": "nchar0_S_Link_User_s",
        "type": "std_logic_vector(4 downto 0)"
      },
      {
        "name": "nchar0_S_Link_Valid_s",
        "type": "std_logic"
      },
      {
        "name": "nchar0_S_NChar_Data_s",
        "type": "std_logic_vector(7 downto 0)"
      },
      {
        "name": "nchar0_S_NChar_Last_s",
        "type": "std_logic"
      },
      {
        "name": "nchar0_S_NChar_Ready_s",
        "type": "std_logic"
      },
      {
        "name": "nchar0_S_NChar_Valid_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_M_Out_Data_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "ocr0_M_Out_Keep_s",
        "type": "std_logic_vector(3 downto 0)"
      },
      {
        "name": "ocr0_M_Out_Last_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_M_Out_Ready_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_M_Out_Valid_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_S_AxiLite_ArAddr_s",
        "type": "std_logic_vector(7 downto 0)"
      },
      {
        "name": "ocr0_S_AxiLite_ArReady_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_S_AxiLite_ArValid_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_S_AxiLite_AwAddr_s",
        "type": "std_logic_vector(7 downto 0)"
      },
      {
        "name": "ocr0_S_AxiLite_AwReady_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_S_AxiLite_AwValid_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_S_AxiLite_BReady_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_S_AxiLite_BResp_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "ocr0_S_AxiLite_BValid_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_S_AxiLite_RData_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "ocr0_S_AxiLite_RReady_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_S_AxiLite_RResp_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "ocr0_S_AxiLite_RValid_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_S_AxiLite_WData_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "ocr0_S_AxiLite_WReady_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_S_AxiLite_WStrb_s",
        "type": "std_logic_vector(3 downto 0)"
      },
      {
        "name": "ocr0_S_AxiLite_WValid_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_S_Ctx_Decrypt_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_S_Ctx_Iv_s",
        "type": "std_logic_vector(95 downto 0)"
      },
      {
        "name": "ocr0_S_Ctx_IvGen_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_S_Ctx_Ready_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_S_Ctx_Slot_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "ocr0_S_Ctx_Valid_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_S_In_Data_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "ocr0_S_In_Keep_s",
        "type": "std_logic_vector(3 downto 0)"
      },
      {
        "name": "ocr0_S_In_Last_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_S_In_Ready_s",
        "type": "std_logic"
      },
      {
        "name": "ocr0_S_In_User_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "ocr0_S_In_Valid_s",
        "type": "std_logic"
      },
      {
        "name": "spp0_M_Link_Data_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "spp0_M_Link_Keep_s",
        "type": "std_logic_vector(3 downto 0)"
      },
      {
        "name": "spp0_M_Link_Last_s",
        "type": "std_logic"
      },
      {
        "name": "spp0_M_Link_Ready_s",
        "type": "std_logic"
      },
      {
        "name": "spp0_M_Link_User_s",
        "type": "std_logic_vector(4 downto 0)"
      },
      {
        "name": "spp0_M_Link_Valid_s",
        "type": "std_logic"
      },
      {
        "name": "spp0_M_Rx_Data_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "spp0_M_Rx_Keep_s",
        "type": "std_logic_vector(3 downto 0)"
      },
      {
        "name": "spp0_M_Rx_Last_s",
        "type": "std_logic_vector(0 downto 0)"
      },
      {
        "name": "spp0_M_Rx_Ready_s",
        "type": "std_logic_vector(0 downto 0)"
      },
      {
        "name": "spp0_M_Rx_User_s",
        "type": "std_logic_vector(21 downto 0)"
      },
      {
        "name": "spp0_M_Rx_Valid_s",
        "type": "std_logic_vector(0 downto 0)"
      },
      {
        "name": "spp0_S_AxiLite_ArAddr_s",
        "type": "std_logic_vector(10 downto 0)"
      },
      {
        "name": "spp0_S_AxiLite_ArReady_s",
        "type": "std_logic"
      },
      {
        "name": "spp0_S_AxiLite_ArValid_s",
        "type": "std_logic"
      },
      {
        "name": "spp0_S_AxiLite_AwAddr_s",
        "type": "std_logic_vector(10 downto 0)"
      },
      {
        "name": "spp0_S_AxiLite_AwReady_s",
        "type": "std_logic"
      },
      {
        "name": "spp0_S_AxiLite_AwValid_s",
        "type": "std_logic"
      },
      {
        "name": "spp0_S_AxiLite_BReady_s",
        "type": "std_logic"
      },
      {
        "name": "spp0_S_AxiLite_BResp_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "spp0_S_AxiLite_BValid_s",
        "type": "std_logic"
      },
      {
        "name": "spp0_S_AxiLite_RData_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "spp0_S_AxiLite_RReady_s",
        "type": "std_logic"
      },
      {
        "name": "spp0_S_AxiLite_RResp_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "spp0_S_AxiLite_RValid_s",
        "type": "std_logic"
      },
      {
        "name": "spp0_S_AxiLite_WData_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "spp0_S_AxiLite_WReady_s",
        "type": "std_logic"
      },
      {
        "name": "spp0_S_AxiLite_WStrb_s",
        "type": "std_logic_vector(3 downto 0)"
      },
      {
        "name": "spp0_S_AxiLite_WValid_s",
        "type": "std_logic"
      },
      {
        "name": "spp0_S_Link_Data_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "spp0_S_Link_Keep_s",
        "type": "std_logic_vector(3 downto 0)"
      },
      {
        "name": "spp0_S_Link_Last_s",
        "type": "std_logic"
      },
      {
        "name": "spp0_S_Link_Ready_s",
        "type": "std_logic"
      },
      {
        "name": "spp0_S_Link_User_s",
        "type": "std_logic_vector(0 downto 0)"
      },
      {
        "name": "spp0_S_Link_Valid_s",
        "type": "std_logic"
      },
      {
        "name": "spp0_S_Tx_Data_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "spp0_S_Tx_Keep_s",
        "type": "std_logic_vector(3 downto 0)"
      },
      {
        "name": "spp0_S_Tx_Last_s",
        "type": "std_logic_vector(0 downto 0)"
      },
      {
        "name": "spp0_S_Tx_Ready_s",
        "type": "std_logic_vector(0 downto 0)"
      },
      {
        "name": "spp0_S_Tx_User_s",
        "type": "std_logic_vector(27 downto 0)"
      },
      {
        "name": "spp0_S_Tx_Valid_s",
        "type": "std_logic_vector(0 downto 0)"
      },
      {
        "name": "spw0_M_Pkt_TData_s",
        "type": "std_logic_vector(7 downto 0)"
      },
      {
        "name": "spw0_M_Pkt_TLast_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_M_Pkt_TReady_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_M_Pkt_TValid_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_Phy_RxEn_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_Phy_TxEn_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_S_AxiLite_ArAddr_s",
        "type": "std_logic_vector(7 downto 0)"
      },
      {
        "name": "spw0_S_AxiLite_ArReady_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_S_AxiLite_ArValid_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_S_AxiLite_AwAddr_s",
        "type": "std_logic_vector(7 downto 0)"
      },
      {
        "name": "spw0_S_AxiLite_AwReady_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_S_AxiLite_AwValid_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_S_AxiLite_BReady_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_S_AxiLite_BResp_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "spw0_S_AxiLite_BValid_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_S_AxiLite_RData_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "spw0_S_AxiLite_RReady_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_S_AxiLite_RResp_s",
        "type": "std_logic_vector(1 downto 0)"
      },
      {
        "name": "spw0_S_AxiLite_RValid_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_S_AxiLite_WData_s",
        "type": "std_logic_vector(31 downto 0)"
      },
      {
        "name": "spw0_S_AxiLite_WReady_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_S_AxiLite_WStrb_s",
        "type": "std_logic_vector(3 downto 0)"
      },
      {
        "name": "spw0_S_AxiLite_WValid_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_S_Pkt_TData_s",
        "type": "std_logic_vector(7 downto 0)"
      },
      {
        "name": "spw0_S_Pkt_TLast_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_S_Pkt_TReady_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_S_Pkt_TValid_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_Spw_DIn_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_Spw_DOut_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_Spw_SIn_s",
        "type": "std_logic"
      },
      {
        "name": "spw0_Spw_SOut_s",
        "type": "std_logic"
      }
    ],
    "nets": [
      {
        "to": "ocr0_S_Ctx_Decrypt_s",
        "from": "frm0_M_Ctx_Decrypt_s",
        "kind": "connection",
        "connection": "c1",
        "signal": "decrypt"
      },
      {
        "to": "ocr0_S_Ctx_Iv_s",
        "from": "frm0_M_Ctx_Iv_s",
        "kind": "connection",
        "connection": "c1",
        "signal": "iv"
      },
      {
        "to": "ocr0_S_Ctx_IvGen_s",
        "from": "frm0_M_Ctx_IvGen_s",
        "kind": "connection",
        "connection": "c1",
        "signal": "iv_gen"
      },
      {
        "to": "frm0_M_Ctx_Ready_s",
        "from": "ocr0_S_Ctx_Ready_s",
        "kind": "connection",
        "connection": "c1",
        "signal": "ready"
      },
      {
        "to": "ocr0_S_Ctx_Slot_s",
        "from": "frm0_M_Ctx_Slot_s",
        "kind": "connection",
        "connection": "c1",
        "signal": "slot"
      },
      {
        "to": "ocr0_S_Ctx_Valid_s",
        "from": "frm0_M_Ctx_Valid_s",
        "kind": "connection",
        "connection": "c1",
        "signal": "valid"
      },
      {
        "to": "ocr0_S_In_Data_s",
        "from": "frm0_M_Out_Data_s",
        "kind": "connection",
        "connection": "c2",
        "signal": "data"
      },
      {
        "to": "ocr0_S_In_Keep_s",
        "from": "frm0_M_Out_Keep_s",
        "kind": "connection",
        "connection": "c2",
        "signal": "keep"
      },
      {
        "to": "ocr0_S_In_Last_s",
        "from": "frm0_M_Out_Last_s",
        "kind": "connection",
        "connection": "c2",
        "signal": "last"
      },
      {
        "to": "frm0_M_Out_Ready_s",
        "from": "ocr0_S_In_Ready_s",
        "kind": "connection",
        "connection": "c2",
        "signal": "ready"
      },
      {
        "to": "ocr0_S_In_User_s",
        "from": "frm0_M_Out_User_s",
        "kind": "connection",
        "connection": "c2",
        "signal": "user"
      },
      {
        "to": "ocr0_S_In_Valid_s",
        "from": "frm0_M_Out_Valid_s",
        "kind": "connection",
        "connection": "c2",
        "signal": "valid"
      },
      {
        "to": "spp0_S_Tx_Data_s",
        "from": "ocr0_M_Out_Data_s",
        "kind": "connection",
        "connection": "c3",
        "signal": "data"
      },
      {
        "to": "spp0_S_Tx_Keep_s",
        "from": "ocr0_M_Out_Keep_s",
        "kind": "connection",
        "connection": "c3",
        "signal": "keep"
      },
      {
        "to": "spp0_S_Tx_Last_s(0)",
        "from": "ocr0_M_Out_Last_s",
        "kind": "connection",
        "connection": "c3",
        "signal": "last"
      },
      {
        "to": "ocr0_M_Out_Ready_s",
        "from": "spp0_S_Tx_Ready_s(0)",
        "kind": "connection",
        "connection": "c3",
        "signal": "ready"
      },
      {
        "to": "spp0_S_Tx_User_s",
        "from": "\"0000000000000000000100100011\"",
        "kind": "constant",
        "connection": "c3",
        "signal": "user",
        "reason": "Side band constants of the connection.",
        "fields": [
          {
            "name": "apid",
            "label": "APID",
            "lsb": 0,
            "bits": 11,
            "value": 291
          },
          {
            "name": "shi",
            "label": "Secondary header flag",
            "lsb": 11,
            "bits": 1,
            "value": false
          },
          {
            "name": "type",
            "label": "Packet type (telecommand)",
            "lsb": 12,
            "bits": 1,
            "value": false
          },
          {
            "name": "nameValid",
            "label": "Packet name instead of sequence count",
            "lsb": 13,
            "bits": 1,
            "value": false
          },
          {
            "name": "name",
            "label": "Packet name",
            "lsb": 14,
            "bits": 14,
            "value": 0
          }
        ]
      },
      {
        "to": "spp0_S_Tx_Valid_s(0)",
        "from": "ocr0_M_Out_Valid_s",
        "kind": "connection",
        "connection": "c3",
        "signal": "valid"
      },
      {
        "to": "nchar0_S_Link_Data_s",
        "from": "spp0_M_Link_Data_s",
        "kind": "connection",
        "connection": "c4",
        "signal": "data"
      },
      {
        "to": "nchar0_S_Link_Keep_s",
        "from": "spp0_M_Link_Keep_s",
        "kind": "connection",
        "connection": "c4",
        "signal": "keep"
      },
      {
        "to": "nchar0_S_Link_Last_s",
        "from": "spp0_M_Link_Last_s",
        "kind": "connection",
        "connection": "c4",
        "signal": "last"
      },
      {
        "to": "spp0_M_Link_Ready_s",
        "from": "nchar0_S_Link_Ready_s",
        "kind": "connection",
        "connection": "c4",
        "signal": "ready"
      },
      {
        "to": "nchar0_S_Link_User_s",
        "from": "spp0_M_Link_User_s",
        "kind": "connection",
        "connection": "c4",
        "signal": "user"
      },
      {
        "to": "nchar0_S_Link_Valid_s",
        "from": "spp0_M_Link_Valid_s",
        "kind": "connection",
        "connection": "c4",
        "signal": "valid"
      },
      {
        "to": "spp0_S_Link_Data_s",
        "from": "nchar0_M_Link_Data_s",
        "kind": "connection",
        "connection": "c5",
        "signal": "data"
      },
      {
        "to": "spp0_S_Link_Keep_s",
        "from": "nchar0_M_Link_Keep_s",
        "kind": "connection",
        "connection": "c5",
        "signal": "keep"
      },
      {
        "to": "spp0_S_Link_Last_s",
        "from": "nchar0_M_Link_Last_s",
        "kind": "connection",
        "connection": "c5",
        "signal": "last"
      },
      {
        "to": "nchar0_M_Link_Ready_s",
        "from": "spp0_S_Link_Ready_s",
        "kind": "connection",
        "connection": "c5",
        "signal": "ready"
      },
      {
        "to": "spp0_S_Link_User_s(0)",
        "from": "nchar0_M_Link_User_s(0)",
        "kind": "connection",
        "connection": "c5",
        "signal": "user"
      },
      {
        "to": "spp0_S_Link_Valid_s",
        "from": "nchar0_M_Link_Valid_s",
        "kind": "connection",
        "connection": "c5",
        "signal": "valid"
      },
      {
        "to": "spw0_S_Pkt_TData_s",
        "from": "nchar0_M_NChar_Data_s",
        "kind": "connection",
        "connection": "c6",
        "signal": "data"
      },
      {
        "to": "spw0_S_Pkt_TLast_s",
        "from": "nchar0_M_NChar_Last_s",
        "kind": "connection",
        "connection": "c6",
        "signal": "last"
      },
      {
        "to": "nchar0_M_NChar_Ready_s",
        "from": "spw0_S_Pkt_TReady_s",
        "kind": "connection",
        "connection": "c6",
        "signal": "ready"
      },
      {
        "to": "spw0_S_Pkt_TValid_s",
        "from": "nchar0_M_NChar_Valid_s",
        "kind": "connection",
        "connection": "c6",
        "signal": "valid"
      },
      {
        "to": "nchar0_S_NChar_Data_s",
        "from": "spw0_M_Pkt_TData_s",
        "kind": "connection",
        "connection": "c7",
        "signal": "data"
      },
      {
        "to": "nchar0_S_NChar_Last_s",
        "from": "spw0_M_Pkt_TLast_s",
        "kind": "connection",
        "connection": "c7",
        "signal": "last"
      },
      {
        "to": "spw0_M_Pkt_TReady_s",
        "from": "nchar0_S_NChar_Ready_s",
        "kind": "connection",
        "connection": "c7",
        "signal": "ready"
      },
      {
        "to": "nchar0_S_NChar_Valid_s",
        "from": "spw0_M_Pkt_TValid_s",
        "kind": "connection",
        "connection": "c7",
        "signal": "valid"
      },
      {
        "to": "edac0_In_EccDed_s(0)",
        "from": "frm0_Ecc_Ded_s(0)",
        "kind": "connection",
        "connection": "c8",
        "signal": "ded"
      },
      {
        "to": "edac0_In_EccSec_s(0)",
        "from": "frm0_Ecc_Sec_s(0)",
        "kind": "connection",
        "connection": "c8",
        "signal": "sec"
      },
      {
        "to": "edac0_In_Valid_s(0)",
        "from": "'1'",
        "kind": "constant",
        "connection": "c8",
        "signal": "valid",
        "reason": "frm0.Ecc[0] has no valid: events without valid are valid in every cycle, as the default of In_Valid of olo_ft_ecc_monitor."
      },
      {
        "to": "edac0_In_EccDed_s(1)",
        "from": "frm0_Ecc_Ded_s(1)",
        "kind": "connection",
        "connection": "c9",
        "signal": "ded"
      },
      {
        "to": "edac0_In_EccSec_s(1)",
        "from": "frm0_Ecc_Sec_s(1)",
        "kind": "connection",
        "connection": "c9",
        "signal": "sec"
      },
      {
        "to": "edac0_In_Valid_s(1)",
        "from": "'1'",
        "kind": "constant",
        "connection": "c9",
        "signal": "valid",
        "reason": "frm0.Ecc[1] has no valid: events without valid are valid in every cycle, as the default of In_Valid of olo_ft_ecc_monitor."
      },
      {
        "to": "frm0_S_In_Data_s",
        "from": "pkt_S_In_Data",
        "kind": "top",
        "signal": "S_In_Data"
      },
      {
        "to": "frm0_S_In_Keep_s",
        "from": "pkt_S_In_Keep",
        "kind": "top",
        "signal": "S_In_Keep"
      },
      {
        "to": "frm0_S_In_Last_s",
        "from": "pkt_S_In_Last",
        "kind": "top",
        "signal": "S_In_Last"
      },
      {
        "to": "frm0_S_In_Valid_s",
        "from": "pkt_S_In_Valid",
        "kind": "top",
        "signal": "S_In_Valid"
      },
      {
        "to": "pkt_S_In_Ready",
        "from": "frm0_S_In_Ready_s",
        "kind": "top",
        "signal": "S_In_Ready"
      },
      {
        "to": "ocr0_S_AxiLite_AwAddr_s",
        "from": "ocr_reg_S_AxiLite_AwAddr",
        "kind": "top",
        "signal": "S_AxiLite_AwAddr"
      },
      {
        "to": "ocr0_S_AxiLite_AwValid_s",
        "from": "ocr_reg_S_AxiLite_AwValid",
        "kind": "top",
        "signal": "S_AxiLite_AwValid"
      },
      {
        "to": "ocr_reg_S_AxiLite_AwReady",
        "from": "ocr0_S_AxiLite_AwReady_s",
        "kind": "top",
        "signal": "S_AxiLite_AwReady"
      },
      {
        "to": "ocr0_S_AxiLite_WData_s",
        "from": "ocr_reg_S_AxiLite_WData",
        "kind": "top",
        "signal": "S_AxiLite_WData"
      },
      {
        "to": "ocr0_S_AxiLite_WStrb_s",
        "from": "ocr_reg_S_AxiLite_WStrb",
        "kind": "top",
        "signal": "S_AxiLite_WStrb"
      },
      {
        "to": "ocr0_S_AxiLite_WValid_s",
        "from": "ocr_reg_S_AxiLite_WValid",
        "kind": "top",
        "signal": "S_AxiLite_WValid"
      },
      {
        "to": "ocr_reg_S_AxiLite_WReady",
        "from": "ocr0_S_AxiLite_WReady_s",
        "kind": "top",
        "signal": "S_AxiLite_WReady"
      },
      {
        "to": "ocr_reg_S_AxiLite_BResp",
        "from": "ocr0_S_AxiLite_BResp_s",
        "kind": "top",
        "signal": "S_AxiLite_BResp"
      },
      {
        "to": "ocr_reg_S_AxiLite_BValid",
        "from": "ocr0_S_AxiLite_BValid_s",
        "kind": "top",
        "signal": "S_AxiLite_BValid"
      },
      {
        "to": "ocr0_S_AxiLite_BReady_s",
        "from": "ocr_reg_S_AxiLite_BReady",
        "kind": "top",
        "signal": "S_AxiLite_BReady"
      },
      {
        "to": "ocr0_S_AxiLite_ArAddr_s",
        "from": "ocr_reg_S_AxiLite_ArAddr",
        "kind": "top",
        "signal": "S_AxiLite_ArAddr"
      },
      {
        "to": "ocr0_S_AxiLite_ArValid_s",
        "from": "ocr_reg_S_AxiLite_ArValid",
        "kind": "top",
        "signal": "S_AxiLite_ArValid"
      },
      {
        "to": "ocr_reg_S_AxiLite_ArReady",
        "from": "ocr0_S_AxiLite_ArReady_s",
        "kind": "top",
        "signal": "S_AxiLite_ArReady"
      },
      {
        "to": "ocr_reg_S_AxiLite_RData",
        "from": "ocr0_S_AxiLite_RData_s",
        "kind": "top",
        "signal": "S_AxiLite_RData"
      },
      {
        "to": "ocr_reg_S_AxiLite_RResp",
        "from": "ocr0_S_AxiLite_RResp_s",
        "kind": "top",
        "signal": "S_AxiLite_RResp"
      },
      {
        "to": "ocr_reg_S_AxiLite_RValid",
        "from": "ocr0_S_AxiLite_RValid_s",
        "kind": "top",
        "signal": "S_AxiLite_RValid"
      },
      {
        "to": "ocr0_S_AxiLite_RReady_s",
        "from": "ocr_reg_S_AxiLite_RReady",
        "kind": "top",
        "signal": "S_AxiLite_RReady"
      },
      {
        "to": "rx0_M_Rx_Data_0",
        "from": "spp0_M_Rx_Data_s",
        "kind": "top",
        "signal": "M_Rx_Data"
      },
      {
        "to": "rx0_M_Rx_Keep_0",
        "from": "spp0_M_Rx_Keep_s",
        "kind": "top",
        "signal": "M_Rx_Keep"
      },
      {
        "to": "rx0_M_Rx_Last_0",
        "from": "spp0_M_Rx_Last_s(0)",
        "kind": "top",
        "signal": "M_Rx_Last"
      },
      {
        "to": "rx0_M_Rx_User_0",
        "from": "spp0_M_Rx_User_s",
        "kind": "top",
        "signal": "M_Rx_User"
      },
      {
        "to": "rx0_M_Rx_Valid_0",
        "from": "spp0_M_Rx_Valid_s(0)",
        "kind": "top",
        "signal": "M_Rx_Valid"
      },
      {
        "to": "spp0_M_Rx_Ready_s(0)",
        "from": "rx0_M_Rx_Ready_0",
        "kind": "top",
        "signal": "M_Rx_Ready"
      },
      {
        "to": "spp0_S_AxiLite_AwAddr_s",
        "from": "spp_reg_S_AxiLite_AwAddr",
        "kind": "top",
        "signal": "S_AxiLite_AwAddr"
      },
      {
        "to": "spp0_S_AxiLite_AwValid_s",
        "from": "spp_reg_S_AxiLite_AwValid",
        "kind": "top",
        "signal": "S_AxiLite_AwValid"
      },
      {
        "to": "spp_reg_S_AxiLite_AwReady",
        "from": "spp0_S_AxiLite_AwReady_s",
        "kind": "top",
        "signal": "S_AxiLite_AwReady"
      },
      {
        "to": "spp0_S_AxiLite_WData_s",
        "from": "spp_reg_S_AxiLite_WData",
        "kind": "top",
        "signal": "S_AxiLite_WData"
      },
      {
        "to": "spp0_S_AxiLite_WStrb_s",
        "from": "spp_reg_S_AxiLite_WStrb",
        "kind": "top",
        "signal": "S_AxiLite_WStrb"
      },
      {
        "to": "spp0_S_AxiLite_WValid_s",
        "from": "spp_reg_S_AxiLite_WValid",
        "kind": "top",
        "signal": "S_AxiLite_WValid"
      },
      {
        "to": "spp_reg_S_AxiLite_WReady",
        "from": "spp0_S_AxiLite_WReady_s",
        "kind": "top",
        "signal": "S_AxiLite_WReady"
      },
      {
        "to": "spp_reg_S_AxiLite_BResp",
        "from": "spp0_S_AxiLite_BResp_s",
        "kind": "top",
        "signal": "S_AxiLite_BResp"
      },
      {
        "to": "spp_reg_S_AxiLite_BValid",
        "from": "spp0_S_AxiLite_BValid_s",
        "kind": "top",
        "signal": "S_AxiLite_BValid"
      },
      {
        "to": "spp0_S_AxiLite_BReady_s",
        "from": "spp_reg_S_AxiLite_BReady",
        "kind": "top",
        "signal": "S_AxiLite_BReady"
      },
      {
        "to": "spp0_S_AxiLite_ArAddr_s",
        "from": "spp_reg_S_AxiLite_ArAddr",
        "kind": "top",
        "signal": "S_AxiLite_ArAddr"
      },
      {
        "to": "spp0_S_AxiLite_ArValid_s",
        "from": "spp_reg_S_AxiLite_ArValid",
        "kind": "top",
        "signal": "S_AxiLite_ArValid"
      },
      {
        "to": "spp_reg_S_AxiLite_ArReady",
        "from": "spp0_S_AxiLite_ArReady_s",
        "kind": "top",
        "signal": "S_AxiLite_ArReady"
      },
      {
        "to": "spp_reg_S_AxiLite_RData",
        "from": "spp0_S_AxiLite_RData_s",
        "kind": "top",
        "signal": "S_AxiLite_RData"
      },
      {
        "to": "spp_reg_S_AxiLite_RResp",
        "from": "spp0_S_AxiLite_RResp_s",
        "kind": "top",
        "signal": "S_AxiLite_RResp"
      },
      {
        "to": "spp_reg_S_AxiLite_RValid",
        "from": "spp0_S_AxiLite_RValid_s",
        "kind": "top",
        "signal": "S_AxiLite_RValid"
      },
      {
        "to": "spp0_S_AxiLite_RReady_s",
        "from": "spp_reg_S_AxiLite_RReady",
        "kind": "top",
        "signal": "S_AxiLite_RReady"
      },
      {
        "to": "spw0_S_AxiLite_AwAddr_s",
        "from": "spw_reg_S_AxiLite_AwAddr",
        "kind": "top",
        "signal": "S_AxiLite_AwAddr"
      },
      {
        "to": "spw0_S_AxiLite_AwValid_s",
        "from": "spw_reg_S_AxiLite_AwValid",
        "kind": "top",
        "signal": "S_AxiLite_AwValid"
      },
      {
        "to": "spw_reg_S_AxiLite_AwReady",
        "from": "spw0_S_AxiLite_AwReady_s",
        "kind": "top",
        "signal": "S_AxiLite_AwReady"
      },
      {
        "to": "spw0_S_AxiLite_WData_s",
        "from": "spw_reg_S_AxiLite_WData",
        "kind": "top",
        "signal": "S_AxiLite_WData"
      },
      {
        "to": "spw0_S_AxiLite_WStrb_s",
        "from": "spw_reg_S_AxiLite_WStrb",
        "kind": "top",
        "signal": "S_AxiLite_WStrb"
      },
      {
        "to": "spw0_S_AxiLite_WValid_s",
        "from": "spw_reg_S_AxiLite_WValid",
        "kind": "top",
        "signal": "S_AxiLite_WValid"
      },
      {
        "to": "spw_reg_S_AxiLite_WReady",
        "from": "spw0_S_AxiLite_WReady_s",
        "kind": "top",
        "signal": "S_AxiLite_WReady"
      },
      {
        "to": "spw_reg_S_AxiLite_BResp",
        "from": "spw0_S_AxiLite_BResp_s",
        "kind": "top",
        "signal": "S_AxiLite_BResp"
      },
      {
        "to": "spw_reg_S_AxiLite_BValid",
        "from": "spw0_S_AxiLite_BValid_s",
        "kind": "top",
        "signal": "S_AxiLite_BValid"
      },
      {
        "to": "spw0_S_AxiLite_BReady_s",
        "from": "spw_reg_S_AxiLite_BReady",
        "kind": "top",
        "signal": "S_AxiLite_BReady"
      },
      {
        "to": "spw0_S_AxiLite_ArAddr_s",
        "from": "spw_reg_S_AxiLite_ArAddr",
        "kind": "top",
        "signal": "S_AxiLite_ArAddr"
      },
      {
        "to": "spw0_S_AxiLite_ArValid_s",
        "from": "spw_reg_S_AxiLite_ArValid",
        "kind": "top",
        "signal": "S_AxiLite_ArValid"
      },
      {
        "to": "spw_reg_S_AxiLite_ArReady",
        "from": "spw0_S_AxiLite_ArReady_s",
        "kind": "top",
        "signal": "S_AxiLite_ArReady"
      },
      {
        "to": "spw_reg_S_AxiLite_RData",
        "from": "spw0_S_AxiLite_RData_s",
        "kind": "top",
        "signal": "S_AxiLite_RData"
      },
      {
        "to": "spw_reg_S_AxiLite_RResp",
        "from": "spw0_S_AxiLite_RResp_s",
        "kind": "top",
        "signal": "S_AxiLite_RResp"
      },
      {
        "to": "spw_reg_S_AxiLite_RValid",
        "from": "spw0_S_AxiLite_RValid_s",
        "kind": "top",
        "signal": "S_AxiLite_RValid"
      },
      {
        "to": "spw0_S_AxiLite_RReady_s",
        "from": "spw_reg_S_AxiLite_RReady",
        "kind": "top",
        "signal": "S_AxiLite_RReady"
      },
      {
        "to": "spw0_Spw_DOut",
        "from": "spw0_Spw_DOut_s",
        "kind": "top",
        "signal": "Spw_DOut"
      },
      {
        "to": "spw0_Spw_SOut",
        "from": "spw0_Spw_SOut_s",
        "kind": "top",
        "signal": "Spw_SOut"
      },
      {
        "to": "spw0_Spw_DIn_s",
        "from": "spw0_Spw_DIn",
        "kind": "top",
        "signal": "Spw_DIn"
      },
      {
        "to": "spw0_Spw_SIn_s",
        "from": "spw0_Spw_SIn",
        "kind": "top",
        "signal": "Spw_SIn"
      },
      {
        "to": "spw0_Phy_TxEn",
        "from": "spw0_Phy_TxEn_s",
        "kind": "top",
        "signal": "Phy_TxEn"
      },
      {
        "to": "spw0_Phy_RxEn",
        "from": "spw0_Phy_RxEn_s",
        "kind": "top",
        "signal": "Phy_RxEn"
      },
      {
        "to": "edac0_S_AxiLite_AwAddr_s",
        "from": "edac_reg_S_AxiLite_AwAddr",
        "kind": "top",
        "signal": "S_AxiLite_AwAddr"
      },
      {
        "to": "edac0_S_AxiLite_AwValid_s",
        "from": "edac_reg_S_AxiLite_AwValid",
        "kind": "top",
        "signal": "S_AxiLite_AwValid"
      },
      {
        "to": "edac_reg_S_AxiLite_AwReady",
        "from": "edac0_S_AxiLite_AwReady_s",
        "kind": "top",
        "signal": "S_AxiLite_AwReady"
      },
      {
        "to": "edac0_S_AxiLite_WData_s",
        "from": "edac_reg_S_AxiLite_WData",
        "kind": "top",
        "signal": "S_AxiLite_WData"
      },
      {
        "to": "edac0_S_AxiLite_WStrb_s",
        "from": "edac_reg_S_AxiLite_WStrb",
        "kind": "top",
        "signal": "S_AxiLite_WStrb"
      },
      {
        "to": "edac0_S_AxiLite_WValid_s",
        "from": "edac_reg_S_AxiLite_WValid",
        "kind": "top",
        "signal": "S_AxiLite_WValid"
      },
      {
        "to": "edac_reg_S_AxiLite_WReady",
        "from": "edac0_S_AxiLite_WReady_s",
        "kind": "top",
        "signal": "S_AxiLite_WReady"
      },
      {
        "to": "edac_reg_S_AxiLite_BResp",
        "from": "edac0_S_AxiLite_BResp_s",
        "kind": "top",
        "signal": "S_AxiLite_BResp"
      },
      {
        "to": "edac_reg_S_AxiLite_BValid",
        "from": "edac0_S_AxiLite_BValid_s",
        "kind": "top",
        "signal": "S_AxiLite_BValid"
      },
      {
        "to": "edac0_S_AxiLite_BReady_s",
        "from": "edac_reg_S_AxiLite_BReady",
        "kind": "top",
        "signal": "S_AxiLite_BReady"
      },
      {
        "to": "edac0_S_AxiLite_ArAddr_s",
        "from": "edac_reg_S_AxiLite_ArAddr",
        "kind": "top",
        "signal": "S_AxiLite_ArAddr"
      },
      {
        "to": "edac0_S_AxiLite_ArValid_s",
        "from": "edac_reg_S_AxiLite_ArValid",
        "kind": "top",
        "signal": "S_AxiLite_ArValid"
      },
      {
        "to": "edac_reg_S_AxiLite_ArReady",
        "from": "edac0_S_AxiLite_ArReady_s",
        "kind": "top",
        "signal": "S_AxiLite_ArReady"
      },
      {
        "to": "edac_reg_S_AxiLite_RData",
        "from": "edac0_S_AxiLite_RData_s",
        "kind": "top",
        "signal": "S_AxiLite_RData"
      },
      {
        "to": "edac_reg_S_AxiLite_RResp",
        "from": "edac0_S_AxiLite_RResp_s",
        "kind": "top",
        "signal": "S_AxiLite_RResp"
      },
      {
        "to": "edac_reg_S_AxiLite_RValid",
        "from": "edac0_S_AxiLite_RValid_s",
        "kind": "top",
        "signal": "S_AxiLite_RValid"
      },
      {
        "to": "edac0_S_AxiLite_RReady_s",
        "from": "edac_reg_S_AxiLite_RReady",
        "kind": "top",
        "signal": "S_AxiLite_RReady"
      },
      {
        "to": "frm0_Cfg_Slot_s",
        "from": "\"00\"",
        "kind": "tie-off",
        "signal": "Cfg_Slot",
        "reason": "Constant of frm0.Cfg: Key slot 0.",
        "fields": [
          {
            "name": "slot",
            "label": "Key slot",
            "lsb": 0,
            "bits": 2,
            "value": 0
          }
        ]
      }
    ],
    "packing": [],
    "constraints": [
      {
        "kind": "false_path",
        "from": [
          "spw0_Spw_DIn",
          "spw0_Spw_SIn"
        ],
        "instance": "spw0",
        "note": "Inputs that spw0 synchronises itself."
      },
      {
        "kind": "io_register",
        "ports": [
          "spw0_Spw_DOut",
          "spw0_Spw_SOut"
        ],
        "note": "Place the output flip-flops of data and strobe in the I/O blocks with matched routing.",
        "instance": "spw0"
      },
      {
        "kind": "max_delay",
        "from": "Clk_link",
        "to": "Clk_sys",
        "ns": 5,
        "datapathOnly": true,
        "instances": [
          "spw0"
        ],
        "note": "Clock crossings of spw0: the period of the faster clock."
      },
      {
        "kind": "max_delay",
        "from": "Clk_sys",
        "to": "Clk_link",
        "ns": 5,
        "datapathOnly": true,
        "instances": [
          "spw0"
        ],
        "note": "Clock crossings of spw0: the period of the faster clock."
      },
      {
        "kind": "vendor_scoped",
        "file": "src/base/tcl/olo_base_constraints_amd.tcl",
        "note": "AMD Vivado: source the script of Open Logic once. It reads the scoped constraints of olo_base_cc_reset, olo_base_cc_bits, olo_base_cc_simple, olo_base_reset_gen and olo_base_ram_sdp wherever the system uses them, also inside the cores. tools/vivado/all_constraints_amd.tcl would also read those of olo_intf_sync, which expect device pins at its input and stop the build (ERROR 18-513) where a block synchronises internal signals with it, as ofb_pa_gty does; a block that synchronises device pins declares its own false path for them."
      }
    ],
    "compile": [
      {
        "library": "olo",
        "source": "olo",
        "url": "https://github.com/open-space-hdl/open-logic-ft",
        "tag": "4.8.0-ft.2",
        "commit": "1f4a6c3b363151c30e754d4f413b8ee5e1febb95",
        "fileList": "compile_order.txt",
        "fileListFormat": "files",
        "note": "Clone with the submodule 3rdParty/en_cl_fix (git clone --recursive); compile_order.txt lists its files. 4.7.0-ft.6 adds olo_base_chunker and olo_axi_lite_decoder to 4.7.0-ft.2 (ft.3), fixes the error reporting of olo_axi_master_simple and the write word count of olo_axi_master_full (ft.4), the address of transfers that olo_axi_master_simple splits at AxiMaxBeats_g (ft.5), and the transfers of olo_axi_master_full with 8-bit data and narrow addresses (ft.6). 4.7.0-ft.8 adds the response code of a failed command to the AXI masters (outputs Wr_ErrorResp and Rd_ErrorResp), olo_intf_can and the Reed-Solomon codec (olo_base_rs_encode, olo_base_rs_decode), and fixes the beat counters of olo_axi_master_simple and the write word count of the largest commands of olo_axi_master_full (ft.7); it adds FIXED bursts to the AXI masters (inputs CmdWr_Fixed and CmdRd_Fixed, default '0'), olo_base_stream_join and olo_base_stream_split, drives Out_Be of olo_base_wconv_n2m with equal widths, and checks the byte enables of olo_base_wconv_n2m and the commands of olo_intf_i2c_master at the clock edge (ft.8). 4.7.0-ft.11 lets olo_axi_master_full overlap consecutive commands and adds the generics IntFifoDepth_g and EccPipeline_g to the fault-tolerant AXI masters (ft.9), resets the read alignment register of olo_axi_master_full (ft.10), matches the scoped constraint of the read path of olo_base_ram_sdp also after synthesis retiming and checks In_Last and In_Be of olo_base_crc only for an accepted beat (ft.11). 4.7.0-ft.12 adds olo_ft_reset_ctrl_axi, a reset of a group of blocks commanded through AXI4-Lite. 4.8.0-ft.2 has all of these changes on the release 4.8.0 of Open Logic: 4.8.0 contains the fixes of the AXI masters of ft.4 to ft.7, counts the bytes of a command of olo_axi_master_full in two bits fewer than the address also at 8-bit data (OpenRMAP 0.1.2 sizes its memory commands for it) and adds fixed-point entities (olo_fix_*); 4.8.0-ft.2 fixes the coefficient writes of olo_fix_fir_dec_semi_chtdm under QuestaSim with code coverage. Every core of the catalog is verified with 4.8.0-ft.2.",
        "entities": [
          "olo_base_reset_gen",
          "olo_ft_ecc_monitor_axi"
        ]
      },
      {
        "library": "openwire",
        "source": "openwire",
        "url": "https://github.com/open-space-hdl/openwire",
        "commit": "32544f70b71187ea3b519b637483ac854c3d18a1",
        "fileList": "compile_order.txt",
        "fileListFormat": "files",
        "verifiedWith": "4.8.0-ft.2",
        "note": "The submodules of the repository (open-logic, uvvm) serve its own tests; a system uses the olo library of the Composer.",
        "entities": [
          "owr_core"
        ]
      },
      {
        "library": "openspp",
        "source": "openspp",
        "url": "https://github.com/open-space-hdl/openspp",
        "commit": "c385fc0d000434368b8bd471ec7e07287c1e01f6",
        "fileList": "compile_order.txt",
        "fileListFormat": "files",
        "verifiedWith": "4.8.0-ft.2",
        "note": "The submodules of the repository (open-logic, uvvm) serve its own tests; a system uses the olo library of the Composer.",
        "entities": [
          "spp_core",
          "spp_nchar"
        ]
      },
      {
        "library": "opencrypto",
        "source": "opencrypto",
        "url": "https://github.com/open-space-hdl/opencrypto",
        "commit": "e40e3e354493a23f0da651952fdc66b8dbb2ff7b",
        "fileList": "compile_order.txt",
        "fileListFormat": "files",
        "verifiedWith": "4.8.0-ft.2",
        "note": "The submodules of the repository (open-logic, uvvm) serve its own tests; a system uses the olo library of the Composer.",
        "entities": [
          "ocr_core",
          "ocr_framer"
        ]
      }
    ],
    "context": [
      "library ieee;",
      "use ieee.std_logic_1164.all;",
      "library olo;",
      "library openwire;",
      "library openspp;",
      "library opencrypto;"
    ],
    "problems": [],
    "addressMap": [
      {
        "space": "edac0.S_AxiLite",
        "label": "edac_reg_ (edac0.S_AxiLite)",
        "kind": "port",
        "addrWidth": 12,
        "banks": [
          {
            "instance": "edac0",
            "interface": "S_AxiLite",
            "block": "olo/olo_ft_ecc_monitor_axi",
            "entity": "olo_ft_ecc_monitor_axi",
            "base": 0,
            "size": 4096,
            "addrWidth": 12,
            "window": 4096,
            "via": [],
            "doc": "https://openspacehdl.org/open-logic-ft/doc/ft/olo_ft_ecc_monitor_axi.html"
          }
        ],
        "unused": [],
        "decoders": []
      },
      {
        "space": "ocr0.S_AxiLite",
        "label": "ocr_reg_ (ocr0.S_AxiLite)",
        "kind": "port",
        "addrWidth": 8,
        "banks": [
          {
            "instance": "ocr0",
            "interface": "S_AxiLite",
            "block": "opencrypto/ocr_core",
            "entity": "ocr_core",
            "base": 0,
            "size": 256,
            "addrWidth": 8,
            "window": 256,
            "via": [],
            "id": "0x4F435201",
            "registers": {
              "source": "opencrypto",
              "url": "https://github.com/open-space-hdl/opencrypto",
              "commit": "e40e3e354493a23f0da651952fdc66b8dbb2ff7b",
              "header": "sw/ocr_regs.h",
              "doc": "hdl/ocr_mib/docs/register_map.md",
              "prefix": "OCR"
            }
          }
        ],
        "unused": [],
        "decoders": []
      },
      {
        "space": "spp0.S_AxiLite",
        "label": "spp_reg_ (spp0.S_AxiLite)",
        "kind": "port",
        "addrWidth": 11,
        "banks": [
          {
            "instance": "spp0",
            "interface": "S_AxiLite",
            "block": "openspp/spp_core",
            "entity": "spp_core",
            "base": 0,
            "size": 2048,
            "addrWidth": 11,
            "window": 2048,
            "via": [],
            "id": "0x53505001",
            "registers": {
              "source": "openspp",
              "url": "https://github.com/open-space-hdl/openspp",
              "commit": "c385fc0d000434368b8bd471ec7e07287c1e01f6",
              "header": "sw/spp_regs.h",
              "doc": "hdl/spp_mib/docs/register_map.md",
              "prefix": "SPP"
            }
          }
        ],
        "unused": [],
        "decoders": []
      },
      {
        "space": "spw0.S_AxiLite",
        "label": "spw_reg_ (spw0.S_AxiLite)",
        "kind": "port",
        "addrWidth": 8,
        "banks": [
          {
            "instance": "spw0",
            "interface": "S_AxiLite",
            "block": "openwire/owr_core",
            "entity": "owr_core",
            "base": 0,
            "size": 256,
            "addrWidth": 8,
            "window": 256,
            "via": [],
            "id": "0x4F575201",
            "registers": {
              "source": "openwire",
              "url": "https://github.com/open-space-hdl/openwire",
              "commit": "32544f70b71187ea3b519b637483ac854c3d18a1",
              "header": "sw/owr_regs.h",
              "doc": "hdl/owr_mib/docs/register_map.md",
              "prefix": "OWR"
            }
          }
        ],
        "unused": [],
        "decoders": []
      }
    ],
    "interrupts": [
      {
        "source": "edac0.Irq",
        "instance": "edac0",
        "entity": "olo_ft_ecc_monitor_axi",
        "domain": "sys",
        "to": {
          "kind": "open"
        },
        "enable": []
      },
      {
        "source": "ocr0.Irq",
        "instance": "ocr0",
        "entity": "ocr_core",
        "domain": "sys",
        "to": {
          "kind": "open"
        },
        "enable": [
          {
            "name": "IRQ_EN",
            "offset": 28
          }
        ],
        "status": {
          "name": "IRQ_STATUS",
          "offset": 32
        },
        "events": {
          "name": "EVENTS",
          "offset": 24
        }
      },
      {
        "source": "spp0.Irq",
        "instance": "spp0",
        "entity": "spp_core",
        "domain": "sys",
        "to": {
          "kind": "open"
        },
        "enable": [
          {
            "name": "IRQ_EN",
            "offset": 88
          }
        ],
        "status": {
          "name": "IRQ_STATUS",
          "offset": 92
        },
        "events": {
          "name": "EVENTS",
          "offset": 84
        }
      },
      {
        "source": "spw0.Irq",
        "instance": "spw0",
        "entity": "owr_core",
        "domain": "sys",
        "to": {
          "kind": "open"
        },
        "enable": [
          {
            "name": "EVENTS_IRQ_EN",
            "offset": 56
          },
          {
            "name": "ERRORS_IRQ_EN",
            "offset": 52
          }
        ],
        "status": {
          "name": "IRQ_STATUS",
          "offset": 60
        },
        "events": {
          "name": "EVENTS",
          "offset": 48
        }
      }
    ],
    "protection": {
      "faultTolerance": true,
      "blocks": [
        {
          "instance": "ocr0",
          "entity": "ocr_core",
          "channels": 18,
          "status": {
            "name": "ECC_STATUS",
            "offset": 192
          },
          "select": {
            "name": "ECC_SELECT",
            "offset": 196
          },
          "count": {
            "name": "ECC_COUNT",
            "offset": 200
          },
          "inject": {
            "name": "ECC_INJECT",
            "offset": 204
          },
          "evidence": "user guide section 6 (protection scope) and the register map"
        },
        {
          "instance": "spp0",
          "entity": "spp_core",
          "channels": 8,
          "status": {
            "name": "ECC_STATUS",
            "offset": 96
          },
          "select": {
            "name": "ECC_SELECT",
            "offset": 100
          },
          "count": {
            "name": "ECC_COUNT",
            "offset": 104
          },
          "inject": {
            "name": "ECC_INJECT",
            "offset": 108
          },
          "evidence": "user guide section 6 (protection scope) and the register map"
        },
        {
          "instance": "spw0",
          "entity": "owr_core",
          "channels": 6,
          "status": {
            "name": "ECC_STATUS",
            "offset": 128
          },
          "select": {
            "name": "ECC_SELECT",
            "offset": 132
          },
          "count": {
            "name": "ECC_COUNT",
            "offset": 136
          },
          "inject": {
            "name": "ECC_INJECT",
            "offset": 140
          },
          "evidence": "user guide section 5 (protection scope) and the register map"
        }
      ],
      "events": [
        {
          "source": "frm0.Ecc[0]",
          "instance": "frm0",
          "entity": "ocr_framer",
          "memory": "chunk buffer",
          "inserted": false,
          "registers": false,
          "to": {
            "kind": "block",
            "to": "edac0.In[0]",
            "toEntity": "olo_ft_ecc_monitor_axi",
            "channel": 0,
            "connection": "c8",
            "crossed": false
          }
        },
        {
          "source": "frm0.Ecc[1]",
          "instance": "frm0",
          "entity": "ocr_framer",
          "memory": "position FIFO",
          "inserted": false,
          "registers": false,
          "to": {
            "kind": "block",
            "to": "edac0.In[1]",
            "toEntity": "olo_ft_ecc_monitor_axi",
            "channel": 1,
            "connection": "c9",
            "crossed": false
          }
        }
      ],
      "crossings": []
    },
    "readiness": {
      "parts": [
        {
          "source": "openwire",
          "name": "OpenWire",
          "trl": 3,
          "status": "Fully verified by simulation. Not yet tested on hardware, no flight heritage.",
          "instances": [
            "spw0"
          ]
        },
        {
          "source": "openspp",
          "name": "OpenSPP",
          "trl": 3,
          "status": "Fully verified by simulation. Not yet tested on hardware, no flight heritage.",
          "instances": [
            "spp0",
            "nchar0"
          ]
        },
        {
          "source": "opencrypto",
          "name": "OpenCrypto",
          "trl": 3,
          "status": "Fully verified by simulation. Not yet tested on hardware, no flight heritage.",
          "instances": [
            "frm0",
            "ocr0"
          ]
        },
        {
          "source": "olo",
          "name": "Open Logic FT",
          "trl": 3,
          "status": "Fully verified by simulation. Not yet tested on hardware, no flight heritage.",
          "instances": [
            "edac0",
            "auto_rst_sys"
          ]
        }
      ],
      "lowest": 3
    }
  },
  "checks": [
    {
      "severity": "info",
      "rule": "signals",
      "message": "ocr0.M_Out has user; spp0.S_Tx[0] gets the side band constants of c3 instead.",
      "connection": "c3"
    },
    {
      "severity": "info",
      "rule": "sizes",
      "message": "spp0 sends Space Packets of up to ChunkBytes_g + 38 = 4134 bytes: the node that receives them needs RxBufferBytes_g of at least 4134 (spp0 has 8192).",
      "instance": "spp0"
    },
    {
      "severity": "info",
      "rule": "sizes",
      "message": "Packets from the link of spw0 reach spp0.S_Link, which takes at most 8196 bytes: the receive buffer holds the longest Space Packet (error code 0x17); longer ones are discarded.",
      "instance": "spp0"
    },
    {
      "severity": "info",
      "rule": "sizes",
      "message": "No length limit published for spp_nchar (nchar0): packets through it are checked against the other blocks only."
    }
  ],
  "agent": {
    "brief": "# encrypted_spp_over_spw: build brief\n\nEncrypted packets over SpaceWire: the OpenCrypto framer cuts every input packet (for example a compressed image) into chunks, the AES-GCM core encrypts every chunk with a generated IV and a 4-byte position in the AAD, and OpenSPP sends every encrypted chunk as one Space Packet through an N-Char adapter and an OpenWire port. An ECC monitor reports the corrected and detected errors of the buffers of the framer.\n\nThis brief was generated by the Open Space Composer from the system file `encrypted_spp_over_spw.composer.json` (catalog `75afe851b7e7`).\nThe file holds the system as edited (`instances`, `connections`, `externals`), in `resolved` the netlist it resolves to and in `catalogSubset` the catalog entries of its blocks (interfaces, fields, clocks, generics).\nBuild a VHDL-2008 top level `encrypted_spp_over_spw` from `resolved` as described below; everything needed is in the file and in the listed repositories.\nThe button Export HDL of the Composer, and `tools/composer_hdl.mjs` of the repository of the website, write this top level, its compile order and its constraints from the same netlist (`encrypted_spp_over_spw.vhd`, `encrypted_spp_over_spw_compile_order.txt`, `encrypted_spp_over_spw.xdc`, `encrypted_spp_over_spw_top.xdc`, and the address map `encrypted_spp_over_spw_address_map.md` with the C header `encrypted_spp_over_spw_regs.h`); use them, or build the top level by hand as described here.\n\n**Readiness:** Parts at TRL 3 or higher (lowest: 3). The composed system has no TRL of its own: it is checked by elaboration and a run to 0 ns. The parts are listed in section 15.\n\n## 1. Sources and libraries\n\nFetch every repository at the given version and compile one VHDL-2008 library per row, in this order:\n\n| Library | Repository | Version | Files | Entities used |\n| --- | --- | --- | --- | --- |\n| `olo` | https://github.com/open-space-hdl/open-logic-ft | tag `4.8.0-ft.2` (commit `1f4a6c3b363151c30e754d4f413b8ee5e1febb95`) | every file listed in `compile_order.txt`, in its order | `olo_base_reset_gen`, `olo_ft_ecc_monitor_axi` |\n| `openwire` | https://github.com/open-space-hdl/openwire | commit `32544f70b71187ea3b519b637483ac854c3d18a1` | every file listed in `compile_order.txt`, in its order | `owr_core` |\n| `openspp` | https://github.com/open-space-hdl/openspp | commit `c385fc0d000434368b8bd471ec7e07287c1e01f6` | every file listed in `compile_order.txt`, in its order | `spp_core`, `spp_nchar` |\n| `opencrypto` | https://github.com/open-space-hdl/opencrypto | commit `e40e3e354493a23f0da651952fdc66b8dbb2ff7b` | every file listed in `compile_order.txt`, in its order | `ocr_core`, `ocr_framer` |\n\n- `olo`: Clone with the submodule 3rdParty/en_cl_fix (git clone --recursive); compile_order.txt lists its files. 4.7.0-ft.6 adds olo_base_chunker and olo_axi_lite_decoder to 4.7.0-ft.2 (ft.3), fixes the error reporting of olo_axi_master_simple and the write word count of olo_axi_master_full (ft.4), the address of transfers that olo_axi_master_simple splits at AxiMaxBeats_g (ft.5), and the transfers of olo_axi_master_full with 8-bit data and narrow addresses (ft.6). 4.7.0-ft.8 adds the response code of a failed command to the AXI masters (outputs Wr_ErrorResp and Rd_ErrorResp), olo_intf_can and the Reed-Solomon codec (olo_base_rs_encode, olo_base_rs_decode), and fixes the beat counters of olo_axi_master_simple and the write word count of the largest commands of olo_axi_master_full (ft.7); it adds FIXED bursts to the AXI masters (inputs CmdWr_Fixed and CmdRd_Fixed, default '0'), olo_base_stream_join and olo_base_stream_split, drives Out_Be of olo_base_wconv_n2m with equal widths, and checks the byte enables of olo_base_wconv_n2m and the commands of olo_intf_i2c_master at the clock edge (ft.8). 4.7.0-ft.11 lets olo_axi_master_full overlap consecutive commands and adds the generics IntFifoDepth_g and EccPipeline_g to the fault-tolerant AXI masters (ft.9), resets the read alignment register of olo_axi_master_full (ft.10), matches the scoped constraint of the read path of olo_base_ram_sdp also after synthesis retiming and checks In_Last and In_Be of olo_base_crc only for an accepted beat (ft.11). 4.7.0-ft.12 adds olo_ft_reset_ctrl_axi, a reset of a group of blocks commanded through AXI4-Lite. 4.8.0-ft.2 has all of these changes on the release 4.8.0 of Open Logic: 4.8.0 contains the fixes of the AXI masters of ft.4 to ft.7, counts the bytes of a command of olo_axi_master_full in two bits fewer than the address also at 8-bit data (OpenRMAP 0.1.2 sizes its memory commands for it) and adds fixed-point entities (olo_fix_*); 4.8.0-ft.2 fixes the coefficient writes of olo_fix_fir_dec_semi_chtdm under QuestaSim with code coverage. Every core of the catalog is verified with 4.8.0-ft.2.\n- `openwire`: The submodules of the repository (open-logic, uvvm) serve its own tests; a system uses the olo library of the Composer.\n- `openspp`: The submodules of the repository (open-logic, uvvm) serve its own tests; a system uses the olo library of the Composer.\n- `opencrypto`: The submodules of the repository (open-logic, uvvm) serve its own tests; a system uses the olo library of the Composer.\n- One `olo` library (Open Logic FT `4.8.0-ft.2`) serves the whole system. The cores were verified with the Open Logic FT tags `4.8.0-ft.2` (openwire), `4.8.0-ft.2` (openspp), `4.8.0-ft.2` (opencrypto) (`verifiedWith`); their own `open-logic` submodules are not needed.\n- With GHDL: analyse Open Logic file by file (`ghdl -a --std=08 -frelaxed --work=olo <file>`), import the files of a core library (`ghdl -i --std=08 -frelaxed --work=<library> <files>`) and let `ghdl -m --std=08 -frelaxed <top>` find the order. `-frelaxed` is needed for Open Logic, whose RAMs use a shared variable without a protected type (`olo_base_ram_sdp`); the cores and the top level also analyse as strict VHDL-2008.\n- With other tools follow the order of the table.\n\n## 2. Top-level entity\n\nEntity `encrypted_spp_over_spw`, ports in this order (`resolved.ports`; `domain` is the clock domain of the port):\n\n| Port | Direction | Type | Clock domain | Meaning |\n| --- | --- | --- | --- | --- |\n| `Rst` | in | `std_logic` |  | Asynchronous reset of the system, high-active |\n| `Clk_sys` | in | `std_logic` | System clock (`sys`) | Clock of the domain System clock (100 MHz) |\n| `Clk_link` | in | `std_logic` | Link clock (`link`) | Clock of the domain Link clock (200 MHz) |\n| `pkt_S_In_Data` | in | `std_logic_vector(31 downto 0)` | System clock (`sys`) | `frm0.S_In` data |\n| `pkt_S_In_Keep` | in | `std_logic_vector(3 downto 0)` | System clock (`sys`) | `frm0.S_In` keep |\n| `pkt_S_In_Last` | in | `std_logic` | System clock (`sys`) | `frm0.S_In` last |\n| `pkt_S_In_Valid` | in | `std_logic` | System clock (`sys`) | `frm0.S_In` valid |\n| `pkt_S_In_Ready` | out | `std_logic` | System clock (`sys`) | `frm0.S_In` ready |\n| `ocr_reg_S_AxiLite_AwAddr` | in | `std_logic_vector(7 downto 0)` | System clock (`sys`) | `ocr0.S_AxiLite` AwAddr |\n| `ocr_reg_S_AxiLite_AwValid` | in | `std_logic` | System clock (`sys`) | `ocr0.S_AxiLite` AwValid |\n| `ocr_reg_S_AxiLite_AwReady` | out | `std_logic` | System clock (`sys`) | `ocr0.S_AxiLite` AwReady |\n| `ocr_reg_S_AxiLite_WData` | in | `std_logic_vector(31 downto 0)` | System clock (`sys`) | `ocr0.S_AxiLite` WData |\n| `ocr_reg_S_AxiLite_WStrb` | in | `std_logic_vector(3 downto 0)` | System clock (`sys`) | `ocr0.S_AxiLite` WStrb |\n| `ocr_reg_S_AxiLite_WValid` | in | `std_logic` | System clock (`sys`) | `ocr0.S_AxiLite` WValid |\n| `ocr_reg_S_AxiLite_WReady` | out | `std_logic` | System clock (`sys`) | `ocr0.S_AxiLite` WReady |\n| `ocr_reg_S_AxiLite_BResp` | out | `std_logic_vector(1 downto 0)` | System clock (`sys`) | `ocr0.S_AxiLite` BResp |\n| `ocr_reg_S_AxiLite_BValid` | out | `std_logic` | System clock (`sys`) | `ocr0.S_AxiLite` BValid |\n| `ocr_reg_S_AxiLite_BReady` | in | `std_logic` | System clock (`sys`) | `ocr0.S_AxiLite` BReady |\n| `ocr_reg_S_AxiLite_ArAddr` | in | `std_logic_vector(7 downto 0)` | System clock (`sys`) | `ocr0.S_AxiLite` ArAddr |\n| `ocr_reg_S_AxiLite_ArValid` | in | `std_logic` | System clock (`sys`) | `ocr0.S_AxiLite` ArValid |\n| `ocr_reg_S_AxiLite_ArReady` | out | `std_logic` | System clock (`sys`) | `ocr0.S_AxiLite` ArReady |\n| `ocr_reg_S_AxiLite_RData` | out | `std_logic_vector(31 downto 0)` | System clock (`sys`) | `ocr0.S_AxiLite` RData |\n| `ocr_reg_S_AxiLite_RResp` | out | `std_logic_vector(1 downto 0)` | System clock (`sys`) | `ocr0.S_AxiLite` RResp |\n| `ocr_reg_S_AxiLite_RValid` | out | `std_logic` | System clock (`sys`) | `ocr0.S_AxiLite` RValid |\n| `ocr_reg_S_AxiLite_RReady` | in | `std_logic` | System clock (`sys`) | `ocr0.S_AxiLite` RReady |\n| `rx0_M_Rx_Data_0` | out | `std_logic_vector(31 downto 0)` | System clock (`sys`) | `spp0.M_Rx[0]` data |\n| `rx0_M_Rx_Keep_0` | out | `std_logic_vector(3 downto 0)` | System clock (`sys`) | `spp0.M_Rx[0]` keep |\n| `rx0_M_Rx_Last_0` | out | `std_logic` | System clock (`sys`) | `spp0.M_Rx[0]` last |\n| `rx0_M_Rx_User_0` | out | `std_logic_vector(21 downto 0)` | System clock (`sys`) | `spp0.M_Rx[0]` user |\n| `rx0_M_Rx_Valid_0` | out | `std_logic` | System clock (`sys`) | `spp0.M_Rx[0]` valid |\n| `rx0_M_Rx_Ready_0` | in | `std_logic` | System clock (`sys`) | `spp0.M_Rx[0]` ready |\n| `spp_reg_S_AxiLite_AwAddr` | in | `std_logic_vector(10 downto 0)` | System clock (`sys`) | `spp0.S_AxiLite` AwAddr |\n| `spp_reg_S_AxiLite_AwValid` | in | `std_logic` | System clock (`sys`) | `spp0.S_AxiLite` AwValid |\n| `spp_reg_S_AxiLite_AwReady` | out | `std_logic` | System clock (`sys`) | `spp0.S_AxiLite` AwReady |\n| `spp_reg_S_AxiLite_WData` | in | `std_logic_vector(31 downto 0)` | System clock (`sys`) | `spp0.S_AxiLite` WData |\n| `spp_reg_S_AxiLite_WStrb` | in | `std_logic_vector(3 downto 0)` | System clock (`sys`) | `spp0.S_AxiLite` WStrb |\n| `spp_reg_S_AxiLite_WValid` | in | `std_logic` | System clock (`sys`) | `spp0.S_AxiLite` WValid |\n| `spp_reg_S_AxiLite_WReady` | out | `std_logic` | System clock (`sys`) | `spp0.S_AxiLite` WReady |\n| `spp_reg_S_AxiLite_BResp` | out | `std_logic_vector(1 downto 0)` | System clock (`sys`) | `spp0.S_AxiLite` BResp |\n| `spp_reg_S_AxiLite_BValid` | out | `std_logic` | System clock (`sys`) | `spp0.S_AxiLite` BValid |\n| `spp_reg_S_AxiLite_BReady` | in | `std_logic` | System clock (`sys`) | `spp0.S_AxiLite` BReady |\n| `spp_reg_S_AxiLite_ArAddr` | in | `std_logic_vector(10 downto 0)` | System clock (`sys`) | `spp0.S_AxiLite` ArAddr |\n| `spp_reg_S_AxiLite_ArValid` | in | `std_logic` | System clock (`sys`) | `spp0.S_AxiLite` ArValid |\n| `spp_reg_S_AxiLite_ArReady` | out | `std_logic` | System clock (`sys`) | `spp0.S_AxiLite` ArReady |\n| `spp_reg_S_AxiLite_RData` | out | `std_logic_vector(31 downto 0)` | System clock (`sys`) | `spp0.S_AxiLite` RData |\n| `spp_reg_S_AxiLite_RResp` | out | `std_logic_vector(1 downto 0)` | System clock (`sys`) | `spp0.S_AxiLite` RResp |\n| `spp_reg_S_AxiLite_RValid` | out | `std_logic` | System clock (`sys`) | `spp0.S_AxiLite` RValid |\n| `spp_reg_S_AxiLite_RReady` | in | `std_logic` | System clock (`sys`) | `spp0.S_AxiLite` RReady |\n| `spw_reg_S_AxiLite_AwAddr` | in | `std_logic_vector(7 downto 0)` | System clock (`sys`) | `spw0.S_AxiLite` AwAddr |\n| `spw_reg_S_AxiLite_AwValid` | in | `std_logic` | System clock (`sys`) | `spw0.S_AxiLite` AwValid |\n| `spw_reg_S_AxiLite_AwReady` | out | `std_logic` | System clock (`sys`) | `spw0.S_AxiLite` AwReady |\n| `spw_reg_S_AxiLite_WData` | in | `std_logic_vector(31 downto 0)` | System clock (`sys`) | `spw0.S_AxiLite` WData |\n| `spw_reg_S_AxiLite_WStrb` | in | `std_logic_vector(3 downto 0)` | System clock (`sys`) | `spw0.S_AxiLite` WStrb |\n| `spw_reg_S_AxiLite_WValid` | in | `std_logic` | System clock (`sys`) | `spw0.S_AxiLite` WValid |\n| `spw_reg_S_AxiLite_WReady` | out | `std_logic` | System clock (`sys`) | `spw0.S_AxiLite` WReady |\n| `spw_reg_S_AxiLite_BResp` | out | `std_logic_vector(1 downto 0)` | System clock (`sys`) | `spw0.S_AxiLite` BResp |\n| `spw_reg_S_AxiLite_BValid` | out | `std_logic` | System clock (`sys`) | `spw0.S_AxiLite` BValid |\n| `spw_reg_S_AxiLite_BReady` | in | `std_logic` | System clock (`sys`) | `spw0.S_AxiLite` BReady |\n| `spw_reg_S_AxiLite_ArAddr` | in | `std_logic_vector(7 downto 0)` | System clock (`sys`) | `spw0.S_AxiLite` ArAddr |\n| `spw_reg_S_AxiLite_ArValid` | in | `std_logic` | System clock (`sys`) | `spw0.S_AxiLite` ArValid |\n| `spw_reg_S_AxiLite_ArReady` | out | `std_logic` | System clock (`sys`) | `spw0.S_AxiLite` ArReady |\n| `spw_reg_S_AxiLite_RData` | out | `std_logic_vector(31 downto 0)` | System clock (`sys`) | `spw0.S_AxiLite` RData |\n| `spw_reg_S_AxiLite_RResp` | out | `std_logic_vector(1 downto 0)` | System clock (`sys`) | `spw0.S_AxiLite` RResp |\n| `spw_reg_S_AxiLite_RValid` | out | `std_logic` | System clock (`sys`) | `spw0.S_AxiLite` RValid |\n| `spw_reg_S_AxiLite_RReady` | in | `std_logic` | System clock (`sys`) | `spw0.S_AxiLite` RReady |\n| `spw0_Spw_DOut` | out | `std_logic` | Link clock (`link`) | `spw0.Spw` d_out |\n| `spw0_Spw_SOut` | out | `std_logic` | Link clock (`link`) | `spw0.Spw` s_out |\n| `spw0_Spw_DIn` | in | `std_logic` | Link clock (`link`) | `spw0.Spw` d_in |\n| `spw0_Spw_SIn` | in | `std_logic` | Link clock (`link`) | `spw0.Spw` s_in |\n| `spw0_Phy_TxEn` | out | `std_logic` | Link clock (`link`) | `spw0.Spw` tx_en |\n| `spw0_Phy_RxEn` | out | `std_logic` | Link clock (`link`) | `spw0.Spw` rx_en |\n| `edac_reg_S_AxiLite_AwAddr` | in | `std_logic_vector(11 downto 0)` | System clock (`sys`) | `edac0.S_AxiLite` AwAddr |\n| `edac_reg_S_AxiLite_AwValid` | in | `std_logic` | System clock (`sys`) | `edac0.S_AxiLite` AwValid |\n| `edac_reg_S_AxiLite_AwReady` | out | `std_logic` | System clock (`sys`) | `edac0.S_AxiLite` AwReady |\n| `edac_reg_S_AxiLite_WData` | in | `std_logic_vector(31 downto 0)` | System clock (`sys`) | `edac0.S_AxiLite` WData |\n| `edac_reg_S_AxiLite_WStrb` | in | `std_logic_vector(3 downto 0)` | System clock (`sys`) | `edac0.S_AxiLite` WStrb |\n| `edac_reg_S_AxiLite_WValid` | in | `std_logic` | System clock (`sys`) | `edac0.S_AxiLite` WValid |\n| `edac_reg_S_AxiLite_WReady` | out | `std_logic` | System clock (`sys`) | `edac0.S_AxiLite` WReady |\n| `edac_reg_S_AxiLite_BResp` | out | `std_logic_vector(1 downto 0)` | System clock (`sys`) | `edac0.S_AxiLite` BResp |\n| `edac_reg_S_AxiLite_BValid` | out | `std_logic` | System clock (`sys`) | `edac0.S_AxiLite` BValid |\n| `edac_reg_S_AxiLite_BReady` | in | `std_logic` | System clock (`sys`) | `edac0.S_AxiLite` BReady |\n| `edac_reg_S_AxiLite_ArAddr` | in | `std_logic_vector(11 downto 0)` | System clock (`sys`) | `edac0.S_AxiLite` ArAddr |\n| `edac_reg_S_AxiLite_ArValid` | in | `std_logic` | System clock (`sys`) | `edac0.S_AxiLite` ArValid |\n| `edac_reg_S_AxiLite_ArReady` | out | `std_logic` | System clock (`sys`) | `edac0.S_AxiLite` ArReady |\n| `edac_reg_S_AxiLite_RData` | out | `std_logic_vector(31 downto 0)` | System clock (`sys`) | `edac0.S_AxiLite` RData |\n| `edac_reg_S_AxiLite_RResp` | out | `std_logic_vector(1 downto 0)` | System clock (`sys`) | `edac0.S_AxiLite` RResp |\n| `edac_reg_S_AxiLite_RValid` | out | `std_logic` | System clock (`sys`) | `edac0.S_AxiLite` RValid |\n| `edac_reg_S_AxiLite_RReady` | in | `std_logic` | System clock (`sys`) | `edac0.S_AxiLite` RReady |\n\nExternal interfaces:\n\n- `frm0.S_In` (Byte stream, clock domain `sys`): Byte stream with keep and last and no side band: byte 0 of a beat in data bits 7:0, keep contiguous from byte 0 and partial only on the last beat of a packet; optionally an error flag of the packet on its last beat.\n- `ocr0.S_AxiLite` (AXI4-Lite register bus, clock domain `sys`): AXI4-Lite register access (32 bit data), for example the register file of a core.\n- `spp0.M_Rx[0]` (Space Packet receive port, clock domain `sys`): Receive port of OpenSPP: one SDU or Space Packet per stream packet, with APID, flags, loss indicator and the user application value in user.\n  - `rx0_M_Rx_User_0`: 10:0 APID; 11 Secondary Header Indicator (Octet String Service); 12 Packet Loss or Data Loss Indicator; 13 Double bit error in the receive buffer during this SDU, valid with last; 21:14 User Application value of the CPTP packet (0 without the CPTP layer).\n- `spp0.S_AxiLite` (AXI4-Lite register bus, clock domain `sys`): AXI4-Lite register access (32 bit data), for example the register file of a core.\n- `spw0.S_AxiLite` (AXI4-Lite register bus, clock domain `sys`): AXI4-Lite register access (32 bit data), for example the register file of a core.\n- `spw0.Spw` (SpaceWire line, clock domain `link`): Data-strobe line drivers and receivers of a SpaceWire link (LVDS buffers outside the core).\n- `edac0.S_AxiLite` (AXI4-Lite register bus, clock domain `sys`): AXI4-Lite register access (32 bit data), for example the register file of a core.\n\n## 3. Architecture\n\n1. Context clause (`resolved.context`): `library ieee;` `use ieee.std_logic_1164.all;` `library olo;` `library openwire;` `library openspp;` `library opencrypto;`\n2. Declare every signal of `resolved.signals` (one per port of an instance, named `<instance>_<port>_s`, with the type of the port).\n3. Instantiate every entry of `resolved.instances` as `i_<id> : entity <library>.<entity>`: a generic map with every generic (the value is the VHDL literal in `vhdl`, package constants fully qualified; write the defaults too, where `default` is true, so that a new default of a core cannot change the system unnoticed), and a port map with the `actual` of every port. Leave out the ports with `useDefault` (they keep their VHDL `default`). Clocks and resets are port actuals on purpose: never assign a clock to another signal.\n4. Write every entry of `resolved.nets` as a concurrent assignment `<to> <= <from>;`. They connect the interfaces signal by signal (a packed data word bit by bit), set the side band constants and tie-offs, and connect the top-level ports.\n\n| Instance | Entity | Library | Origin | Clock domain | Why |\n| --- | --- | --- | --- | --- | --- |\n| `frm0` | `ocr_framer` | `opencrypto` | placed | sys |  |\n| `ocr0` | `ocr_core` | `opencrypto` | placed | sys |  |\n| `spp0` | `spp_core` | `openspp` | placed | sys |  |\n| `nchar0` | `spp_nchar` | `openspp` | placed | sys |  |\n| `spw0` | `owr_core` | `openwire` | placed | sys |  |\n| `edac0` | `olo_ft_ecc_monitor_axi` | `olo` | placed | sys |  |\n| `auto_rst_sys` | `olo_base_reset_gen` | `olo` | inserted: reset | sys | Synchronous reset of System clock. |\n\nGenerics that differ from the VHDL default:\n\n- `frm0`: none\n- `ocr0`: `ReleaseBuffer_g => true`, `ReleaseBytes_g => 16384`, `DenseOutput_g => true`\n- `spp0`: `TxBufferBytes_g => 8192`, `RxBufferBytes_g => 8192`\n- `nchar0`: none\n- `spw0`: `LinkClkFreq_g => 200.0e6`, `RunDiv_g => 2`\n- `edac0`: `Channels_g => 2`\n- `auto_rst_sys`: `SyncTmr_g => true`\n\nConstants with a field map (`fields` of the net):\n\n- `spp0_S_Tx_User_s <= \"0000000000000000000100100011\"` (connection c3): 10:0 APID = 0x123; 11 Secondary header flag = '0'; 12 Packet type (telecommand) = '0'; 13 Packet name instead of sequence count = '0'; 27:14 Packet name = 0x0.\n- `frm0_Cfg_Slot_s <= \"00\"`: 1:0 Key slot = 0.\n\n## 4. Clocks and resets\n\n| Clock domain | Frequency | Clock | Reset generator |\n| --- | --- | --- | --- |\n| System clock (`sys`) | 100 MHz | top-level port `Clk_sys` | `auto_rst_sys` (olo_base_reset_gen, output `auto_rst_sys_RstOut_s`) |\n| Link clock (`link`) | 200 MHz | top-level port `Clk_link` | none: no block of the domain has a synchronous reset |\n\nReset ports (`reset` of the port):\n\n| Port | Reset | Actual | Why |\n| --- | --- | --- | --- |\n| `frm0.Rst` | synchronous | `auto_rst_sys_RstOut_s` | Synchronous reset in the clock domain System clock (clock Clk): the output of the reset generator auto_rst_sys. |\n| `ocr0.Rst` | synchronous | `auto_rst_sys_RstOut_s` | Synchronous reset in the clock domain System clock (clock Clk): the output of the reset generator auto_rst_sys. |\n| `spp0.Rst` | synchronous | `auto_rst_sys_RstOut_s` | Synchronous reset in the clock domain System clock (clock Clk): the output of the reset generator auto_rst_sys. |\n| `spp0.DpRst` | synchronous | default `'0'` | Synchronous reset in the clock domain System clock (clock Clk), for a reset group; spp0 is in none, so the port keeps its default. |\n| `nchar0.Rst` | synchronous | `auto_rst_sys_RstOut_s` | Synchronous reset in the clock domain System clock (clock Clk): the output of the reset generator auto_rst_sys. |\n| `spw0.Rst` | asynchronous | `Rst` | Asynchronous reset; the core synchronises its release in every domain. |\n| `edac0.Rst` | synchronous | `auto_rst_sys_RstOut_s` | Synchronous reset in the clock domain System clock (clock Clk): the output of the reset generator auto_rst_sys. |\n| `auto_rst_sys.RstIn` | asynchronous | `Rst` | Asynchronous reset input (polarity from RstInPolarity_g). |\n\n`Rst` is the asynchronous system reset. A reset generator asserts the reset of its domain at once and releases it synchronously to the clock; a block with an asynchronous reset synchronises the release itself.\n\n## 5. Constraints\n\nEvery clock crossing is an Open Logic block. Between the clocks of a crossing a maximum delay applies in both directions, the period of the faster clock, data path only (Open Logic clock crossing principles). Do not declare these clocks as asynchronous clock groups: in Vivado `set_clock_groups -asynchronous` overrides the delay limits.\n\n- False path through `spw0_Spw_DIn`, `spw0_Spw_SIn` (`set_false_path -through` in Vivado: valid whether the port is a device pin or a pin of the system inside a larger design): Inputs that spw0 synchronises itself.\n- Output registers in the I/O blocks for `spw0_Spw_DOut`, `spw0_Spw_SOut`: Place the output flip-flops of data and strobe in the I/O blocks with matched routing.\n- Maximum delay from the clock of `Clk_link` to the clock of `Clk_sys`: 5 ns, data path only (`set_max_delay -datapath_only` in Vivado). Clock crossings of spw0: the period of the faster clock.\n- Maximum delay from the clock of `Clk_sys` to the clock of `Clk_link`: 5 ns, data path only (`set_max_delay -datapath_only` in Vivado). Clock crossings of spw0: the period of the faster clock.\n- AMD Vivado: source the script of Open Logic once. It reads the scoped constraints of olo_base_cc_reset, olo_base_cc_bits, olo_base_cc_simple, olo_base_reset_gen and olo_base_ram_sdp wherever the system uses them, also inside the cores. tools/vivado/all_constraints_amd.tcl would also read those of olo_intf_sync, which expect device pins at its input and stop the build (ERROR 18-513) where a block synchronises internal signals with it, as ofb_pa_gty does; a block that synchronises device pins declares its own false path for them. File `src/base/tcl/olo_base_constraints_amd.tcl` of Open Logic.\n\n## 6. Throughput\n\nThe capacity of every path from a source (an external stream input, the inbound side of a link) to a sink (an external stream output, the outbound side of a link), from the rate data of the catalog: every element at its packet length and at the frequency of its clock domain, the path at its slowest element (in bold). Capacities are payload rates at the source in bit/s (SI prefixes, three significant digits). The packet lengths are reference points, not stated traffic, unless the system states traffic for the interface.\n\n### Path 1: the link of spw0 to rx0_ (spp0.M_Rx[0])\n\n| Element | Clock | Model | 64 B | 1024 B |\n| --- | --- | --- | --- | --- |\n| `the link of spw0` | LinkClk: Link clock, 200 MHz | link, both directions | **75.7 Mbit/s** | **76.2 Mbit/s** |\n| `spw0.M_Pkt` | System clock, 100 MHz | per interface | 788 Mbit/s | 799 Mbit/s |\n| `nchar0.S_NChar` | System clock, 100 MHz | per interface | 788 Mbit/s | 799 Mbit/s |\n| `spp0.S_Link` | System clock, 100 MHz | per interface | 3.01 Gbit/s | 3.19 Gbit/s |\n| `rx0_ (spp0.M_Rx[0])` | System clock, 100 MHz | per interface | 3.41 Gbit/s | 3.21 Gbit/s |\n| **Path** |  |  | **75.7 Mbit/s** | **76.2 Mbit/s** |\n\n- At 64 B: limited by `the link of spw0` (75.7 Mbit/s on the link at 64 B packets, both directions in use).\n- At 1024 B: limited by `the link of spw0` (76.2 Mbit/s on the link at 1024 B packets, both directions in use).\n- the link of spw0: the bit rate follows RunDiv_g, the reset value of LINK_SPEED.RUN_DIV; software can change it.\n\n### Path 2: pkt_ (frm0.S_In) to the link of spw0\n\n| Element | Clock | Model | 64 B | 1024 B |\n| --- | --- | --- | --- | --- |\n| `pkt_ (frm0.S_In)` | System clock, 100 MHz | per interface | 2.69 Gbit/s | 3.16 Gbit/s |\n| `ocr0.M_Out` | System clock, 100 MHz | chain formula | 2.13 Gbit/s | 3.10 Gbit/s |\n| `spp0.S_Tx[0]` | System clock, 100 MHz | per interface | 2.13 Gbit/s | 3.10 Gbit/s |\n| `spp0.M_Link` | System clock, 100 MHz | per interface | 1.77 Gbit/s | 3.05 Gbit/s |\n| `nchar0.S_Link` | System clock, 100 MHz | per interface | 457 Mbit/s | 764 Mbit/s |\n| `nchar0.M_NChar` | System clock, 100 MHz | per interface | 457 Mbit/s | 764 Mbit/s |\n| `spw0.S_Pkt` | System clock, 100 MHz | per interface | 461 Mbit/s | 765 Mbit/s |\n| `the link of spw0` | LinkClk: Link clock, 200 MHz | link, both directions | **44.2 Mbit/s** | **72.9 Mbit/s** |\n| **Path** |  |  | **44.2 Mbit/s** | **72.9 Mbit/s** |\n\n- At 64 B: limited by `the link of spw0` (75.9 Mbit/s on the link at 110 B packets, both directions in use).\n- At 1024 B: limited by `the link of spw0` (76.2 Mbit/s on the link at 1070 B packets, both directions in use).\n- the link of spw0: the bit rate follows RunDiv_g, the reset value of LINK_SPEED.RUN_DIV; software can change it.\n\nEvidence of the rate data:\n\n- `ocr_framer`: TC-FR-03 (four long packets without stall cycles, at most AadBeats + 2 cycles per chunk, hdl/ocr_framer/docs/verification_report.md).\n- `ocr_framer and ocr_core`: user guide section 7.2 and TC-FR-08 (framer and core with the dense output, C(n) exactly at 16, 32, 64 and 128 bit, hdl/ocr_framer/docs/verification_report.md).\n- `owr_core`: user guide section 7; TC-DL-43 (one N-Char per UserClk cycle at the packet ports), TC-DL-40 and TC-CORE-11 (link rate in one and in both directions), TC-EN-03 (run dividers).\n- `spp_core`: user guide section 7 (7.3: all receive ports share one buffer and get their packets in the order of arrival); TC-CO-12 (throughput at 32, 64 and 128 bit), TC-CO-08, TC-SE-10.\n- `spp_nchar`: user guide section 7.5; TC-AD-03 (1731 characters in 1780 cycles at 128 bit, 1638 in 1638 at 8 bit).\n\n## 7. Packet sizes and buffers\n\nThe largest packet at every interface with a size limit, from the size data of the catalog: the largest packet a source states, the chunks of a route, the bytes the routes add. A source that states no largest packet, or a link, is not bounded: it meets the limit of the first interface that has one. A limit that is only the reset value of a register is marked: software can change it.\n\n| Interface | Largest packet | Limit | Kind | Reason |\n| --- | --- | --- | --- | --- |\n| `ocr0.S_In` | ChunkBytes_g + 4 = 4100 B | 4294967295 B | fixed | AAD and DATA have at most 2^LenBits_g - 1 bytes each (error LENGTH) |\n| `spp0.S_Tx[0]` | ChunkBytes_g + 32 = 4128 B | 8192 B | fixed | the send buffer holds the longest SDU of the port (error code 0x01) |\n| `spp0.S_Tx[0]` | ChunkBytes_g + 32 = 4128 B | 65536 B | fixed | an Octet String has at most 65536 bytes (SPP-6) |\n| `spp0.S_Link` | not bounded (the link of spw0) | 8196 B | fixed | the receive buffer holds the longest Space Packet (error code 0x17) |\n| `spp0.S_Link` | not bounded (the link of spw0) | 65546 B | fixed | a Space Packet has at most 65542 bytes (SPP-23) |\n| `spp0.S_Link` | not bounded (the link of spw0) | 65546 B | reset value | the Maximum Packet Length, MaxLength_g as the reset value of MAX_LENGTH |\n\nBuffers that hold a whole message (counted in beats):\n\n- `ocr0.M_Out`: the longest message (ChunkBytes_g + 32 = 4128 B) takes 1032 beats of 4 B; the buffer holds 16384 B = 4096 beats.\n\nWhat leaves over a link (for the node at the far end):\n\n- spp0 sends Space Packets of up to ChunkBytes_g + 38 = 4134 bytes.\n\nBlocks without a length limit:\n\n- `ocr_framer` (`frm0`): no length limit.\n- `owr_core` (`spw0`): no length limit, tested up to 65542 B.\n\nBlocks that publish no length limit (packets through them are checked against the other blocks only):\n\n- `spp_nchar` (`nchar0`).\n\nEvidence of the size data:\n\n- `ocr_core`: user guide section 2 (generics LenBits_g and ReleaseBytes_g) and section 8 (the release buffer holds the longest message); the cycles of a release buffer that holds one message but not two: user guide section 7.1, TC-CO-15 (the bound max(B + 2, 3 M - D + 4) for M sectioned beats in a buffer of D beats) and TC-CO-16 (framer chunks of 4096 bytes at 128 bit, hdl/ocr_core/docs/verification_report.md).\n- `ocr_framer`: user guide section 4.6: every packet is cut into chunks of ChunkBytes_g bytes.\n- `owr_core`: no length limit by design: N-Chars stream through N-Char FIFOs without a packet concept, the only counter of the data path is the credit (owr_data_link.vhd); packets of up to 65542 bytes simulated, also with a link error in the middle (TC-CORE-17, TC-CORE-18, user guide section 7).\n- `spp_core`: user guide section 7.1 and the integration table (the send buffer holds the longest SDU of a port, the receive buffer the longest Space Packet), requirements SPP-6 and SPP-23.\n\n## 8. Notes from the user guides\n\n**Chunk framer** (`ocr_framer`, `frm0`): https://openspacehdl.org/opencrypto/docs/user_guide.html\n\n- The slot Cfg_Slot is loaded for generated IVs and stays unchanged while the framer holds chunks.\n- Every chunk consumes one invocation of the slot; save the counter regularly (GCM 9.1).\n- A receiver decrypts every chunk on its own (IV bytes 0 to 11, AAD bytes 12 to 15, tag the last 16 bytes), orders the chunks by the invocation counter and finds the packet boundaries in the positions.\n\n**AES-GCM core** (`ocr_core`, `ocr0`): https://openspacehdl.org/opencrypto/docs/user_guide.html\n\n- Rst is synchronous and high-active; synchronise its release to Clk, for example with olo_base_reset_gen with SyncTmr_g = true.\n- After every reset the key table erases every slot with its key and IV state (NumKeys_g + 3 cycles after the release of Rst, STATUS.BUSY = '1'); no key and no invocation counter survives a reset.\n- One context per message, in the order of the messages; the core pairs the n-th context with the n-th message.\n- Load every key slot in use through the registers before sending contexts (programming sequence of the user guide).\n- Without the release buffer, discard every decrypted message whose last beat carries the error flag or whose status is not OK.\n- Save the invocation counter of every slot with generated IVs regularly ahead of the operational value (GCM 9.1).\n\n**Space Packet node** (`spp_core`, `spp0`): https://openspacehdl.org/openspp/docs/user_guide.html\n\n- Rst is synchronous and high-active; synchronise its release to Clk, for example with olo_base_reset_gen.\n- DpRst restarts the core while the link stays in operation: it resets every function except the link output stage, which ends a packet open on M_Link with an EEP beat. It takes the reset of a reset group of the system and keeps its default '0' outside one. M_Link is reset by Rst only, so the link side (spp_nchar, the SpaceWire or SpaceFibre port) stays out of the group (user guide 3.1).\n- M_Link is driven by the register stage spp_link_output, which adds one clock cycle of latency (since OpenSPP 0.2.0) and no cycle per packet: the throughput and the clock cycles per packet are unchanged.\n- After the reset the core initialises both APID tables (2048 clock cycles); packets are sent and delivered once the tables are ready.\n- Serve every receive port, or place a buffer behind a port whose user can stall for long.\n- TxBufferBytes_g holds the longest SDU of a port, RxBufferBytes_g the longest Space Packet.\n- Hold the side band (TUser) of a send port constant during an SDU.\n- A last beat without valid bytes (Keep all zero) ends an SDU or packet at the inputs; an SDU without any byte is rejected (0x02). The outputs never carry a beat without valid bytes.\n- The user supplies the packet secondary header at the start of the Octet String and keeps the secondary header flag of an APID static.\n\n**N-Char adapter** (`spp_nchar`, `nchar0`): https://openspacehdl.org/openspp/docs/user_guide.html\n\n- A received end of packet marker without data characters is discarded.\n- A link packet that ends with a beat without valid bytes gets its marker after the bytes of the earlier beats; a link packet without any byte sends nothing.\n\n**SpaceWire port** (`owr_core`, `spw0`): https://openspacehdl.org/openwire/docs/user_guide.html\n\n- LVDS output buffers for data and strobe and LVDS input buffers with fail-safe biasing belong to the top level; the core contains no I/O buffer.\n- Enable the safe implementation of state machines in the synthesis tool.\n- Set INT_HOLDOFF and INT_ACK_DELAY for the network before distributed interrupts are used.\n- Serve the indication ports before the indication FIFO (16 entries) fills.\n- Write registers as 32-bit words; a read that depends on a write waits for the write response.\n\n**EDAC monitor with registers** (`olo_ft_ecc_monitor_axi`, `edac0`): https://openspacehdl.org/open-logic-ft/doc/ft/olo_ft_ecc_monitor_axi.html\n\n- EDAC monitor with an AXI4-Lite register file and an interrupt.\n\n## 9. Address map\n\nEvery address space of the system with its register banks (`resolved.addressMap`). A space starts at an AXI slave of the top level or at the AXI master of a block; an AXI4-Lite decoder gives each of its ports a window of equal size. The export writes the same as `encrypted_spp_over_spw_address_map.md`, and the base, size and ID register value of every bank as C macros in `encrypted_spp_over_spw_regs.h`.\n\n### edac_reg_ (edac0.S_AxiLite)\n\nAddresses of the top-level port edac_reg_ (edac0.S_AxiLite), 12 address bits.\n\n| Base | Last | Size | Instance | Block | ID register | Window | Register map |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| 0x0000 | 0x0FFF | 4 KiB | `edac0` | `olo_ft_ecc_monitor_axi` |  | the whole space | https://openspacehdl.org/open-logic-ft/doc/ft/olo_ft_ecc_monitor_axi.html |\n\n### ocr_reg_ (ocr0.S_AxiLite)\n\nAddresses of the top-level port ocr_reg_ (ocr0.S_AxiLite), 8 address bits.\n\n| Base | Last | Size | Instance | Block | ID register | Window | Register map |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| 0x0000 | 0x00FF | 256 B | `ocr0` | `ocr_core` | 0x4F435201 | the whole space | `sw/ocr_regs.h`, `hdl/ocr_mib/docs/register_map.md` of opencrypto |\n\n### spp_reg_ (spp0.S_AxiLite)\n\nAddresses of the top-level port spp_reg_ (spp0.S_AxiLite), 11 address bits.\n\n| Base | Last | Size | Instance | Block | ID register | Window | Register map |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| 0x0000 | 0x07FF | 2 KiB | `spp0` | `spp_core` | 0x53505001 | the whole space | `sw/spp_regs.h`, `hdl/spp_mib/docs/register_map.md` of openspp |\n\n### spw_reg_ (spw0.S_AxiLite)\n\nAddresses of the top-level port spw_reg_ (spw0.S_AxiLite), 8 address bits.\n\n| Base | Last | Size | Instance | Block | ID register | Window | Register map |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n| 0x0000 | 0x00FF | 256 B | `spw0` | `owr_core` | 0x4F575201 | the whole space | `sw/owr_regs.h`, `hdl/owr_mib/docs/register_map.md` of openwire |\n\n### Register maps\n\nThe register offsets are in the C headers and register maps of the cores, at the commits the system is built with. `encrypted_spp_over_spw_regs.h` includes the headers by name: the include path of the compiler must point to these directories.\n\n| Header | Repository | Commit | Path | Register map |\n| --- | --- | --- | --- | --- |\n| `ocr_regs.h` | https://github.com/open-space-hdl/opencrypto | `e40e3e354493a23f0da651952fdc66b8dbb2ff7b` | `sw/ocr_regs.h` | `hdl/ocr_mib/docs/register_map.md` |\n| `owr_regs.h` | https://github.com/open-space-hdl/openwire | `32544f70b71187ea3b519b637483ac854c3d18a1` | `sw/owr_regs.h` | `hdl/owr_mib/docs/register_map.md` |\n| `spp_regs.h` | https://github.com/open-space-hdl/openspp | `c385fc0d000434368b8bd471ec7e07287c1e01f6` | `sw/spp_regs.h` | `hdl/spp_mib/docs/register_map.md` |\n\n## 10. Interrupts\n\nEvery interrupt output of the system (`resolved.interrupts`): a level that is high while an enabled event is pending. The Composer places no interrupt controller: route the interrupts to the processor, or leave them open and poll the status registers.\n\n| Interrupt | Clock domain | Goes to | Enable | Status | Events (write 1 to clear) |\n| --- | --- | --- | --- | --- | --- |\n| `edac0.Irq` | System clock | open: poll the registers | see the documentation of `olo_ft_ecc_monitor_axi` |  |  |\n| `ocr0.Irq` | System clock | open: poll `IRQ_STATUS` | `IRQ_EN` (0x01C) | `IRQ_STATUS` (0x020) | `EVENTS` (0x018) |\n| `spp0.Irq` | System clock | open: poll `IRQ_STATUS` | `IRQ_EN` (0x058) | `IRQ_STATUS` (0x05C) | `EVENTS` (0x054) |\n| `spw0.Irq` | System clock | open: poll `IRQ_STATUS` | `EVENTS_IRQ_EN` (0x038), `ERRORS_IRQ_EN` (0x034) | `IRQ_STATUS` (0x03C) | `EVENTS` (0x030) |\n\n## 11. Protection scope\n\nThe system is designed for radiation environments together with the triple modular redundancy (TMR) of the synthesis tool, like the Open Logic ft entities its blocks are built on (`resolved.protection`).\n\nBlocks that protect their memories with SECDED ECC and report it in their registers (the channels count the double-error flags of the status register):\n\n| Block | Channels | Status | Counters | Error injection | Evidence |\n| --- | --- | --- | --- | --- | --- |\n| `ocr0` (`ocr_core`) | 18 | `ECC_STATUS` (0x0C0) | `ECC_SELECT` (0x0C4), `ECC_COUNT` (0x0C8) | `ECC_INJECT` (0x0CC) | user guide section 6 (protection scope) and the register map |\n| `spp0` (`spp_core`) | 8 | `ECC_STATUS` (0x060) | `ECC_SELECT` (0x064), `ECC_COUNT` (0x068) | `ECC_INJECT` (0x06C) | user guide section 6 (protection scope) and the register map |\n| `spw0` (`owr_core`) | 6 | `ECC_STATUS` (0x080) | `ECC_SELECT` (0x084), `ECC_COUNT` (0x088) | `ECC_INJECT` (0x08C) | user guide section 5 (protection scope) and the register map |\n\nECC events of memories (SECDED ECC of the Open Logic ft entities) and where they are reported:\n\n| Source | Memory | Reported at |\n| --- | --- | --- |\n| `frm0.Ecc[0]` | chunk buffer of `frm0` | channel 0 of `edac0` (`olo_ft_ecc_monitor_axi`) |\n| `frm0.Ecc[1]` | position FIFO of `frm0` | channel 1 of `edac0` (`olo_ft_ecc_monitor_axi`) |\n\nState machines recover through their `when others` branch and the reset. All other logic (registers of the control and data paths, counters, pointers, pipeline registers) relies on the TMR of the synthesis tool. The integrator:\n\n- enables the TMR of the synthesis tool for the system,\n- checks in the synthesis report that TMR was applied, that the synchroniser chains of the crossings were not triplicated a second time, and that no register-based storage meant to be protected by TMR was inferred as a RAM primitive,\n- requests safe state machines, so that synthesis keeps the `when others` branches (AMD Vivado: property `FSM_SAFE_STATE` = `default_state` on the state registers; Synplify: attribute `syn_encoding` = `safe`),\n- protects the configuration memory of SRAM-based FPGAs by scrubbing; this is part of the FPGA design.\n\nThe ECC paths of the blocks are verified in simulation by error injection. Whether the protection as a whole meets the requirements of a mission is shown by a radiation test of the system in operation.\n\n## 12. Initialisation by software\n\nRegister addresses are byte addresses of the AXI4-Lite port of the block; write registers as 32-bit words and wait for the write response before a read that depends on it.\n\n**`frm0`** (Chunk framer, `ocr_framer`):\n\n1. Load the key slot Cfg_Slot of the AES-GCM core for generated IVs (KEY_LOAD with IV_GEN = '1', see the core) before the first packet; without a loaded slot every chunk fails with KEY.\n\n**`ocr0`** (AES-GCM core, `ocr_core`) through the top-level ports `ocr_reg_S_AxiLite_*`:\n\n1. Read ID (0x000): it reads 0x4F435201.\n2. After the reset wait until STATUS (0x014) bit 0 BUSY is 0: the key table erases every slot.\n3. Load every key slot in use: write the key to KEY0 to KEY7 (0x040 + 4 n; key byte 4 n in bits 31:24; 4, 6 or 8 words), for generated IVs the fixed field to IV_FIXED (0x060) and the first invocation counter to IV_COUNT_LO (0x064) and IV_COUNT_HI (0x068), then write KEY_LOAD (0x06C) with START (bit 31), IV_GEN (bit 8) and the slot (bits 7:0), for example 0x80000100 for slot 0 with generated IVs; wait until STATUS.BUSY is 0.\n\n**`spp0`** (Space Packet node, `spp_core`) through the top-level ports `spp_reg_S_AxiLite_*`:\n\n1. Read ID (0x000): it reads 0x53505001.\n2. After the reset wait until TABLE_STATUS (0x040) bits 1:0 (TX_BUSY, RX_BUSY) are 0: the core initialises both APID tables (2048 clock cycles).\n3. Nothing else is needed: with TxPathDefault_g and RxPathDefault_g every APID has an enabled path to destination 0 and to receive port 0, destination 0 has the Target Logical Address 0xFE (DEST_CTRL 0x400) and the own address is Tla_g. A flight configuration writes the APID tables (TX_TABLE_APID 0x030 and TX_TABLE_ENTRY 0x034, RX_TABLE_APID 0x038 and RX_TABLE_ENTRY 0x03C) and the destinations (DEST_CTRL 0x400 + 0x20 n).\n\n**`spw0`** (SpaceWire port, `owr_core`) through the top-level ports `spw_reg_S_AxiLite_*`:\n\n1. Read ID (0x00): it reads 0x4F575201.\n2. Optionally write LINK_SPEED (0x14) bits 7:0 RUN_DIV: the bit period in the Run state in LinkClk cycles (reset value RunDiv_g); choose it for the far end, which samples at most about LinkClk / 1.2.\n3. Write PORT_CTRL (0x10) = 0x34 (RECEIVER_EN, DRIVER_EN, LINK_START) to start the link, or 0x38 (AUTO_START) to wait for the far end.\n4. Wait for PORT_STATUS (0x18) bits 2:0 LINK_STATE = 5 (Run) before packets are exchanged.\n\n## 13. Checks\n\n- Note: ocr0.M_Out has user; spp0.S_Tx[0] gets the side band constants of c3 instead.\n- Note: spp0 sends Space Packets of up to ChunkBytes_g + 38 = 4134 bytes: the node that receives them needs RxBufferBytes_g of at least 4134 (spp0 has 8192).\n- Note: Packets from the link of spw0 reach spp0.S_Link, which takes at most 8196 bytes: the receive buffer holds the longest Space Packet (error code 0x17); longer ones are discarded.\n- Note: No length limit published for spp_nchar (nchar0): packets through it are checked against the other blocks only.\n\n## 14. Verification\n\nA smoke testbench `encrypted_spp_over_spw_tb` (VHDL-2008, no extra libraries):\n\n1. Instantiate `encrypted_spp_over_spw` and drive `Clk_sys` at 100 MHz, `Clk_link` at 200 MHz.\n2. Hold `Rst` at '1' for 16 cycles of the slowest clock (100 MHz), then '0'.\n3. Keep every external input idle: stream inputs with valid at '0', ready inputs of external outputs at '1', bus requests idle, pins at '0'.\n4. Run for at least 100 us (the blocks initialise their tables after the reset) and stop the simulation: it must end without failed assertions, and the handshake outputs of the top level (valid, ready) and the line outputs must not be 'U' or 'X' after the reset. Data outputs may stay undefined while their valid is '0'.\n5. Where an AXI4-Lite port is external, read the ID register of the block (section 12) and compare it with the documented value.\n\nWith GHDL: analyse the libraries of section 1, then `ghdl -i --std=08 -frelaxed --work=encrypted_spp_over_spw encrypted_spp_over_spw.vhd encrypted_spp_over_spw_tb.vhd`, `ghdl -m --std=08 -frelaxed --work=encrypted_spp_over_spw encrypted_spp_over_spw_tb` and `ghdl -r --std=08 -frelaxed --work=encrypted_spp_over_spw encrypted_spp_over_spw_tb --stop-time=100us --assert-level=error --ieee-asserts=disable` (`--ieee-asserts=disable` silences the warnings of the numeric package about metavalues before the reset).\n\nWith QuestaSim: create and map every library of section 1 (`vlib <library>`, `vmap <library> <library>`) and compile its files in the order of the table (`vcom -2008 -work <library> <files>`), then `vlib encrypted_spp_over_spw`, `vmap encrypted_spp_over_spw encrypted_spp_over_spw`, `vcom -2008 -work encrypted_spp_over_spw encrypted_spp_over_spw.vhd encrypted_spp_over_spw_tb.vhd` and `vsim -c -t fs encrypted_spp_over_spw.encrypted_spp_over_spw_tb -do \"set NumericStdNoWarnings 1; run 100 us; quit -f\"`. `-t fs` sets the time resolution of GHDL, 1 fs: a coarser one (without `-t`, the `Resolution` of `modelsim.ini`) cuts clock periods and offsets below it. QuestaSim stops only at an assertion of severity failure, so check its transcript for errors.\n\nOptional end-to-end test, after the initialisation of section 12:\n\n- AES-GCM core (`ocr_core`): Load the key slot, send a packet and check the output: with generated IVs the first 4 bytes of every message are IV_FIXED, the next 8 the invocation counter; decrypt it with AES-GCM in the test bench (or a second core) and compare.\n- Space Packet node (`spp_core`): Send one SDU on a send port (APID 0x123, for example) and expect it on receive port 0 with the same APID in user bits 10:0, once the APID tables are ready.\n- SpaceWire port (`owr_core`): Loop the SpaceWire line back (Spw_DOut to Spw_DIn, Spw_SOut to Spw_SIn) or connect a second port, start the link and wait for PORT_STATUS LINK_STATE = 5 (Run).\n\n## 15. Readiness of the parts\n\nThe technology readiness level (TRL) of every part, as its project states it (https://openspacehdl.org/trl/). Parts at TRL 3 or higher (lowest: 3). The composed system has no TRL of its own: it is checked by elaboration and a run to 0 ns.\n\n| Part | Repository | TRL | Status | Instances |\n| --- | --- | --- | --- | --- |\n| OpenWire | https://github.com/open-space-hdl/openwire | 3 | Fully verified by simulation. Not yet tested on hardware, no flight heritage. | `spw0` |\n| OpenSPP | https://github.com/open-space-hdl/openspp | 3 | Fully verified by simulation. Not yet tested on hardware, no flight heritage. | `spp0`, `nchar0` |\n| OpenCrypto | https://github.com/open-space-hdl/opencrypto | 3 | Fully verified by simulation. Not yet tested on hardware, no flight heritage. | `frm0`, `ocr0` |\n| Open Logic FT | https://github.com/open-space-hdl/open-logic-ft | 3 | Fully verified by simulation. Not yet tested on hardware, no flight heritage. | `edac0`, `auto_rst_sys` |\n"
  },
  "catalogSubset": {
    "id": "75afe851b7e7",
    "note": "Catalog entries of the blocks of this system and of their interface types, as the Composer used them: ports, generics, clocks, resets, interfaces with their signals, clocks, fields and directions, presets, rules, notes and the initialisation by software.",
    "types": [
      {
        "id": "spw.nchar",
        "name": "SpaceWire packets (N-Char)",
        "family": "SpaceWire",
        "kind": "stream",
        "needsLast": true,
        "color": "#D9480F",
        "description": "Packets as N-Char stream, one data character per beat; a beat with Last is the end of packet marker (data bit 0: '0' EOP, '1' EEP).",
        "signals": {
          "data": {
            "dir": "out"
          },
          "last": {
            "dir": "out"
          },
          "valid": {
            "dir": "out"
          },
          "ready": {
            "dir": "in"
          }
        },
        "bridges": [
          {
            "type": "pkt.link",
            "via": "openspp/spp_nchar"
          }
        ]
      },
      {
        "id": "spw.timecode",
        "name": "SpaceWire time-codes",
        "family": "SpaceWire",
        "kind": "stream",
        "color": "#B35C00",
        "description": "Time-codes of the SpaceWire time-code service (6 bit value).",
        "signals": {
          "data": {
            "dir": "out"
          },
          "valid": {
            "dir": "out"
          },
          "ready": {
            "dir": "in",
            "optional": true,
            "absent": "1",
            "absentWhy": "a sink without ready takes every beat"
          }
        }
      },
      {
        "id": "spw.int",
        "name": "SpaceWire interrupts",
        "family": "SpaceWire",
        "kind": "stream",
        "color": "#9C4A1A",
        "description": "Interrupt codes of the SpaceWire distributed interrupt service (5 bit interrupt identifier).",
        "signals": {
          "data": {
            "dir": "out"
          },
          "valid": {
            "dir": "out"
          },
          "ready": {
            "dir": "in",
            "optional": true,
            "absent": "1",
            "absentWhy": "a sink without ready takes every beat"
          }
        }
      },
      {
        "id": "spw.intack",
        "name": "SpaceWire interrupt acknowledgements",
        "family": "SpaceWire",
        "kind": "stream",
        "color": "#8C5A2B",
        "description": "Interrupt acknowledgement codes of the SpaceWire distributed interrupt service (5 bit identifier).",
        "signals": {
          "data": {
            "dir": "out"
          },
          "valid": {
            "dir": "out"
          },
          "ready": {
            "dir": "in",
            "optional": true,
            "absent": "1",
            "absentWhy": "a sink without ready takes every beat"
          }
        }
      },
      {
        "id": "spw.ds",
        "name": "SpaceWire line",
        "family": "SpaceWire",
        "kind": "pins",
        "color": "#495057",
        "description": "Data-strobe line drivers and receivers of a SpaceWire link (LVDS buffers outside the core).",
        "signals": {
          "d_out": {
            "dir": "out"
          },
          "s_out": {
            "dir": "out"
          },
          "d_in": {
            "dir": "in"
          },
          "s_in": {
            "dir": "in"
          },
          "tx_en": {
            "dir": "out",
            "optional": true
          },
          "rx_en": {
            "dir": "out",
            "optional": true
          }
        }
      },
      {
        "id": "pkt.link",
        "name": "Packet link",
        "family": "Packets",
        "kind": "stream",
        "needsLast": true,
        "color": "#2B8A3E",
        "description": "Network packets on a wide stream: byte 0 of a beat in data bits 7:0, keep contiguous from byte 0 and partial only on the last beat, last marks the end of the packet, user bit 0 on the last beat is the error end of packet (EEP). Further user bits carry a destination index where the source provides one.",
        "signals": {
          "data": {
            "dir": "out"
          },
          "keep": {
            "dir": "out"
          },
          "last": {
            "dir": "out"
          },
          "user": {
            "dir": "out"
          },
          "valid": {
            "dir": "out"
          },
          "ready": {
            "dir": "in"
          }
        },
        "bridges": [
          {
            "type": "spw.nchar",
            "via": "openspp/spp_nchar"
          }
        ]
      },
      {
        "id": "byte.stream",
        "name": "Byte stream",
        "family": "Packets",
        "kind": "stream",
        "needsLast": true,
        "color": "#0C8599",
        "description": "Byte stream with keep and last and no side band: byte 0 of a beat in data bits 7:0, keep contiguous from byte 0 and partial only on the last beat of a packet; optionally an error flag of the packet on its last beat.",
        "signals": {
          "data": {
            "dir": "out"
          },
          "keep": {
            "dir": "out",
            "optional": true,
            "absent": "1",
            "absentWhy": "every byte of a beat is valid"
          },
          "last": {
            "dir": "out"
          },
          "valid": {
            "dir": "out"
          },
          "ready": {
            "dir": "in"
          },
          "error": {
            "dir": "out",
            "optional": true,
            "absent": "0",
            "absentWhy": "packets without an error flag"
          }
        },
        "accepts": [
          {
            "type": "spp.rx",
            "note": "The side band of the receive port (APID, flags) is not passed on."
          },
          {
            "type": "gcm.msg",
            "note": "The messages of the AES-GCM core are a byte stream with its dense output (DenseOutput_g = true); the section and error bits are not passed on."
          }
        ]
      },
      {
        "id": "spp.tx",
        "name": "Space Packet send port",
        "family": "Space Packets",
        "kind": "stream",
        "needsLast": true,
        "color": "#087F5B",
        "description": "Send port of OpenSPP: one SDU (Octet String Service) or one Space Packet (Packet Service) per stream packet, with the per-SDU side band (APID, packet type, secondary header flag, packet name) in user.",
        "signals": {
          "data": {
            "dir": "out"
          },
          "keep": {
            "dir": "out"
          },
          "last": {
            "dir": "out"
          },
          "user": {
            "dir": "out"
          },
          "valid": {
            "dir": "out"
          },
          "ready": {
            "dir": "in"
          }
        },
        "accepts": [
          {
            "type": "byte.stream",
            "sideband": "required",
            "note": "The side band of the send port is set to constants on the connection."
          },
          {
            "type": "gcm.msg",
            "sideband": "required",
            "note": "One encrypted message per SDU (with the dense output of the core: IV, AAD, ciphertext, tag); the side band of the send port is set to constants on the connection."
          }
        ]
      },
      {
        "id": "spp.rx",
        "name": "Space Packet receive port",
        "family": "Space Packets",
        "kind": "stream",
        "needsLast": true,
        "color": "#5C940D",
        "description": "Receive port of OpenSPP: one SDU or Space Packet per stream packet, with APID, flags, loss indicator and the user application value in user.",
        "signals": {
          "data": {
            "dir": "out"
          },
          "keep": {
            "dir": "out"
          },
          "last": {
            "dir": "out"
          },
          "user": {
            "dir": "out"
          },
          "valid": {
            "dir": "out"
          },
          "ready": {
            "dir": "in"
          }
        }
      },
      {
        "id": "spp.err",
        "name": "Space Packet errors",
        "family": "Space Packets",
        "kind": "event",
        "cdc": "valid",
        "color": "#C92A2A",
        "description": "One-cycle event for every rejected SDU and every discarded packet, with code, port and APID.",
        "signals": {
          "valid": {
            "dir": "out"
          }
        },
        "fields": "out"
      },
      {
        "id": "gcm.ctx",
        "name": "AES-GCM contexts",
        "family": "Encryption",
        "kind": "stream",
        "color": "#A61E4D",
        "description": "One context per message of the AES-GCM core (direction, key slot, IV source, IV).",
        "signals": {
          "valid": {
            "dir": "out"
          },
          "ready": {
            "dir": "in"
          }
        },
        "fields": "out"
      },
      {
        "id": "gcm.msg",
        "name": "AES-GCM messages",
        "family": "Encryption",
        "kind": "stream",
        "needsLast": true,
        "color": "#D6336C",
        "description": "Messages of the AES-GCM core with the section (IV, AAD, DATA, TAG) of every beat in user.",
        "signals": {
          "data": {
            "dir": "out"
          },
          "keep": {
            "dir": "out"
          },
          "last": {
            "dir": "out"
          },
          "user": {
            "dir": "out"
          },
          "valid": {
            "dir": "out"
          },
          "ready": {
            "dir": "in",
            "optional": true,
            "absent": "1",
            "absentWhy": "a sink without ready takes every beat"
          }
        },
        "accepts": [
          {
            "type": "byte.stream",
            "sideband": "required",
            "note": "Every packet is one message; the section of its beats is a constant on the connection."
          }
        ]
      },
      {
        "id": "gcm.sts",
        "name": "AES-GCM status",
        "family": "Encryption",
        "kind": "stream",
        "color": "#E64980",
        "description": "Status of every message of the AES-GCM core (code, key slot, IV, section lengths).",
        "signals": {
          "valid": {
            "dir": "out"
          },
          "ready": {
            "dir": "in",
            "optional": true,
            "absent": "1",
            "absentWhy": "a sink without ready takes every beat"
          }
        },
        "fields": "out"
      },
      {
        "id": "axi4lite",
        "name": "AXI4-Lite register bus",
        "family": "Buses",
        "kind": "bus",
        "cdc": "none",
        "color": "#5A6B80",
        "description": "AXI4-Lite register access (32 bit data), for example the register file of a core.",
        "accepts": [
          {
            "type": "axi4",
            "condition": "liteWhen",
            "note": "The AXI4 master issues single transfers only, so its AXI4-Lite subset drives the slave."
          }
        ],
        "signals": {
          "AwAddr": {
            "dir": "out"
          },
          "AwValid": {
            "dir": "out"
          },
          "AwReady": {
            "dir": "in"
          },
          "WData": {
            "dir": "out"
          },
          "WStrb": {
            "dir": "out"
          },
          "WValid": {
            "dir": "out"
          },
          "WReady": {
            "dir": "in"
          },
          "BResp": {
            "dir": "in"
          },
          "BValid": {
            "dir": "in"
          },
          "BReady": {
            "dir": "out"
          },
          "ArAddr": {
            "dir": "out"
          },
          "ArValid": {
            "dir": "out"
          },
          "ArReady": {
            "dir": "in"
          },
          "RData": {
            "dir": "in"
          },
          "RResp": {
            "dir": "in"
          },
          "RValid": {
            "dir": "in"
          },
          "RReady": {
            "dir": "out"
          }
        }
      },
      {
        "id": "irq",
        "name": "Interrupt",
        "family": "Events",
        "kind": "event",
        "cdc": "level",
        "color": "#C2255C",
        "description": "Level interrupt of a register file.",
        "signals": {
          "irq": {
            "dir": "out"
          }
        }
      },
      {
        "id": "ecc.event",
        "name": "EDAC events",
        "family": "Events",
        "kind": "event",
        "cdc": "pulse",
        "color": "#8F6B00",
        "description": "Corrected single and detected double bit errors of SECDED-protected memories (pulses or vectors).",
        "signals": {
          "sec": {
            "dir": "out"
          },
          "ded": {
            "dir": "out"
          },
          "valid": {
            "dir": "out",
            "optional": true,
            "absent": "1",
            "absentWhy": "events without valid are valid in every cycle, as the default of In_Valid of olo_ft_ecc_monitor"
          }
        }
      },
      {
        "id": "ecc.inject",
        "name": "EDAC error injection",
        "family": "Events",
        "kind": "event",
        "cdc": "valid",
        "color": "#7A6A00",
        "description": "Error injection into SECDED-protected memories, for tests.",
        "fields": "out"
      },
      {
        "id": "reset",
        "name": "Reset",
        "family": "Events",
        "kind": "event",
        "cdc": "none",
        "color": "#343A40",
        "description": "Synchronous high-active reset of a clock domain.",
        "signals": {
          "rst": {
            "dir": "out"
          }
        }
      },
      {
        "id": "sig.control",
        "name": "Control signals",
        "family": "Events",
        "kind": "event",
        "cdc": "level",
        "color": "#808891",
        "description": "Static or slow control inputs of a block.",
        "fields": "out"
      }
    ],
    "blocks": [
      {
        "id": "opencrypto/ocr_framer",
        "kind": "module",
        "name": "Chunk framer",
        "group": "opencrypto",
        "source": "opencrypto",
        "library": "opencrypto",
        "entity": "ocr_framer",
        "path": "hdl/ocr_framer/src/ocr_framer.vhd",
        "summary": "Cuts packets of any length into chunks of ChunkBytes_g bytes and hands every chunk to the AES-GCM core as one encryption with a generated IV and a 4-byte AAD with the position of the chunk in its packet.",
        "idPrefix": "frm",
        "doc": "https://openspacehdl.org/opencrypto/docs/user_guide.html",
        "project": "OpenCrypto",
        "notes": [
          "The slot Cfg_Slot is loaded for generated IVs and stays unchanged while the framer holds chunks.",
          "Every chunk consumes one invocation of the slot; save the counter regularly (GCM 9.1).",
          "A receiver decrypts every chunk on its own (IV bytes 0 to 11, AAD bytes 12 to 15, tag the last 16 bytes), orders the chunks by the invocation counter and finds the packet boundaries in the positions."
        ],
        "rules": [
          {
            "kind": "same_domain",
            "interfaces": [
              "M_Ctx",
              "M_Out"
            ],
            "message": "The framer and the core share clock and reset; a reset of only one of them leaves contexts or messages without partner."
          },
          {
            "kind": "generic_range",
            "generic": "ChunkBytes_g",
            "max": 65536
          }
        ],
        "init": [
          {
            "text": "Load the key slot Cfg_Slot of the AES-GCM core for generated IVs (KEY_LOAD with IV_GEN = '1', see the core) before the first packet; without a loaded slot every chunk fails with KEY."
          }
        ],
        "rates": {
          "evidence": "TC-FR-03 (four long packets without stall cycles, at most AadBeats + 2 cycles per chunk, hdl/ocr_framer/docs/verification_report.md)",
          "packet": "chunk",
          "vars": {
            "B": "DataWidth_g / 8"
          },
          "interfaces": {
            "S_In": {
              "bytesPerBeat": "B",
              "overheadCycles": "cdiv(n, ChunkBytes_g) * (cdiv(4, B) + 2)"
            },
            "M_Out": {
              "cycles": "cdiv(4, B) + cdiv(n - 4, B)"
            }
          },
          "routes": [
            {
              "from": "S_In",
              "to": "M_Out",
              "chunk": "ChunkBytes_g",
              "addBytes": "4"
            }
          ],
          "chains": [
            {
              "from": "M_Out",
              "to": {
                "block": "opencrypto/ocr_core",
                "in": "S_In",
                "out": "M_Out",
                "when": "DenseOutput_g"
              },
              "cycles": "cdiv(12, B) + cdiv(4, B) + cdiv(n - 4, B) + cdiv(16, B) + min(1, (n - 4) mod B)",
              "evidence": "user guide section 7.2 and TC-FR-08 (framer and core with the dense output, C(n) exactly at 16, 32, 64 and 128 bit, hdl/ocr_framer/docs/verification_report.md)"
            }
          ]
        },
        "sizes": {
          "evidence": "user guide section 4.6: every packet is cut into chunks of ChunkBytes_g bytes",
          "interfaces": {
            "S_In": {
              "noLimit": true
            }
          },
          "chains": [
            {
              "from": "M_Out",
              "to": {
                "block": "opencrypto/ocr_core",
                "in": "S_In",
                "out": "M_Out"
              },
              "sections": [
                "12",
                "4",
                "n - 4",
                "16"
              ]
            }
          ]
        },
        "packages": [
          "ocr_pkg"
        ],
        "generics": [
          {
            "name": "DataWidth_g",
            "vhdlType": "positive range 16 to 128",
            "kind": "integer",
            "min": 16,
            "max": 128,
            "defaultText": "32",
            "default": 32,
            "label": "Stream width",
            "description": "The DataWidth_g of the core; follows the connected core.",
            "choices": [
              16,
              32,
              64,
              128
            ],
            "unit": "bits",
            "follow": {
              "interfaces": [
                "M_Out",
                "S_In"
              ],
              "measure": "data",
              "rank": 1
            }
          },
          {
            "name": "NumKeys_g",
            "vhdlType": "positive range 1 to 256",
            "kind": "integer",
            "min": 1,
            "max": 256,
            "defaultText": "4",
            "default": 4,
            "label": "Key slots",
            "description": "The NumKeys_g of the core (width of the slot); follows the connected core.",
            "follow": {
              "interfaces": [
                "M_Ctx"
              ],
              "measure": "generic",
              "generic": "NumKeys_g"
            }
          },
          {
            "name": "ChunkBytes_g",
            "vhdlType": "positive",
            "kind": "integer",
            "min": 1,
            "max": 2147483647,
            "defaultText": "4096",
            "default": 4096,
            "label": "Chunk size",
            "description": "Bytes of a chunk; the last chunk of a packet has the remaining bytes. A chunk leaves the core as ChunkBytes_g + 32 bytes (IV 12, AAD 4, tag 16).",
            "check": "multiple16",
            "unit": "bytes"
          },
          {
            "name": "BufferChunks_g",
            "vhdlType": "positive range 2 to 64",
            "kind": "integer",
            "min": 2,
            "max": 64,
            "defaultText": "2",
            "default": 2,
            "label": "Buffered chunks",
            "description": "Chunks that the chunk buffer holds; it takes the next chunk while one leaves."
          },
          {
            "name": "RamStyle_g",
            "vhdlType": "string",
            "kind": "string",
            "defaultText": "\"auto\"",
            "default": "auto",
            "label": "RAM style",
            "description": "RAM style of the chunk buffer.",
            "advanced": true
          }
        ],
        "clocks": [
          {
            "port": "Clk",
            "primary": true,
            "label": "Clock",
            "description": "The clock of the core."
          }
        ],
        "resets": [
          {
            "port": "Rst",
            "active": "high",
            "sync": "sync",
            "clock": "Clk"
          }
        ],
        "interfaces": [
          {
            "name": "Cfg",
            "type": "sig.control",
            "role": "event_in",
            "clock": "Clk",
            "label": "Key slot",
            "description": "Key slot of the contexts: loaded for generated IVs (IV_GEN = '1') and unchanged while the framer holds chunks.",
            "sideband": {
              "signal": "slot",
              "description": "Static key slot of the contexts, set as a constant of the instance.",
              "fields": [
                {
                  "name": "slot",
                  "label": "Key slot",
                  "lsb": 0,
                  "bits": 8,
                  "kind": "integer",
                  "default": 0,
                  "below": "NumKeys_g"
                }
              ]
            },
            "tieOff": "constant",
            "signals": {
              "slot": "Cfg_Slot"
            }
          },
          {
            "name": "S_In",
            "type": "byte.stream",
            "role": "sink",
            "clock": "Clk",
            "label": "Packets in",
            "description": "Packets of any length (for example one compressed image each); last is the end of the packet.",
            "tieOff": "zero",
            "signals": {
              "data": "S_In_Data",
              "keep": "S_In_Keep",
              "last": "S_In_Last",
              "valid": "S_In_Valid",
              "ready": "S_In_Ready"
            },
            "widths": {
              "data": "DataWidth_g",
              "keep": "DataWidth_g / 8"
            }
          },
          {
            "name": "M_Ctx",
            "type": "gcm.ctx",
            "role": "source",
            "clock": "Clk",
            "label": "Contexts",
            "description": "One encryption context per chunk, to S_Ctx of the core.",
            "mustServe": true,
            "signals": {
              "valid": "M_Ctx_Valid",
              "ready": "M_Ctx_Ready",
              "decrypt": "M_Ctx_Decrypt",
              "slot": "M_Ctx_Slot",
              "iv_gen": "M_Ctx_IvGen",
              "iv": "M_Ctx_Iv"
            }
          },
          {
            "name": "M_Out",
            "type": "gcm.msg",
            "role": "source",
            "clock": "Clk",
            "label": "Messages out",
            "description": "AAD section with the position of the chunk, then the chunk as DATA section, to S_In of the core.",
            "mustServe": true,
            "userFields": [
              {
                "name": "section",
                "label": "Section of the beat: 01 AAD, 00 DATA",
                "lsb": 0,
                "bits": 2
              }
            ],
            "signals": {
              "data": "M_Out_Data",
              "keep": "M_Out_Keep",
              "last": "M_Out_Last",
              "user": "M_Out_User",
              "valid": "M_Out_Valid",
              "ready": "M_Out_Ready"
            },
            "widths": {
              "data": "DataWidth_g",
              "keep": "DataWidth_g / 8",
              "user": "2"
            }
          },
          {
            "name": "Ecc",
            "type": "ecc.event",
            "role": "event_out",
            "clock": "Clk",
            "label": "EDAC events",
            "description": "Element 0 the chunk buffer, element 1 the position FIFO.",
            "vector": "2",
            "tieOff": "open",
            "memory": [
              "chunk buffer",
              "position FIFO"
            ],
            "flavor": "pulse",
            "signals": {
              "sec": "Ecc_Sec",
              "ded": "Ecc_Ded"
            }
          },
          {
            "name": "ErrInj",
            "type": "ecc.inject",
            "role": "event_in",
            "clock": "Clk",
            "label": "Error injection",
            "description": "Tests only.",
            "tieOff": "default",
            "signals": {
              "sel": "ErrInj_Sel",
              "bitflip": "ErrInj_BitFlip",
              "valid": "ErrInj_Valid"
            }
          }
        ],
        "ports": [
          {
            "name": "Clk",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "Rst",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "Cfg_Slot",
            "dir": "in",
            "vhdlType": "std_logic_vector(slotBits(NumKeys_g) - 1 downto 0)",
            "width": "slotBits(NumKeys_g)",
            "default": "(others => '0')"
          },
          {
            "name": "S_In_Valid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_In_Ready",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_In_Data",
            "dir": "in",
            "vhdlType": "std_logic_vector(DataWidth_g - 1 downto 0)",
            "width": "DataWidth_g"
          },
          {
            "name": "S_In_Keep",
            "dir": "in",
            "vhdlType": "std_logic_vector(DataWidth_g / 8 - 1 downto 0)",
            "width": "DataWidth_g / 8"
          },
          {
            "name": "S_In_Last",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Ctx_Valid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Ctx_Ready",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Ctx_Decrypt",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Ctx_Slot",
            "dir": "out",
            "vhdlType": "std_logic_vector(slotBits(NumKeys_g) - 1 downto 0)",
            "width": "slotBits(NumKeys_g)"
          },
          {
            "name": "M_Ctx_IvGen",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Ctx_Iv",
            "dir": "out",
            "vhdlType": "std_logic_vector(95 downto 0)",
            "width": "96"
          },
          {
            "name": "M_Out_Valid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Out_Ready",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Out_Data",
            "dir": "out",
            "vhdlType": "std_logic_vector(DataWidth_g - 1 downto 0)",
            "width": "DataWidth_g"
          },
          {
            "name": "M_Out_Keep",
            "dir": "out",
            "vhdlType": "std_logic_vector(DataWidth_g / 8 - 1 downto 0)",
            "width": "DataWidth_g / 8"
          },
          {
            "name": "M_Out_Last",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Out_User",
            "dir": "out",
            "vhdlType": "std_logic_vector(1 downto 0)",
            "width": "2"
          },
          {
            "name": "Ecc_Sec",
            "dir": "out",
            "vhdlType": "std_logic_vector(1 downto 0)",
            "width": "2"
          },
          {
            "name": "Ecc_Ded",
            "dir": "out",
            "vhdlType": "std_logic_vector(1 downto 0)",
            "width": "2"
          },
          {
            "name": "ErrInj_Sel",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1",
            "default": "'0'"
          },
          {
            "name": "ErrInj_BitFlip",
            "dir": "in",
            "vhdlType": "std_logic_vector(1 downto 0)",
            "width": "2",
            "default": "(others => '0')"
          },
          {
            "name": "ErrInj_Valid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1",
            "default": "'0'"
          }
        ]
      },
      {
        "id": "opencrypto/ocr_core",
        "kind": "core",
        "name": "AES-GCM core",
        "group": "opencrypto",
        "source": "opencrypto",
        "library": "opencrypto",
        "entity": "ocr_core",
        "path": "hdl/ocr_core/src/ocr_core.vhd",
        "summary": "AES-GCM authenticated encryption and decryption (FIPS 197, NIST SP 800-38D, CCSDS 352.0-B-2) with a key table, IV generation per key slot and a register file; one message per context, one status per message.",
        "idPrefix": "ocr",
        "doc": "https://openspacehdl.org/opencrypto/docs/user_guide.html",
        "project": "OpenCrypto",
        "notes": [
          "Rst is synchronous and high-active; synchronise its release to Clk, for example with olo_base_reset_gen with SyncTmr_g = true.",
          "After every reset the key table erases every slot with its key and IV state (NumKeys_g + 3 cycles after the release of Rst, STATUS.BUSY = '1'); no key and no invocation counter survives a reset.",
          "One context per message, in the order of the messages; the core pairs the n-th context with the n-th message.",
          "Load every key slot in use through the registers before sending contexts (programming sequence of the user guide).",
          "Without the release buffer, discard every decrypted message whose last beat carries the error flag or whose status is not OK.",
          "Save the invocation counter of every slot with generated IVs regularly ahead of the operational value (GCM 9.1)."
        ],
        "rules": [
          {
            "kind": "generic_range",
            "generic": "AesUnits_g",
            "min": "(KeyBits_g / 32 + 5 + 128 / DataWidth_g) / (128 / DataWidth_g)",
            "max": "KeyBits_g / 32 + 6",
            "unlessZero": true,
            "message": "the AES engine sustains one beat per cycle with ceil(Nr / R) round units and has Nr rounds"
          },
          {
            "kind": "generic_range",
            "generic": "GhashDigit_g",
            "min": "DataWidth_g",
            "unlessZero": true
          },
          {
            "kind": "generic_range",
            "generic": "ReleaseBytes_g",
            "min": "DataWidth_g / 8"
          },
          {
            "kind": "generic_range",
            "generic": "ScrubPeriod_g",
            "min": 0.001,
            "unlessZero": true
          },
          {
            "kind": "generic_range",
            "generic": "ClkFreqHz_g",
            "min": 1000,
            "when": {
              "generic": "ScrubPeriod_g",
              "not": 0
            },
            "message": "the pacer of the key table scrubbers counts milliseconds"
          },
          {
            "kind": "generic_range",
            "generic": "ReleaseBytes_g",
            "max": 65536,
            "when": "ReleaseBuffer_g"
          },
          {
            "kind": "generic_multiple",
            "generic": "ReleaseBytes_g",
            "of": "16 * DataWidth_g / 8",
            "pow2Ratio": true,
            "when": "ReleaseBuffer_g",
            "message": "the release buffer holds a power of two of at least 16 beats"
          },
          {
            "kind": "partner_requires",
            "interface": "M_Out",
            "types": [
              "byte.stream",
              "spp.tx"
            ],
            "generic": "DenseOutput_g",
            "value": true,
            "message": "Set DenseOutput_g = true, so that every message leaves as one gapless byte string (IV, AAD, ciphertext, tag); the sectioned output is for the input of a second core (decryption)."
          },
          {
            "kind": "flag_dropped",
            "interface": "M_Out",
            "signal": "user",
            "bit": 2,
            "unlessGeneric": "ReleaseBuffer_g",
            "unlessInterface": "M_Sts",
            "message": "The error flag of the messages (user bit 2 on the last beat) is not passed on, so a message that failed (for example with KEY) is sent like a good one. Set ReleaseBuffer_g = true (a message leaves the core only when its status is OK) with ReleaseBytes_g a power of two that holds the longest message in whole beats (IV, AAD, data and tag each start a new beat), or consume the status at M_Sts."
          }
        ],
        "idRegister": {
          "address": "0x000",
          "value": "0x4F435201"
        },
        "init": [
          {
            "text": "After the reset wait until STATUS (0x014) bit 0 BUSY is 0: the key table erases every slot."
          },
          {
            "text": "Load every key slot in use: write the key to KEY0 to KEY7 (0x040 + 4 n; key byte 4 n in bits 31:24; 4, 6 or 8 words), for generated IVs the fixed field to IV_FIXED (0x060) and the first invocation counter to IV_COUNT_LO (0x064) and IV_COUNT_HI (0x068), then write KEY_LOAD (0x06C) with START (bit 31), IV_GEN (bit 8) and the slot (bits 7:0), for example 0x80000100 for slot 0 with generated IVs; wait until STATUS.BUSY is 0."
          }
        ],
        "endToEnd": "Load the key slot, send a packet and check the output: with generated IVs the first 4 bytes of every message are IV_FIXED, the next 8 the invocation counter; decrypt it with AES-GCM in the test bench (or a second core) and compare.",
        "rates": {
          "evidence": "TC-CO-10 and TC-CO-11 (back-to-back encryptions and decryptions without stall cycles, hdl/ocr_core/docs/verification_report.md)",
          "packet": "message",
          "vars": {
            "B": "DataWidth_g / 8"
          },
          "interfaces": {
            "S_In": {
              "bytesPerBeat": "B"
            },
            "M_Out": {
              "cycles": "max(3, DenseOutput_g * (cdiv(n, B) + 1) + (1 - DenseOutput_g) * (cdiv(12, B) + cdiv(n - 28, B) + cdiv(16, B)))"
            }
          },
          "routes": [
            {
              "from": "S_In",
              "to": "M_Out",
              "addBytes": "28"
            }
          ]
        },
        "sizes": {
          "evidence": "user guide section 2 (generics LenBits_g and ReleaseBytes_g) and section 8 (the release buffer holds the longest message); the cycles of a release buffer that holds one message but not two: user guide section 7.1, TC-CO-15 (the bound max(B + 2, 3 M - D + 4) for M sectioned beats in a buffer of D beats) and TC-CO-16 (framer chunks of 4096 bytes at 128 bit, hdl/ocr_core/docs/verification_report.md)",
          "interfaces": {
            "S_In": {
              "limits": [
                {
                  "maxBytes": "2 ** LenBits_g - 1",
                  "over": "rejected",
                  "why": "AAD and DATA have at most 2^LenBits_g - 1 bytes each (error LENGTH)"
                }
              ]
            }
          },
          "buffers": [
            {
              "interface": "M_Out",
              "holds": "ReleaseBytes_g",
              "enabledBy": "ReleaseBuffer_g",
              "beat": "DataWidth_g / 8",
              "sections": [
                "12",
                "n - 28",
                "16"
              ],
              "spareBeats": 1,
              "over": "dropped with OVERFLOW",
              "fullRate": {
                "messages": 2,
                "cycles": "3 * m - d + 4",
                "normal": "m + 1"
              }
            }
          ]
        },
        "packages": [
          "ocr_pkg"
        ],
        "protection": {
          "evidence": "user guide section 6 (protection scope) and the register map",
          "ecc": {
            "count": {
              "name": "ECC_COUNT",
              "offset": 200
            },
            "inject": {
              "name": "ECC_INJECT",
              "offset": 204
            },
            "select": {
              "name": "ECC_SELECT",
              "offset": 196
            },
            "status": {
              "name": "ECC_STATUS",
              "offset": 192
            },
            "channels": 18
          }
        },
        "registers": {
          "map": "hdl/ocr_mib/regs/ocr_regs.yml",
          "header": "sw/ocr_regs.h",
          "doc": "hdl/ocr_mib/docs/register_map.md",
          "prefix": "OCR"
        },
        "generics": [
          {
            "name": "DataWidth_g",
            "vhdlType": "positive range 16 to 128",
            "kind": "integer",
            "min": 16,
            "max": 128,
            "defaultText": "32",
            "default": 32,
            "label": "Stream width",
            "description": "Width of the message streams.",
            "choices": [
              16,
              32,
              64,
              128
            ],
            "unit": "bits"
          },
          {
            "name": "KeyBits_g",
            "vhdlType": "positive range 128 to 256",
            "kind": "integer",
            "min": 128,
            "max": 256,
            "defaultText": "256",
            "default": 256,
            "label": "Key length",
            "description": "One key length per core; CCSDS 352.0-B-2 uses 256 bits for new missions.",
            "choices": [
              128,
              192,
              256
            ],
            "unit": "bits"
          },
          {
            "name": "NumKeys_g",
            "vhdlType": "positive range 1 to 256",
            "kind": "integer",
            "min": 1,
            "max": 256,
            "defaultText": "4",
            "default": 4,
            "label": "Key slots",
            "description": "Slots of the key table; the slot fields have max(1"
          },
          {
            "name": "AesUnits_g",
            "vhdlType": "natural range 0 to 14",
            "kind": "integer",
            "min": 0,
            "max": 14,
            "defaultText": "0",
            "default": 0,
            "label": "AES round units",
            "description": "Round units of the AES engine; 0 selects the default of the width.",
            "advanced": true
          },
          {
            "name": "GhashDigit_g",
            "vhdlType": "natural range 0 to 128",
            "kind": "integer",
            "min": 0,
            "max": 128,
            "defaultText": "0",
            "default": 0,
            "label": "GHASH digit",
            "description": "Bits per cycle of the GHASH multiplier",
            "choices": [
              0,
              16,
              32,
              64,
              128
            ],
            "advanced": true,
            "unit": "bits"
          },
          {
            "name": "LenBits_g",
            "vhdlType": "positive range 8 to 32",
            "kind": "integer",
            "min": 8,
            "max": 32,
            "defaultText": "32",
            "default": 32,
            "label": "Length bits",
            "description": "Width of the byte counts of the AAD and DATA sections.",
            "advanced": true
          },
          {
            "name": "ReleaseBuffer_g",
            "vhdlType": "boolean",
            "kind": "boolean",
            "defaultText": "false",
            "default": false,
            "label": "Release buffer",
            "description": "A message leaves the core only when its status is OK (plaintext only after the tag is verified)."
          },
          {
            "name": "ReleaseBytes_g",
            "vhdlType": "positive",
            "kind": "integer",
            "min": 1,
            "max": 2147483647,
            "defaultText": "4096",
            "default": 4096,
            "label": "Release buffer size",
            "description": "Power of two of at least 16 beats that holds the longest message in whole beats (IV, AAD, data and tag each start a new beat); longer messages are dropped with OVERFLOW, two messages give the full rate.",
            "unit": "bytes",
            "enabledBy": "ReleaseBuffer_g"
          },
          {
            "name": "DenseOutput_g",
            "vhdlType": "boolean",
            "kind": "boolean",
            "defaultText": "false",
            "default": false,
            "label": "Dense output",
            "description": "Every output message leaves as one gapless byte string IV, AAD, DATA, TAG; needed where the output is a byte stream (for example a send port of OpenSPP)."
          },
          {
            "name": "ClkFreqHz_g",
            "vhdlType": "real",
            "kind": "real",
            "defaultText": "100.0e6",
            "default": 100000000,
            "label": "Clock frequency",
            "description": "Clock frequency for the pacer of the key table scrubbers.",
            "advanced": true,
            "fromClock": "Clk",
            "unit": "Hz"
          },
          {
            "name": "ScrubPeriod_g",
            "vhdlType": "real",
            "kind": "real",
            "defaultText": "0.0",
            "default": 0,
            "label": "Scrub period",
            "description": "Scrub period of the key table; 0 scrubs in every cycle without access.",
            "advanced": true,
            "unit": "s"
          }
        ],
        "clocks": [
          {
            "port": "Clk",
            "primary": true,
            "label": "Clock",
            "description": "All of the core; one beat per cycle on every stream."
          }
        ],
        "resets": [
          {
            "port": "Rst",
            "active": "high",
            "sync": "sync",
            "clock": "Clk"
          }
        ],
        "interfaces": [
          {
            "name": "S_Ctx",
            "type": "gcm.ctx",
            "role": "sink",
            "clock": "Clk",
            "label": "Contexts",
            "description": "One context per message, in the order of the messages (direction, key slot, IV source, IV).",
            "tieOff": "zero",
            "signals": {
              "valid": "S_Ctx_Valid",
              "ready": "S_Ctx_Ready",
              "decrypt": "S_Ctx_Decrypt",
              "slot": "S_Ctx_Slot",
              "iv_gen": "S_Ctx_IvGen",
              "iv": "S_Ctx_Iv"
            }
          },
          {
            "name": "S_In",
            "type": "gcm.msg",
            "role": "sink",
            "clock": "Clk",
            "label": "Messages in",
            "description": "One message per packet; user is the section of the beat: 11 IV, 01 AAD, 00 DATA, 10 TAG.",
            "sideband": {
              "signal": "user",
              "description": "Section of every beat when the input is a plain byte stream: 0 DATA (encrypt the whole packet), 1 AAD (authenticate only).",
              "fields": [
                {
                  "name": "section",
                  "label": "Section (0 DATA, 1 AAD)",
                  "lsb": 0,
                  "bits": 2,
                  "kind": "integer",
                  "default": 0
                }
              ]
            },
            "tieOff": "zero",
            "signals": {
              "data": "S_In_Data",
              "keep": "S_In_Keep",
              "last": "S_In_Last",
              "user": "S_In_User",
              "valid": "S_In_Valid",
              "ready": "S_In_Ready"
            },
            "widths": {
              "data": "DataWidth_g",
              "keep": "DataWidth_g / 8",
              "user": "2"
            }
          },
          {
            "name": "M_Out",
            "type": "gcm.msg",
            "role": "source",
            "clock": "Clk",
            "label": "Messages out",
            "description": "user(1:0) is the section of the beat (dense output: of its first byte), user(2) the error flag on the last beat.",
            "tieOff": "default",
            "userFields": [
              {
                "name": "section",
                "label": "Section of the beat (dense output: of its first byte): 11 IV, 01 AAD, 00 DATA, 10 TAG",
                "lsb": 0,
                "bits": 2
              },
              {
                "name": "error",
                "label": "Error flag on the last beat: the status of the message is not OK",
                "lsb": 2,
                "bits": 1
              }
            ],
            "signals": {
              "data": "M_Out_Data",
              "keep": "M_Out_Keep",
              "last": "M_Out_Last",
              "user": "M_Out_User",
              "valid": "M_Out_Valid",
              "ready": "M_Out_Ready"
            },
            "widths": {
              "data": "DataWidth_g",
              "keep": "DataWidth_g / 8",
              "user": "3"
            }
          },
          {
            "name": "M_Sts",
            "type": "gcm.sts",
            "role": "source",
            "clock": "Clk",
            "label": "Status",
            "description": "One status per message; ready may stay '1' when the status is not used.",
            "tieOff": "default",
            "signals": {
              "valid": "M_Sts_Valid",
              "ready": "M_Sts_Ready",
              "code": "M_Sts_Code",
              "decrypt": "M_Sts_Decrypt",
              "slot": "M_Sts_Slot",
              "iv": "M_Sts_Iv",
              "aad_bytes": "M_Sts_AadBytes",
              "data_bytes": "M_Sts_DataBytes"
            }
          },
          {
            "name": "S_AxiLite",
            "type": "axi4lite",
            "role": "slave",
            "clock": "Clk",
            "label": "Registers",
            "params": {
              "addrWidth": 8
            },
            "signals": {
              "AwAddr": "S_AxiLite_AwAddr",
              "AwValid": "S_AxiLite_AwValid",
              "AwReady": "S_AxiLite_AwReady",
              "WData": "S_AxiLite_WData",
              "WStrb": "S_AxiLite_WStrb",
              "WValid": "S_AxiLite_WValid",
              "WReady": "S_AxiLite_WReady",
              "BResp": "S_AxiLite_BResp",
              "BValid": "S_AxiLite_BValid",
              "BReady": "S_AxiLite_BReady",
              "ArAddr": "S_AxiLite_ArAddr",
              "ArValid": "S_AxiLite_ArValid",
              "ArReady": "S_AxiLite_ArReady",
              "RData": "S_AxiLite_RData",
              "RResp": "S_AxiLite_RResp",
              "RValid": "S_AxiLite_RValid",
              "RReady": "S_AxiLite_RReady"
            }
          },
          {
            "name": "Irq",
            "type": "irq",
            "role": "event_out",
            "clock": "Clk",
            "label": "Interrupt",
            "tieOff": "open",
            "irqRegisters": {
              "enable": [
                {
                  "name": "IRQ_EN",
                  "offset": 28
                }
              ],
              "events": {
                "name": "EVENTS",
                "offset": 24
              },
              "status": {
                "name": "IRQ_STATUS",
                "offset": 32
              }
            },
            "signals": {
              "irq": "Irq"
            }
          }
        ],
        "ports": [
          {
            "name": "Clk",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "Rst",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_Ctx_Valid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_Ctx_Ready",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_Ctx_Decrypt",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_Ctx_Slot",
            "dir": "in",
            "vhdlType": "std_logic_vector(slotBits(NumKeys_g) - 1 downto 0)",
            "width": "slotBits(NumKeys_g)"
          },
          {
            "name": "S_Ctx_IvGen",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_Ctx_Iv",
            "dir": "in",
            "vhdlType": "std_logic_vector(95 downto 0)",
            "width": "96"
          },
          {
            "name": "S_In_Valid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_In_Ready",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_In_Data",
            "dir": "in",
            "vhdlType": "std_logic_vector(DataWidth_g - 1 downto 0)",
            "width": "DataWidth_g"
          },
          {
            "name": "S_In_Keep",
            "dir": "in",
            "vhdlType": "std_logic_vector(DataWidth_g / 8 - 1 downto 0)",
            "width": "DataWidth_g / 8"
          },
          {
            "name": "S_In_Last",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_In_User",
            "dir": "in",
            "vhdlType": "std_logic_vector(1 downto 0)",
            "width": "2"
          },
          {
            "name": "M_Out_Valid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Out_Ready",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1",
            "default": "'1'"
          },
          {
            "name": "M_Out_Data",
            "dir": "out",
            "vhdlType": "std_logic_vector(DataWidth_g - 1 downto 0)",
            "width": "DataWidth_g"
          },
          {
            "name": "M_Out_Keep",
            "dir": "out",
            "vhdlType": "std_logic_vector(DataWidth_g / 8 - 1 downto 0)",
            "width": "DataWidth_g / 8"
          },
          {
            "name": "M_Out_Last",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Out_User",
            "dir": "out",
            "vhdlType": "std_logic_vector(2 downto 0)",
            "width": "3"
          },
          {
            "name": "M_Sts_Valid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Sts_Ready",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1",
            "default": "'1'"
          },
          {
            "name": "M_Sts_Code",
            "dir": "out",
            "vhdlType": "std_logic_vector(3 downto 0)",
            "width": "4"
          },
          {
            "name": "M_Sts_Decrypt",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Sts_Slot",
            "dir": "out",
            "vhdlType": "std_logic_vector(slotBits(NumKeys_g) - 1 downto 0)",
            "width": "slotBits(NumKeys_g)"
          },
          {
            "name": "M_Sts_Iv",
            "dir": "out",
            "vhdlType": "std_logic_vector(95 downto 0)",
            "width": "96"
          },
          {
            "name": "M_Sts_AadBytes",
            "dir": "out",
            "vhdlType": "std_logic_vector(LenBits_g - 1 downto 0)",
            "width": "LenBits_g"
          },
          {
            "name": "M_Sts_DataBytes",
            "dir": "out",
            "vhdlType": "std_logic_vector(LenBits_g - 1 downto 0)",
            "width": "LenBits_g"
          },
          {
            "name": "S_AxiLite_ArAddr",
            "dir": "in",
            "vhdlType": "std_logic_vector(7 downto 0)",
            "width": "8"
          },
          {
            "name": "S_AxiLite_ArValid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_ArReady",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_AwAddr",
            "dir": "in",
            "vhdlType": "std_logic_vector(7 downto 0)",
            "width": "8"
          },
          {
            "name": "S_AxiLite_AwValid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_AwReady",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_WData",
            "dir": "in",
            "vhdlType": "std_logic_vector(31 downto 0)",
            "width": "32"
          },
          {
            "name": "S_AxiLite_WStrb",
            "dir": "in",
            "vhdlType": "std_logic_vector(3 downto 0)",
            "width": "4"
          },
          {
            "name": "S_AxiLite_WValid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_WReady",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_BResp",
            "dir": "out",
            "vhdlType": "std_logic_vector(1 downto 0)",
            "width": "2"
          },
          {
            "name": "S_AxiLite_BValid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_BReady",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_RData",
            "dir": "out",
            "vhdlType": "std_logic_vector(31 downto 0)",
            "width": "32"
          },
          {
            "name": "S_AxiLite_RResp",
            "dir": "out",
            "vhdlType": "std_logic_vector(1 downto 0)",
            "width": "2"
          },
          {
            "name": "S_AxiLite_RValid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_RReady",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "Irq",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          }
        ]
      },
      {
        "id": "openspp/spp_core",
        "kind": "core",
        "name": "Space Packet node",
        "group": "openspp",
        "source": "openspp",
        "library": "openspp",
        "entity": "spp_core",
        "path": "hdl/spp_core/src/spp_core.vhd",
        "summary": "Space Packet Protocol (CCSDS 133.0-B-2) with the CPTP layer of ECSS-E-ST-50-53C: send and receive ports with Octet String or Packet Service, APID routing and a register file.",
        "idPrefix": "spp",
        "doc": "https://openspacehdl.org/openspp/docs/user_guide.html",
        "project": "OpenSPP",
        "notes": [
          "Rst is synchronous and high-active; synchronise its release to Clk, for example with olo_base_reset_gen.",
          "DpRst restarts the core while the link stays in operation: it resets every function except the link output stage, which ends a packet open on M_Link with an EEP beat. It takes the reset of a reset group of the system and keeps its default '0' outside one. M_Link is reset by Rst only, so the link side (spp_nchar, the SpaceWire or SpaceFibre port) stays out of the group (user guide 3.1).",
          "M_Link is driven by the register stage spp_link_output, which adds one clock cycle of latency (since OpenSPP 0.2.0) and no cycle per packet: the throughput and the clock cycles per packet are unchanged.",
          "After the reset the core initialises both APID tables (2048 clock cycles); packets are sent and delivered once the tables are ready.",
          "Serve every receive port, or place a buffer behind a port whose user can stall for long.",
          "TxBufferBytes_g holds the longest SDU of a port, RxBufferBytes_g the longest Space Packet.",
          "Hold the side band (TUser) of a send port constant during an SDU.",
          "A last beat without valid bytes (Keep all zero) ends an SDU or packet at the inputs; an SDU without any byte is rejected (0x02). The outputs never carry a beat without valid bytes.",
          "The user supplies the packet secondary header at the start of the Octet String and keeps the secondary header flag of an APID static."
        ],
        "rules": [
          {
            "kind": "generic_multiple",
            "generic": "DataWidth_g",
            "of": 8
          },
          {
            "kind": "generic_multiple",
            "generic": "TxBufferBytes_g",
            "of": "DataWidth_g / 8",
            "pow2Ratio": true
          },
          {
            "kind": "generic_multiple",
            "generic": "RxBufferBytes_g",
            "of": "DataWidth_g / 8",
            "pow2Ratio": true
          },
          {
            "kind": "generic_range",
            "generic": "TxBufferBytes_g",
            "min": "DataWidth_g / 8 * max(2, 2 ** log2ceil(cdiv(7, DataWidth_g / 8)))",
            "max": "DataWidth_g / 8 * min(2 ** log2ceil(TxMaxPackets_g * cdiv(65542, DataWidth_g / 8)), 2 ** 29)",
            "message": "CO-GN-02, CO-GN-03"
          },
          {
            "kind": "generic_range",
            "generic": "RxBufferBytes_g",
            "min": "DataWidth_g / 8 * max(2, 2 ** log2ceil(cdiv(7, DataWidth_g / 8)))",
            "max": "DataWidth_g / 8 * min(2 ** log2ceil(RxMaxPackets_g * cdiv(65542, DataWidth_g / 8)), 2 ** 29)",
            "message": "CO-GN-02, CO-GN-03"
          },
          {
            "kind": "generic_range",
            "generic": "TxMaxPackets_g",
            "min": 2,
            "max": "max(2, TxBufferBytes_g / (DataWidth_g / 8))",
            "message": "an SDU of one byte takes a beat of the send buffer (CO-GN-04)"
          },
          {
            "kind": "generic_range",
            "generic": "RxMaxPackets_g",
            "min": 2,
            "max": "max(2, RxBufferBytes_g / (DataWidth_g / 8) / cdiv(7, DataWidth_g / 8))",
            "message": "the shortest Space Packets that fit into the receive buffer (CO-GN-04)"
          }
        ],
        "idRegister": {
          "address": "0x000",
          "value": "0x53505001"
        },
        "init": [
          {
            "text": "After the reset wait until TABLE_STATUS (0x040) bits 1:0 (TX_BUSY, RX_BUSY) are 0: the core initialises both APID tables (2048 clock cycles)."
          },
          {
            "text": "Nothing else is needed: with TxPathDefault_g and RxPathDefault_g every APID has an enabled path to destination 0 and to receive port 0, destination 0 has the Target Logical Address 0xFE (DEST_CTRL 0x400) and the own address is Tla_g. A flight configuration writes the APID tables (TX_TABLE_APID 0x030 and TX_TABLE_ENTRY 0x034, RX_TABLE_APID 0x038 and RX_TABLE_ENTRY 0x03C) and the destinations (DEST_CTRL 0x400 + 0x20 n).",
            "when": [
              "TxPathDefault_g",
              "RxPathDefault_g"
            ]
          },
          {
            "text": "Enable the managed data paths: for every APID write TX_TABLE_APID (0x030), read TX_TABLE_ENTRY (0x034), write it with ENABLE and DEST, read it again; the same with RX_TABLE_APID (0x038) and RX_TABLE_ENTRY (0x03C) with ENABLE and PORT; write the destinations (DEST_CTRL 0x400 + 0x20 n).",
            "unlessAll": [
              "TxPathDefault_g",
              "RxPathDefault_g"
            ]
          }
        ],
        "endToEnd": "Send one SDU on a send port (APID 0x123, for example) and expect it on receive port 0 with the same APID in user bits 10:0, once the APID tables are ready.",
        "rates": {
          "evidence": "user guide section 7 (7.3: all receive ports share one buffer and get their packets in the order of arrival); TC-CO-12 (throughput at 32, 64 and 128 bit), TC-CO-08, TC-SE-10",
          "packet": "SDU",
          "vars": {
            "B": "DataWidth_g / 8",
            "H": "6 + Encapsulation_g * (4 + SpwAddrBytes_g)"
          },
          "interfaces": {
            "S_Tx": {
              "bytesPerBeat": "B"
            },
            "M_Link": {
              "cycles": "max(cdiv(n, B) + 1, 5)"
            },
            "S_Link": {
              "bytesPerBeat": "B",
              "overheadCycles": "1"
            },
            "M_Rx": {
              "cycles": "max(cdiv(n + 6, B) + 1, 5)"
            }
          },
          "routes": [
            {
              "from": "S_Tx",
              "to": "M_Link",
              "addBytes": "H"
            },
            {
              "from": "S_Link",
              "to": "M_Rx",
              "addBytes": "-H",
              "inOrder": true
            }
          ]
        },
        "sizes": {
          "evidence": "user guide section 7.1 and the integration table (the send buffer holds the longest SDU of a port, the receive buffer the longest Space Packet), requirements SPP-6 and SPP-23",
          "interfaces": {
            "S_Tx": {
              "limits": [
                {
                  "maxBytes": "TxBufferBytes_g",
                  "over": "rejected",
                  "why": "the send buffer holds the longest SDU of the port (error code 0x01)"
                },
                {
                  "maxBytes": 65536,
                  "over": "rejected",
                  "why": "an Octet String has at most 65536 bytes (SPP-6)"
                }
              ]
            },
            "S_Link": {
              "limits": [
                {
                  "maxBytes": "RxBufferBytes_g + 4 * Encapsulation_g",
                  "set": "RxBufferBytes_g",
                  "over": "discarded",
                  "why": "the receive buffer holds the longest Space Packet (error code 0x17)"
                },
                {
                  "maxBytes": "65542 + 4 * Encapsulation_g",
                  "over": "discarded",
                  "why": "a Space Packet has at most 65542 bytes (SPP-23)"
                },
                {
                  "maxBytes": "MaxLength_g + 4 * Encapsulation_g",
                  "over": "discarded",
                  "soft": {
                    "generic": "MaxLength_g",
                    "register": "MAX_LENGTH",
                    "hard": "min(RxBufferBytes_g, 65542)"
                  },
                  "why": "the Maximum Packet Length, MaxLength_g as the reset value of MAX_LENGTH"
                }
              ]
            }
          },
          "sends": [
            {
              "interface": "M_Link",
              "what": "Space Packets",
              "bytes": "n - Encapsulation_g * (4 + SpwAddrBytes_g)",
              "farEnd": "RxBufferBytes_g"
            }
          ]
        },
        "packages": [
          "spp_pkg"
        ],
        "protection": {
          "evidence": "user guide section 6 (protection scope) and the register map",
          "ecc": {
            "count": {
              "name": "ECC_COUNT",
              "offset": 104
            },
            "inject": {
              "name": "ECC_INJECT",
              "offset": 108
            },
            "select": {
              "name": "ECC_SELECT",
              "offset": 100
            },
            "status": {
              "name": "ECC_STATUS",
              "offset": 96
            },
            "channels": 8
          }
        },
        "registers": {
          "map": "hdl/spp_mib/regs/spp_regs.yml",
          "header": "sw/spp_regs.h",
          "doc": "hdl/spp_mib/docs/register_map.md",
          "prefix": "SPP"
        },
        "generics": [
          {
            "name": "DataWidth_g",
            "vhdlType": "positive range 8 to 128",
            "kind": "integer",
            "min": 8,
            "max": 128,
            "defaultText": "32",
            "default": 32,
            "label": "Stream width",
            "description": "Width of all streams; follows the connected packet link unless set by hand.",
            "check": "multiple8",
            "unit": "bits",
            "follow": {
              "interfaces": [
                "S_Link",
                "M_Link"
              ],
              "measure": "data",
              "rank": 2
            }
          },
          {
            "name": "NumTx_g",
            "vhdlType": "positive range 1 to MaxPorts_c",
            "kind": "integer",
            "min": 1,
            "max": 16,
            "defaultText": "1",
            "default": 1,
            "label": "Send ports",
            "description": "Number of send ports."
          },
          {
            "name": "NumRx_g",
            "vhdlType": "positive range 1 to MaxPorts_c",
            "kind": "integer",
            "min": 1,
            "max": 16,
            "defaultText": "1",
            "default": 1,
            "label": "Receive ports",
            "description": "Number of receive ports."
          },
          {
            "name": "TxOctetString_g",
            "vhdlType": "std_logic_vector(MaxPorts_c - 1 downto 0)",
            "kind": "std_logic_vector",
            "defaultText": "(others => '1')",
            "default": "(others => '1')",
            "label": "Send port services",
            "description": "Bit p for send port p: '1' Octet String Service, '0' Packet Service.",
            "advanced": true
          },
          {
            "name": "RxOctetString_g",
            "vhdlType": "std_logic_vector(MaxPorts_c - 1 downto 0)",
            "kind": "std_logic_vector",
            "defaultText": "(others => '1')",
            "default": "(others => '1')",
            "label": "Receive port services",
            "description": "Bit p for receive port p: '1' Octet String Service, '0' Packet Service.",
            "advanced": true
          },
          {
            "name": "TxBufferBytes_g",
            "vhdlType": "positive",
            "kind": "integer",
            "min": 1,
            "max": 2147483647,
            "defaultText": "4096",
            "default": 4096,
            "label": "Send buffer",
            "description": "Buffer of each send port; holds the longest SDU of the port. DataWidth_g / 8 times a power of two.",
            "unit": "bytes"
          },
          {
            "name": "TxMaxPackets_g",
            "vhdlType": "positive",
            "kind": "integer",
            "min": 2,
            "max": 2147483647,
            "defaultText": "8",
            "default": 8,
            "label": "Send buffer SDUs",
            "description": "SDUs a send buffer holds."
          },
          {
            "name": "RxBufferBytes_g",
            "vhdlType": "positive",
            "kind": "integer",
            "min": 1,
            "max": 2147483647,
            "defaultText": "4096",
            "default": 4096,
            "label": "Receive buffer",
            "description": "Receive buffer shared by all receive ports; holds the longest Space Packet. DataWidth_g / 8 times a power of two.",
            "unit": "bytes"
          },
          {
            "name": "RxMaxPackets_g",
            "vhdlType": "positive",
            "kind": "integer",
            "min": 2,
            "max": 2147483647,
            "defaultText": "8",
            "default": 8,
            "label": "Receive buffer packets",
            "description": "Packets the receive buffer holds."
          },
          {
            "name": "Encapsulation_g",
            "vhdlType": "boolean",
            "kind": "boolean",
            "defaultText": "true",
            "default": true,
            "label": "CPTP layer",
            "description": "CPTP layer of ECSS-E-ST-50-53C; false removes it."
          },
          {
            "name": "NumDest_g",
            "vhdlType": "positive range 1 to MaxDest_c",
            "kind": "integer",
            "min": 1,
            "max": 16,
            "defaultText": "1",
            "default": 1,
            "label": "Destinations",
            "description": "Destinations of the CPTP layer.",
            "enabledBy": "Encapsulation_g"
          },
          {
            "name": "SpwAddrBytes_g",
            "vhdlType": "natural range 0 to MaxSpwAddrBytes_c",
            "kind": "integer",
            "min": 0,
            "max": 16,
            "defaultText": "4",
            "default": 4,
            "label": "SpaceWire address bytes",
            "description": "Maximum target SpaceWire address of a destination in bytes.",
            "advanced": true,
            "enabledBy": "Encapsulation_g"
          },
          {
            "name": "MaxLength_g",
            "vhdlType": "positive range 7 to 65542",
            "kind": "integer",
            "min": 7,
            "max": 65542,
            "defaultText": "65542",
            "default": 65542,
            "label": "Maximum packet length",
            "description": "Reset value of the maximum packet length.",
            "advanced": true,
            "unit": "bytes"
          },
          {
            "name": "RoundRobin_g",
            "vhdlType": "std_logic",
            "kind": "std_logic",
            "defaultText": "'0'",
            "default": "0",
            "label": "Round robin",
            "description": "Reset value of the multiplexing scheme: '0' fixed priority (port 0 first), '1' round robin.",
            "advanced": true
          },
          {
            "name": "Tla_g",
            "vhdlType": "std_logic_vector(7 downto 0)",
            "kind": "std_logic_vector",
            "defaultText": "x\"FE\"",
            "default": "x\"FE\"",
            "label": "Target logical address",
            "description": "Reset value of the own target logical address of the receive filter."
          },
          {
            "name": "TxPathDefault_g",
            "vhdlType": "boolean",
            "kind": "boolean",
            "defaultText": "true",
            "default": true,
            "label": "Send paths enabled",
            "description": "Every APID has an enabled path to destination 0 after reset. A flight configuration enables the paths by software."
          },
          {
            "name": "RxPathDefault_g",
            "vhdlType": "boolean",
            "kind": "boolean",
            "defaultText": "true",
            "default": true,
            "label": "Receive paths enabled",
            "description": "Every APID has an enabled path to receive port 0 after reset. A flight configuration enables the paths by software."
          },
          {
            "name": "ClkFreqHz_g",
            "vhdlType": "real",
            "kind": "real",
            "defaultText": "100.0e6",
            "default": 100000000,
            "label": "Clock frequency",
            "description": "Clock frequency for the scrubbers of the APID tables.",
            "advanced": true,
            "fromClock": "Clk",
            "unit": "Hz"
          }
        ],
        "clocks": [
          {
            "port": "Clk",
            "primary": true,
            "label": "Clock",
            "description": "All of the core; one beat per cycle on every path."
          }
        ],
        "resets": [
          {
            "port": "Rst",
            "active": "high",
            "sync": "sync",
            "clock": "Clk"
          },
          {
            "port": "DpRst",
            "active": "high",
            "sync": "sync",
            "clock": "Clk",
            "group": true,
            "description": "Data path reset: every function except the link output stage, which ends a packet open on M_Link with an EEP beat."
          }
        ],
        "interfaces": [
          {
            "name": "S_Tx",
            "type": "spp.tx",
            "role": "sink",
            "clock": "Clk",
            "label": "Send port",
            "sideband": {
              "signal": "user",
              "description": "Parameters of the SDU, held constant during the SDU.",
              "fields": [
                {
                  "name": "apid",
                  "label": "APID",
                  "lsb": 0,
                  "bits": 11,
                  "kind": "integer",
                  "default": 0
                },
                {
                  "name": "shi",
                  "label": "Secondary header flag",
                  "lsb": 11,
                  "bits": 1,
                  "kind": "boolean",
                  "default": false
                },
                {
                  "name": "type",
                  "label": "Packet type (telecommand)",
                  "lsb": 12,
                  "bits": 1,
                  "kind": "boolean",
                  "default": false
                },
                {
                  "name": "nameValid",
                  "label": "Packet name instead of sequence count",
                  "lsb": 13,
                  "bits": 1,
                  "kind": "boolean",
                  "default": false
                },
                {
                  "name": "name",
                  "label": "Packet name",
                  "lsb": 14,
                  "bits": 14,
                  "kind": "integer",
                  "default": 0,
                  "enabledBy": "nameValid"
                }
              ]
            },
            "vector": "NumTx_g",
            "tieOff": "zero",
            "resetBy": "DpRst",
            "signals": {
              "data": "S_Tx_Data",
              "keep": "S_Tx_Keep",
              "last": "S_Tx_Last",
              "user": "S_Tx_User",
              "valid": "S_Tx_Valid",
              "ready": "S_Tx_Ready"
            },
            "widths": {
              "data": "DataWidth_g",
              "keep": "DataWidth_g / 8",
              "user": "28"
            }
          },
          {
            "name": "M_Rx",
            "type": "spp.rx",
            "role": "source",
            "clock": "Clk",
            "label": "Receive port",
            "description": "Must be served; all receive ports share one receive buffer.",
            "mustServe": true,
            "vector": "NumRx_g",
            "userFields": [
              {
                "name": "apid",
                "label": "APID",
                "lsb": 0,
                "bits": 11
              },
              {
                "name": "shi",
                "label": "Secondary Header Indicator (Octet String Service)",
                "lsb": 11,
                "bits": 1
              },
              {
                "name": "loss",
                "label": "Packet Loss or Data Loss Indicator",
                "lsb": 12,
                "bits": 1
              },
              {
                "name": "error",
                "label": "Double bit error in the receive buffer during this SDU, valid with last",
                "lsb": 13,
                "bits": 1
              },
              {
                "name": "ua",
                "label": "User Application value of the CPTP packet (0 without the CPTP layer)",
                "lsb": 14,
                "bits": 8
              }
            ],
            "resetBy": "DpRst",
            "signals": {
              "data": "M_Rx_Data",
              "keep": "M_Rx_Keep",
              "last": "M_Rx_Last",
              "user": "M_Rx_User",
              "valid": "M_Rx_Valid",
              "ready": "M_Rx_Ready"
            },
            "widths": {
              "data": "DataWidth_g",
              "keep": "DataWidth_g / 8",
              "user": "22"
            }
          },
          {
            "name": "M_Link",
            "type": "pkt.link",
            "role": "source",
            "clock": "Clk",
            "label": "Link out",
            "description": "Transmitted packets; user bit 0 is the error end of packet, bits 4:1 the destination index.",
            "mustServe": true,
            "userFields": [
              {
                "name": "eep",
                "label": "Error end of packet (EEP), valid with last",
                "lsb": 0,
                "bits": 1
              },
              {
                "name": "dest",
                "label": "Destination index of the packet",
                "lsb": 1,
                "bits": 4
              }
            ],
            "resetBorder": "reset the link side (spp_nchar, the SpaceWire or SpaceFibre port) with the reset of the link, never with DpRst, so that the EEP that ends an interrupted packet reaches the far end (OpenSPP user guide 3.1).",
            "signals": {
              "data": "M_Link_Data",
              "keep": "M_Link_Keep",
              "last": "M_Link_Last",
              "user": "M_Link_User",
              "valid": "M_Link_Valid",
              "ready": "M_Link_Ready"
            },
            "widths": {
              "data": "DataWidth_g",
              "keep": "DataWidth_g / 8",
              "user": "5"
            }
          },
          {
            "name": "S_Link",
            "type": "pkt.link",
            "role": "sink",
            "clock": "Clk",
            "label": "Link in",
            "description": "Received packets; user bit 0 is the error end of packet.",
            "userFields": [
              {
                "name": "eep",
                "label": "Error end of packet (EEP), valid with last",
                "lsb": 0,
                "bits": 1
              }
            ],
            "resetBy": "DpRst",
            "signals": {
              "data": "S_Link_Data",
              "keep": "S_Link_Keep",
              "last": "S_Link_Last",
              "user": "S_Link_User",
              "valid": "S_Link_Valid",
              "ready": "S_Link_Ready"
            },
            "widths": {
              "data": "DataWidth_g",
              "keep": "DataWidth_g / 8",
              "user": "1"
            }
          },
          {
            "name": "S_AxiLite",
            "type": "axi4lite",
            "role": "slave",
            "clock": "Clk",
            "label": "Registers",
            "params": {
              "addrWidth": 11
            },
            "resetBy": "DpRst",
            "signals": {
              "AwAddr": "S_AxiLite_AwAddr",
              "AwValid": "S_AxiLite_AwValid",
              "AwReady": "S_AxiLite_AwReady",
              "WData": "S_AxiLite_WData",
              "WStrb": "S_AxiLite_WStrb",
              "WValid": "S_AxiLite_WValid",
              "WReady": "S_AxiLite_WReady",
              "BResp": "S_AxiLite_BResp",
              "BValid": "S_AxiLite_BValid",
              "BReady": "S_AxiLite_BReady",
              "ArAddr": "S_AxiLite_ArAddr",
              "ArValid": "S_AxiLite_ArValid",
              "ArReady": "S_AxiLite_ArReady",
              "RData": "S_AxiLite_RData",
              "RResp": "S_AxiLite_RResp",
              "RValid": "S_AxiLite_RValid",
              "RReady": "S_AxiLite_RReady"
            }
          },
          {
            "name": "Irq",
            "type": "irq",
            "role": "event_out",
            "clock": "Clk",
            "label": "Interrupt",
            "tieOff": "open",
            "irqRegisters": {
              "enable": [
                {
                  "name": "IRQ_EN",
                  "offset": 88
                }
              ],
              "events": {
                "name": "EVENTS",
                "offset": 84
              },
              "status": {
                "name": "IRQ_STATUS",
                "offset": 92
              }
            },
            "resetBy": "DpRst",
            "signals": {
              "irq": "Irq"
            }
          },
          {
            "name": "Err",
            "type": "spp.err",
            "role": "event_out",
            "clock": "Clk",
            "label": "Errors",
            "tieOff": "open",
            "resetBy": "DpRst",
            "signals": {
              "valid": "Err_Valid",
              "code": "Err_Code",
              "port": "Err_Port",
              "apid": "Err_Apid"
            }
          }
        ],
        "ports": [
          {
            "name": "Clk",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "Rst",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "DpRst",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1",
            "default": "'0'"
          },
          {
            "name": "S_Tx_Valid",
            "dir": "in",
            "vhdlType": "std_logic_vector(NumTx_g - 1 downto 0)",
            "width": "NumTx_g"
          },
          {
            "name": "S_Tx_Ready",
            "dir": "out",
            "vhdlType": "std_logic_vector(NumTx_g - 1 downto 0)",
            "width": "NumTx_g"
          },
          {
            "name": "S_Tx_Data",
            "dir": "in",
            "vhdlType": "std_logic_vector(NumTx_g * DataWidth_g - 1 downto 0)",
            "width": "NumTx_g * DataWidth_g"
          },
          {
            "name": "S_Tx_Keep",
            "dir": "in",
            "vhdlType": "std_logic_vector(NumTx_g * DataWidth_g / 8 - 1 downto 0)",
            "width": "NumTx_g * DataWidth_g / 8"
          },
          {
            "name": "S_Tx_Last",
            "dir": "in",
            "vhdlType": "std_logic_vector(NumTx_g - 1 downto 0)",
            "width": "NumTx_g"
          },
          {
            "name": "S_Tx_User",
            "dir": "in",
            "vhdlType": "std_logic_vector(NumTx_g * TxUserWidth_c - 1 downto 0)",
            "width": "NumTx_g * 28"
          },
          {
            "name": "M_Rx_Valid",
            "dir": "out",
            "vhdlType": "std_logic_vector(NumRx_g - 1 downto 0)",
            "width": "NumRx_g"
          },
          {
            "name": "M_Rx_Ready",
            "dir": "in",
            "vhdlType": "std_logic_vector(NumRx_g - 1 downto 0)",
            "width": "NumRx_g"
          },
          {
            "name": "M_Rx_Data",
            "dir": "out",
            "vhdlType": "std_logic_vector(NumRx_g * DataWidth_g - 1 downto 0)",
            "width": "NumRx_g * DataWidth_g"
          },
          {
            "name": "M_Rx_Keep",
            "dir": "out",
            "vhdlType": "std_logic_vector(NumRx_g * DataWidth_g / 8 - 1 downto 0)",
            "width": "NumRx_g * DataWidth_g / 8"
          },
          {
            "name": "M_Rx_Last",
            "dir": "out",
            "vhdlType": "std_logic_vector(NumRx_g - 1 downto 0)",
            "width": "NumRx_g"
          },
          {
            "name": "M_Rx_User",
            "dir": "out",
            "vhdlType": "std_logic_vector(NumRx_g * RxUserWidth_c - 1 downto 0)",
            "width": "NumRx_g * 22"
          },
          {
            "name": "M_Link_Valid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Link_Ready",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Link_Data",
            "dir": "out",
            "vhdlType": "std_logic_vector(DataWidth_g - 1 downto 0)",
            "width": "DataWidth_g"
          },
          {
            "name": "M_Link_Keep",
            "dir": "out",
            "vhdlType": "std_logic_vector(DataWidth_g / 8 - 1 downto 0)",
            "width": "DataWidth_g / 8"
          },
          {
            "name": "M_Link_Last",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Link_User",
            "dir": "out",
            "vhdlType": "std_logic_vector(LinkUserWidth_c - 1 downto 0)",
            "width": "5"
          },
          {
            "name": "S_Link_Valid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_Link_Ready",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_Link_Data",
            "dir": "in",
            "vhdlType": "std_logic_vector(DataWidth_g - 1 downto 0)",
            "width": "DataWidth_g"
          },
          {
            "name": "S_Link_Keep",
            "dir": "in",
            "vhdlType": "std_logic_vector(DataWidth_g / 8 - 1 downto 0)",
            "width": "DataWidth_g / 8"
          },
          {
            "name": "S_Link_Last",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_Link_User",
            "dir": "in",
            "vhdlType": "std_logic_vector(0 downto 0)",
            "width": "1"
          },
          {
            "name": "S_AxiLite_ArAddr",
            "dir": "in",
            "vhdlType": "std_logic_vector(10 downto 0)",
            "width": "11"
          },
          {
            "name": "S_AxiLite_ArValid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_ArReady",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_AwAddr",
            "dir": "in",
            "vhdlType": "std_logic_vector(10 downto 0)",
            "width": "11"
          },
          {
            "name": "S_AxiLite_AwValid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_AwReady",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_WData",
            "dir": "in",
            "vhdlType": "std_logic_vector(31 downto 0)",
            "width": "32"
          },
          {
            "name": "S_AxiLite_WStrb",
            "dir": "in",
            "vhdlType": "std_logic_vector(3 downto 0)",
            "width": "4"
          },
          {
            "name": "S_AxiLite_WValid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_WReady",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_BResp",
            "dir": "out",
            "vhdlType": "std_logic_vector(1 downto 0)",
            "width": "2"
          },
          {
            "name": "S_AxiLite_BValid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_BReady",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_RData",
            "dir": "out",
            "vhdlType": "std_logic_vector(31 downto 0)",
            "width": "32"
          },
          {
            "name": "S_AxiLite_RResp",
            "dir": "out",
            "vhdlType": "std_logic_vector(1 downto 0)",
            "width": "2"
          },
          {
            "name": "S_AxiLite_RValid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_RReady",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "Irq",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "Err_Valid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "Err_Code",
            "dir": "out",
            "vhdlType": "std_logic_vector(4 downto 0)",
            "width": "5"
          },
          {
            "name": "Err_Port",
            "dir": "out",
            "vhdlType": "std_logic_vector(3 downto 0)",
            "width": "4"
          },
          {
            "name": "Err_Apid",
            "dir": "out",
            "vhdlType": "std_logic_vector(10 downto 0)",
            "width": "11"
          }
        ]
      },
      {
        "id": "openspp/spp_nchar",
        "kind": "module",
        "name": "N-Char adapter",
        "group": "openspp",
        "source": "openspp",
        "library": "openspp",
        "entity": "spp_nchar",
        "path": "hdl/spp_nchar/src/spp_nchar.vhd",
        "summary": "Converts a packet link stream to the N-Char stream of a SpaceWire port (one character per beat, end of packet marker beat) and back.",
        "idPrefix": "nchar",
        "doc": "https://openspacehdl.org/openspp/docs/user_guide.html",
        "project": "OpenSPP",
        "notes": [
          "A received end of packet marker without data characters is discarded.",
          "A link packet that ends with a beat without valid bytes gets its marker after the bytes of the earlier beats; a link packet without any byte sends nothing."
        ],
        "rules": [
          {
            "kind": "generic_multiple",
            "generic": "DataWidth_g",
            "of": 8
          }
        ],
        "rates": {
          "evidence": "user guide section 7.5; TC-AD-03 (1731 characters in 1780 cycles at 128 bit, 1638 in 1638 at 8 bit)",
          "packet": "packet",
          "interfaces": {
            "S_Link": {
              "cycles": "n + 1 + min(1, DataWidth_g / 16)"
            },
            "M_NChar": {
              "cycles": "n + 1 + min(1, DataWidth_g / 16)"
            },
            "S_NChar": {
              "bytesPerBeat": 1,
              "extraBeats": 1
            }
          },
          "routes": [
            {
              "from": "S_Link",
              "to": "M_NChar",
              "addBytes": "0"
            },
            {
              "from": "S_NChar",
              "to": "M_Link",
              "addBytes": "0",
              "paced": true
            }
          ]
        },
        "packages": [
          "spp_pkg"
        ],
        "generics": [
          {
            "name": "DataWidth_g",
            "vhdlType": "positive range 8 to 128",
            "kind": "integer",
            "min": 8,
            "max": 128,
            "defaultText": "32",
            "default": 32,
            "label": "Link width",
            "description": "Width of the link streams; follows the connected link.",
            "check": "multiple8",
            "unit": "bits",
            "follow": {
              "interfaces": [
                "S_Link",
                "M_Link"
              ],
              "measure": "data",
              "rank": 1
            }
          }
        ],
        "clocks": [
          {
            "port": "Clk",
            "primary": true,
            "label": "Clock"
          }
        ],
        "resets": [
          {
            "port": "Rst",
            "active": "high",
            "sync": "sync",
            "clock": "Clk"
          }
        ],
        "interfaces": [
          {
            "name": "S_Link",
            "type": "pkt.link",
            "role": "sink",
            "clock": "Clk",
            "label": "Link in",
            "userFields": [
              {
                "name": "eep",
                "label": "Error end of packet (EEP), valid with last",
                "lsb": 0,
                "bits": 1
              },
              {
                "name": "dest",
                "label": "Destination index (not used by the adapter)",
                "lsb": 1,
                "bits": 4
              }
            ],
            "signals": {
              "data": "S_Link_Data",
              "keep": "S_Link_Keep",
              "last": "S_Link_Last",
              "user": "S_Link_User",
              "valid": "S_Link_Valid",
              "ready": "S_Link_Ready"
            },
            "widths": {
              "data": "DataWidth_g",
              "keep": "DataWidth_g / 8",
              "user": "5"
            }
          },
          {
            "name": "M_NChar",
            "type": "spw.nchar",
            "role": "source",
            "clock": "Clk",
            "label": "N-Chars out",
            "signals": {
              "data": "M_NChar_Data",
              "last": "M_NChar_Last",
              "valid": "M_NChar_Valid",
              "ready": "M_NChar_Ready"
            },
            "widths": {
              "data": "8"
            }
          },
          {
            "name": "S_NChar",
            "type": "spw.nchar",
            "role": "sink",
            "clock": "Clk",
            "label": "N-Chars in",
            "signals": {
              "data": "S_NChar_Data",
              "last": "S_NChar_Last",
              "valid": "S_NChar_Valid",
              "ready": "S_NChar_Ready"
            },
            "widths": {
              "data": "8"
            }
          },
          {
            "name": "M_Link",
            "type": "pkt.link",
            "role": "source",
            "clock": "Clk",
            "label": "Link out",
            "userFields": [
              {
                "name": "eep",
                "label": "Error end of packet (EEP), valid with last",
                "lsb": 0,
                "bits": 1
              }
            ],
            "signals": {
              "data": "M_Link_Data",
              "keep": "M_Link_Keep",
              "last": "M_Link_Last",
              "user": "M_Link_User",
              "valid": "M_Link_Valid",
              "ready": "M_Link_Ready"
            },
            "widths": {
              "data": "DataWidth_g",
              "keep": "DataWidth_g / 8",
              "user": "1"
            }
          }
        ],
        "ports": [
          {
            "name": "Clk",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "Rst",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_Link_Valid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_Link_Ready",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_Link_Data",
            "dir": "in",
            "vhdlType": "std_logic_vector(DataWidth_g - 1 downto 0)",
            "width": "DataWidth_g"
          },
          {
            "name": "S_Link_Keep",
            "dir": "in",
            "vhdlType": "std_logic_vector(DataWidth_g / 8 - 1 downto 0)",
            "width": "DataWidth_g / 8"
          },
          {
            "name": "S_Link_Last",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_Link_User",
            "dir": "in",
            "vhdlType": "std_logic_vector(LinkUserWidth_c - 1 downto 0)",
            "width": "5"
          },
          {
            "name": "M_NChar_Valid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_NChar_Ready",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_NChar_Data",
            "dir": "out",
            "vhdlType": "std_logic_vector(7 downto 0)",
            "width": "8"
          },
          {
            "name": "M_NChar_Last",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_NChar_Valid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_NChar_Ready",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_NChar_Data",
            "dir": "in",
            "vhdlType": "std_logic_vector(7 downto 0)",
            "width": "8"
          },
          {
            "name": "S_NChar_Last",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Link_Valid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Link_Ready",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Link_Data",
            "dir": "out",
            "vhdlType": "std_logic_vector(DataWidth_g - 1 downto 0)",
            "width": "DataWidth_g"
          },
          {
            "name": "M_Link_Keep",
            "dir": "out",
            "vhdlType": "std_logic_vector(DataWidth_g / 8 - 1 downto 0)",
            "width": "DataWidth_g / 8"
          },
          {
            "name": "M_Link_Last",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Link_User",
            "dir": "out",
            "vhdlType": "std_logic_vector(0 downto 0)",
            "width": "1"
          }
        ]
      },
      {
        "id": "openwire/owr_core",
        "kind": "core",
        "name": "SpaceWire port",
        "group": "openwire",
        "source": "openwire",
        "library": "openwire",
        "entity": "owr_core",
        "path": "hdl/owr_core/src/owr_core.vhd",
        "summary": "SpaceWire port according to ECSS-E-ST-50-12C Rev.1: encoding, data link and network services (packets, time-codes, distributed interrupts) with a register file.",
        "idPrefix": "spw",
        "doc": "https://openspacehdl.org/openwire/docs/user_guide.html",
        "project": "OpenWire",
        "notes": [
          "LVDS output buffers for data and strobe and LVDS input buffers with fail-safe biasing belong to the top level; the core contains no I/O buffer.",
          "Enable the safe implementation of state machines in the synthesis tool.",
          "Set INT_HOLDOFF and INT_ACK_DELAY for the network before distributed interrupts are used.",
          "Serve the indication ports before the indication FIFO (16 entries) fills.",
          "Write registers as 32-bit words; a read that depends on a write waits for the write response."
        ],
        "rules": [
          {
            "kind": "clock_freq_multiple",
            "clock": "LinkClk",
            "multipleHz": "10.0e6",
            "tolerance": 0.1
          },
          {
            "kind": "generic_range",
            "generic": "LinkClkFreq_g",
            "min": 13200000,
            "message": "the receiver samples the initial rate of the far end, at most 11 Mb/s, with 1.2 LinkClk periods per bit (CORE-CF-02)"
          },
          {
            "kind": "generic_range",
            "generic": "LinkClkFreq_g",
            "max": 2554999999,
            "message": "LINK_SPEED.INIT_DIV, round(LinkClkFreq_g / 10 MHz), is an 8-bit field: below 2555 MHz (CORE-CF-02)"
          },
          {
            "kind": "run_rate",
            "clock": "LinkClk",
            "divider": "RunDiv_g",
            "sampling": 1.2,
            "message": "A receiver samples a bit period that is longer than 1.2 of its LinkClk periods (user guide, section 3)"
          },
          {
            "kind": "generic_range",
            "generic": "RxFifoDepth_g",
            "min": 16,
            "message": "the port never has room for a flow control token: 8 N-Chars plus the reserved EEP place; it receives no data"
          },
          {
            "kind": "generic_range",
            "generic": "RxFifoDepth_g",
            "max": 32768,
            "message": "FIFO_DEPTHS and FIFO_LEVELS are 16-bit fields"
          },
          {
            "kind": "generic_range",
            "generic": "TxFifoDepth_g",
            "max": 32768,
            "message": "FIFO_DEPTHS and FIFO_LEVELS are 16-bit fields"
          },
          {
            "kind": "generic_range",
            "generic": "TxFifoDepth_g",
            "min": 2,
            "message": "the Open Logic FIFO holds at least 2 entries (CORE-CF-01)"
          }
        ],
        "constraints": [
          {
            "kind": "false_path",
            "fromPorts": [
              "Spw_DIn",
              "Spw_SIn",
              "Rst"
            ]
          },
          {
            "kind": "max_delay_pairs",
            "clocks": [
              "UserClk",
              "LinkClk",
              "MgmtClk"
            ],
            "note": "Clock crossings inside the core (Open Logic FT FIFOs and synchronisers): for every pair of its clocks, in both directions, the period of the faster clock; no asynchronous clock groups."
          },
          {
            "kind": "io_register",
            "ports": [
              "Spw_DOut",
              "Spw_SOut"
            ],
            "note": "Place the output flip-flops of data and strobe in the I/O blocks with matched routing."
          }
        ],
        "idRegister": {
          "address": "0x00",
          "value": "0x4F575201"
        },
        "init": [
          {
            "text": "Optionally write LINK_SPEED (0x14) bits 7:0 RUN_DIV: the bit period in the Run state in LinkClk cycles (reset value RunDiv_g); choose it for the far end, which samples at most about LinkClk / 1.2."
          },
          {
            "text": "Write PORT_CTRL (0x10) = 0x34 (RECEIVER_EN, DRIVER_EN, LINK_START) to start the link, or 0x38 (AUTO_START) to wait for the far end.",
            "unless": [
              "LinkStart_g",
              "AutoStart_g"
            ]
          },
          {
            "text": "The link starts after the reset without software (LinkStart_g or AutoStart_g).",
            "when": [
              "LinkStart_g"
            ]
          },
          {
            "text": "The link starts after the reset without software (LinkStart_g or AutoStart_g).",
            "when": [
              "AutoStart_g"
            ],
            "unless": [
              "LinkStart_g"
            ]
          },
          {
            "text": "Wait for PORT_STATUS (0x18) bits 2:0 LINK_STATE = 5 (Run) before packets are exchanged."
          }
        ],
        "endToEnd": "Loop the SpaceWire line back (Spw_DOut to Spw_DIn, Spw_SOut to Spw_SIn) or connect a second port, start the link and wait for PORT_STATUS LINK_STATE = 5 (Run).",
        "rates": {
          "evidence": "user guide section 7; TC-DL-43 (one N-Char per UserClk cycle at the packet ports), TC-DL-40 and TC-CORE-11 (link rate in one and in both directions), TC-EN-03 (run dividers)",
          "packet": "packet",
          "interfaces": {
            "S_Pkt": {
              "bytesPerBeat": 1,
              "extraBeats": 1
            },
            "M_Pkt": {
              "bytesPerBeat": 1,
              "extraBeats": 1
            }
          },
          "links": [
            {
              "interface": "Spw",
              "from": "S_Pkt",
              "to": "M_Pkt",
              "capacity": "n * Freq_LinkClk / RunDiv_g / (10 * n + 4)",
              "capacityBoth": "n * Freq_LinkClk / RunDiv_g / (10.5 * n + 4.5)",
              "note": "the bit rate follows RunDiv_g, the reset value of LINK_SPEED.RUN_DIV; software can change it"
            }
          ]
        },
        "sizes": {
          "evidence": "no length limit by design: N-Chars stream through N-Char FIFOs without a packet concept, the only counter of the data path is the credit (owr_data_link.vhd); packets of up to 65542 bytes simulated, also with a link error in the middle (TC-CORE-17, TC-CORE-18, user guide section 7)",
          "interfaces": {
            "S_Pkt": {
              "noLimit": true,
              "tested": 65542
            },
            "M_Pkt": {
              "noLimit": true,
              "tested": 65542
            }
          }
        },
        "protection": {
          "evidence": "user guide section 5 (protection scope) and the register map",
          "ecc": {
            "count": {
              "name": "ECC_COUNT",
              "offset": 136
            },
            "inject": {
              "name": "ECC_INJECT",
              "offset": 140
            },
            "select": {
              "name": "ECC_SELECT",
              "offset": 132
            },
            "status": {
              "name": "ECC_STATUS",
              "offset": 128
            },
            "channels": 6
          }
        },
        "registers": {
          "map": "hdl/owr_mib/regs/owr_regs.yml",
          "header": "sw/owr_regs.h",
          "doc": "hdl/owr_mib/docs/register_map.md",
          "prefix": "OWR"
        },
        "generics": [
          {
            "name": "LinkClkFreq_g",
            "vhdlType": "real",
            "kind": "real",
            "defaultText": "100.0e6",
            "default": 100000000,
            "label": "Link clock frequency",
            "description": "Frequency of LinkClk. It must lie within 10 % of a multiple of 10 MHz, so that 10 Mb/s +/- 10 % can be reached with an integer divider.",
            "fromClock": "LinkClk",
            "unit": "Hz"
          },
          {
            "name": "TxFifoDepth_g",
            "vhdlType": "positive",
            "kind": "integer",
            "min": 1,
            "max": 2147483647,
            "defaultText": "64",
            "default": 64,
            "label": "Transmit FIFO depth",
            "description": "Depth of the transmit FIFO in N-Chars (power of 2).",
            "check": "pow2"
          },
          {
            "name": "RxFifoDepth_g",
            "vhdlType": "positive",
            "kind": "integer",
            "min": 1,
            "max": 2147483647,
            "defaultText": "64",
            "default": 64,
            "label": "Receive FIFO depth",
            "description": "Depth of the receive FIFO in N-Chars (power of 2); 64 or more allows seven outstanding FCTs.",
            "check": "pow2"
          },
          {
            "name": "TimeCodes_g",
            "vhdlType": "boolean",
            "kind": "boolean",
            "defaultText": "true",
            "default": true,
            "label": "Time-code service",
            "description": "Enables the time-code service and its ports."
          },
          {
            "name": "Interrupts_g",
            "vhdlType": "boolean",
            "kind": "boolean",
            "defaultText": "true",
            "default": true,
            "label": "Interrupt service",
            "description": "Enables the distributed interrupt service and its ports."
          },
          {
            "name": "IntTimerWidth_g",
            "vhdlType": "positive range 1 to 30",
            "kind": "integer",
            "min": 1,
            "max": 30,
            "defaultText": "16",
            "default": 16,
            "label": "Interrupt timer width",
            "description": "Width of the minimum interval and acknowledgement delay of the interrupt service",
            "advanced": true,
            "enabledBy": "Interrupts_g"
          },
          {
            "name": "LinkDisabled_g",
            "vhdlType": "boolean",
            "kind": "boolean",
            "defaultText": "false",
            "default": false,
            "label": "Link disabled after reset",
            "description": "Reset value of LinkDisabled.",
            "advanced": true
          },
          {
            "name": "LinkStart_g",
            "vhdlType": "boolean",
            "kind": "boolean",
            "defaultText": "false",
            "default": false,
            "label": "Link start after reset",
            "description": "Reset value of LinkStart; the port starts the link without software."
          },
          {
            "name": "AutoStart_g",
            "vhdlType": "boolean",
            "kind": "boolean",
            "defaultText": "false",
            "default": false,
            "label": "Auto start after reset",
            "description": "Reset value of AutoStart; the port starts the link when the far end does."
          },
          {
            "name": "RunDiv_g",
            "vhdlType": "positive range 1 to 255",
            "kind": "integer",
            "min": 1,
            "max": 255,
            "defaultText": "1",
            "default": 1,
            "label": "Run divider",
            "description": "Reset value of the bit period in the Run state in LinkClk cycles.",
            "advanced": true
          },
          {
            "name": "SyncStages_g",
            "vhdlType": "positive range 2 to 4",
            "kind": "integer",
            "min": 2,
            "max": 4,
            "defaultText": "2",
            "default": 2,
            "label": "Synchroniser stages",
            "description": "Synchroniser stages of data and strobe.",
            "advanced": true
          }
        ],
        "clocks": [
          {
            "port": "UserClk",
            "primary": true,
            "label": "User",
            "description": "Packet and broadcast service ports (any frequency)."
          },
          {
            "port": "LinkClk",
            "label": "Link",
            "freqGeneric": "LinkClkFreq_g",
            "description": "Encoding and data link layers; the transmit bit period is n LinkClk periods (n = 1 to 255)."
          },
          {
            "port": "MgmtClk",
            "label": "Management",
            "description": "Register file and interrupt (any frequency)."
          }
        ],
        "resets": [
          {
            "port": "Rst",
            "active": "high",
            "sync": "async",
            "description": "Asynchronous reset; the core synchronises its release in every domain."
          }
        ],
        "interfaces": [
          {
            "name": "S_Pkt",
            "type": "spw.nchar",
            "role": "sink",
            "clock": "UserClk",
            "label": "Packets to send",
            "signals": {
              "data": "S_Pkt_TData",
              "last": "S_Pkt_TLast",
              "valid": "S_Pkt_TValid",
              "ready": "S_Pkt_TReady"
            },
            "widths": {
              "data": "8"
            }
          },
          {
            "name": "M_Pkt",
            "type": "spw.nchar",
            "role": "source",
            "clock": "UserClk",
            "label": "Received packets",
            "description": "Must be served; the port gives credit only for free places of the receive FIFO.",
            "mustServe": true,
            "signals": {
              "data": "M_Pkt_TData",
              "last": "M_Pkt_TLast",
              "valid": "M_Pkt_TValid",
              "ready": "M_Pkt_TReady"
            },
            "widths": {
              "data": "8"
            }
          },
          {
            "name": "S_Tc",
            "type": "spw.timecode",
            "role": "sink",
            "clock": "UserClk",
            "label": "Time-codes to send",
            "enabledBy": "TimeCodes_g",
            "tieOff": "default",
            "signals": {
              "data": "S_Tc_TData",
              "valid": "S_Tc_TValid",
              "ready": "S_Tc_TReady"
            },
            "widths": {
              "data": "6"
            }
          },
          {
            "name": "M_Tc",
            "type": "spw.timecode",
            "role": "source",
            "clock": "UserClk",
            "label": "Received time-codes",
            "enabledBy": "TimeCodes_g",
            "tieOff": "default",
            "signals": {
              "data": "M_Tc_TData",
              "valid": "M_Tc_TValid",
              "ready": "M_Tc_TReady"
            },
            "widths": {
              "data": "6"
            }
          },
          {
            "name": "S_Int",
            "type": "spw.int",
            "role": "sink",
            "clock": "UserClk",
            "label": "Interrupts to send",
            "enabledBy": "Interrupts_g",
            "tieOff": "default",
            "signals": {
              "data": "S_Int_TData",
              "valid": "S_Int_TValid",
              "ready": "S_Int_TReady"
            },
            "widths": {
              "data": "5"
            }
          },
          {
            "name": "S_IntAck",
            "type": "spw.intack",
            "role": "sink",
            "clock": "UserClk",
            "label": "Acknowledgements to send",
            "enabledBy": "Interrupts_g",
            "tieOff": "default",
            "signals": {
              "data": "S_IntAck_TData",
              "valid": "S_IntAck_TValid",
              "ready": "S_IntAck_TReady"
            },
            "widths": {
              "data": "5"
            }
          },
          {
            "name": "M_Int",
            "type": "spw.int",
            "role": "source",
            "clock": "UserClk",
            "label": "Received interrupts",
            "enabledBy": "Interrupts_g",
            "tieOff": "default",
            "signals": {
              "data": "M_Int_TData",
              "valid": "M_Int_TValid",
              "ready": "M_Int_TReady"
            },
            "widths": {
              "data": "5"
            }
          },
          {
            "name": "M_IntAck",
            "type": "spw.intack",
            "role": "source",
            "clock": "UserClk",
            "label": "Received acknowledgements",
            "enabledBy": "Interrupts_g",
            "tieOff": "default",
            "signals": {
              "data": "M_IntAck_TData",
              "valid": "M_IntAck_TValid",
              "ready": "M_IntAck_TReady"
            },
            "widths": {
              "data": "5"
            }
          },
          {
            "name": "S_AxiLite",
            "type": "axi4lite",
            "role": "slave",
            "clock": "MgmtClk",
            "label": "Registers",
            "params": {
              "addrWidth": 8
            },
            "signals": {
              "AwAddr": "S_AxiLite_AwAddr",
              "AwValid": "S_AxiLite_AwValid",
              "AwReady": "S_AxiLite_AwReady",
              "WData": "S_AxiLite_WData",
              "WStrb": "S_AxiLite_WStrb",
              "WValid": "S_AxiLite_WValid",
              "WReady": "S_AxiLite_WReady",
              "BResp": "S_AxiLite_BResp",
              "BValid": "S_AxiLite_BValid",
              "BReady": "S_AxiLite_BReady",
              "ArAddr": "S_AxiLite_ArAddr",
              "ArValid": "S_AxiLite_ArValid",
              "ArReady": "S_AxiLite_ArReady",
              "RData": "S_AxiLite_RData",
              "RResp": "S_AxiLite_RResp",
              "RValid": "S_AxiLite_RValid",
              "RReady": "S_AxiLite_RReady"
            }
          },
          {
            "name": "Irq",
            "type": "irq",
            "role": "event_out",
            "clock": "MgmtClk",
            "label": "Interrupt",
            "tieOff": "open",
            "irqRegisters": {
              "enable": [
                {
                  "name": "EVENTS_IRQ_EN",
                  "offset": 56
                },
                {
                  "name": "ERRORS_IRQ_EN",
                  "offset": 52
                }
              ],
              "events": {
                "name": "EVENTS",
                "offset": 48
              },
              "status": {
                "name": "IRQ_STATUS",
                "offset": 60
              }
            },
            "signals": {
              "irq": "Irq"
            }
          },
          {
            "name": "Spw",
            "type": "spw.ds",
            "role": "pins",
            "clock": "LinkClk",
            "label": "SpaceWire line",
            "externalOnly": true,
            "signals": {
              "d_out": "Spw_DOut",
              "s_out": "Spw_SOut",
              "d_in": "Spw_DIn",
              "s_in": "Spw_SIn",
              "tx_en": "Phy_TxEn",
              "rx_en": "Phy_RxEn"
            }
          }
        ],
        "ports": [
          {
            "name": "Rst",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "UserClk",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "LinkClk",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "MgmtClk",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_Pkt_TData",
            "dir": "in",
            "vhdlType": "std_logic_vector(7 downto 0)",
            "width": "8"
          },
          {
            "name": "S_Pkt_TLast",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_Pkt_TValid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_Pkt_TReady",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Pkt_TData",
            "dir": "out",
            "vhdlType": "std_logic_vector(7 downto 0)",
            "width": "8"
          },
          {
            "name": "M_Pkt_TLast",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Pkt_TValid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Pkt_TReady",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_Tc_TData",
            "dir": "in",
            "vhdlType": "std_logic_vector(5 downto 0)",
            "width": "6",
            "default": "(others => '0')"
          },
          {
            "name": "S_Tc_TValid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1",
            "default": "'0'"
          },
          {
            "name": "S_Tc_TReady",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Tc_TData",
            "dir": "out",
            "vhdlType": "std_logic_vector(5 downto 0)",
            "width": "6"
          },
          {
            "name": "M_Tc_TValid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Tc_TReady",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1",
            "default": "'1'"
          },
          {
            "name": "S_Int_TData",
            "dir": "in",
            "vhdlType": "std_logic_vector(4 downto 0)",
            "width": "5",
            "default": "(others => '0')"
          },
          {
            "name": "S_Int_TValid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1",
            "default": "'0'"
          },
          {
            "name": "S_Int_TReady",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_IntAck_TData",
            "dir": "in",
            "vhdlType": "std_logic_vector(4 downto 0)",
            "width": "5",
            "default": "(others => '0')"
          },
          {
            "name": "S_IntAck_TValid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1",
            "default": "'0'"
          },
          {
            "name": "S_IntAck_TReady",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Int_TData",
            "dir": "out",
            "vhdlType": "std_logic_vector(4 downto 0)",
            "width": "5"
          },
          {
            "name": "M_Int_TValid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_Int_TReady",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1",
            "default": "'1'"
          },
          {
            "name": "M_IntAck_TData",
            "dir": "out",
            "vhdlType": "std_logic_vector(4 downto 0)",
            "width": "5"
          },
          {
            "name": "M_IntAck_TValid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "M_IntAck_TReady",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1",
            "default": "'1'"
          },
          {
            "name": "S_AxiLite_ArAddr",
            "dir": "in",
            "vhdlType": "std_logic_vector(7 downto 0)",
            "width": "8"
          },
          {
            "name": "S_AxiLite_ArValid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_ArReady",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_AwAddr",
            "dir": "in",
            "vhdlType": "std_logic_vector(7 downto 0)",
            "width": "8"
          },
          {
            "name": "S_AxiLite_AwValid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_AwReady",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_WData",
            "dir": "in",
            "vhdlType": "std_logic_vector(31 downto 0)",
            "width": "32"
          },
          {
            "name": "S_AxiLite_WStrb",
            "dir": "in",
            "vhdlType": "std_logic_vector(3 downto 0)",
            "width": "4"
          },
          {
            "name": "S_AxiLite_WValid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_WReady",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_BResp",
            "dir": "out",
            "vhdlType": "std_logic_vector(1 downto 0)",
            "width": "2"
          },
          {
            "name": "S_AxiLite_BValid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_BReady",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_RData",
            "dir": "out",
            "vhdlType": "std_logic_vector(31 downto 0)",
            "width": "32"
          },
          {
            "name": "S_AxiLite_RResp",
            "dir": "out",
            "vhdlType": "std_logic_vector(1 downto 0)",
            "width": "2"
          },
          {
            "name": "S_AxiLite_RValid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_RReady",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "Irq",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "Spw_DOut",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "Spw_SOut",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "Spw_DIn",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "Spw_SIn",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "Phy_TxEn",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "Phy_RxEn",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          }
        ]
      },
      {
        "id": "olo/olo_ft_ecc_monitor_axi",
        "kind": "olo",
        "name": "EDAC monitor with registers",
        "group": "olo-edac",
        "source": "olo",
        "library": "olo",
        "entity": "olo_ft_ecc_monitor_axi",
        "path": "src/ft/vhdl/olo_ft_ecc_monitor_axi.vhd",
        "summary": "EDAC monitor with an AXI4-Lite register file and an interrupt.",
        "idPrefix": "edac",
        "doc": "https://openspacehdl.org/open-logic-ft/doc/ft/olo_ft_ecc_monitor_axi.html",
        "rules": [
          {
            "kind": "generic_range",
            "generic": "AxiAddrWidth_g",
            "min": "log2ceil(16 + 4 * Channels_g)"
          }
        ],
        "generics": [
          {
            "name": "Channels_g",
            "vhdlType": "positive range 1 to 255",
            "kind": "integer",
            "min": 1,
            "max": 255,
            "required": true,
            "label": "Channels",
            "example": 4
          },
          {
            "name": "CounterWidth_g",
            "vhdlType": "positive range 1 to 16",
            "kind": "integer",
            "min": 1,
            "max": 16,
            "defaultText": "16",
            "default": 16,
            "label": "Counter width",
            "unit": "bits"
          },
          {
            "name": "AxiAddrWidth_g",
            "vhdlType": "positive range 6 to 30",
            "kind": "integer",
            "min": 6,
            "max": 30,
            "defaultText": "12",
            "default": 12,
            "label": "Register address width",
            "unit": "bits"
          },
          {
            "name": "ReadTimeoutClks_g",
            "vhdlType": "positive",
            "kind": "integer",
            "min": 1,
            "max": 2147483647,
            "defaultText": "100",
            "default": 100,
            "label": "Read timeout",
            "advanced": true,
            "unit": "cycles"
          }
        ],
        "clocks": [
          {
            "port": "Clk",
            "primary": true,
            "label": "Clock"
          }
        ],
        "resets": [
          {
            "port": "Rst",
            "active": "high",
            "sync": "sync",
            "clock": "Clk"
          }
        ],
        "interfaces": [
          {
            "name": "S_AxiLite",
            "type": "axi4lite",
            "role": "slave",
            "clock": "Clk",
            "label": "Registers",
            "params": {
              "addrWidth": "AxiAddrWidth_g"
            },
            "signals": {
              "AwAddr": "S_AxiLite_AwAddr",
              "AwValid": "S_AxiLite_AwValid",
              "AwReady": "S_AxiLite_AwReady",
              "WData": "S_AxiLite_WData",
              "WStrb": "S_AxiLite_WStrb",
              "WValid": "S_AxiLite_WValid",
              "WReady": "S_AxiLite_WReady",
              "BResp": "S_AxiLite_BResp",
              "BValid": "S_AxiLite_BValid",
              "BReady": "S_AxiLite_BReady",
              "ArAddr": "S_AxiLite_ArAddr",
              "ArValid": "S_AxiLite_ArValid",
              "ArReady": "S_AxiLite_ArReady",
              "RData": "S_AxiLite_RData",
              "RResp": "S_AxiLite_RResp",
              "RValid": "S_AxiLite_RValid",
              "RReady": "S_AxiLite_RReady"
            }
          },
          {
            "name": "In",
            "type": "ecc.event",
            "role": "event_in",
            "clock": "Clk",
            "label": "EDAC events",
            "vector": "Channels_g",
            "signals": {
              "sec": "In_EccSec",
              "ded": "In_EccDed",
              "valid": "In_Valid"
            }
          },
          {
            "name": "Irq",
            "type": "irq",
            "role": "event_out",
            "clock": "Clk",
            "label": "Interrupt",
            "tieOff": "open",
            "signals": {
              "irq": "Irq"
            }
          }
        ],
        "ports": [
          {
            "name": "Clk",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "Rst",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_ArAddr",
            "dir": "in",
            "vhdlType": "std_logic_vector(AxiAddrWidth_g - 1 downto 0)",
            "width": "AxiAddrWidth_g"
          },
          {
            "name": "S_AxiLite_ArValid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_ArReady",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_AwAddr",
            "dir": "in",
            "vhdlType": "std_logic_vector(AxiAddrWidth_g - 1 downto 0)",
            "width": "AxiAddrWidth_g"
          },
          {
            "name": "S_AxiLite_AwValid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_AwReady",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_WData",
            "dir": "in",
            "vhdlType": "std_logic_vector(31 downto 0)",
            "width": "32"
          },
          {
            "name": "S_AxiLite_WStrb",
            "dir": "in",
            "vhdlType": "std_logic_vector(3 downto 0)",
            "width": "4"
          },
          {
            "name": "S_AxiLite_WValid",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_WReady",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_BResp",
            "dir": "out",
            "vhdlType": "std_logic_vector(1 downto 0)",
            "width": "2"
          },
          {
            "name": "S_AxiLite_BValid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_BReady",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_RData",
            "dir": "out",
            "vhdlType": "std_logic_vector(31 downto 0)",
            "width": "32"
          },
          {
            "name": "S_AxiLite_RResp",
            "dir": "out",
            "vhdlType": "std_logic_vector(1 downto 0)",
            "width": "2"
          },
          {
            "name": "S_AxiLite_RValid",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "S_AxiLite_RReady",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "In_EccSec",
            "dir": "in",
            "vhdlType": "std_logic_vector(Channels_g - 1 downto 0)",
            "width": "Channels_g"
          },
          {
            "name": "In_EccDed",
            "dir": "in",
            "vhdlType": "std_logic_vector(Channels_g - 1 downto 0)",
            "width": "Channels_g"
          },
          {
            "name": "In_Valid",
            "dir": "in",
            "vhdlType": "std_logic_vector(Channels_g - 1 downto 0)",
            "width": "Channels_g",
            "default": "(others => '1')"
          },
          {
            "name": "Irq",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          }
        ]
      },
      {
        "id": "olo/olo_base_reset_gen",
        "kind": "olo",
        "name": "Reset generator",
        "group": "olo-reset",
        "source": "olo",
        "library": "olo",
        "entity": "olo_base_reset_gen",
        "path": "src/base/vhdl/olo_base_reset_gen.vhd",
        "summary": "Synchronises an asynchronous reset to a clock and stretches it; optionally triplicated synchronisers.",
        "idPrefix": "rst",
        "doc": "https://openspacehdl.org/open-logic-ft/doc/base/olo_base_reset_gen.html",
        "generics": [
          {
            "name": "RstPulseCycles_g",
            "vhdlType": "positive range 3 to positive'high",
            "kind": "integer",
            "min": 3,
            "max": 2147483647,
            "defaultText": "3",
            "default": 3,
            "label": "Reset pulse cycles"
          },
          {
            "name": "RstInPolarity_g",
            "vhdlType": "std_logic",
            "kind": "std_logic",
            "defaultText": "'1'",
            "default": "1",
            "label": "Reset input polarity",
            "advanced": true
          },
          {
            "name": "AsyncResetOutput_g",
            "vhdlType": "boolean",
            "kind": "boolean",
            "defaultText": "false",
            "default": false,
            "label": "Asynchronous assertion",
            "advanced": true
          },
          {
            "name": "SyncStages_g",
            "vhdlType": "positive range 2 to 4",
            "kind": "integer",
            "min": 2,
            "max": 4,
            "defaultText": "2",
            "default": 2,
            "label": "Synchroniser stages"
          },
          {
            "name": "SyncTmr_g",
            "vhdlType": "boolean",
            "kind": "boolean",
            "defaultText": "false",
            "default": false,
            "label": "Triplicated synchronisers"
          }
        ],
        "clocks": [
          {
            "port": "Clk",
            "primary": true,
            "label": "Clock"
          }
        ],
        "resets": [
          {
            "port": "RstIn",
            "active": "high",
            "sync": "async",
            "description": "Asynchronous reset input (polarity from RstInPolarity_g)."
          }
        ],
        "interfaces": [
          {
            "name": "RstOut",
            "type": "reset",
            "role": "event_out",
            "clock": "Clk",
            "label": "Reset",
            "signals": {
              "rst": "RstOut"
            }
          }
        ],
        "ports": [
          {
            "name": "Clk",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "RstOut",
            "dir": "out",
            "vhdlType": "std_logic",
            "width": "1"
          },
          {
            "name": "RstIn",
            "dir": "in",
            "vhdlType": "std_logic",
            "width": "1",
            "default": "not RstInPolarity_g"
          }
        ]
      }
    ]
  },
  "layout": {
    "instances": {
      "frm0": {
        "x": 92,
        "y": 219
      },
      "ocr0": {
        "x": 428,
        "y": 126
      },
      "spp0": {
        "x": 764,
        "y": 126
      },
      "nchar0": {
        "x": 1100,
        "y": 152
      },
      "spw0": {
        "x": 1436,
        "y": 152
      },
      "edac0": {
        "x": 428,
        "y": 338
      }
    },
    "domains": {},
    "viewport": {
      "x": 0,
      "y": 0,
      "zoom": 1
    }
  }
}
