2 #include "common/common.hpp"
3 #include "nlohmann/json_fwd.hpp"
5 #include "util/uuid.hpp"
6 #include "util/uuid_path.hpp"
7 #include "util/uuid_ptr.hpp"
8 #include "util/uuid_vec.hpp"
9 #include "util/item_set.hpp"
24 json serialize()
const;
45 UUID get_uuid()
const;
48 const class Entity *entity =
nullptr;
49 const class Part *part =
nullptr;
54 bool nopopulate =
false;
58 enum class NopopulateFromInstance { SET, CLEAR, UNSET };
59 NopopulateFromInstance nopopulate_from_instance = NopopulateFromInstance::UNSET;
61 bool get_nopopulate()
const;
63 const std::string &get_prefix()
const;
78 std::set<UUID> pin_names;
79 bool use_primary_name =
false;
80 bool use_custom_name =
false;
82 std::string custom_name;
83 Pin::Direction custom_direction = Pin::Direction::BIDIRECTIONAL;
85 void update_for_index(
int index,
const Pin &pin);
87 json serialize()
const;
92 Pin::Direction get_effective_direction(
const UUIDPath<2> &path)
const;
94 std::string replace_text(
const std::string &t,
bool *replaced =
nullptr)
const;
96 ItemSet get_pool_items_used()
const;
98 json serialize()
const;
A block is one level of hierarchy in the netlist.
Definition: block.hpp:29
used to select alternate pin names
Definition: component.hpp:74
A Component is an instanced Entity in a Block.
Definition: component.hpp:40
std::map< UUIDPath< 2 >, Connection > connections
which Nins are connected to which Net the UUIDPath consists of Gate and Pin UUID
Definition: component.hpp:69
Definition: component.hpp:16
Definition: entity.hpp:13
A Pin represents a logical pin of a Unit.
Definition: unit.hpp:16
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
Definition: uuid_ptr.hpp:8
a class to store JSON values
Definition: json.hpp:177
basic_json<> json
default JSON class
Definition: json_fwd.hpp:62