@@ -64,6 +64,10 @@ def _tapa_xo_impl(ctx):
6464 if ctx .file .floorplan_path :
6565 tapa_cmd .extend (["--floorplan-path" , ctx .file .floorplan_path .path ])
6666
67+ # Add floorplan config, if specified.
68+ if ctx .file .floorplan_config :
69+ tapa_cmd .extend (["--floorplan-config" , ctx .file .floorplan_config .path ])
70+
6771 # Add device config path, if specified.
6872 if ctx .file .device_config :
6973 tapa_cmd .extend (["--device-config" , ctx .file .device_config .path ])
@@ -114,6 +118,8 @@ def _tapa_xo_impl(ctx):
114118 inputs = [src ] + ctx .files .hdrs + ctx .files .custom_rtl_files
115119 if ctx .file .floorplan_path :
116120 inputs .append (ctx .file .floorplan_path )
121+ if ctx .file .floorplan_config :
122+ inputs .append (ctx .file .floorplan_config )
117123 if ctx .file .device_config :
118124 inputs .append (ctx .file .device_config )
119125 ctx .actions .run (
@@ -169,6 +175,7 @@ tapa_xo = rule(
169175 "gen_ab_graph" : attr .bool (),
170176 "flatten_hierarchy" : attr .bool (),
171177 "floorplan_path" : attr .label (allow_single_file = True ),
178+ "floorplan_config" : attr .label (allow_single_file = True ),
172179 "device_config" : attr .label (allow_single_file = True ),
173180 "vitis_hls_env" : attr .label (
174181 cfg = "exec" ,
0 commit comments