add important note to byte_reverse's docs
authorJacob Lifshay <programmerjake@gmail.com>
Thu, 4 Aug 2022 07:04:45 +0000 (00:04 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Thu, 4 Aug 2022 07:04:45 +0000 (00:04 -0700)
src/nmutil/byterev.py

index b0c9daf4afa61ed3aaeef570eb228b217a8383cb..a7f0a68aeacc1fd78609dcc9b60734c79e105381 100644 (file)
@@ -15,6 +15,8 @@ def byte_reverse(m, name, data, length):
 
     nmigen Signal.word_select may only take a fixed length.  we need
     bigendian byte-reverse, half-word reverse, word and dword reverse.
+
+    This only outputs the first `length` bytes, higher bytes are zeroed.
     """
     comb = m.d.comb
     data_r = Signal.like(data, name=name)