在Quartus II 10. 0中,选择Assignments>Device>Device and Pin Options>Dual Purpose Pins,可以将一些双功能引脚设置为Use as regular I/O。但是DATA[1]/ASDO和FLASH_nCE/nCSO却无法设置,这是Quartus II 10.0的GUI程序的BUG。那么我们怎么办呢?
很好办,因为GUI的配置,最终都是映射到配置文件中。而双功能引脚的设置在工程名.qsf中,使用Notepad++(或其他文本编辑器)打开,找到类似以下语句,手动修改保存即可。
1 |
set_global_assignment -name CYCLONEII_RESERVE_NCEO_AFTER_CONFIGURATION "USE AS REGULAR IO" |
2 |
set_global_assignment -name RESERVE_DATA0_AFTER_CONFIGURATION "USE AS REGULAR IO" |
3 |
set_global_assignment -name RESERVE_DATA1_AFTER_CONFIGURATION "USE AS REGULAR IO" |
4 |
set_global_assignment -name RESERVE_FLASH_NCE_AFTER_CONFIGURATION "USE AS REGULAR IO" |
5 |
set_global_assignment -name RESERVE_DCLK_AFTER_CONFIGURATION "USE AS REGULAR IO" |
6 |
set_global_assignment -name RESERVE_DATA7_THROUGH_DATA2_AFTER_CONFIGURATION "USE AS REGULAR IO" |
7 |
set_global_assignment -name RESERVE_OTHER_AP_PINS_AFTER_CONFIGURATION "USE AS REGULAR IO" |