From b71f18be091c3a5cd8f961e4adfd75581b48ada6 Mon Sep 17 00:00:00 2001 From: cyrus28214 Date: Thu, 12 Sep 2024 23:32:17 +0800 Subject: [PATCH] fileset "source_1" should be "sources_1" The design sources fileset name is by default "sources_1". ``` scripts.push(`set_property SOURCE_SET sources_1 [get_filesets sim_1]`); ``` This line of code will cause Vivado ouput this message: ``` CRITICAL WARNING: [filemgmt 20-599] Failed to locate the reference fileset 'source_1' referred to by the simulation fileset 'sim_1'! ``` The commit may fix that. --- src/manager/PL/xilinx.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/manager/PL/xilinx.ts b/src/manager/PL/xilinx.ts index 5aaadc9..3c2d924 100644 --- a/src/manager/PL/xilinx.ts +++ b/src/manager/PL/xilinx.ts @@ -179,7 +179,7 @@ class XilinxOperation { create(scripts: string[]) { scripts.push(`set_param general.maxThreads 8`); scripts.push(`create_project ${this.prjInfo.name} ${this.prjInfo.path} -part ${this.prjInfo.device} -force`); - scripts.push(`set_property SOURCE_SET source_1 [get_filesets sim_1]`); + scripts.push(`set_property SOURCE_SET sources_1 [get_filesets sim_1]`); scripts.push(`set_property top_lib xil_defaultlib [get_filesets sim_1]`); scripts.push(`update_compile_order -fileset sim_1 -quiet`); } @@ -229,7 +229,7 @@ class XilinxOperation { const bdPaths = [ hdlPath.join(this.HWPath, 'bd'), - hdlPath.join(this.prjInfo.path, this.prjInfo.name + '.src', 'source_1', 'bd') + hdlPath.join(this.prjInfo.path, this.prjInfo.name + '.src', 'sources_1', 'bd') ]; hdlFile.pickFileRecursive(bdPaths, [], (filePath) => { @@ -257,7 +257,7 @@ class XilinxOperation { // 导入ip设计源文件 const ipPaths = [ hdlPath.join(this.HWPath, 'ip'), - hdlPath.join(this.prjInfo.path, this.prjInfo.name + '.src', 'source_1', 'ip') + hdlPath.join(this.prjInfo.path, this.prjInfo.name + '.src', 'sources_1', 'ip') ]; hdlFile.pickFileRecursive(ipPaths, [], filePath => {