adi_ip.tcl: Add support for adding bd files to a core
bd files can be used to automate certain tasks in IP integrator when the core is instantiated. Add a helper command for adding such files to a core. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>main
parent
39320ef48b
commit
19f7d8500c
|
@ -64,6 +64,17 @@ proc adi_ip_ttcl {ip_name ip_constr_files} {
|
|||
] $f
|
||||
}
|
||||
|
||||
proc adi_ip_bd {ip_name ip_bd_files} {
|
||||
set proj_filegroup [ipx::get_file_groups xilinx_blockdiagram -of_objects [ipx::current_core]]
|
||||
if {$proj_filegroup == {}} {
|
||||
set proj_filegroup [ipx::add_file_group -type xilinx_blockdiagram "" [ipx::current_core]]
|
||||
}
|
||||
set f [ipx::add_file $ip_bd_files $proj_filegroup]
|
||||
set_property -dict [list \
|
||||
type tclSource \
|
||||
] $f
|
||||
}
|
||||
|
||||
proc adi_ip_properties {ip_name} {
|
||||
|
||||
ipx::package_project -root_dir .
|
||||
|
|
Loading…
Reference in New Issue