[vlsi] Add USE_SRAM_COMPILER Makefile flag to use memory compiler defined in tech library (#740)
This commit is contained in:
@@ -25,9 +25,15 @@ tech_dir ?= $(if $(filter $(tech_name),asap7 nangate45),\
|
|||||||
SMEMS_COMP ?= $(tech_dir)/sram-compiler.json
|
SMEMS_COMP ?= $(tech_dir)/sram-compiler.json
|
||||||
SMEMS_CACHE ?= $(tech_dir)/sram-cache.json
|
SMEMS_CACHE ?= $(tech_dir)/sram-cache.json
|
||||||
SMEMS_HAMMER ?= $(build_dir)/$(long_name).mems.hammer.json
|
SMEMS_HAMMER ?= $(build_dir)/$(long_name).mems.hammer.json
|
||||||
MACROCOMPILER_MODE ?= $(if $(filter $(tech_name),asap7),\
|
|
||||||
--mode synflops,\
|
ifeq ($(tech_name),asap7)
|
||||||
-l $(SMEMS_CACHE) -hir $(SMEMS_HAMMER) --mode strict)
|
MACROCOMPILER_MODE ?= --mode synflops
|
||||||
|
else ifdef USE_SRAM_COMPILER
|
||||||
|
MACROCOMPILER_MODE ?= -l $(SMEMS_COMP) --use-compiler -hir $(SMEMS_HAMMER) --mode strict
|
||||||
|
else
|
||||||
|
MACROCOMPILER_MODE ?= -l $(SMEMS_CACHE) -hir $(SMEMS_HAMMER) --mode strict
|
||||||
|
endif
|
||||||
|
|
||||||
ENV_YML ?= $(vlsi_dir)/env.yml
|
ENV_YML ?= $(vlsi_dir)/env.yml
|
||||||
INPUT_CONFS ?= $(if $(filter $(tech_name),nangate45),\
|
INPUT_CONFS ?= $(if $(filter $(tech_name),nangate45),\
|
||||||
example-nangate45.yml,\
|
example-nangate45.yml,\
|
||||||
|
|||||||
Reference in New Issue
Block a user