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

Compillation breaks: assigning to 'CData' (aka 'unsigned char') from incompatible type 'CData [3]' #2142

yurivict opened this issue Jan 29, 2020 · 2 comments


Copy link

@yurivict yurivict commented Jan 29, 2020

./Vtest_bench.cpp:1470:19: error: assigning to 'CData' (aka 'unsigned char') from incompatible type 'CData [3]'
        = vlTOPp->test_bench__DOT____Vcellinp__x____pinNumber3;

I couldn't minimize a testcase.


@yurivict yurivict added the new label Jan 29, 2020

This comment has been minimized.

Copy link

@wsnyder wsnyder commented Jan 30, 2020

Look for something where pin3 on your testbench is connecting an array or wide to non-array or something like that. Also try -Oi. This might be a case where the code is bad but an error is missing, see if it runs in other simulators.

@wsnyder wsnyder added status: asked reporter and removed new labels Jan 30, 2020

This comment has been minimized.

Copy link

@yurivict yurivict commented Jan 30, 2020

I found the mistake. It was that a wire with a mismatching dimension was connected to the module. I just couldn't reduce the case.

The wire was
wire x[2:0]
and the module's pin was
wire pin.
It was passed as x instead of x[0].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.