If it has instantiated as wildcard style. how do I know connection between relationship information such as clk is connected w_clk we know, but don’t know in wildcard style.?
how do I which signal is connected into ?
Could you guide me with simple example for understanding?
From section 23.3.2.4 of the LRM:
SystemVerilog can implicitly instantiate ports using a .* wildcard syntax for all ports where the instance port name matches the connecting port name and their data types are equivalent.
You need to have connections that match names and data types. Since ‘w_clk’ and ‘clk’ aren’t the same name, they won’t be connected. You need to declare ‘wire clk’.
In reply to UVM_LOVE:
From section 23.3.2.4 of the LRM:
SystemVerilog can implicitly instantiate ports using a .* wildcard syntax for all ports where the instance port name matches the connecting port name and their data types are equivalent.
You need to have connections that match names and data types. Since ‘w_clk’ and ‘clk’ aren’t the same name, they won’t be connected. You need to declare ‘wire clk’.
Thank you Sir, I got clearly your answer.
I declared as below and I got no error.
logic [3:0] a ;
logic [3:0] b ;
logic [6:0] c ;
logic [3:0] a0 ;
logic [3:0] b0 ;
logic [6:0] c0 ;
//...
adder DUT (
.*
);
BTW, How do I access a,b,c signal in class if I use(.*) wildcard port connection?
Would you please share with me your idea please?