#include <sigtools.h>
Definition at line 212 of file sigtools.h.
Definition at line 226 of file sigtools.h.
void set(RTLIL::Module *module)
SigMap::SigMap |
( |
const SigMap & |
other | ) |
|
|
inline |
Definition at line 232 of file sigtools.h.
void copy(const SigMap &other)
Definition at line 347 of file sigtools.h.
351 for (
int i = 0; i <
GetSize(from); i++)
void merge_bit(const RTLIL::SigBit &bit1, const RTLIL::SigBit &bit2)
int GetSize(RTLIL::Wire *wire)
#define log_assert(_assert_expr_)
void set_bit(const RTLIL::SigBit &bit1, const RTLIL::SigBit &bit2)
void register_bit(const RTLIL::SigBit &bit)
Definition at line 369 of file sigtools.h.
371 for (
auto &bit : sig) {
void set_bit(const RTLIL::SigBit &bit1, const RTLIL::SigBit &bit2)
void register_bit(const RTLIL::SigBit &bit)
Definition at line 383 of file sigtools.h.
void map_bit(RTLIL::SigBit &bit) const
Definition at line 388 of file sigtools.h.
390 for (
auto &bit : sig)
void map_bit(RTLIL::SigBit &bit) const
Definition at line 263 of file sigtools.h.
265 std::set<shared_bit_data_t*> all_bd_ptr;
266 for (
auto &it :
bits)
267 all_bd_ptr.insert(it.second);
268 for (
auto bd_ptr : all_bd_ptr)
std::map< bitDef_t, shared_bit_data_t * > bits
void SigMap::copy |
( |
const SigMap & |
other | ) |
|
|
inline |
Definition at line 243 of file sigtools.h.
246 for (
auto &bit : other.
bits) {
247 bits[bit.first] =
new shared_bit_data_t;
248 bits[bit.first]->map_to = bit.second->map_to;
249 bits[bit.first]->bits = bit.second->bits;
std::map< bitDef_t, shared_bit_data_t * > bits
Definition at line 377 of file sigtools.h.
379 for (
auto &bit : sig)
void unregister_bit(const RTLIL::SigBit &bit)
Definition at line 341 of file sigtools.h.
343 if (bit.
wire &&
bits.count(bit) > 0)
344 bit =
bits.at(bit)->map_to;
std::map< bitDef_t, shared_bit_data_t * > bits
Definition at line 304 of file sigtools.h.
308 shared_bit_data_t *bd1 =
bits[bit1];
309 shared_bit_data_t *bd2 =
bits[bit2];
315 if (bd1->bits.size() < bd2->bits.size())
317 for (
auto &bit : bd1->bits)
319 bd2->bits.insert(bd1->bits.begin(), bd1->bits.end());
324 bd1->map_to = bd2->map_to;
325 for (
auto &bit : bd2->bits)
327 bd1->bits.insert(bd2->bits.begin(), bd2->bits.end());
std::map< bitDef_t, shared_bit_data_t * > bits
#define log_assert(_assert_expr_)
Definition at line 394 of file sigtools.h.
void apply(RTLIL::SigBit &bit) const
Definition at line 400 of file sigtools.h.
void apply(RTLIL::SigBit &bit) const
Definition at line 406 of file sigtools.h.
void apply(RTLIL::SigBit &bit) const
Definition at line 237 of file sigtools.h.
void copy(const SigMap &other)
Definition at line 281 of file sigtools.h.
283 if (bit.
wire &&
bits.count(bit) == 0) {
284 shared_bit_data_t *bd =
new shared_bit_data_t;
286 bd->bits.insert(bit);
std::map< bitDef_t, shared_bit_data_t * > bits
Definition at line 273 of file sigtools.h.
277 add(it.first, it.second);
const std::vector< RTLIL::SigSig > & connections() const
void add(RTLIL::SigSpec from, RTLIL::SigSpec to)
Definition at line 333 of file sigtools.h.
337 bits[bit1]->map_to = bit2;
std::map< bitDef_t, shared_bit_data_t * > bits
#define log_assert(_assert_expr_)
void SigMap::swap |
( |
SigMap & |
other | ) |
|
|
inline |
Definition at line 253 of file sigtools.h.
std::map< bitDef_t, shared_bit_data_t * > bits
Definition at line 292 of file sigtools.h.
294 if (bit.
wire &&
bits.count(bit) > 0) {
295 shared_bit_data_t *bd =
bits[bit];
297 if (bd->bits.size() == 0)
std::map< bitDef_t, shared_bit_data_t * > bits
The documentation for this struct was generated from the following file: