Skip to content

Commit eefcca2

Browse files
stephenmacmahonGitHub Enterprise
authored andcommitted
Embd/F/04-vitis-scripting: update scripts
1 parent 59d4766 commit eefcca2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Embedded_Software/Feature_Tutorials/04-vitis_scripting_flows/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ platform_dirs = ['add path to platform']
104104
client.add_platform_repos(platform_dirs)
105105
106106
# target the platform
107-
platform = client.get_platform_component(name = "name of platform")
107+
platform = client.get_component(name = "name of platform")
108108
109109
# print platform details
110110
platform.report()
@@ -172,6 +172,7 @@ platform.update_hw(hw = "path to new XSA")
172172
The command below will build the platform and all its domains. The platform should be built after all the domains are created.
173173

174174
```
175+
platform = client.get_component(name = "name of platform")
175176
status = platform.build()
176177
```
177178

Embedded_Software/Feature_Tutorials/04-vitis_scripting_flows/scripts/create_unified_workspace.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def generate_workspace(**kwargs):
4444
print("Info: Detected arch: " + arch)
4545
print("Info: Using target processor: " + target_proc)
4646

47-
platform = client.create_platform_component(name = "platform",hw = xsa,os = "standalone",cpu = target_proc)
47+
platform = client.create_platform_component(name = "platform",hw_design = xsa,os = "standalone",cpu = target_proc)
4848

4949
#list all domains (there will just be one here). Users can use print(domains) to see the attributes
5050
domains = platform.list_domains()
@@ -115,7 +115,7 @@ def get_metadata(**kwargs):
115115
ret_metadata['arch'] = HwDesign.FAMILY
116116
for proc in HwDesign.get_cells(hierarchical='true',filter='IP_TYPE==PROCESSOR'):
117117
if proc.IP_NAME == "psu_cortexa53" or proc.IP_NAME == "psv_cortexa72" or proc.IP_NAME == "ps7_cortexa9":
118-
ret_metadata['target_proc'] = proc.NAME
118+
ret_metadata['target_proc'] = proc.IP_NAME+"_0"
119119
break
120120
#HwDesign.close()
121121
else:
@@ -130,4 +130,4 @@ def get_metadata(**kwargs):
130130
generate_workspace(xsa=xsa)
131131
else:
132132
print("Error: No XSA passed")
133-
133+

0 commit comments

Comments
 (0)