Verilog to Routing - VPR
Public Member Functions | Private Member Functions | Private Attributes
DeviceGrid Class Reference

#include <device_grid.h>

Public Member Functions

 DeviceGrid ()=default
 
 DeviceGrid (std::string grid_name, vtr::Matrix< t_grid_tile > grid)
 
 DeviceGrid (std::string grid_name, vtr::Matrix< t_grid_tile > grid, std::vector< t_logical_block_type_ptr > limiting_res)
 
const std::string & name () const
 
size_t width () const
 
size_t height () const
 
auto operator[] (size_t index) const
 
auto operator[] (size_t index)
 
const vtr::Matrix< t_grid_tile > & matrix () const
 
void clear ()
 
size_t num_instances (t_physical_tile_type_ptr type) const
 
std::vector< t_logical_block_type_ptr > limiting_resources () const
 Returns the block types which limits the device size (may be empty if resource limits were not considered when selecting the device). More...
 

Private Member Functions

void count_instances ()
 

Private Attributes

std::string name_
 
vtr::Matrix< t_grid_tilegrid_
 
std::map< t_physical_tile_type_ptr, size_t > instance_counts_
 
std::vector< t_logical_block_type_ptr > limiting_resources_
 

Constructor & Destructor Documentation

◆ DeviceGrid() [1/3]

DeviceGrid::DeviceGrid ( )
default

◆ DeviceGrid() [2/3]

DeviceGrid::DeviceGrid ( std::string  grid_name,
vtr::Matrix< t_grid_tile grid 
)

◆ DeviceGrid() [3/3]

DeviceGrid::DeviceGrid ( std::string  grid_name,
vtr::Matrix< t_grid_tile grid,
std::vector< t_logical_block_type_ptr >  limiting_res 
)

Member Function Documentation

◆ clear()

void DeviceGrid::clear ( )

◆ count_instances()

void DeviceGrid::count_instances ( )
private

◆ height()

size_t DeviceGrid::height ( ) const
inline

◆ limiting_resources()

std::vector<t_logical_block_type_ptr> DeviceGrid::limiting_resources ( ) const
inline

Returns the block types which limits the device size (may be empty if resource limits were not considered when selecting the device).

◆ matrix()

const vtr::Matrix<t_grid_tile>& DeviceGrid::matrix ( ) const
inline

◆ name()

const std::string& DeviceGrid::name ( ) const
inline

◆ num_instances()

size_t DeviceGrid::num_instances ( t_physical_tile_type_ptr  type) const

◆ operator[]() [1/2]

auto DeviceGrid::operator[] ( size_t  index) const
inline

◆ operator[]() [2/2]

auto DeviceGrid::operator[] ( size_t  index)
inline

◆ width()

size_t DeviceGrid::width ( ) const
inline

Field Documentation

◆ grid_

vtr::Matrix<t_grid_tile> DeviceGrid::grid_
private

◆ instance_counts_

std::map<t_physical_tile_type_ptr, size_t> DeviceGrid::instance_counts_
private

◆ limiting_resources_

std::vector<t_logical_block_type_ptr> DeviceGrid::limiting_resources_
private

◆ name_

std::string DeviceGrid::name_
private

The documentation for this class was generated from the following files: