Skip to content

Commit

Permalink
himbaechel: allow subsetting uarches.
Browse files Browse the repository at this point in the history
E.g. selecting only Gowin instead of the default shrinks the resulting
binary by ~30%.
  • Loading branch information
whitequark committed Jan 11, 2025
1 parent 55bd760 commit 9ee2005
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion himbaechel/family.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
set(HIMBAECHEL_UARCHES "example;gowin;xilinx;ng-ultra")
foreach(uarch ${HIMBAECHEL_UARCHES})

set(HIMBAECHEL_UARCH "${HIMBAECHEL_UARCHES}" CACHE STRING "Microarchitectures for nextpnr-himbaechel build")
set_property(CACHE HIMBAECHEL_UARCH PROPERTY STRINGS ${HIMBAECHEL_UARCHES})

foreach(item ${HIMBAECHEL_UARCH})
if (NOT item IN_LIST HIMBAECHEL_UARCHES)
message(FATAL_ERROR "Microarchitecture '${item}' not in list of supported architectures")
endif()
endforeach()

foreach(uarch ${HIMBAECHEL_UARCH})
add_subdirectory(${family}/uarch/${uarch})
aux_source_directory(${family}/uarch/${uarch} HM_UARCH_FILES)
foreach(target ${family_targets})
Expand Down

0 comments on commit 9ee2005

Please sign in to comment.