PandA-2024.02
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes
area_info Class Reference

#include <area_info.hpp>

Collaboration diagram for area_info:
Collaboration graph
[legend]

Public Types

using value_t = enum { REGISTERS, SLICE, SLICE_LUTS, LUT_FF_PAIRS, ALMS, LOGIC_ELEMENTS, FUNCTIONAL_ELEMENTS, LOGIC_AREA, DSP, BRAM, DRAM, POWER, URAM }
 type of resources More...
 

Public Member Functions

void print (std::ostream &os) const
 Print method. More...
 
void set_area_value (const double &_area_)
 Set the nominal value for the area of the component. More...
 
double get_area_value () const
 Return the nominal value for the area of the component. More...
 
void set_resource_value (value_t val, double num)
 
bool is_used_resource (value_t val) const
 
double get_resource_value (value_t val) const
 
Constructors and Destructors.
 area_info (const ParameterConstRef &_Param)
 Constructor. More...
 
 ~area_info ()
 Destructor. More...
 

Static Public Member Functions

static area_infoRef factory (const ParameterConstRef &Param)
 Factory method. More...
 

Static Public Attributes

static const double area_DEFAULT = 1.0
 default area value More...
 

Private Attributes

double area
 a double value representing the area of the component More...
 
std::map< value_t, double > used_resources
 resources required for the component More...
 
const ParameterConstRef Param
 class containing all the parameters More...
 

Detailed Description

Definition at line 51 of file area_info.hpp.

Member Typedef Documentation

◆ value_t

using area_info::value_t = enum { REGISTERS, SLICE, SLICE_LUTS, LUT_FF_PAIRS, ALMS, LOGIC_ELEMENTS, FUNCTIONAL_ELEMENTS, LOGIC_AREA, DSP, BRAM, DRAM, POWER, URAM }

type of resources

Definition at line 69 of file area_info.hpp.

Constructor & Destructor Documentation

◆ area_info()

area_info::area_info ( const ParameterConstRef _Param)
explicit

Constructor.

Definition at line 46 of file area_info.cpp.

References ~area_info().

Referenced by factory().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~area_info()

area_info::~area_info ( )
default

Destructor.

Referenced by area_info().

Here is the caller graph for this function:

Member Function Documentation

◆ factory()

area_infoRef area_info::factory ( const ParameterConstRef Param)
static

◆ get_area_value()

double area_info::get_area_value ( ) const

Return the nominal value for the area of the component.

Definition at line 57 of file area_info.cpp.

References area.

Referenced by SynthesisEvaluation::Exec(), AllocationInformation::get_area(), functional_unit::print(), and functional_unit::xwrite().

Here is the caller graph for this function:

◆ get_resource_value()

double area_info::get_resource_value ( value_t  val) const

Definition at line 77 of file area_info.cpp.

References is_used_resource(), and used_resources.

Referenced by SynthesisEvaluation::Exec(), AllocationInformation::get_area(), allocation::get_compliant_pipelined_unit(), AllocationInformation::get_DSPs(), AllocationInformation::InitializeMuxDB(), and functional_unit::xwrite().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_used_resource()

bool area_info::is_used_resource ( value_t  val) const

Definition at line 72 of file area_info.cpp.

References used_resources.

Referenced by get_resource_value().

Here is the caller graph for this function:

◆ print()

void area_info::print ( std::ostream &  os) const

Print method.

Definition at line 86 of file area_info.cpp.

References used_resources.

◆ set_area_value()

void area_info::set_area_value ( const double &  _area_)

Set the nominal value for the area of the component.

Definition at line 62 of file area_info.cpp.

References area.

Referenced by XilinxBackendFlow::CheckSynthesisResults(), functional_unit::xload(), XilinxBackendFlow::xparse_map_utilization(), and XilinxBackendFlow::xparse_xst_utilization().

Here is the caller graph for this function:

◆ set_resource_value()

void area_info::set_resource_value ( value_t  val,
double  num 
)

Field Documentation

◆ area

double area_info::area
private

a double value representing the area of the component

Definition at line 73 of file area_info.hpp.

Referenced by get_area_value(), and set_area_value().

◆ area_DEFAULT

const double area_info::area_DEFAULT = 1.0
static

default area value

Definition at line 118 of file area_info.hpp.

◆ Param

const ParameterConstRef area_info::Param
private

class containing all the parameters

Definition at line 79 of file area_info.hpp.

◆ used_resources

std::map<value_t, double> area_info::used_resources
private

resources required for the component

Definition at line 76 of file area_info.hpp.

Referenced by get_resource_value(), is_used_resource(), print(), and set_resource_value().


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

Generated on Mon Feb 12 2024 13:03:44 for PandA-2024.02 by doxygen 1.8.13