Horizon
|
A block is one level of hierarchy in the netlist. More...
#include <block.hpp>
Public Member Functions | |
Block (const UUID &uu, const json &, Pool &pool) | |
Block (const UUID &uu) | |
Net * | get_net (const UUID &uu) |
std::string | get_group_name (const UUID &uu) const |
std::string | get_tag_name (const UUID &uu) const |
std::map< const class Part *, BOMRow > | get_BOM (const BOMExportSettings &settings) const |
Block (const Block &block) | |
void | operator= (const Block &block) |
void | merge_nets (Net *net, Net *into) |
void | vacuum_nets () |
deletes unreferenced nets | |
void | vacuum_group_tag_names () |
Net * | extract_pins (const std::set< UUIDPath< 3 >> &pins, Net *net=nullptr) |
Takes pins specified by pins and moves them over to net. More... | |
void | update_connection_count () |
void | update_diffpairs () |
Net * | insert_net () |
creates new net More... | |
json | serialize () |
Static Public Member Functions | |
static Block | new_from_file (const std::string &filename, Pool &pool) |
Public Attributes | |
UUID | uuid |
std::string | name |
std::map< UUID, Net > | nets |
std::map< UUID, Bus > | buses |
std::map< UUID, Component > | components |
std::map< UUID, NetClass > | net_classes |
uuid_ptr< NetClass > | net_class_default = nullptr |
std::map< UUID, std::string > | group_names |
std::map< UUID, std::string > | tag_names |
BOMExportSettings | bom_export_settings |
A block is one level of hierarchy in the netlist.
Right now, horizon doesn't support hierarchical designs, but provisions have been made where necessary.
A block stores Components (instances of Entities), Buses and Nets.