SiLab-Bonn/basil

Clock domain crossing issues in m26_rx

laborleben opened this issue · 2 comments

Reading the timestamp uses a clock from an external source where the timestamp itself is synchronous to an internal clock.

See:

reg [31:0] TIMESTAMP_save;

The user has to know what is dong and use CLK_RX to generate the timestamp (or any other clock in proper time domain).

Actually issue is in pymosa here: https://github.com/SiLab-Bonn/pymosa/blob/master/firmware/src/mmc3_m26_eth.v#L558-L570
And it is done correctly (as far as I can see).

Yes, with the gray coded timestamp there are no CDC issues. I wasn't aware of the fact.