File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,3 +94,17 @@ Load synthesis result and list modules that were kept in hierarchical synthesis:
9494 aes_cipher_top
9595 aes_key_expand_128
9696 %
97+
98+ ## Creating a .yaml file with specific variable values
99+
100+ Print any variable in .yaml syntax. To create a .yaml file that
101+ contains value of variables, run:
102+
103+ make print-CORE_UTILIZATION print-PLACE_DENSITY > foo.yaml
104+
105+ Outputs foo.yaml:
106+
107+ CORE_UTILIZATION: 55
108+ PLACE_DENSITY: 0.30
109+
110+ Useful in bazel-orfs flows or debugging configuration.
Original file line number Diff line number Diff line change @@ -213,7 +213,6 @@ vars:
213213 $(UTILS_DIR ) /generate-vars.sh $(OBJECTS_DIR ) /vars
214214
215215.PHONY : print-%
216- # Print any variable, for instance: make print-DIE_AREA
217216print-% :
218217 # HERE BE DRAGONS!
219218 #
@@ -224,6 +223,6 @@ print-%:
224223 # We have to use $(file ...) because we want to be able
225224 # to print variables that contain newlines.
226225 $(file >/tmp/print_tmp$$,$($*))
227- @echo -n "$* = "
226+ @echo -n "$*: "
228227 @cat /tmp/print_tmp$$
229228 @rm /tmp/print_tmp$$
You can’t perform that action at this time.
0 commit comments