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

Potential issue with Ring[T].zero for Complex #87

Open
shunshou opened this issue Mar 20, 2017 · 1 comment
Open

Potential issue with Ring[T].zero for Complex #87

shunshou opened this issue Mar 20, 2017 · 1 comment

Comments

@shunshou
Copy link
Member

shunshou commented Mar 20, 2017

Not really sure what's going on and I found a way around it -- but I was getting non-synthesizable node errors by directly assigning Complex to Ring[T].zero where T <: Data:RealBits.

Just making a note for the future.

Workaround was to individually assign real/imag to Lits.

Also, this wasn't a problem with FixedPoint, only with DspReal.

@shunshou
Copy link
Member Author

@chick

val zero = Ring[DspComplex[T]].zero

Gives

 java.lang.IllegalArgumentException: requirement failed: can't create Mux with non-equivalent types dsptools.numbers.DspComplex@c1 and dsptools.numbers.DspComplex@9d

When I mux the zero in.

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