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

2.3_control_flow.ipynb: thrid polynomial circuit exercise solution does not work #86

Open
dsw opened this issue Nov 27, 2019 · 1 comment

Comments

@dsw
Copy link

dsw commented Nov 27, 2019

On page 2.3_control_flow.ipynb, in the thrid polynomial circuit exercise, if I paste in the solution, it does not compile. Below is the message.

cmd2.sc:11: value \* is not a member of chisel3.SInt
    square := io.x \* io.x
                   ^cmd2.sc:13: value \* is not a member of chisel3.SInt
        result := (square - (2.S \* io.x)) + 1.S
                                 ^cmd2.sc:15: value \* is not a member of chisel3.SInt
        result := (2.S \* square) + (6.S \* io.x) + 3.S
                       ^cmd2.sc:15: value \* is not a member of chisel3.SInt
        result := (2.S \* square) + (6.S \* io.x) + 3.S
                                         ^cmd2.sc:17: value \* is not a member of chisel3.SInt
        result := (4.S \* square) - (10.S \* io.x) - 5.S
                       ^cmd2.sc:17: value \* is not a member of chisel3.SInt
        result := (4.S \* square) - (10.S \* io.x) - 5.S
                                          ^cmd2.sc:29: not found: value poly
      expect(c.io.fOfX, poly(select, x))
                        ^Compilation Failed
@dsw
Copy link
Author

dsw commented Nov 27, 2019

update: it seems that backslash star is not a Chisel operator. So the bug is that the solutions have backslashes before the start (multiply) operators.

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