FPGA设计中未分配引脚的信号的处理方法

标签:
杂谈 |
分类: FPGA |
解决方案:
module SMG(clk_50,rst_n,number_data,segment_cs,bit_out);
input
clk_50;
input
rst_n;
input
[15:0]number_data;
output
[3:0]segment_cs;
output
[7:0]bit_out;
wire [4:0]one_data;
wire [4:0]ten_data;
wire [4:0]hundred_data;
wire [4:0]thousand_data;
number_mod number_mod_uut(
......
而实际的PCB设计者只预留了10个接口,对于其余的六个信号接口(number_data[10:15])怎么处理。如果不分配信号,可能就会出现问题。经逻辑分析仪可查看,这些未分配引脚的信号是高电平,如下图:http://s5/middle/69d69315xb0587f22d914&690
所以在设计中,修改如下:
module SMG(clk_50,rst_n,number_data,segment_cs,bit_out);
input
clk_50;
input
rst_n;
input
[9:0]number_data;
output
[3:0]segment_cs;
output
[7:0]bit_out;
wire [4:0]one_data;
wire [4:0]ten_data;
wire [4:0]hundred_data;
wire [4:0]thousand_data;
wire [5:0]constant;
assign constant=6'd0;
number_mod number_mod_uut(
......
注意以上红色标注部分。