From 1f17b470f5cac96618849b3ece1d4a32af990cc1 Mon Sep 17 00:00:00 2001
From: Daniel Newbrook <dwn1c21@soton.ac.uk>
Date: Fri, 29 Sep 2023 12:56:47 +0100
Subject: [PATCH] fix $ to $env conversion for tcl filelist

---
 bin/filelist_compile.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/filelist_compile.py b/bin/filelist_compile.py
index 6585915..5989fd1 100755
--- a/bin/filelist_compile.py
+++ b/bin/filelist_compile.py
@@ -113,7 +113,7 @@ def read_list(filelist, first, incdirs, args):
                                 elif args.makefile == True:
                                     compiled_filelist.append("VERILOG_SOURCES += " + str(line_list[1]).replace("$","$env")+"/"+str(file))
                                 else:
-                                    compiled_filelist.append("read_verilog " + str(line_list[1])+"/"+str(file))
+                                    compiled_filelist.append("read_verilog " + str(env_var_substitute(line_list[1], tcl=True)).replace("$","$env")+"/"+str(file))
                             else:
                                 compiled_filelist.append(line_list[1]+"/"+str(file))
             
-- 
GitLab