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

-Wimplicit-dimensions and output reg #93

Closed
ravenexp opened this issue Mar 15, 2016 · 2 comments
Closed

-Wimplicit-dimensions and output reg #93

ravenexp opened this issue Mar 15, 2016 · 2 comments

Comments

@ravenexp
Copy link

I have a simple testbench module approximately as follows:

module delay_model
        (
         input  d_i,
         output reg d_o
         ); 

        always @(d_i) #1 d_o = d_i;
endmodule

Starting with 10.1 when compiled with -Wall I get:

warning: Port declaration of d_o inherits dimensions from var/net.

What is the cause of this?

@steveicarus
Copy link
Owner

Looks like a bug in the warning. It is supposed to warn if you declared a variable or net as a vector
(i.e. using the [x:y] syntax) and as a scaler some place else. In Verilog, that means that the vector
form is taken, but Xilinx xst does this wrong, so I added the warning so that Xilinx users can fix
their code.

Since I added this feature (and the bug) I guess it is up to me to fix it.

@martinwhitaker
Copy link
Collaborator

This is fixed in v10.2.

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

3 participants