Skip to content

Standard compliance vs. real world code #1086

Answered by nickg
tmeissner asked this question in Q&A
Discussion options

You must be logged in to vote

I updated our docker image from a september version of nvc to the latest one. Now I get analyzing errors with code I use since years without problems (with nvc, ghdl, Questa and synthesis):

** Error: a choice that is not locally static is allowed only if the array aggregate contains a single element association
    > ../../src/CoreMmc/FifoDualPortE.vhd:56
    |
 56 |   constant C_FIFO_EMPTY : unsigned(FIFO_AWIDTH downto 0) := (FIFO_AWIDTH => '1', FIFO_AWIDTH-1 downto 0 => '0');
    |                                                                   ^^^^^^^^^^^

FIFO_AWIDTH is a generic in this context.

This code was compiled by the older version of nvc (and all other tools I use, even syn…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tmeissner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants