-
Notifications
You must be signed in to change notification settings - Fork 670
Node has no type Error on cast within concatenation #5989
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
Comments
it work like this: module test
import my_pkg::*;
(
input logic [6:0] data,
output logic [2:0] opt
);
sig_t sig;
assign sig = sig_t'(data[1:0]);
assign opt = {data[5], sig};
endmodule : test but the cast within concatenation work with other simulator |
I have a patch to fix it... but it breaks other things, so needs more attention. |
@wsnyder not sure how in-the-weeds the additional attention is, but if it would help I can attempt to push more on this if you can push it to a branch. |
The fix for this was just:
Unfortunately the streaming operator tests didn't like that, so that's what needs investigation. |
There's an ugly interaction between streaming and cast, because IEEE linked the two operations in a weird way. Maybe it would be a lot cleaner to earlier move the cast into part of the streaming Ast node. |
Oof. I just read
Are you suggesting to do an earlier pass where we push the datatype from the Also, if I'm just getting in the way please ignore me. |
Yes, I was contemplating that ast edit, but might not help, unsure. I'm not working on this now so all help welcome. |
I updated #6012 with a stab at this. I'll double-check next week that the PR also handles the code posted in this issue, but I'm pretty sure it will. |
I believe this is resolved now. |
Thanks for taking the time to report this.
Can you attach an example that shows the issue? (Must be openly licensed, completely self-contained and self-checking so can directly run what you provide. Ideally use test_regress format, see https://veripool.org/guide/latest/contributing.html?highlight=test_regress#reporting-bugs
-
test.sv
:What 'verilator' command line do we use to run your example?
What 'verilator --version' are you using? Did you try it with the git master version?
What OS and distribution are you using?
May we assist you in trying to fix this in Verilator yourself?
reported message:
The text was updated successfully, but these errors were encountered: