Skip to content

Commit cea8247

Browse files
committed
nitpicks
1 parent f130148 commit cea8247

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

doc/src/vpr/command_line_usage.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ VPR runs all stages of (pack, place, route, and analysis) if none of :option:`--
9797

9898
.. option:: --legalize
9999

100-
Reconstruct a clustering and placement solution from an input flat placement file (use of this option supercedes option:: --pack).
100+
Reconstruct a clustering and placement solution from an input flat placement file.
101+
Use of this option supercedes option:: --pack.
101102

102103
**Default:** ``off``
103104

@@ -1870,7 +1871,8 @@ The following options are available when VPR's legalizer is invoked to reconstru
18701871

18711872
.. option:: --write_fixed_clusters <file>
18721873

1873-
Write out a (possibly incomplete) clustered placement file listing placement coordinates for clusters reconstructed from an input flat placement file. If placement is run after the legalizer, this file is automatically set as an input placement constraints file.
1874+
Write out a (possibly incomplete) clustered placement file listing placement coordinates for clusters reconstructed from an input flat placement file.
1875+
If placement is run after legalization, this file is automatically set as an input placement constraints file.
18741876

18751877
**Default:** ``fixed_clusters.out``
18761878

doc/src/vpr/file_formats.rst

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -747,13 +747,18 @@ inferring mode and intra-cluster routing information and correcting legality vio
747747

748748
Each line in the flat placement file corresponds to a netlist primitive and has the following format::
749749

750-
primitive_name X Y Subtile Site # optional extra info
750+
primitive_name X Y subtile site # optional extra info
751751

752752
The ``primitive_name`` is the netlist name of the primitive (see :ref:`VPR netlist naming conventions<vpr_blif_naming_convention_primitives>`).
753-
``X``, ``Y``, and ``Subtile`` describe the placement coordinates of the complex block within which the primitive should be placed (see :ref:`VPR Placement File Format<vpr_place_file>`).
754-
``Site`` is the ``flat site index`` on which the primitive should be placed. The flat site index is the index of a primitive site within its primitive type within its complex block type. Values are in [0...total_primitive_count-1], e.g. if there are 10 ALMs per cluster, 2 FFS and 2 LUTs per ALM, then flat site indices for FFs would run from 0 to 19, and flat site indices for LUTs would run from 0 to 19.
753+
754+
``X``, ``Y``, and ``subtile`` describe the placement coordinates of the complex block within which the primitive should be placed (see :ref:`VPR Placement File Format<vpr_place_file>`).
755+
756+
The``site`` specifies the ``flat site index`` of the primitive site on which the primitive should be placed, i.e. the index of the primitive type site within its complex block type. For example, if there are 10 ALMs per cluster, 2 FFs and 2 LUTs per ALM, then flat site indices for FFs and LUTs would each run from 0 to 19.
757+
755758
Optional information, e.g. cluster index or primitive type name, may be included after the `Site`; the legalizer ignores this information.
756759

760+
.. note:: The primitives in a flat placement file can be listed in any order.
761+
757762
Example flat placement file entries are shown below:
758763

759764
.. code-block:: none
@@ -791,14 +796,14 @@ Example flat placement file entries are shown below:
791796
hh_core:hh_core_0|Add0~74 53 24 0 18 # 86 lcell_comb
792797
hh_core:hh_core_0|Add0~78 53 24 0 19 # 86 lcell_comb
793798
794-
For complex pack molecules such as carry chains (see :ref: `Pack Patterns in <arch_complex_blocks>`), it is only necessary to include the root primitive in the flat placement file; the legalizer ignores non-root primitives and places all primitives in each pack molecule based on the root primitive entry. In the example file above, all lcell_comb instances shown are part of a carry chain segment, and so all except the root primitive are ignored.
799+
For complex pack molecules such as carry chains (see :ref:`Pack Patterns in <arch_complex_blocks>`), it is only necessary to include the root primitive in the flat placement file; the legalizer ignores non-root primitives and places all primitives in each pack molecule based on the root primitive entry. In the example file above, all lcell_comb instances shown are part of a carry chain segment, and so all except the root primitive are ignored.
795800
VPR's legalizer does not require the flat placement file to contain every primitive in the netlist; it will reconstruct the portion of the netlist and print a warning if the file does not cover the entire netlist. This functionality is useful for debugging legalization in an external placement tool.
796801

797-
.. note:: Use :option:`vpr --legalize` and `vpr --flat_place_file <file>` to invoke the legalizer and specify an input flat placement file.
802+
.. note:: Use :option:`vpr --legalize` and :option:`vpr --flat_place_file <file>` to invoke the legalizer and specify an input flat placement file.
798803

799804
.. note: Use :option:`vpr --write_flat_place <file>` to write out a post-placement flat placement file. Use :option:`vpr --echo_file on` to write out a (possibly incomplete) post-legalization flat placement file (the file will be named `post_legalizer_flat_placement.echo`).
800805
801-
.. note: A flat placement file must correspond to a specific XML architecture file and a specific fixed size device layout (see :ref: `FPGA Grid Layout <arch_grid_layout>`). Use :option:`vpr --device <fixed layout name>` to specify a fixed device layout.
806+
.. note: A flat placement file must correspond to a specific XML architecture file and a specific fixed size device layout (see :ref:`FPGA Grid Layout <arch_grid_layout>`). Use :option:`vpr --device <fixed layout name>` to specify a fixed device layout.
802807
803808
.. _vpr_route_resource_file:
804809

0 commit comments

Comments
 (0)