Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Parsing of VHDL configurations does not handle spaces

Aperta
#1,112 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
46/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Ambito
testing-qa

Direzione di ricerca

Start by reading VUnit’s VHDL configuration parsing code and its parser tests; the issue does not name specific files. Reproduce the ambiguity error with the shown configuration using spaces in rtl, then compare it with the working form without spaces. Done means the spaced valid VHDL configuration is recognized and the existing parser tests still pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Enhancement

There is a bug in the parsing of VHDL configurations by VUnit. If you have spaces around you architecture instantiations VUnit will not recognize them properly.
Taking the example VHDL Configurations as a base we can show this bug by adding some spaces.

This works

-- Configuration declarations
configuration rtl of tb_selecting_dut_with_vhdl_configuration is
  for tb
    for test_fixture
      for dut : dff
        use entity work.dff(rtl);
      end for;
    end for;
  end for;
end;

This is valid VHDL but it doesn't work and gives the error: RuntimeError: Ambiguous use of test_lib.dff

configuration rtl of tb_selecting_dut_with_vhdl_configuration is
  for tb
    for test_fixture
      for dut : dff
        use entity work.dff( rtl );
      end for;
    end for;
  end for;
end;

The ambiguous use error seems to come from VUnit not recognizing the use entity work.dff( rtl ); statement anymore. I suspect the pattern matching of the VUnit parser does not account for spaces.

Lingua principale
VHDL
Stelle
850
Fork
305
Merge medio
2g 10h
PR unite (30g)
7

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di VUnit/vunit

Tutte le issue di VUnit/vunit

Issue simili

Altre issue su Testing & QA

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.