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

Mux(<bool>, a, b) throws TypeError #240

Closed
emilazy opened this issue Sep 29, 2019 · 0 comments
Closed

Mux(<bool>, a, b) throws TypeError #240

emilazy opened this issue Sep 29, 2019 · 0 comments
Labels
Milestone

Comments

@emilazy
Copy link
Contributor

emilazy commented Sep 29, 2019

  File "/nix/store/9343idj1kmww2y4g3z4z4c3wll12k1za-glasgow-unstable/lib/python3.7/site-packages/glasgow/applet/internal/lightshow/__init__.py", line 17, in counter
    d += ctr.eq(Mux(ctr == 0, ctr.reset, Mux(up, ctr + 1, ctr - 1)))
  File "/nix/store/k29x6nyc4wi1jq2833xsv36bfgclgi77-python3.7-nmigen-unstable-2019-09-28/lib/python3.7/site-packages/nmigen/hdl/ast.py", line 526, in Mux
    if len(sel) != 1:
TypeError: object of type 'bool' has no len()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants