Xilinx / open-nic-shell

AMD OpenNIC Shell includes the HDL source files
Apache License 2.0
94 stars 63 forks source link

Update qdma_subsystem_c2h.sv #11

Closed albert-llimos closed 2 years ago

albert-llimos commented 2 years ago

Fix for tuser_size to mty translation in c2h.

For aligned packets (64 bytes), on the last cc the user_size will be 64 (7'b100000) and the mty should be zero since all the bytes are valid. However, since only 6 bits are used from the user_size, that value is zero, which means the calculated mty is 64, signaling to the QDMA that all the bytes in the last cc are invalid.