abc_d
모듈을 인스턴스화하려고하는데 상위 모듈의 I/O 포트로 모든 포트를 선언하고 싶지는 않습니다. ex_out_port
을 output
포트로 지정하려면 제외하고 싶습니다. Verilog 모드에서 regexp를 사용하여 I/O 포트 선언을 제거하는 방법
module abc(/*AUTOARG*/);
/*AUTOINPUT*/
/*AUTOOUTPUT*/
/*AUTOWIRE*/
abc_d u_abc_d(/*AUTOINST*/);
endmodule
//Localvariables:
//verilog-auto-output-ignore-regexp:("ex_out_port")
//END:
예상 코드 :
module abc (/*AUTOARG*/
/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
관련 이미 대답 질문 :
- Using Regular Expressions for Verilog Port Mapping
- using emacs auto's to instansiate a stub module (inputs=0, outputs=[]