|
enable_cond = timer.done | (last_active_cs != cs) |
The condition last_active_cs != cs is supposed to override the timer.done signal when a different chip is selected.
However it can only do that for a single clock cycle as shown below ...
This corrupts the output signal pads.cs_n
I guess one could reset the timer when last_active_cs != cs. I'll try that out later.
litespi/litespi/cscontrol.py
Line 27 in 8ca711b
The condition
last_active_cs != csis supposed to override the timer.done signal when a different chip is selected.However it can only do that for a single clock cycle as shown below ...
This corrupts the output signal
pads.cs_nI guess one could reset the timer when
last_active_cs != cs. I'll try that out later.