|
HAL
v4.5.0-258-gf372a0264
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
|
#include <hal_core/netlist/gate_library/gate_type_component/ram_component.h>


Public Member Functions | |
| ComponentType | get_type () const override |
| std::vector< GateTypeComponent * > | get_components (const std::function< bool(const GateTypeComponent *)> &filter=nullptr) const override |
| u32 | get_bit_size () const |
| void | set_bit_size (const u32 bit_size) |
| const std::vector< std::string > & | get_init_identifiers () const |
| void | set_init_identifiers (const std::vector< std::string > &init_identifiers) |
Public Member Functions inherited from hal::GateTypeComponent | |
| virtual | ~GateTypeComponent ()=default |
| template<typename T > | |
| T * | convert_to () |
| template<typename T > | |
| const T * | convert_to () const |
| GateTypeComponent * | get_component (const std::function< bool(const GateTypeComponent *)> &filter=nullptr) const |
| template<typename T > | |
| T * | get_component_as (const std::function< bool(const GateTypeComponent *)> &filter=nullptr) |
Static Public Member Functions | |
| static std::unique_ptr< RAMComponent > | create (std::unique_ptr< GateTypeComponent > component, const u32 bit_size, const std::vector< std::string > &init_identifiers={}) |
| static bool | is_class_of (const GateTypeComponent *component) |
Additional Inherited Members | |
Public Types inherited from hal::GateTypeComponent | |
| enum class | ComponentType { lut , ff , latch , ram , mac , init , state , ram_port , state_table } |
A gate type component that describes a random access memory, in particular its size in bits.
Definition at line 38 of file ram_component.h.
|
static |
Create a new RAMComponent with given child component.
| [in] | component | - Another component to be added as a child component. |
| [in] | bit_size | - The size of the RAM in bits. |
| [in] | init_identifiers | - The parameter names for initialization data. |
Definition at line 12 of file ram_component.cpp.
Referenced by hal::GateLibraryWizard::setComponents().
| u32 hal::RAMComponent::get_bit_size | ( | ) | const |
Get the size of the RAM in bits.
Definition at line 50 of file ram_component.cpp.
Referenced by hal::gate_type_components_init().
|
overridevirtual |
Get the sub-components of the gate type component. A user-defined filter may be applied to the result vector, but is disabled by default.
| [in] | filter | - The user-defined filter function applied to all candidate components. |
Implements hal::GateTypeComponent.
Definition at line 27 of file ram_component.cpp.
| const std::vector< std::string > & hal::RAMComponent::get_init_identifiers | ( | ) | const |
Get the parameter names used to find initialization data.
Definition at line 60 of file ram_component.cpp.
Referenced by hal::gate_type_components_init().
|
overridevirtual |
Get the type of the gate type component.
Implements hal::GateTypeComponent.
Definition at line 17 of file ram_component.cpp.
|
static |
Check whether a component is a RAMComponent.
| [in] | component | - The component to check. |
true if component is a RAMComponent, false otherwise. Definition at line 22 of file ram_component.cpp.
References hal::GateTypeComponent::get_type().
Referenced by hal::gate_type_components_init(), hal::RAMWizardPage::setData(), and hal::GateLibraryFrameRAM::update().
| void hal::RAMComponent::set_bit_size | ( | const u32 | bit_size | ) |
Set the size of the RAM in bits.
| [in] | bit_size | - The size of the RAM in bits. |
Definition at line 55 of file ram_component.cpp.
Referenced by hal::gate_type_components_init().
| void hal::RAMComponent::set_init_identifiers | ( | const std::vector< std::string > & | init_identifiers | ) |
Set the parameter names used to find initialization data.
| [in] | init_identifiers | - The vector of init identifier strings. |
Definition at line 65 of file ram_component.cpp.
Referenced by hal::gate_type_components_init().