[Synth 8-3331] design logic_16bit_256 has unconnected port i_a_256[254] 意思是:综合后logic_16bit_256没有连接端口i_a_256[254]
原文件端口定义
parameter M = 256;
parameter N = 16;
input [M-1:0] i_a_256 ;
input [M-1:0] i_b_256 ;
input [2:0] SubType ;
output [M-1:0] o_c_256 ;
output [N-1:0] result_logic;
Vivado把模块的 i_a_256优化掉了,但是端口依然存在。
解决办法:在模块定义 i_a_256语句前加(* DONT_TOUCH = “1” *) ,防止其被优化。
修改后:
parameter M = 256;
parameter N = 16;
(* DONT_TOUCH = "1" *) input [M-1:0] i_a_256 ;
input [M-1:0] i_b_256 ;
input [2:0] SubType ;
output [M-1:0] o_c_256 ;
output [N-1:0] result_logic;
参考文档Vivado防止信号被综合掉的三种方法
警告记录 - [Synth 8-3331] design has unconnected port