build/efinix: Fix VHDL support.

This commit is contained in:
Andrew Dennison 2021-12-01 16:34:54 +11:00 committed by Florent Kermarrec
parent c5cd2e55e6
commit b8710e44b8
1 changed files with 5 additions and 6 deletions

View File

@ -191,12 +191,11 @@ def _build_xml(family, device, timing_model, build_name, sources):
# Add Design Sources. # Add Design Sources.
for filename, language, library in sources: for filename, language, library in sources:
if ".vh" not in filename: et.SubElement(design_info, "efx:design_file", {
et.SubElement(design_info, "efx:design_file", { "name" : filename,
"name" : filename, "version" : "default",
"version" : "default", "library" : "default" if ".vh" not in filename else library,
"library" : "default", })
})
# Add Timing Constraints. # Add Timing Constraints.
constraint_info = et.SubElement(root, "efx:constraint_info") constraint_info = et.SubElement(root, "efx:constraint_info")