Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resubstitution #54

Merged
merged 35 commits into from Jul 29, 2018
Merged

Resubstitution #54

merged 35 commits into from Jul 29, 2018

Conversation

hriener
Copy link
Member

@hriener hriener commented Jul 27, 2018

This PR implements Boolean one- and two-resubstitution for MIGs (beyond node merging).

Copy link
Member

@msoeken msoeken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

return true; /* next */
}

if ( tts[ n ] != ternary_majority( tts[ u ], binary_and( tts[ x ], tts[ y ] ), tts[ n ] ) )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(tts[x] & tts[y]) could be used instead of binary_and(tts[x], tts[y])

@@ -111,6 +116,21 @@ class fanout_view<Ntk, false> : public Ntk
_fanout[ n ].push_back( p );
}

void substitute_node_of_parents( std::vector<node> parents, node const& old_node, signal const& new_signal )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should std::vector<node> const& parents

@@ -111,6 +116,21 @@ class fanout_view<Ntk, false> : public Ntk
_fanout[ n ].push_back( p );
}

void substitute_node_of_parents( std::vector<node> parents, node const& old_node, signal const& new_signal )
{
this->substitute_node_of_parents( parents, old_node, new_signal );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be Ntk::substitude_node_of_parents to call the original implementation.

@hriener hriener merged commit f0fa789 into master Jul 29, 2018
@hriener hriener deleted the resub1 branch July 29, 2018 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants