![]() |
HAL
|
#include <boolean_function_net_decorator.h>
Public Member Functions | |
BooleanFunctionNetDecorator (const Net &net) | |
BooleanFunction | get_boolean_variable () const |
std::string | get_boolean_variable_name () const |
Static Public Member Functions | |
static Result< Net * > | get_net_from (const Netlist *netlist, const BooleanFunction &var) |
static Result< Net * > | get_net_from (const Netlist *netlist, const std::string &var_name) |
static Result< u32 > | get_net_id_from (const BooleanFunction &var) |
static Result< u32 > | get_net_id_from (const std::string &var_name) |
A net decorator that provides functionality to translate between nets and Boolean function variables.
Definition at line 39 of file boolean_function_net_decorator.h.
hal::BooleanFunctionNetDecorator::BooleanFunctionNetDecorator | ( | const Net & | net | ) |
Construct new BooleanFunctionNetDecorator object.
[in] | net | - The net to operate on. |
Definition at line 9 of file boolean_function_net_decorator.cpp.
BooleanFunction hal::BooleanFunctionNetDecorator::get_boolean_variable | ( | ) | const |
Generate a unique Boolean variable representing the given net.
Definition at line 13 of file boolean_function_net_decorator.cpp.
References get_boolean_variable_name(), and hal::BooleanFunction::Var().
Referenced by hal::boolean_function_net_decorator_init(), and hal::solve_fsm::solve_fsm().
std::string hal::BooleanFunctionNetDecorator::get_boolean_variable_name | ( | ) | const |
Generate a unique Boolean variable name representing the given net.
Definition at line 18 of file boolean_function_net_decorator.cpp.
References hal::Net::get_id().
Referenced by hal::boolean_function_net_decorator_init(), hal::BooleanFunctionDecorator::get_boolean_function_from(), get_boolean_variable(), and hal::solve_fsm::solve_fsm_brute_force().
|
static |
Get the net represented by a unique Boolean variable.
[in] | netlist | - The netlist on which to operate. |
[in] | var | - The Boolean variable. |
Definition at line 44 of file boolean_function_net_decorator.cpp.
References ERR_APPEND, hal::BooleanFunction::get_variable_name(), test_multiple::netlist, and hal::BooleanFunction::to_string().
Referenced by hal::boolean_function_net_decorator_init(), hal::BooleanFunctionDecorator::substitute_module_pins(), and hal::BooleanFunctionDecorator::substitute_power_ground_nets().
|
static |
Get the net represented by a unique Boolean variable name.
[in] | netlist | - The netlist on which to operate. |
[in] | var_name | - The Boolean variable name. |
Definition at line 23 of file boolean_function_net_decorator.cpp.
References ERR, test_multiple::netlist, and OK.
|
static |
Get the net id represented by a unique Boolean variable.
[in] | var | - The Boolean variable. |
Definition at line 84 of file boolean_function_net_decorator.cpp.
References ERR_APPEND, hal::BooleanFunction::get_variable_name(), and hal::BooleanFunction::to_string().
|
static |
Get the net id represented by a unique Boolean variable name.
[in] | var_name | - The Boolean variable name. |
Definition at line 63 of file boolean_function_net_decorator.cpp.