You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove _fwdBuf from DepacketizerState and use the last dataWidth - Mod headerBytes dataWidth bytes of _parseBuf instead. Manually handle the case Mod headerBytes dataWidth ~ 0 because that case deviates from the rule, there are no bytes to buffer.
The text was updated successfully, but these errors were encountered:
This is a small optimization that saves a couple registers and multiplexers. But unfortunately it requires a proof. Steps:
Mod headerBytes dataWidth > 0 => headerBytes + ( dataWidth - (Mod headerBytes dataWidth)) ~ dataWidth * DivRU headerBytes dataWidth
_fwdBuf
fromDepacketizerState
and use the lastdataWidth - Mod headerBytes dataWidth
bytes of_parseBuf
instead. Manually handle the caseMod headerBytes dataWidth ~ 0
because that case deviates from the rule, there are no bytes to buffer.The text was updated successfully, but these errors were encountered: