Skip to content

Add tileable RR Graph #3134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b6371d2
[vpr][rr_graph] add tileable rr graph dir
amin1377 Jun 11, 2025
77781b4
[vpr][rr_graph] move tileable rr graph dir uner rr_graph_generation
amin1377 Jun 11, 2025
cf95e2c
[vpr][route] update rr_graph generation with tileable rr graph
amin1377 Jun 11, 2025
431923c
[vpr][util] add is_inter_cluster_node for vib arch
amin1377 Jun 11, 2025
d62fb79
[vpr][route] update router lookahead with tileable rr graph
amin1377 Jun 11, 2025
02a56e9
[vpr][blif] use regex to find param val
amin1377 Jun 11, 2025
204a794
[vpr][base] update with tileable rr graph
amin1377 Jun 11, 2025
7edf56d
[vpr][route] remove unused param
amin1377 Jun 11, 2025
f5e8061
[lib][arch] add vib processing
amin1377 Jun 11, 2025
14064c7
[lib][arch] add vib_inf
amin1377 Jun 11, 2025
49b04b0
[libs][rr_graph] update lib rr graph with tileable
amin1377 Jun 11, 2025
c6df91a
[libs][rr graph][io] update read/write rr graph functions with tileab…
amin1377 Jun 11, 2025
bf19150
[libs][rr graph][io] update rr_grpah utils with tileable info
amin1377 Jun 11, 2025
3970db7
[lib][rr_graph] add vtr tokenizer
amin1377 Jun 11, 2025
797b488
[lib][util] update capnp and util with open fpga
amin1377 Jun 11, 2025
cf2dbc8
add openfpga doc
amin1377 Jun 11, 2025
0e03dc7
[vpr][base] add vib grid
amin1377 Jun 11, 2025
f8fae78
add VIB doc
amin1377 Jun 11, 2025
5462ccd
[vpr][route] fix alloc_and_load_rr_switch_inf definition
amin1377 Jun 11, 2025
7cdf5bf
make format
amin1377 Jun 11, 2025
5ad8303
[vtr_flow][test] add openfpga arch
amin1377 Jun 11, 2025
c79ab8f
[CI] add openfpga tests
amin1377 Jun 11, 2025
8eccbcc
fix formatting
amin1377 Jun 11, 2025
0cc6f10
Merge branch 'master' of https://github.com/verilog-to-routing/vtr-ve…
amin1377 Jun 12, 2025
5a492c8
[doc][arch] add tileable doc
amin1377 Jun 12, 2025
1fd866e
Merge branch 'master' of https://github.com/verilog-to-routing/vtr-ve…
amin1377 Jun 16, 2025
5580c86
[libs][arch] add function declarations
amin1377 Jun 16, 2025
a27f6ba
[rr_graph] change MEDIUM node type name and related function to MUX
amin1377 Jun 16, 2025
8625ff0
[libs][arch] add process_bend
amin1377 Jun 16, 2025
57c1919
make format
amin1377 Jun 16, 2025
29c9677
[doc] fix a typo in .bib file
amin1377 Jun 16, 2025
b6fdda3
[vpr] remove redundant version of is_inter_cluster_node
amin1377 Jun 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added doc/src/Images/VIB.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/src/Images/bent_wires.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/src/Images/double-level.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/src/Images/vib_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
574 changes: 574 additions & 0 deletions doc/src/arch/concat_pass_wire.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
580 changes: 580 additions & 0 deletions doc/src/arch/concat_wire.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
592 changes: 592 additions & 0 deletions doc/src/arch/opin2all_sides.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/src/arch/perimeter_cb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
170 changes: 170 additions & 0 deletions doc/src/arch/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2633,6 +2633,176 @@ The full format is documented below.
The 'to' set is all L4 switchpoint 0's.
Note that since different switchpoints are selected from different segment types it is not possible to specify this without using ``<from>`` sub-tags.

.. _openfpga_arch_syntax:

Additional Syntax for Tileable Architecture
-------------------------------------------

When tileable architecture is enabled, the following options are available in the architecture file:

Layout
~~~~~~

``<layout>`` may include additioinal attributes to enable tileable routing resource graph generation

.. option:: tileable="<bool>"

Turn ``on``/``off`` tileable routing resource graph generator.

Tileable routing architecture can minimize the number of unique modules in FPGA fabric to be physically implemented.

Technical details can be found in :cite:`XTang_FPT_2019`.

.. note:: Strongly recommend to enable the tileable routing architecture when you want to PnR large FPGA fabrics, which can effectively reduce the runtime.

.. option:: through_channel="<bool>"

Allow routing channels to pass through multi-width and multi-height programable blocks. This is mainly used in heterogeneous FPGAs to increase routability, as illustrated in :numref:`fig_thru_channel`.
By default, it is ``false``.

.. _fig_thru_channel:

.. figure:: thru_channel.png
:width: 100%
:alt: Impact of through channel

Impact on routing architecture when through channel in multi-width and multi-height programmable blocks: (a) disabled; (b) enabled.

.. warning:: Do NOT enable ``through_channel`` if you are not using the tileable routing resource graph generator!

.. warning:: You cannot use ``spread`` pin location for the ``height > 1`` or ``width >1`` tiles when using the tileable routing resource graph!!! Otherwise, it will cause undriven pins in your device!!!

.. option:: shrink_boundary="<bool>"

Remove all the routing wires in empty regions. This is mainly used in non-rectangle FPGAs to avoid redundant routing wires in blank area, as illustrated in :numref:`fig_shrink_boundary`.
By default, it is ``false``.

