ZLayout EDA Library v1.0.0
Advanced Electronic Design Automation Layout Library with Bilingual Documentation
|
Power Management Unit (PMU) IP Block. More...
#include <ip_blocks.hpp>
Public Types | |
enum class | PowerState { Active , Idle , Standby , Sleep , DeepSleep , Shutdown } |
Public Member Functions | |
PowerManagementUnit (const std::string &name) | |
void | addPowerDomain (const std::string &domain, double voltage, double current) |
void | removePowerDomain (const std::string &domain) |
double | getVoltage (const std::string &domain) const |
void | setVoltage (const std::string &domain, double voltage) |
double | getCurrent (const std::string &domain) const |
double | getTotalPower () const |
PowerState | getPowerState () const |
void | setPowerState (PowerState state) |
void | enableDVFS (bool enable) |
bool | isDVFSEnabled () const |
void | simulate (double time_step) override |
std::string | getDescription () const override |
Public Member Functions inherited from zlayout::components::Component | |
Component (const std::string &name, ComponentCategory category) | |
virtual | ~Component ()=default |
const std::string & | getName () const |
const std::string & | getType () const |
ComponentCategory | getCategory () const |
void | setName (const std::string &name) |
void | setType (const std::string &type) |
void | addChild (std::shared_ptr< Component > child) |
void | removeChild (const std::string &name) |
std::shared_ptr< Component > | getChild (const std::string &name) const |
const std::vector< std::shared_ptr< Component > > & | getChildren () const |
std::shared_ptr< Component > | getParent () const |
void | setParent (std::shared_ptr< Component > parent) |
const geometry::Rectangle & | getBoundingBox () const |
void | setBoundingBox (const geometry::Rectangle &bbox) |
geometry::Point | getPosition () const |
void | setPosition (const geometry::Point &pos) |
double | getRotation () const |
void | setRotation (double angle) |
void | addPin (std::shared_ptr< Pin > pin) |
void | removePin (const std::string &name) |
std::shared_ptr< Pin > | getPin (const std::string &name) const |
const std::vector< std::shared_ptr< Pin > > & | getPins () const |
void | setProperty (const std::string &key, const std::string &value) |
std::string | getProperty (const std::string &key) const |
const std::map< std::string, std::string > & | getProperties () const |
void | setTimingInfo (const TimingInfo &timing) |
const TimingInfo & | getTimingInfo () const |
void | setPowerInfo (const PowerInfo &power) |
const PowerInfo & | getPowerInfo () const |
void | setElectricalInfo (const ElectricalInfo &electrical) |
const ElectricalInfo & | getElectricalInfo () const |
void | setTechNode (TechNode node) |
TechNode | getTechNode () const |
virtual void | reset () |
virtual geometry::Rectangle | calculateHierarchicalBoundingBox () const |
virtual double | calculateTotalArea () const |
virtual size_t | getTotalGateCount () const |
virtual std::vector< std::shared_ptr< Component > > | flattenHierarchy () const |
virtual std::string | serialize () const |
virtual void | deserialize (const std::string &data) |
Additional Inherited Members | |
Protected Attributes inherited from zlayout::components::Component | |
std::string | name_ |
std::string | type_ |
ComponentCategory | category_ |
std::vector< std::shared_ptr< Component > > | children_ |
std::weak_ptr< Component > | parent_ |
geometry::Rectangle | bounding_box_ |
geometry::Point | position_ |
double | rotation_ = 0.0 |
std::vector< std::shared_ptr< Pin > > | pins_ |
std::unordered_map< std::string, std::shared_ptr< Pin > > | pin_map_ |
std::map< std::string, std::string > | properties_ |
TimingInfo | timing_ |
PowerInfo | power_ |
ElectricalInfo | electrical_ |
TechNode | tech_node_ = TechNode::um_7 |
Power Management Unit (PMU) IP Block.
Definition at line 367 of file ip_blocks.hpp.
|
strong |
Enumerator | |
---|---|
Active | |
Idle | |
Standby | |
Sleep | |
DeepSleep | |
Shutdown |
Definition at line 369 of file ip_blocks.hpp.
zlayout::components::PowerManagementUnit::PowerManagementUnit | ( | const std::string & | name | ) |
void zlayout::components::PowerManagementUnit::addPowerDomain | ( | const std::string & | domain, |
double | voltage, | ||
double | current ) |
|
inline |
Definition at line 397 of file ip_blocks.hpp.
double zlayout::components::PowerManagementUnit::getCurrent | ( | const std::string & | domain | ) | const |
|
overridevirtual |
Reimplemented from zlayout::components::Component.
|
inline |
Definition at line 393 of file ip_blocks.hpp.
double zlayout::components::PowerManagementUnit::getTotalPower | ( | ) | const |
double zlayout::components::PowerManagementUnit::getVoltage | ( | const std::string & | domain | ) | const |
|
inline |
Definition at line 398 of file ip_blocks.hpp.
void zlayout::components::PowerManagementUnit::removePowerDomain | ( | const std::string & | domain | ) |
void zlayout::components::PowerManagementUnit::setPowerState | ( | PowerState | state | ) |
void zlayout::components::PowerManagementUnit::setVoltage | ( | const std::string & | domain, |
double | voltage ) |
|
overridevirtual |
Reimplemented from zlayout::components::Component.