OpenFPGA/docs/source/manual/arch_lang/direct_interconnect.rst

106 lines
4.1 KiB
ReStructuredText
Raw Normal View History

.. _direct_interconnect:
Inter-Tile Direct Interconnection extensions
--------------------------------------------
2019-09-30 11:00:46 -05:00
2019-09-30 11:38:02 -05:00
This section introduces extensions on the architecture description file about existing interconnection description.
2019-09-30 11:00:46 -05:00
Directlist
~~~~~~~~~~
2019-09-30 11:00:46 -05:00
2019-09-30 11:38:02 -05:00
The original direct connections in the directlist section are documented here_. Its description is given below:
2019-09-30 11:00:46 -05:00
.. _here: http://docs.verilogtorouting.org/en/latest/arch/reference/?highlight=directlist#direct-inter-block-connections
.. code-block:: xml
<directlist>
<direct name="string" from_pin="string" to_pin="string" x_offset="int" y_offset="int" z_offset="int" switch_name="string"/>
</directlist>
.. note:: These options are required
Our extension include three more options:
.. code-block:: xml
<directlist>
<direct name="string" from_pin="string" to_pin="string" x_offset="int" y_offset="int" z_offset="int" switch_name="string" interconnection_type="string" x_dir="string" y_dir="string"/>
</directlist>
.. note:: these options are optional. However, if `interconnection_type` is set `x_dir` and `y_dir` are required.
.. option:: interconnection_type="<string>"
the type of interconnection should be a string.
Available types are ``NONE`` | ``column`` | ``row``, specifies if it applies on a column or a row ot if it doesn't apply.
.. option:: x_dir="<string>"
2019-09-30 11:29:42 -05:00
Available directionalities are ``positive`` | ``negative``, specifies if the next cell to connect has a bigger or lower ``x`` value.
Considering a coordinate system where (0,0) is the origin at the bottom left and ``x`` and ``y`` are positives:
2019-09-30 11:00:46 -05:00
- x_dir="positive":
2019-09-30 11:00:46 -05:00
- interconnection_type="column": a column will be connected to a column on the ``right``, if it exists.
2019-09-30 11:00:46 -05:00
- interconnection_type="row": the most on the ``right`` cell from a row connection will connect the most on the ``left`` cell of next row, if it exists.
2019-09-30 11:00:46 -05:00
- x_dir="negative":
2019-09-30 11:00:46 -05:00
- interconnection_type="column": a column will be connected to a column on the ``left``, if it exists.
2019-09-30 11:00:46 -05:00
- interconnection_type="row": the most on the ``left`` cell from a row connection will connect the most on the ``right`` cell of next row, if it exists.
2019-09-30 11:00:46 -05:00
.. option:: y_dir="<string>"
2019-09-30 11:00:46 -05:00
Available directionalities are ``positive`` | ``negative``, specifies if the next cell to connect has a bigger or lower x value.
Considering a coordinate system where (0,0) is the origin at the bottom left and `x` and `y` are positives:
2019-09-30 11:00:46 -05:00
- y_dir="positive":
2019-09-30 11:00:46 -05:00
- interconnection_type="column": the ``bottom`` cell of a column will be connected to the next column ``top`` cell, if it exists.
2019-09-30 11:00:46 -05:00
- interconnection_type="row": a row will be connected on an ``above`` row, if it exists.
2019-09-30 11:00:46 -05:00
- y_dir="negative":
2019-09-30 11:00:46 -05:00
- interconnection_type="column": the ``top`` cell of a column will be connected to the next column ``bottom`` cell, if it exists.
2019-09-30 11:00:46 -05:00
- interconnection_type="row": a row will be connected on a row ``below``, if it exists.
2019-09-30 11:00:46 -05:00
Example
~~~~~~~
2019-09-30 11:00:46 -05:00
2019-09-30 11:38:02 -05:00
For this example, we will study a scan-chain implementation. The description could be:
2019-09-30 11:00:46 -05:00
.. code-block:: xml
<directlist>
<direct name="scff_chain" from_pin="clb.sc_out" to_pin="clb.sc_in" x_offset="0" y_offset="-1" z_offset="0" interconnection_type="column" x_dir="positive" y_dir="positive"/>
</directlist>
2019-09-30 11:29:42 -05:00
:numref:`fig_p2p_exple` is the graphical representation of the above scan-chain description on a 4x4 FPGA.
2019-09-30 11:00:46 -05:00
2019-09-30 11:29:42 -05:00
.. _fig_p2p_exple:
2019-09-30 11:00:46 -05:00
.. figure:: ./figures/point2point_example.png
2019-09-30 11:29:42 -05:00
2019-09-30 11:38:02 -05:00
An example of scan-chain implementation
2019-09-30 11:00:46 -05:00
2019-09-30 11:38:02 -05:00
In this figure, the red arrows represent the initial direct connection. The green arrows represent the point to point connection to connect all the columns of CLB.
2019-09-30 11:00:46 -05:00
Truth table
~~~~~~~~~~~
2019-09-30 11:00:46 -05:00
2019-09-30 11:38:02 -05:00
A point to point connection can be applied in different ways than showed in the example section. To help the designer implement his point to point connection, a truth table with our new parameters id provided below.
2019-09-30 11:00:46 -05:00
:numref:`fig_p2p_trtable` provides all possible variable combination and the connection it will generate.
2019-09-30 11:29:42 -05:00
.. _fig_p2p_trtable:
2019-09-30 11:00:46 -05:00
.. figure:: ./figures/point2point_truthtable.png
2019-09-30 11:29:42 -05:00
2019-09-30 11:38:02 -05:00
Point to point truth table