.. _file_formats_architecture_bitstream: Architecture Bitstream (.xml) ----------------------------- OpenFPGA can output the generic bitstream to an XML format, which is easy to debug. As shown in the following XML code, configuration bits are organized block by block, where each block could be a LUT, a routing multiplexer `etc`. Each ``bitstream_block`` includes the following information: - ``name`` represents the instance name which you can find in the fabric netlists - ``hierarchy_level`` represents the depth of this block in the hierarchy of the FPGA fabric. It always starts from 0 as the root. - ``hierarchy`` represents the location of this block in FPGA fabric. The hierachy includes the full hierarchy of this block - ``instance`` denotes the instance name which you can find in the fabric netlists - ``level`` denotes the depth of the block in the hierarchy - ``input_nets`` represents the path ids and net names that are mapped to the inputs of block. Unused inputs will be tagged as ``unmapped`` which is a reserved word of OpenFPGA. Path id corresponds the selected ``path_id`` in the ```` node. - ``output_nets`` represents the path ids and net names that are mapped to the outputs of block. Unused outputs will be tagged as ``unmapped`` which is a reserved word OpenFPGA. - ``bitstream`` represents the configuration bits affiliated to this block. - ``path_id`` denotes the index of inputs which is propagated to the output. Note that smallest valid index starts from zero. Only routing multiplexers have the path index. Unused routing multiplexer will not have a ``path_id`` of ``-1``, which allows bitstream assembler to freely find the best path in terms of Quality of Results (QoR). A used routing multiplexer should have a zero or positive ``path_id``. - ``bit`` denotes a single configuration bit under this block. It contains \ - ``memory_port`` the memory port name which you can find in the fabric netlists by following the hierarchy. - ``value`` a binary value which is the configuration bit assigned to the memory port. .. code-block:: xml