Menu

#31 Unnecessary (fatal) resize

MyHDL_0.7
open
5
2011-02-13
2011-02-05
No

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?

Discussion

  • Sjoerd Op 't Land

    32-bits selector

     
  • Jan Decaluwe

    Jan Decaluwe - 2011-02-13
    • milestone: --> MyHDL_0.7
    • assigned_to: nobody --> jandecaluwe
     
  • Jan Decaluwe

    Jan Decaluwe - 2011-02-13

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.