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

ALU4B Solution - Unnecessary lines #1

Open
Mattia86 opened this issue May 5, 2018 · 1 comment
Open

ALU4B Solution - Unnecessary lines #1

Mattia86 opened this issue May 5, 2018 · 1 comment

Comments

@Mattia86
Copy link

Mattia86 commented May 5, 2018

Hi,
thanks for the solution; I just wanted to inform you the the last line:

  // is output negative?
  muxout.out[4] -> and.in1, 1 -> and.in2, and.out -> negative

is not necessary, since you can directly pass:
muxout.out[4] -> negative (and therefore even delete the AND gate completely).

Cheers ;)

@sunzenshen
Copy link
Owner

... huh, that's kind of obvious in retrospect!

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

2 participants