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

Some logical doubts in find_voter_insertion_points.py #33

Open
zywbjj opened this issue Dec 26, 2023 · 0 comments
Open

Some logical doubts in find_voter_insertion_points.py #33

zywbjj opened this issue Dec 26, 2023 · 0 comments

Comments

@zywbjj
Copy link

zywbjj commented Dec 26, 2023

spydrnet_tmr/analysis/voter_insertion/find_voter_insertion_points.py

Line 153-158

if (has_non_redundant and not has_redundant) or 
(has_redundant and reduction_voter in reduction_and_feedback_voter):
                # has non-redundant and redundant endpoints -> normal voter insertion
                # has only redundant endpoints and is feedback voter as well -> normal voter insertion
                outer_pin = next(sub_pin.get_pins(selection="OUTSIDE"))
                insertion_points.append(outer_pin)

Line 161-166

elif (
                has_non_redundant
                and has_redundant
                and reduction_voter not in reduction_and_feedback_voter
            ):
                # has only non-redundant feedback -> insert special voters
                non_redundant_instances = set(
                    x for x in instances if x not in endpoints_to_replicate
                )
                non_redundant_pins = set()
  1. According to the meaning of the comment paragraph in the if block "# has non-redundant and redundant endpoints -> normal voter insertion # has only redundant endpoints and is feedback voter as well -> normal voter insertion", the judgment condition should be
if (has_non_redundant and has_redundant) 
or (has_redundant and not has_non_redundant and reduction_voter in reduction_and_feedback_voter):
  1. "# has only non-redundant feedback -> insert special voters" in the elif block means
elif (
                has_non_redundant
                and not has_redundant
                and reduction_voter not in reduction_and_feedback_voter
            ):
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

No branches or pull requests

1 participant