Module port declaration

M

Michael

Guest
Hello all,

I've discovered a new way of ports declaration. Could somebody
exlain to me how it works and how can it be used for design?

module same_port (.a(i), .b(i));

module renamed_concat (.a({b,c}), f, .g(h[1]));

module complex_ports ({c,d}, .e(f));

Thanks a lot.
 
Hi Micheal,
Example
module top();
wire a,b,c,d,e;
same_port inxta (.a(a),.b(b));
rename_concat inxtb ({a,b},c,d,e);
complex_ports inxtc ({a,b},c);
endmodule

module same_port (.a(i), .b(i));
inout i;
endmodule

module renamed_concat (.a({b,c}), f, .g(h[1]),.e(h[0]));
input b,c,f;
input [1:0] h;
endmodule

module complex_ports ({c,d}, .e(f));
input c,d,f;
endmodule

Best regards,
ABC

Michael wrote:
Hello all,

I've discovered a new way of ports declaration. Could somebody
exlain to me how it works and how can it be used for design?

module same_port (.a(i), .b(i));

module renamed_concat (.a({b,c}), f, .g(h[1]));

module complex_ports ({c,d}, .e(f));

Thanks a lot.
 

Welcome to EDABoard.com

Sponsor

Back
Top