본문 바로가기

FPGA/TCL 에러 로그

[Synth 8-2611] redeclaration of ansi port state is not allowed

WARNING:HDLCompiler:751 - "start_i2c.v" Line 31: Redeclaration of ansi port rst_to_tmr is not allowed

 

다음 코드와 같이 output으로 정의한 포트를 reg로 다시 재정의하면 경고가 나타난다.

`include "timer_A.v"
module start_i2c(

...
        output rst_to_tmr

...
);

 

...
reg [0:0] rst_to_tmr;

아래와 같이 변경하면 경고를 없앨 수 있다.

`include "timer_A.v"
module start_i2c(

...
        output reg rst_to_tmr

...
);