Skip to content

Is it possible to use accent for displaying text with string ? #1337

@Martoni

Description

@Martoni

I'm trying to simulate following simple report program with nvc :

library ieee;
use std.env.finish; --VHDL-08

entity exemples_string is
end exemples_string;

architecture behavioral of exemples_string is
begin
    process
        constant BonjourMonde: string := "Hello, World!";
    begin
        report "Simple affichage de texte";
        REPORT BONJOURMONDE;
        report BonjourMonde&" Quel temps fait-il aujourd'hui ?";
        report "Très beau c'est l'été.";
        finish;
    end process;
end behavioral;

But it's seems to be impossible with nvc because of accents :

$ nvc --std=08 -a exemples_string.vhd 
** Error: no visible declaration for '?'
** Error: invalid character '?' in string literal of type STRING
    > exemples_string.vhd:15
    |
 15 |         report "Trs beau c'est l't.":
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Is there an option to print these froggies characters in NVC ?

This code works with GHDL ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions