Define TOPLEVEL_LANG before checking it
Without this change, leaving TOPLEVEL_LANG unset would lead to an error.
+# Override this variable to use a VHDL toplevel instead of SystemVerilog
+TOPLEVEL_LANG ?= verilog
+
ifeq ($(SIM),)
all:
@echo "Skipping example mixed_language since Icarus doesn't support this"
@@ -12,9 +15,6 @@ all:
clean::
else
-# Override this variable to use a VHDL toplevel instead of SystemVerilog
-TOPLEVEL_LANG ?= verilog
-
TOPLEVEL = endian_swapper_mixed
PWD=$(shell pwd)
