From 4b9bd753c432b423111bfd80169dcef282a10205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Sat, 24 Jan 2026 17:04:42 +0100 Subject: [PATCH] variables: create ad-hoc small .yaml files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Harboe --- flow/scripts/README.md | 14 ++++++++++++++ flow/scripts/variables.mk | 3 +-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/flow/scripts/README.md b/flow/scripts/README.md index be55534412..c8f19f0c08 100644 --- a/flow/scripts/README.md +++ b/flow/scripts/README.md @@ -94,3 +94,17 @@ Load synthesis result and list modules that were kept in hierarchical synthesis: aes_cipher_top aes_key_expand_128 % + +## Creating a .yaml file with specific variable values + +Print any variable in .yaml syntax. To create a .yaml file that +contains value of variables, run: + + make print-CORE_UTILIZATION print-PLACE_DENSITY > foo.yaml + +Outputs foo.yaml: + + CORE_UTILIZATION: 55 + PLACE_DENSITY: 0.30 + +Useful in bazel-orfs flows or debugging configuration. diff --git a/flow/scripts/variables.mk b/flow/scripts/variables.mk index 81de8d10e8..ad7f867fb4 100644 --- a/flow/scripts/variables.mk +++ b/flow/scripts/variables.mk @@ -213,7 +213,6 @@ vars: $(UTILS_DIR)/generate-vars.sh $(OBJECTS_DIR)/vars .PHONY: print-% -# Print any variable, for instance: make print-DIE_AREA print-%: # HERE BE DRAGONS! # @@ -224,6 +223,6 @@ print-%: # We have to use $(file ...) because we want to be able # to print variables that contain newlines. $(file >/tmp/print_tmp$$,$($*)) - @echo -n "$* = " + @echo -n "$*: " @cat /tmp/print_tmp$$ @rm /tmp/print_tmp$$