.. _fig_shrink_boundary:

.. figure:: shrink_boundary.png
:width: 100%
:alt: Impact of shrink boundary

Impact on routing architecture when shrink-boundary: (a) disabled; (b) enabled.

.. warning:: Do NOT enable ``shrink_boundary`` if you are not using the tileable routing resource graph generator!

.. option:: perimeter_cb="<bool>"

Allow connection blocks to appear around the perimeter programmable block (mainly I/Os). This is designed to enhance routability of I/Os on perimeter. Also strongly recommended when programmable clock network is required to touch clock pins on I/Os. As illustrated in :numref:`fig_perimeter_cb`, routing tracks can access three sides of each I/O when perimeter connection blocks are created.
By default, it is ``false``.

.. warning:: When enabled, please only place outputs at one side of I/Os. For example, outputs of an I/O on the top side can only occur on the bottom side of the I/O tile. Otherwise, routability loss may be expected, leading to some pins cannot be reachable. Enable the ``opin2all_sides`` to recover routability loss.

.. _fig_perimeter_cb:

.. figure:: perimeter_cb.png
:width: 100%
:alt: Impact of perimeter_cb

Impact on routing architecture when perimeter connection blocks are : (a) disabled; (b) enabled.

.. warning:: Do NOT enable ``perimeter_cb`` if you are not using the tileable routing resource graph generator!

.. option:: opin2all_sides="<bool>"

Allow each output pin of a programmable block to drive the routing tracks on all the sides of its adjacent switch block (see an illustrative example in :numref:`fig_opin2all_sides`). This can improve the routability of an FPGA fabric with an increase in the sizes of routing multiplexers in each switch block.
By default, it is ``false``.

.. _fig_opin2all_sides:

.. figure:: opin2all_sides.svg
:width: 100%
:alt: Impact of opin2all_sides

Impact on routing architecture when the opin-to-all-sides: (a) disabled; (b) enabled.

.. warning:: Do NOT enable ``opin2all_sides`` if you are not using the tileable routing resource graph generator!

.. option:: concat_wire="<bool>"

In each switch block, allow each routing track which ends to drive another routing track on the opposite side, as such a wire can be continued in the same direction (see an illustrative example in :numref:`fig_concat_wire`). In other words, routing wires can be concatenated in the same direction across an FPGA fabric. This can improve the routability of an FPGA fabric with an increase in the sizes of routing multiplexers in each switch block.
By default, it is ``false``.

.. _fig_concat_wire:

.. figure:: concat_wire.svg
:width: 100%
:alt: Impact of concat_wire

Impact on routing architecture when the wire concatenation: (a) disabled; (b) enabled.

.. warning:: Do NOT enable ``concat_wire`` if you are not using the tileable routing resource graph generator!

.. option:: concat_pass_wire="<bool>"

In each switch block, allow each routing track which passes to drive another routing track on the opposite side, as such a pass wire can be continued in the same direction (see an illustrative example in :numref:`fig_concat_pass_wire`). This can improve the routability of an FPGA fabric with an increase in the sizes of routing multiplexers in each switch block.
By default, it is ``false``.

.. warning:: Please enable this option if you are looking for device support which is created by any release which is before v1.1.541!!!

.. _fig_concat_wire:

.. figure:: concat_pass_wire.svg
:width: 100%
:alt: Impact of concat_pass_wire

Impact on routing architecture when the pass wire concatenation: (a) disabled; (b) enabled.

.. warning:: Do NOT enable ``concat_pass_wire`` if you are not using the tileable routing resource graph generator!

A quick example to show tileable routing is enabled, other options, e.g., through channels are disabled:

.. code-block:: xml

<layout tileable="true" through_channel="false" shrink_boundary="false" opin2all_sides="false" concat_wire="false" concat_pass_wire="false">
</layout>

Switch Block
~~~~~~~~~~~~

``<switch_block>`` may include addition syntax to enable different connectivity for pass tracks

.. option:: sub_type="<string>"

Connecting type for pass tracks in each switch block
The supported connecting patterns are ``subset``, ``universal`` and ``wilton``, being the same as VPR capability
If not specified, the pass tracks will the same connecting patterns as start/end tracks, which are defined in ``type``

.. option:: sub_Fs="<int>"

Connectivity parameter for pass tracks in each switch block. Must be a multiple of 3.
If not specified, the pass tracks will the same connectivity as start/end tracks, which are defined in ``fs``

A quick example which defines a switch block
- Starting/ending routing tracks are connected in the ``wilton`` pattern
- Each starting/ending routing track can drive 3 other starting/ending routing tracks
- Passing routing tracks are connected in the ``subset`` pattern
- Each passing routing track can drive 6 other starting/ending routing tracks

.. code-block:: xml

<device>
<switch_block type="wilton" fs="3" sub_type="subset" sub_fs="6"/>
</device>

Routing Segments
~~~~~~~~~~~~~~~~

OpenFPGA suggests users to give explicit names for each routing segement in ``<segmentlist>``
This is used to link ``circuit_model`` to routing segments.

A quick example which defines a length-4 uni-directional routing segment called ``L4`` :

.. code-block:: xml

<segmentlist>
<segment name="L4" freq="1" length="4" type="undir"/>
</segmentlist>

.. note:: Currently, OpenFPGA only supports uni-directional routing architectures


.. _arch_metadata:

Architecture metadata
Expand Down
Binary file added doc/src/arch/shrink_boundary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/src/arch/thru_channel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading