I am trying to create an instance of the abc_d module, and I do not want all its ports to be declared as I / O ports in the top abc module. I want to exclude ex_out_port for declaration as output port.
module abc(); abc_d u_abc_d(); endmodule
expected code:
module abc ( /Inputs input port1; input port2; /Outputs output port3; output port4; /*AUTOWIRE*/ wire ex_out_port; //Instance abc_d u_abc_d(/*AUTOINST*/ .port1 (port1), .port2 (port2), .port3 (port3), .port4 (port4), .ex_out_port (ex_out_port)): endmodule
Related questions already answered:
- Using regular expressions to map Verilog ports
- using emacs auto to set the stub (inputs = 0, outputs = []
emacs verilog
user43102
source share