Verilog to Routing - VPR
Public Member Functions | Data Fields | Friends
t_pl_loc Struct Reference

A placement location coordinate. More...

#include <vpr_types.h>

Public Member Functions

 t_pl_loc ()=default
 
 t_pl_loc (int xloc, int yloc, int sub_tile_loc)
 
t_pl_locoperator+= (const t_pl_offset &rhs)
 
t_pl_locoperator-= (const t_pl_offset &rhs)
 

Data Fields

int x = OPEN
 
int y = OPEN
 
int sub_tile = OPEN
 

Friends

t_pl_loc operator+ (t_pl_loc lhs, const t_pl_offset &rhs)
 
t_pl_loc operator+ (t_pl_offset lhs, const t_pl_loc &rhs)
 
t_pl_loc operator- (t_pl_loc lhs, const t_pl_offset &rhs)
 
t_pl_loc operator- (t_pl_offset lhs, const t_pl_loc &rhs)
 
t_pl_offset operator- (const t_pl_loc &lhs, const t_pl_loc &rhs)
 
bool operator< (const t_pl_loc &lhs, const t_pl_loc &rhs)
 
bool operator== (const t_pl_loc &lhs, const t_pl_loc &rhs)
 
bool operator!= (const t_pl_loc &lhs, const t_pl_loc &rhs)
 

Detailed Description

A placement location coordinate.

x: x-coordinate y: y-coordinate z: z-coordinate (capacity postion)

Note
t_pl_offset should be used to represent an offset between t_pl_loc.

Constructor & Destructor Documentation

◆ t_pl_loc() [1/2]

t_pl_loc::t_pl_loc ( )
default

◆ t_pl_loc() [2/2]

t_pl_loc::t_pl_loc ( int  xloc,
int  yloc,
int  sub_tile_loc 
)
inline

Member Function Documentation

◆ operator+=()

t_pl_loc& t_pl_loc::operator+= ( const t_pl_offset rhs)
inline

◆ operator-=()

t_pl_loc& t_pl_loc::operator-= ( const t_pl_offset rhs)
inline

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const t_pl_loc lhs,
const t_pl_loc rhs 
)
friend

◆ operator+ [1/2]

t_pl_loc operator+ ( t_pl_loc  lhs,
const t_pl_offset rhs 
)
friend

◆ operator+ [2/2]

t_pl_loc operator+ ( t_pl_offset  lhs,
const t_pl_loc rhs 
)
friend

◆ operator- [1/3]

t_pl_loc operator- ( t_pl_loc  lhs,
const t_pl_offset rhs 
)
friend

◆ operator- [2/3]

t_pl_loc operator- ( t_pl_offset  lhs,
const t_pl_loc rhs 
)
friend

◆ operator- [3/3]

t_pl_offset operator- ( const t_pl_loc lhs,
const t_pl_loc rhs 
)
friend

◆ operator<

bool operator< ( const t_pl_loc lhs,
const t_pl_loc rhs 
)
friend

◆ operator==

bool operator== ( const t_pl_loc lhs,
const t_pl_loc rhs 
)
friend

Field Documentation

◆ sub_tile

int t_pl_loc::sub_tile = OPEN

◆ x

int t_pl_loc::x = OPEN

◆ y

int t_pl_loc::y = OPEN

The documentation for this struct was generated from the following file: