转载:http://blog.ftliang.com/post/416/
Error: One or more components could not be located (altera_nios2). Check Global User Libraries under Tools->Options... in Quartus II.
今天我在7.1下也有这个问题,找到了如下的回复,问题实际上因为SOPC_BUILDER_PATH这个环境变量没有设置或者被清除过,所以在记在系统的环境设置里面添加个变量就行了,注意文件路径。
Error: One or more components could not be located (altera_nios2). Check Global User Libraries under Tools->Options... in Quartus II.
今天我在7.1下也有这个问题,找到了如下的回复,问题实际上因为SOPC_BUILDER_PATH这个环境变量没有设置或者被清除过,所以在记在系统的环境设置里面添加个变量就行了,注意文件路径。
引用
Hi Quan,
I would check your environment settings to make sure everything installed correctly.
Type "set" at a DOS prompt or go into the control panel to look at your environment settings.
After you do an install make sure the following are set (assuming default install locations):
QUARTUS_ROOTDIR=c:\altera\71\quartus
SOPC_BUILDER_PATH=C:\altera\71\nios2eds+C:\altera\71\ip\ddr_ddr2_sdram\lib\sopc_builder+C:\altera\71\ip\pci_compiler\lib\sopc_builder+C:\altera\71\ip\nios2_ip+C:\altera\71\ip\sopc_builder_ip
SOPC_KIT_NIOS2=C:\altera\71\nios2eds
Also before you re-generate and compile the small design for the Cyclone 2C35, I recommend to copy the design from the 7.1 examples directory into a working or test directory location before doing anything like generation or compilation. This will keep the examples in an original state for later reference.
When you copy the design you can then re-generate the SOPC builder design files in SOPC Builder, then go to Quartus II to do a compilation of the newly generated HDL files for synthesis into a .sof file.
If your installation is anything different than above, post your environment settings here for us to take a a look.
Also could you show more of your error log output, it is not easy to figure out what is happening if we don't know where the error occurred during the generation process in SOPC Builder. SOPC Builder generates log files i.e. small_2c35_log.txt and sopc_builder_log.txt
Those files might be helpful in narrowing down where the problem is.
Also does SOPC Builder display all your components in the components list on the left side of SOPC builder (like Nios II, DMA, on-chip memory and other components)? If not I suspect it has something to do with the environment set up or perhaps a permission issue to the tools.
Also you may want to look at this Altera solution on switching between versions. It has a simple script that lets you switch between different versions of the tools installed.
http://www.altera.com/support/kdb/solution...082007_165.html
I hope this helps. Let us know what happens.
Regards,
ATJ
I would check your environment settings to make sure everything installed correctly.
Type "set" at a DOS prompt or go into the control panel to look at your environment settings.
After you do an install make sure the following are set (assuming default install locations):
QUARTUS_ROOTDIR=c:\altera\71\quartus
SOPC_BUILDER_PATH=C:\altera\71\nios2eds+C:\altera\71\ip\ddr_ddr2_sdram\lib\sopc_builder+C:\altera\71\ip\pci_compiler\lib\sopc_builder+C:\altera\71\ip\nios2_ip+C:\altera\71\ip\sopc_builder_ip
SOPC_KIT_NIOS2=C:\altera\71\nios2eds
Also before you re-generate and compile the small design for the Cyclone 2C35, I recommend to copy the design from the 7.1 examples directory into a working or test directory location before doing anything like generation or compilation. This will keep the examples in an original state for later reference.
When you copy the design you can then re-generate the SOPC builder design files in SOPC Builder, then go to Quartus II to do a compilation of the newly generated HDL files for synthesis into a .sof file.
If your installation is anything different than above, post your environment settings here for us to take a a look.
Also could you show more of your error log output, it is not easy to figure out what is happening if we don't know where the error occurred during the generation process in SOPC Builder. SOPC Builder generates log files i.e. small_2c35_log.txt and sopc_builder_log.txt
Those files might be helpful in narrowing down where the problem is.
Also does SOPC Builder display all your components in the components list on the left side of SOPC builder (like Nios II, DMA, on-chip memory and other components)? If not I suspect it has something to do with the environment set up or perhaps a permission issue to the tools.
Also you may want to look at this Altera solution on switching between versions. It has a simple script that lets you switch between different versions of the tools installed.
http://www.altera.com/support/kdb/solution...082007_165.html
I hope this helps. Let us know what happens.
Regards,
ATJ