Description
Get parts that match the specified architecture and regular expression pattern.
Syntax
get_parts(arch='', regex='.*')
Returns
List of parts that meet the specified criteria.
Parameters
| Name | Description |
|---|---|
| [arch] | Architecture. Default: All architectures |
| [regex] | Regular expression pattern. Default: All parts |
Examples
# Get all available parts
all_parts = get_parts()
# Get parts for a specific architecture
versal_parts = get_parts(arch='Versal')
# Get parts matching a regex pattern
parts = get_parts(regex='XCVC1902')
# Combine architecture and regex filters
parts = get_parts(arch='Versal', regex='XCVC1902-VIVA1596-1LP')
# parts == ['XCVC1902-VIVA1596-1LP-E-S', 'XCVC1902-VIVA1596-1LP-I-L', 'XCVC1902-VIVA1596-1LP-I-S']
# Use the first matching part to create a project
proj = new_project('my_design.pdm', part=get_parts(regex='XCVP')[0])