Browse Source

Исправил скрипт

Anatoliy Chigirinskiy 1 năm trước cách đây
mục cha
commit
8f894553fb
1 tập tin đã thay đổi với 21 bổ sung41 xóa
  1. 21 41
      script/recreate_vna_pcie.tcl

+ 21 - 41
script/recreate_vna_pcie.tcl

@@ -3,7 +3,7 @@
 #
 # recreate_vna_pcie.tcl: Tcl script for re-creating project 'VNA_PCIE_PROJ'
 #
-# Generated by Vivado on Wed Oct 09 10:32:15 +0700 2024
+# Generated by Vivado on Wed Oct 09 11:04:50 +0700 2024
 # IP Build 5075265 on Wed May 22 21:45:21 MDT 2024
 #
 # This file contains the Vivado Tcl commands for re-creating the project to the state*
@@ -23,8 +23,7 @@
 # 2. The following source(s) files that were local or imported into the original project.
 #    (Please see the '$orig_proj_dir' and '$origin_dir' variable setting below at the start of the script)
 #
-#    "c:/VNA_PCIE_PROJ/VNA_PCIE_PROJ.srcs/sources_1/ip/pcie1234/pcie1234.xci"
-#    "c:/VNA_PCIE_PROJ/VNA_PCIE_PROJ.srcs/sources_1/ip/ClkPllSysTo125/ClkPllSysTo125.xci"
+#    "C:/VNA_PCIE_PROJ/VNA_PCIE_PROJ.srcs/utils_1/imports/synth_1/PciVnaEmulTop.dcp"
 #
 # 3. The following remote source files that were added to the original project:-
 #
@@ -112,17 +111,6 @@
 
 # Check file required for this script exists
 proc checkRequiredFiles { origin_dir} {
-  set status true
-  set files [list \
- "[file normalize "$origin_dir/VNA_PCIE_PROJ/VNA_PCIE_PROJ.srcs/sources_1/ip/pcie1234/pcie1234.xci"]"\
- "[file normalize "$origin_dir/VNA_PCIE_PROJ/VNA_PCIE_PROJ.srcs/sources_1/ip/ClkPllSysTo125/ClkPllSysTo125.xci"]"\
-  ]
-  foreach ifile $files {
-    if { ![file isfile $ifile] } {
-      puts " Could not find local file $ifile "
-      set status false
-    }
-  }
 
   set files [list \
  "[file normalize "$origin_dir/VNA_PCIE_REPO/src/src/PulseMeas/ActivePortSelector.v"]"\
@@ -405,16 +393,6 @@ set files [list \
 ]
 add_files -norecurse -fileset $obj $files
 
-# Import local files from the original project
-set files [list \
- [file normalize "${origin_dir}/VNA_PCIE_PROJ/VNA_PCIE_PROJ.srcs/sources_1/ip/pcie1234/pcie1234.xci" ]\
- [file normalize "${origin_dir}/VNA_PCIE_PROJ/VNA_PCIE_PROJ.srcs/sources_1/ip/ClkPllSysTo125/ClkPllSysTo125.xci" ]\
-]
-set imported_files ""
-foreach f $files {
-  lappend imported_files [import_files -fileset sources_1 $f]
-}
-
 # Set 'sources_1' fileset file properties for remote files
 set file "$origin_dir/VNA_PCIE_REPO/src/src/PCIeImports/board_common.vh"
 set file [file normalize $file]
@@ -443,22 +421,7 @@ set_property -name "file_type" -value "Verilog Header" -objects $file_obj
 
 
 # Set 'sources_1' fileset file properties for local files
-set file "pcie1234/pcie1234.xci"
-set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
-set_property -name "generate_files_for_reference" -value "0" -objects $file_obj
-set_property -name "registered_with_manager" -value "1" -objects $file_obj
-if { ![get_property "is_locked" $file_obj] } {
-  set_property -name "synth_checkpoint_mode" -value "Singular" -objects $file_obj
-}
-
-set file "ClkPllSysTo125/ClkPllSysTo125.xci"
-set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
-set_property -name "generate_files_for_reference" -value "0" -objects $file_obj
-set_property -name "registered_with_manager" -value "1" -objects $file_obj
-if { ![get_property "is_locked" $file_obj] } {
-  set_property -name "synth_checkpoint_mode" -value "Singular" -objects $file_obj
-}
-
+# None
 
 # Set 'sources_1' fileset properties
 set obj [get_filesets sources_1]
@@ -466,6 +429,10 @@ set_property -name "dataflow_viewer_settings" -value "min_width=16" -objects $ob
 set_property -name "top" -value "PciVnaEmulTop" -objects $obj
 set_property -name "top_auto_set" -value "0" -objects $obj
 
+# Set 'sources_1' fileset object
+set obj [get_filesets sources_1]
+
+
 # Create 'constrs_1' fileset (if not found)
 if {[string equal [get_filesets -quiet constrs_1] ""]} {
   create_fileset -constrset constrs_1
@@ -502,7 +469,18 @@ set_property -name "top_lib" -value "xil_defaultlib" -objects $obj
 
 # Set 'utils_1' fileset object
 set obj [get_filesets utils_1]
-# Empty (no sources present)
+# Import local files from the original project
+
+set imported_files ""
+foreach f $files {
+  lappend imported_files [import_files -fileset utils_1 $f]
+}
+
+# Set 'utils_1' fileset file properties for remote files
+# None
+
+
+
 
 # Set 'utils_1' fileset properties
 set obj [get_filesets utils_1]
@@ -536,6 +514,8 @@ set obj [get_runs synth_1]
 set_property -name "part" -value "xc7a100tfgg484-2" -objects $obj
 set_property -name "auto_incremental_checkpoint" -value "1" -objects $obj
 set_property -name "strategy" -value "Vivado Synthesis Defaults" -objects $obj
+set_property -name "steps.synth_design.args.flatten_hierarchy" -value "none" -objects $obj
+set_property -name "steps.synth_design.args.gated_clock_conversion" -value "auto" -objects $obj
 
 # set the current synth run
 current_run -synthesis [get_runs synth_1]