mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-08 12:11:24 +00:00
Renamed SIZE() to GetSize() because of name collision on Win32
This commit is contained in:
parent
c7f5aab625
commit
4569a747f8
48 changed files with 447 additions and 447 deletions
|
@ -30,8 +30,8 @@ PRIVATE_NAMESPACE_BEGIN
|
|||
|
||||
static bool pattern_is_subset(const RTLIL::Const &super_pattern, const RTLIL::Const &sub_pattern)
|
||||
{
|
||||
log_assert(SIZE(super_pattern.bits) == SIZE(sub_pattern.bits));
|
||||
for (int i = 0; i < SIZE(super_pattern.bits); i++)
|
||||
log_assert(GetSize(super_pattern.bits) == GetSize(sub_pattern.bits));
|
||||
for (int i = 0; i < GetSize(super_pattern.bits); i++)
|
||||
if (sub_pattern.bits[i] == RTLIL::State::S0 || sub_pattern.bits[i] == RTLIL::State::S1) {
|
||||
if (super_pattern.bits[i] == RTLIL::State::S0 || super_pattern.bits[i] == RTLIL::State::S1) {
|
||||
if (super_pattern.bits[i] != sub_pattern.bits[i])
|
||||
|
@ -91,7 +91,7 @@ static void implement_pattern_cache(RTLIL::Module *module, std::map<RTLIL::Const
|
|||
if (pattern_is_subset(pattern, it2.first))
|
||||
complete_in_state_cache.insert(it2.second.begin(), it2.second.end());
|
||||
|
||||
if (SIZE(complete_in_state_cache) < num_states)
|
||||
if (GetSize(complete_in_state_cache) < num_states)
|
||||
{
|
||||
if (or_sig.size() == 1)
|
||||
{
|
||||
|
@ -226,7 +226,7 @@ static void map_fsm(RTLIL::Cell *fsm_cell, RTLIL::Module *module)
|
|||
|
||||
// generate next_state signal
|
||||
|
||||
if (SIZE(fsm_data.state_table) == 1)
|
||||
if (GetSize(fsm_data.state_table) == 1)
|
||||
{
|
||||
module->connect(next_state_wire, fsm_data.state_table.front());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue