Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash handling array of strings #954

Closed
tasgomes opened this issue Aug 22, 2024 · 0 comments
Closed

Crash handling array of strings #954

tasgomes opened this issue Aug 22, 2024 · 0 comments

Comments

@tasgomes
Copy link

The following VHDL code makes NVC to crash:

    type StringArray_t                  is array (natural range <>) of string;

    constant MyStringArray_c : StringArray_t(0 to 6) := (
        0 => "TEST 0: Test all whatever description here",
        1 => "TEST 1: Test all whatever description here",
        2 => "TEST 2: Test all whatever description here",
        3 => "TEST 3: Test all whatever description here",
        4 => "TEST 4: Test all whatever description here",
        5 => "TEST 5: Test all whatever description here",
        6 => "TEST 6: Test all whatever description here"
    );

This is okay with GHDL, Questa and Modelsim.

The output error log is quite extensive so I attach a file with it: log.txt

Setup to reproduce nvc_bug_5.zip

To reproduce open a console, go to folder fw, and execute:
python3 -u ./sim/run.py -o ./sim/vunit_out/nvc --simulator nvc --simulator-path C:/NVC_1_13_2/bin --vendor-lib ./fw/sim/sim_lib/nvc

Please adapt the path of the NVC installation folder in the command above (see --simulator-path).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant