Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#598 Constant part/bit selects with an unknown select value fail

v0.9
closed-fixed
nobody
6
2009-01-02
2008-12-16
Cary R.
No

A constant bit/part select is supposed to return 'bx when any of the select terms are undefined. I believe the base expression (ivl_expr_oper2()) should be set to an undefined constant and the width should be set to some error value (0). It is likely both the compiler and the vvp code generator need to be fixed. I found this while working on the VHDL code generator.

I'll need to verify my code for this case once the compiler is fixed.

I did not check indexed part selects to see if they
work as expected.

This is giving invalid results without an error or a work around, but is a very obscure problem so only +1 on the priority.

Discussion

  • Cary R.
    Cary R.
    2008-12-16

    Example file

     
    Attachments
  • Cary R.
    Cary R.
    2008-12-16

    • summary: Constant part/bit selects with an unknown value fail --> Constant part/bit selects with an unknown select value fail
     
    • status: open --> closed-fixed
     
  • Fixed in git master.