From 9a7e0f761aeb806f8b0313fc825120c8f10c28a9 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Mon, 4 Oct 2021 12:29:49 -0700 Subject: [PATCH] [Doc] Add fabric bitstream file format for QL memory bank --- .../manual/file_formats/fabric_bitstream.rst | 106 ++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/docs/source/manual/file_formats/fabric_bitstream.rst b/docs/source/manual/file_formats/fabric_bitstream.rst index 2def5d269..6cd8085de 100644 --- a/docs/source/manual/file_formats/fabric_bitstream.rst +++ b/docs/source/manual/file_formats/fabric_bitstream.rst @@ -65,6 +65,112 @@ The information depends on the type of configuration procotol. .. note:: When there are multiple configuration regions, each ```` may consist of multiple bits. For example, ``0110`` represents the bits for 4 configuration regions, where the 4 digits correspond to the bits from region ``0, 1, 2, 3`` respectively. +.. option:: ql_memory_bank using decoders + + Multiple lines will be included, each of which is organized as . + The size of address line and data input bits are shown as a comment in the bitstream file, which eases the development of bitstream downloader. + For example + + .. code-block:: verilog + + // Bitstream width (LSB -> MSB): + + The first part represents the Bit-Line address. + The second part represents the Word-Line address. + The third part represents the configuration bit. + For example + + .. code-block:: xml + + + + ... + + + .. note:: When there are multiple configuration regions, each ```` may consist of multiple bits. For example, ``0110`` represents the bits for 4 configuration regions, where the 4 digits correspond to the bits from region ``0, 1, 2, 3`` respectively. + +.. option:: ql_memory_bank using flatten BL and WLs + + Multiple lines will be included, each of which is organized as . + The size of data are shown as a comment in the bitstream file, which eases the development of bitstream downloader. + For example + + .. code-block:: verilog + + // Bitstream width (LSB -> MSB): + + The first part represents the Bit-Line data from multiple configuration regions. + The second part represents the Word-Line data from multiple configuration regions. + For example + + .. code-block:: xml + + + + ... + + + .. note:: The WL data of region is one-hot. + +.. option:: ql_memory_bank using shift registers + + Multiple lines will be included, each of which is organized as or . + The size of data are shown as a comment in the bitstream file, which eases the development of bitstream downloader. + For example + + .. code-block:: verilog + + // Bitstream word count: 36 + // Bitstream bl word size: 39 + // Bitstream wl word size: 37 + // Bitstream width (LSB -> MSB): + + The bitstream data are organized by words. Each word consists of two parts, BL data to be loaded to BL shift register chains and WL data to be loaded to WL shift register chains + For example + + .. code-block:: xml + + // Word 0 + // BL Part + ---- + ^ + | + ... BL word size + | + v + ---- + // Word 0 + // WL Part + ---- + ^ + | + ... WL word size + | + v + ---- + // Word 1 + // BL Part + ---- + ^ + | + ... BL word size + | + v + ---- + // Word 1 + // WL Part + ---- + ^ + | + ... WL word size + | + v + ---- + ... // More words + + .. note:: The BL/WL data may be multi-bit, while each bit corresponds to a configuration region + .. note:: The WL data of region is one-hot. + .. option:: frame_based Multiple lines will be included, each of which is organized as ``
``.