Versal 自适应 SoC 的 BIF 语法 - 2023.2 简体中文

Vitis 统一软件平台文档 嵌入式软件开发 (UG1400)

Document ID
UG1400
Release Date
2023-12-13
Version
2023.2 简体中文

以下示例演示了对分区进行分组时编写 BIF 的详细方式。为支持子系统概念,Versal 自适应 SoC 已更改 BIF 语法,在此类子系统中多个分区可组合在一起以形成一个镜像,这也称为含一个镜像头文件的子系统。

注释: 相同镜像 { } 块下的分区会合并以构成单个子系统。
new_bif:
{
	id_code = 0x04ca8093
	extended_id_code = 0x01
	id = 0x2
	image
	{
		name = pmc_subsys
		id = 0x1c000001
		partition
		{
			id = 0x01
			type = bootloader
			file = gen_files/plm.elf
		}
		partition
		{
			id = 0x09
			type = pmcdata, load = 0xf2000000
			file = gen_files/pmc_data.cdo
		}
	}
	image
	{
		name = lpd
		id = 0x4210002
		partition
		{
			id = 0x0C
			type = cdo
			file = gen_files/lpd_data.cdo
		}
		partition
		{
			id = 0x0B
			core = psm
			file = static_files/psm_fw.elf
		}
	}
	image
	{
		name = pl_cfi
		id = 0x18700000
		partition
		{
			id = 0x03
			type = cdo
			file = system.rcdo
		}
		partition
		{
			id = 0x05
			type = cdo
			file = system.rnpi
		}
	}
	image
	{
		name = fpd
		id = 0x420c003
		partition
		{
			id = 0x08
			type = cdo
			file = gen_files/fpd_data.cdo
		}
	}
}

以下示例简单演示了如何通过对分区进行分组来编写 BIF。

new_bif:
{
	id_code = 0x04ca8093
	extended_id_code = 0x01
	id = 0x2
	image
	{
		name = pmc_subsys, id = 0x1c000001
		{ id = 0x01, type = bootloader, file = gen_files/plm.elf }
		{ id = 0x09, type = pmcdata, load = 0xf2000000, file = gen_files/pmc_data.cdo }
	}
	image
	{
		name = lpd, id = 0x4210002
		{ id = 0x0C, type = cdo, file = gen_files/lpd_data.cdo }
		{ id = 0x0B, core = psm, file = static_files/psm_fw.elf }
	}
	image
	{
		name = pl_cfi, id = 0x18700000
		{ id = 0x03, type = cdo, file = system.rcdo }
		{ id = 0x05, type = cdo, file = system.rnpi }
	}
	image
	{
		name = fpd, id = 0x420c003
		{ id = 0x08, type = cdo, file = gen_files/fpd_data.cdo }
	}
}