PandA-2024.02
Public Member Functions | Private Attributes
updatecopy_HLS_constraints_functor Struct Reference

constraint functor used by get_attribute_of_fu_per_op More...

#include <allocation_information.hpp>

Public Member Functions

unsigned int operator() (const unsigned int name) const
 Required functor function used to compute the number of resources associated with the given resource. More...
 
void update (const unsigned int name, int delta)
 Function used to update the copy of the technology constraints. More...
 
 updatecopy_HLS_constraints_functor (const AllocationInformationRef allocation_information)
 Constructor. More...
 
 ~updatecopy_HLS_constraints_functor ()=default
 Destructor. More...
 

Private Attributes

std::vector< unsigned int > tech
 copy of the technology constraints More...
 

Detailed Description

constraint functor used by get_attribute_of_fu_per_op

Definition at line 1062 of file allocation_information.hpp.

Constructor & Destructor Documentation

◆ updatecopy_HLS_constraints_functor()

updatecopy_HLS_constraints_functor::updatecopy_HLS_constraints_functor ( const AllocationInformationRef  allocation_information)
explicit

Constructor.

Parameters
ALLis the reference to allocation class where technology constraints are stored

Definition at line 1813 of file allocation_information.cpp.

◆ ~updatecopy_HLS_constraints_functor()

updatecopy_HLS_constraints_functor::~updatecopy_HLS_constraints_functor ( )
default

Destructor.

Member Function Documentation

◆ operator()()

unsigned int updatecopy_HLS_constraints_functor::operator() ( const unsigned int  name) const

Required functor function used to compute the number of resources associated with the given resource.

Parameters
nameis the name of the resource
Returns
the number of resources of name

Definition at line 1799 of file allocation_information.cpp.

References tech.

◆ update()

void updatecopy_HLS_constraints_functor::update ( const unsigned int  name,
int  delta 
)

Function used to update the copy of the technology constraints.

Parameters
nameis the id of the resource
thenumber of delta resources

Definition at line 1804 of file allocation_information.cpp.

References INFINITE_UINT, and tech.

Field Documentation

◆ tech

std::vector<unsigned int> updatecopy_HLS_constraints_functor::tech
private

copy of the technology constraints

Definition at line 1091 of file allocation_information.hpp.

Referenced by operator()(), and update().


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

Generated on Mon Feb 12 2024 13:04:09 for PandA-2024.02 by doxygen 1.8.13