This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Counter 模块
MATCH1和MATCH2的输出可以通过 CLB_MISC_CONTROL寄存器进行选择
0:选择输出方式是Counter与MATCH REF值匹配时输出
1:选择输出方式是由 CLB_COUNT_TATCH_TAP_SEL寄存器中的定义进行输出
我的问题是:
当CLB_MISC_CONTROL寄存器中输出方式设定为1时,
CLB_COUNT_TATCH_TAP_SEL寄存器中的 “5 bit MUX Select for Match2 Tap for Counter Unit 2”是什么意思,是有对应的表格吗?
the 5-bit mux select is simply referring to a mux with 32 inputs, which corresponds with the 32 bits in the counter. The select signal to select the input to the mux is a 5-bit value which comes from the CLB_COUNT_MATCH_TAP_SEL register.
你的意思是说,"5 bit MUX Select for Match2 Tap for Counter Unit 2"只是一个数值设定。
当选择输出方式是由 CLB_COUNT_TATCH_TAP_SEL寄存器中的定义进行输出(COUNT2_MATCH2_TAP_EN = 1)时:
计数器模块计数值与"5 bit MUX Select for Match2 Tap for Counter Unit 2"设定值相等时,MATCH2事件发生。
这个和COUNT2_MATCH2_TAP_EN = 0的方式有什么区别呢?
当您启用bit 23 of CLB_MISC_CONTROL,只要计数器寄存器的选定位(由COUNT2_MATCH2选择)为高,计数器匹配事件就会发生。否则,只要计数器寄存器与计数器匹配寄存器匹配,就会发生匹配事件。此寄存器不是内存映射的,但可以通过写入CLB_LOAD_ADDR和CLB_LOAD_DATA寄存器来访问:
当启用bit 23 of CLB_MISC_CONTROL,5bit的COUNT2_MATCH设定值(0~31)目的是匹配 32bit计数器的某一位为高时事件发生,而不是匹配32bit的计数值相等,是这样理解吗?