Skip to content

Commit e17402c

Browse files
committed
makefile: use yosys and openroad shipped with ORFS by default
YOSYS_CMD and/or OPENROAD_EXE must be explicitly specified to use different yosys/openroad versions. Signed-off-by: Øyvind Harboe <[email protected]>
1 parent a04105f commit e17402c

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

flow/Makefile

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -268,30 +268,14 @@ endif
268268
# The following determine the executable location for each tool used by this flow.
269269
# Priority is given to
270270
# 1 user explicit set with variable in Makefile or command line, for instance setting OPENROAD_EXE
271-
# 2 user include PATH to the executable prior to running make
272-
# 3 ORFS compiled tools: openroad, yosys
273-
export OPENROAD_EXE ?= $(shell command -v openroad)
274-
ifeq ($(OPENROAD_EXE),)
275-
export OPENROAD_EXE = $(abspath $(FLOW_HOME)/../tools/install/OpenROAD/bin/openroad)
276-
endif
271+
# 2 ORFS compiled tools: openroad, yosys
272+
export OPENROAD_EXE ?= $(abspath $(FLOW_HOME)/../tools/install/OpenROAD/bin/openroad)
273+
277274
OPENROAD_ARGS = -no_init $(OR_ARGS)
278275
OPENROAD_CMD = $(OPENROAD_EXE) -exit $(OPENROAD_ARGS)
279276
OPENROAD_NO_EXIT_CMD = $(OPENROAD_EXE) $(OPENROAD_ARGS)
280277
OPENROAD_GUI_CMD = $(OPENROAD_EXE) -gui $(OR_ARGS)
281278

282-
YOSYS_OLDEST_VERSION = 0.13
283-
YOSYS_CMD ?= $(shell command -v yosys)
284-
ifneq ($(YOSYS_CMD),)
285-
YOSYS_VER := $(shell $(YOSYS_CMD) -V | sed -n 's/^Yosys \([0-9]*\.[0-9]*\).*/\1/p')
286-
# Semantic Versioning Comparison
287-
VERSION_GTEQ := $(shell echo -e "$(YOSYS_VER)\n$(YOSYS_OLDEST_VERSION)" | sort -V | head -n1)
288-
ifeq ($(VERSION_GTEQ),$(YOSYS_OLDEST_VERSION))
289-
$(info Using Yosys $(YOSYS_VER) found in path, it is newer or equal to $(YOSYS_OLDEST_VERSION))
290-
else
291-
$(info Yosys $(YOSYS_VER) is too old, using $(abspath $(FLOW_HOME)/../tools/install/yosys/bin/yosys))
292-
undefine YOSYS_CMD
293-
endif
294-
endif
295279
YOSYS_CMD ?= $(abspath $(FLOW_HOME)/../tools/install/yosys/bin/yosys)
296280

297281
KLAYOUT_CMD ?= $(shell command -v klayout)

0 commit comments

Comments
 (0)