arria10 transceiver calibration clock用脚本更改source.
而我们做板子时候没有考虑这个问题,usrclk pin用作了一个DDR3 的DQ pin。
从altera support处得知,可以通过运行tcl脚本作用于sof文件,来使calibration采用FPGA internal clock。
可是提供的脚本中,有load_devices, open_sof和write_sof,查找得知quartus 原本是不包含这三个函数的。
那么,谁碰到过这个情况?有没有这几个函数?
Thanks.
原始脚本我这里提供一下。
proc main_run {} {
global argv
set projName [ lindex $argv 1 ]
load_package asm2
load_devices
set sofName "output_files/$projName.sof";
#set sofName "$projName.sof";
set handle -1
set handle [ open_sof $sofName ]
if { $handle >= 0 } {
set_attribute $handle hssi_aux_0_1 xaux/pma_aux_clock_select PMA_AUX_CLOCK_SELECT_INTOSC
set_attribute $handle hssi_aux_1_1 xaux/pma_aux_clock_select PMA_AUX_CLOCK_SELECT_INTOSC
set_attribute $handle hssi_aux_0_0 xaux/pma_aux_clock_select PMA_AUX_CLOCK_SELECT_INTOSC
set_attribute $handle hssi_aux_1_0 xaux/pma_aux_clock_select PMA_AUX_CLOCK_SELECT_INTOSC
set_attribute $handle hssi_aux_0_0 xmcu/pm_uc_no_nios/pm_uc_config_wrapper/pm_uc_clksel_osc CB_INTOSC
set_attribute $handle hssi_aux_0_0 xmcu/pm_uc_no_nios/pm_uc_config_wrapper/pm_uc_clkdiv_sel div4
set_attribute $handle hssi_aux_1_0 xmcu/pm_uc_no_nios/pm_uc_config_wrapper/pm_uc_clksel_osc CB_INTOSC
set_attribute $handle hssi_aux_1_0 xmcu/pm_uc_no_nios/pm_uc_config_wrapper/pm_uc_clkdiv_sel div4
write_sof $handle $sofName
} else {
puts stderr "Failed to open sof file $sofName"
}
}
main_run
没有人了解吗。
