回答:
下面是一些代码:
#include <xs1.h>
void chipReset(void)
{
unsigned x;
read_sswitch_reg(get_core_id(), 6, x);
write_sswitch_reg(get_core_id(), 6, x);
}
回答2:
在写PLL寄存器6将重置tile。在双tile设备,如L16,软复位,应为每tile分别以正确顺序发出。其他tile的软复位应该在下达当前tile前被下达。