CoolRunner-II器件的Pullup(上拉)输入/输出
Pullup功能可以在输入/输出脚增加弱的上拉电阻,该功能需要通过属性来控制,其属性设置如下。
(1)约束文件(UCF)
NET <signal name> PULLUP;
例如:
NET data_In PULLUP;
NET Clock PULLUP;
(2)VHDL语言
attribute PULLUP: string;
attribute PULLUP of <signal name>: signal is "TRUE";
例如:
attribute PULLUP: string;
attribute PULLUP of data_in: signal is "TRUE"
attribute PULLUP of Clock: signal is "TRUE";
(3)Verilog语言
//SYNTHESIS attribute PULLUP of <signat name>
例如:
//SYNTHESIS attribute PULLUP of data_in;
// SYNTHESIS attribute PULLUP of Clock;