Unnecessary (fatal) resize
Brought to you by:
jandecaluwe
The attached selector simulates correctly, but converts to the following VHDL process:
---
leftBitIndex := to_integer(32 - signed(resize(bitPointer, 6)));
dataOut(32-1 downto to_integer(bitPointer)) <= resize(dataIn(leftBitIndex-1 downto 0), 32);
---
The right hand side of the second assignment only works for bitPointer == 0, which is not what I meant. Am I abusing MyHDL or is this a bug?
32-bits selector
Correct, for dynamic resizing conversion doesn't work properly. Not sure whether that can be easily fixed, I have to look into this more closely.