0

I am wondering if there is any difference between these two connections, I know the first case can accept default value, but my question is rather from a netlist point of view :

  1. Unconnected port
module test(input clk);
endmodule

module top();
    test i_test();
endmodule

2- Intentionally unconnected

module test(input clk);
endmodule

module top();
    test i_test(.clk());
endmodule

Thank you

2 Answers 2

1

The difference is solely positional versus explicitly named port connections. It has nothing to do with being connected or unconnected. (i.e. there is no functional difference).

Explicitly named port connections are highly recommended especially when you intend to leave some ports unconnected. It reduces the chance of misaligning ports by position.

Sign up to request clarification or add additional context in comments.

Comments

0

Is there any difference between these two connections ... from a netlist point of view

Netlists are generated by synthesis tools.

There is no behavioral or structural difference between the two Verilog code snips in the post WRT netlist generation output of synthesis tools. They will both generate the same empty post synthesis netlist. No logic is inferred in both cases.

You should get a different set of warnings from each in synthesis.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.