Skip to content

Commit 867f895

Browse files
povikoharboe
authored andcommitted
synth: Fix foreach doing unwanted substitutions
Signed-off-by: Martin Povišer <[email protected]>
1 parent 9d98e8f commit 867f895

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flow/scripts/synth.tcl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ if { !$::env(SYNTH_HIERARCHICAL) } {
5858

5959
if { $::env(SYNTH_MOCK_LARGE_MEMORIES) } {
6060
memory_collect
61-
foreach path [tee -q -s result.string select -list t:\$mem_v2] {
61+
set select [tee -q -s result.string select -list t:\$mem_v2]
62+
foreach path [split [string trim $select] "\n"] {
6263
set index [string first "/" $path]
6364
set module [string range $path 0 [expr {$index - 1}]]
6465
set instance [string range $path [expr {$index + 1}] end]

0 commit comments

Comments
 (0)