Forum Discussion
how to use get_device_names
hi.I have some problems in FPGA . Now i am debugging my application using VJTAG. but I cannot get the device name using get_device_names'
The command is exec C:\\altera\\10.0\\quartus\\bin64\\quartus_stp --tcl_eval get_device_names -hardware_name USB-Blaster[usb-0]
some errors happen. In the attachment you will see it.how I solve it?the quartus II version is 10. FPGA EP3C25Q240
33 Replies
- YuanLi_S_Intel
Regular Contributor
Hi Chen Kang,
I think the method to execute the command is not correct. Kindly refer to link below for the correct format.
https://www.intel.cn/content/dam/altera-www/global/zh_CN/pdfs/literature/manual/tclscriptrefmnl.pdf (Page 287)
Regards,
YL
- YuanLi_S_Intel
Regular Contributor
Hi Chen Kang,
Can check if your USB Blaster is in usb-0? Also, can you use USB-0 instead of usb-0.
Regards,
YL
- CKang11
New Contributor
hi,yes, the command get_hardware _names is used. usb-blaster[usb-0] is displayed.It is strange . when i use signaltapII , the device name may be seen in it.This show the usb-blaster and device are ok. Also the script file u give me from the quartus scripting reference manual is not run.what can I do? - CKang11
New Contributor
do u receive the email I sent?pls answer me - CKang12
New Contributor
hi,yes, the command get_hardware _names is used. usb-blaster[usb-0] is displayed.It is strange . when i use signaltapII , the device name may be seen in it.This show the usb-blaster and device are ok. Also the script file u give me from the quartus scripting reference manual is not run.what can I do?
- YuanLi_S_Intel
Regular Contributor
Hi Chen Kang,
It might be due to several reason. Can you try to execute "get_hardware_names" and get the correct hardware name. After you got it, then you use the hardware_name with the "get_devices_name" command.
Regards,
YL
- CKang11
New Contributor
yes, i have done it, 1. get_hardware_names is used, the usb-blaster[ usb-0] is returned. 2, I use get_device_names -hardware_names usb-blaster[usb-0], but errors happen. what should I do?
- YuanLi_S_Intel
Regular Contributor
Can you show me the screenshot? would like the check the command correctness
- CKang11
New Contributor
in the attachment
- KhaiChein_Y_Intel
Regular Contributor
Hi CKang12,
You cannot use the tcl console in the Quartus software to run the jtag package which is only available in quartus_stp.
In the xterm,
1) quartus_sh -s
2) get_hardware_names to determine the names of the programming hardware attached to and configured for the JTAG server
3) get_device_names -hardware_name <hardware name>
Thanks.
- Kay
New Contributor
- CKang11
New Contributor
hi, quartus_stp has been called before get_device_names.(the command is quartus_stp --tcl_eval get_hardware --get_hardware_name usb-blaster[usb-0]. In addition , get_hardware_names , which belong to jtag pakage,can be used in tcl_console(quartus_stp --tcl_eval get_hardware_names). the result is displayed: usb-blaster[usb-0]. If the command get_hardware_names is uesed without quartus_stp, the command can not work
- CKang11
New Contributor
hi, quartus_stp has been called before get_device_names.(the command is quartus_stp --tcl_eval get_hardware --get_hardware_name usb-blaster[usb-0]. In addition , get_hardware_names , which belong to jtag pakage,can be used in tcl_console(quartus_stp --tcl_eval get_hardware_names). the result isdisplayed: usb-blaster[usb-0]
- KhaiChein_Y_Intel
Regular Contributor
Does quartus_stp --tcl_eval get_device_names -hardware_name usb-blaster[usb-0] work in xterm?
- CKang11
New Contributor
hi, quartus_stp has been called before get_device_names.(the command is quartus_stp --tcl_eval get_hardware -get_hardware_name usb-blaster[usb-0]. In addition , get_hardware_names , which belong to jtag pakage,can be used in tcl_console(quartus_stp --tcl_eval get_hardware_names). the result isdisplayed: usb-blaster[usb-0]。By the way , what is the meaning of "xterm" - CKang11
New Contributor
what is the meaning of "xterm"?
- KhaiChein_Y_Intel
Regular Contributor
I'm sorry, what i meant is command line interface.
get_device_names -hardware_name [lindex [get_hardware_names] 0]
- Kay
New Contributor
Do you manage to run the command get_device_names -hardware_name [lindex [get_hardware_names]0] ?
- CKang11
New Contributor
hi, it is OK .IThe command work in xterm. So strange.In tcl console ,get_hardware_names can work, but get_device _names can not. they belong to jtag pakage.
- KhaiChein_Y_Intel
Regular Contributor
Hi,
It seems like you can get the device name by executing on the command line interface.
Are you using Quartus II software version 10? Can you try in the latest version of the software and see the problem persists?
Thanks.