NXP / i3c-slave-design

MIPI I3C Basic v1.0 communication Slave source code in Verilog with BSD license to support use in sensors and other devices.
Other
114 stars 35 forks source link

Are unhandled CCCs passed through to the mr_* bus? #19

Closed kurtrad1 closed 5 years ago

kurtrad1 commented 5 years ago

I do not see a way to configure this I3C so that it passes any unimplemented CCCs through to the magic bus. Am I missing something? I would like to implement a global CCC in the vendor reserved space.

pkimelman-nxp commented 5 years ago

I do not see a way to configure this I3C so that it passes any unimplemented CCCs through to the magic bus. Am I missing something? I would like to implement a global CCC in the vendor reserved space.

If you enable for CCCs, it always does. parameter MAGIC_RULES = 4'b0000,// bits for rules. [0]=RW vs. WO, [1]=CCCs, [2]=no idx Set the CCC one. It will pass all unhandled CCCs through. The mr_trans_ccc_done port is pulsed to indicate it is a CCC.

kurtrad1 commented 5 years ago

Thanks for the reply. I was looking in the wrong place which was the ENA_CCC_HANDLING parameter. I had come across the MAGIC_RULES parameter and had set that bit correctly.