hossein1387 / BARVINN

BARVINN: A Barrel RISC-V Neural Network Accelerator: https://barvinn.readthedocs.io/en/latest/
MIT License
79 stars 11 forks source link

reordering wword write MSB first #2

Closed hossein1387 closed 4 years ago

hossein1387 commented 4 years ago

word write into the local buffer was changed. Consequently, the word out ordering is also changed.

wagnersj commented 4 years ago

The change will re-order the word locations into the proper bit locations. However, the write out of the transposed bits still need to go out with the MSB word first. You can do this by reversing the order of the word writes in the TRANSPOSE state by setting wd_cnt to prec-1 in the previous state, then doing a countdown to zero.