From 5a67d5dad104a06b8499199f1bad47358e516607 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Mon, 25 Nov 2024 16:21:34 -0800 Subject: [PATCH] [doc] add new syntax --- .../manual/file_formats/bitstream_setting.rst | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/source/manual/file_formats/bitstream_setting.rst b/docs/source/manual/file_formats/bitstream_setting.rst index d46751a14..7cc340da0 100644 --- a/docs/source/manual/file_formats/bitstream_setting.rst +++ b/docs/source/manual/file_formats/bitstream_setting.rst @@ -12,6 +12,7 @@ This can define a hard-coded bitstream for a reconfigurable resource in FPGA fab + @@ -54,6 +55,32 @@ The following syntax are applicable to the XML definition tagged by ``pb_type`` Specify the offset to be applied when overloading the bitstream to a target. For example, a LUT may have a 16-bit bitstream. When ``offset=1``, bitstream overloading will skip the first bit and start from the second bit of the 16-bit bitstream. +Default Mode Bits-related Settings +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +The following syntax are applicable to the XML definition tagged by ``default_mode_bits`` in bitstream setting files. + +.. option:: name="" + + The ``pb_type`` name to be constrained, which should be the full path of a ``pb_type`` consistent with VPR's architecture description. For example, + + .. note:: This must be a valid primitive pb_type (one has zero leaf nodes)! + + .. code-block:: xml + + pb_type="clb.fle[arithmetic].soft_adder.adder_lut4" + +.. option:: mode_bits="" + + The default mode bits when the ``pb_type`` is not mapped. Note that the size of mode bits must comply with the definition in the OpenFPGA architecture description (See details in :ref:`annotate_vpr_arch_pb_type_annotation`). For example, + + .. note:: Bitstream setting has a higher priority than the ``mode_bits`` definition in the OpenFPGA architecture description! + + .. code-block:: xml + + mode_bits="0100" + + Interconnection-related Settings ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^