Tincr  0.0
A Tcl-based CAD Tool Framework for Xilinx's Vivado Design Suite
Functions
tincr::tiles Namespace Reference

The tiles ensemble encapsulates the tile class from Vivado's Tcl data structure. More...

Functions

 test args
 
 get args
 
 num_rows
 
 num_cols
 
 unique
 
 iterate args
 
 get_types
 
 manhattan_distance tile1 tile2
 

Detailed Description

The tiles ensemble encapsulates the tile class from Vivado's Tcl data structure.

Function Documentation

◆ get_types()

tincr::tiles::get_types

Get a list of all tile types present in the current device. This returned list will be a subset of the list of all possible site types returned by the Vivado command: list_property_value TILE_TYPE -class tile.

Returns
A sorted list of all tile types present in the current device.

◆ iterate()

tincr::tiles::iterate   args  

Iterates over every tile on the part, while executing a given script. TODO Fix the arguments.

◆ manhattan_distance()

tincr::tiles::manhattan_distance   tile1 tile2  

Get the Manhattan distance between two tiles. The Manhattan distance is calculated using the tile coordinates as follows: distance = |tile1_x - tile2_x| + |tile1_y - tile2_y|

Parameters
tile1The start tile.
tile2The end tile.
Returns
The Manhattan distance between the two tiles or -1 if the arguments are invalid.

◆ num_cols()

tincr::tiles::num_cols

Get the number of columns in a part. For unknown reasons, this number is not stored as a property in the device object, and can only be obtained by iterating through all tiles and returning the maximum column value.

Returns
The number of columns of tiles in the current part.

◆ num_rows()

tincr::tiles::num_rows

Get the number of rows in a part. For unknown reasons, this number is not stored as a property in the device object, and can only be obtained by iterating through all tiles and returning the maximum row value.

Returns
The number of rows of tiles in the current part.

◆ unique()

tincr::tiles::unique

Get a dictionary that contains one tile object of each tile type.

Returns
A Tcl dict that maps each tile type to one tile object in the current part.