recreate.tcl 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  1. #*****************************************************************************************
  2. # Vivado (TM) v2020.2 (64-bit)
  3. #
  4. # recreate.tcl: Tcl script for re-creating project 'S5443v3'
  5. #
  6. # Generated by Vivado on Tue Feb 13 12:12:33 +0700 2024
  7. # IP Build 3064653 on Wed Nov 18 14:17:31 MST 2020
  8. #
  9. # This file contains the Vivado Tcl commands for re-creating the project to the state*
  10. # when this script was generated. In order to re-create the project, please source this
  11. # file in the Vivado Tcl Shell.
  12. #
  13. # * Note that the runs in the created project will be configured the same way as the
  14. # original project, however they will not be launched automatically. To regenerate the
  15. # run results please launch the synthesis/implementation runs as needed.
  16. #
  17. #*****************************************************************************************
  18. # NOTE: In order to use this script for source control purposes, please make sure that the
  19. # following files are added to the source control system:-
  20. #
  21. # 1. This project restoration tcl script (recreate.tcl) that was generated.
  22. #
  23. # 2. The following source(s) files that were local or imported into the original project.
  24. # (Please see the '$orig_proj_dir' and '$origin_dir' variable setting below at the start of the script)
  25. #
  26. #
  27. # 3. The following remote source files that were added to the original project:-
  28. #
  29. # "C:/S5443v3/src/src/CDC/CDC.v"
  30. # "C:/S5443v3/src/src/MMCM/ClkCh.v"
  31. # "C:/S5443v3/src/src/MMCM/ClkDivSync.v"
  32. # "C:/S5443v3/src/src/MMCM/ClkGen.v"
  33. # "C:/S5443v3/src/src/MMCM/ClkOutMMCM.v"
  34. # "C:/S5443v3/src/src/DataFifo/DataFifoWrapper.v"
  35. # "C:/S5443v3/src/src/Mux/DataMuxer.v"
  36. # "C:/S5443v3/src/src/DataFifo/DataOutMux.v"
  37. # "C:/S5443v3/src/src/DataFifo/FifoCtrl.v"
  38. # "C:/S5443v3/src/src/InitRst/InitRst.v"
  39. # "C:/S5443v3/src/src/MMCM/MmcmWrapper.v"
  40. # "C:/S5443v3/src/src/QuadSPI/QuadSPIm.v"
  41. # "C:/S5443v3/src/src/RegMap/RegMap.v"
  42. # "C:/S5443v3/src/src/DataFifo/RxFifoPtrSync.v"
  43. # "C:/S5443v3/src/src/SpiR/SPIm.v"
  44. # "C:/S5443v3/src/src/SpiR/SPIs.v"
  45. # "C:/S5443v3/src/src/CDC/Sync1bit.v"
  46. # "C:/S5443v3/src/src/DataFifo/TxFifoPtrsync.v"
  47. # "C:/S5443v3/src/src/Top/S5443_3Top.v"
  48. # "C:/S5443v3/src/src/DataFifo/DataMuxer � �����.v"
  49. # "C:/S5443v3/src/src/QuadSPI/QuadSPIs.v"
  50. # "C:/S5443v3/src/src/DataFifo/RxFifoRstSync.v"
  51. # "C:/S5443v3/src/constr/S5443_3.xdc"
  52. #
  53. #*****************************************************************************************
  54. # Check file required for this script exists
  55. proc checkRequiredFiles { origin_dir} {
  56. set status true
  57. foreach ifile $files {
  58. if { ![file isfile $ifile] } {
  59. puts " Could not find local file $ifile "
  60. set status false
  61. }
  62. }
  63. set files [list \
  64. "C:/S5443v3/src/src/CDC/CDC.v" \
  65. "C:/S5443v3/src/src/MMCM/ClkCh.v" \
  66. "C:/S5443v3/src/src/MMCM/ClkDivSync.v" \
  67. "C:/S5443v3/src/src/MMCM/ClkGen.v" \
  68. "C:/S5443v3/src/src/MMCM/ClkOutMMCM.v" \
  69. "C:/S5443v3/src/src/DataFifo/DataFifoWrapper.v" \
  70. "C:/S5443v3/src/src/Mux/DataMuxer.v" \
  71. "C:/S5443v3/src/src/DataFifo/DataOutMux.v" \
  72. "C:/S5443v3/src/src/DataFifo/FifoCtrl.v" \
  73. "C:/S5443v3/src/src/InitRst/InitRst.v" \
  74. "C:/S5443v3/src/src/MMCM/MmcmWrapper.v" \
  75. "C:/S5443v3/src/src/QuadSPI/QuadSPIm.v" \
  76. "C:/S5443v3/src/src/RegMap/RegMap.v" \
  77. "C:/S5443v3/src/src/DataFifo/RxFifoPtrSync.v" \
  78. "C:/S5443v3/src/src/SpiR/SPIm.v" \
  79. "C:/S5443v3/src/src/SpiR/SPIs.v" \
  80. "C:/S5443v3/src/src/CDC/Sync1bit.v" \
  81. "C:/S5443v3/src/src/DataFifo/TxFifoPtrsync.v" \
  82. "C:/S5443v3/src/src/Top/S5443_3Top.v" \
  83. "C:/S5443v3/src/src/DataFifo/DataMuxer � �����.v" \
  84. "C:/S5443v3/src/src/QuadSPI/QuadSPIs.v" \
  85. "C:/S5443v3/src/src/DataFifo/RxFifoRstSync.v" \
  86. "C:/S5443v3/src/constr/S5443_3.xdc" \
  87. ]
  88. foreach ifile $files {
  89. if { ![file isfile $ifile] } {
  90. puts " Could not find remote file $ifile "
  91. set status false
  92. }
  93. }
  94. return $status
  95. }
  96. # Set the reference directory for source file relative paths (by default the value is script directory path)
  97. set origin_dir "C:/"
  98. # Use origin directory path location variable, if specified in the tcl shell
  99. if { [info exists ::origin_dir_loc] } {
  100. set origin_dir $::origin_dir_loc
  101. }
  102. # Set the project name
  103. set _xil_proj_name_ "S5443v3"
  104. # Use project name variable, if specified in the tcl shell
  105. if { [info exists ::user_project_name] } {
  106. set _xil_proj_name_ $::user_project_name
  107. }
  108. variable script_file
  109. set script_file "recreate.tcl"
  110. # Help information for this script
  111. proc print_help {} {
  112. variable script_file
  113. puts "\nDescription:"
  114. puts "Recreate a Vivado project from this script. The created project will be"
  115. puts "functionally equivalent to the original project for which this script was"
  116. puts "generated. The script contains commands for creating a project, filesets,"
  117. puts "runs, adding/importing sources and setting properties on various objects.\n"
  118. puts "Syntax:"
  119. puts "$script_file"
  120. puts "$script_file -tclargs \[--origin_dir <path>\]"
  121. puts "$script_file -tclargs \[--project_name <name>\]"
  122. puts "$script_file -tclargs \[--help\]\n"
  123. puts "Usage:"
  124. puts "Name Description"
  125. puts "-------------------------------------------------------------------------"
  126. puts "\[--origin_dir <path>\] Determine source file paths wrt this path. Default"
  127. puts " origin_dir path value is \".\", otherwise, the value"
  128. puts " that was set with the \"-paths_relative_to\" switch"
  129. puts " when this script was generated.\n"
  130. puts "\[--project_name <name>\] Create project with the specified name. Default"
  131. puts " name is the name of the project from where this"
  132. puts " script was generated.\n"
  133. puts "\[--help\] Print help information for this script"
  134. puts "-------------------------------------------------------------------------\n"
  135. exit 0
  136. }
  137. if { $::argc > 0 } {
  138. for {set i 0} {$i < $::argc} {incr i} {
  139. set option [string trim [lindex $::argv $i]]
  140. switch -regexp -- $option {
  141. "--origin_dir" { incr i; set origin_dir [lindex $::argv $i] }
  142. "--project_name" { incr i; set _xil_proj_name_ [lindex $::argv $i] }
  143. "--help" { print_help }
  144. default {
  145. if { [regexp {^-} $option] } {
  146. puts "ERROR: Unknown option '$option' specified, please type '$script_file -tclargs --help' for usage info.\n"
  147. return 1
  148. }
  149. }
  150. }
  151. }
  152. }
  153. # Set the directory path for the original project from where this script was exported
  154. set orig_proj_dir "[file normalize "$origin_dir/S5443v3_PROJ"]"
  155. # Check for paths and files needed for project creation
  156. set validate_required 0
  157. if { $validate_required } {
  158. if { [checkRequiredFiles $origin_dir] } {
  159. puts "Tcl file $script_file is valid. All files required for project creation is accesable. "
  160. } else {
  161. puts "Tcl file $script_file is not valid. Not all files required for project creation is accesable. "
  162. return
  163. }
  164. }
  165. # Create project
  166. create_project ${_xil_proj_name_} ./${_xil_proj_name_} -part xc7s25csga225-2
  167. # Set the directory path for the new project
  168. set proj_dir [get_property directory [current_project]]
  169. # Set project properties
  170. set obj [current_project]
  171. set_property -name "default_lib" -value "xil_defaultlib" -objects $obj
  172. set_property -name "enable_vhdl_2008" -value "1" -objects $obj
  173. set_property -name "ip_cache_permissions" -value "read write" -objects $obj
  174. set_property -name "ip_output_repo" -value "$proj_dir/${_xil_proj_name_}.cache/ip" -objects $obj
  175. set_property -name "mem.enable_memory_map_generation" -value "1" -objects $obj
  176. set_property -name "part" -value "xc7s25csga225-2" -objects $obj
  177. set_property -name "sim.central_dir" -value "$proj_dir/${_xil_proj_name_}.ip_user_files" -objects $obj
  178. set_property -name "sim.ip.auto_export_scripts" -value "1" -objects $obj
  179. set_property -name "xpm_libraries" -value "XPM_CDC XPM_MEMORY" -objects $obj
  180. # Create 'sources_1' fileset (if not found)
  181. if {[string equal [get_filesets -quiet sources_1] ""]} {
  182. create_fileset -srcset sources_1
  183. }
  184. # Set 'sources_1' fileset object
  185. set obj [get_filesets sources_1]
  186. set files [list \
  187. [file normalize "${origin_dir}/S5443v3/src/src/CDC/CDC.v"] \
  188. [file normalize "${origin_dir}/S5443v3/src/src/MMCM/ClkCh.v"] \
  189. [file normalize "${origin_dir}/S5443v3/src/src/MMCM/ClkDivSync.v"] \
  190. [file normalize "${origin_dir}/S5443v3/src/src/MMCM/ClkGen.v"] \
  191. [file normalize "${origin_dir}/S5443v3/src/src/MMCM/ClkOutMMCM.v"] \
  192. [file normalize "${origin_dir}/S5443v3/src/src/DataFifo/DataFifoWrapper.v"] \
  193. [file normalize "${origin_dir}/S5443v3/src/src/Mux/DataMuxer.v"] \
  194. [file normalize "${origin_dir}/S5443v3/src/src/DataFifo/DataOutMux.v"] \
  195. [file normalize "${origin_dir}/S5443v3/src/src/DataFifo/FifoCtrl.v"] \
  196. [file normalize "${origin_dir}/S5443v3/src/src/InitRst/InitRst.v"] \
  197. [file normalize "${origin_dir}/S5443v3/src/src/MMCM/MmcmWrapper.v"] \
  198. [file normalize "${origin_dir}/S5443v3/src/src/QuadSPI/QuadSPIm.v"] \
  199. [file normalize "${origin_dir}/S5443v3/src/src/RegMap/RegMap.v"] \
  200. [file normalize "${origin_dir}/S5443v3/src/src/DataFifo/RxFifoPtrSync.v"] \
  201. [file normalize "${origin_dir}/S5443v3/src/src/SpiR/SPIm.v"] \
  202. [file normalize "${origin_dir}/S5443v3/src/src/SpiR/SPIs.v"] \
  203. [file normalize "${origin_dir}/S5443v3/src/src/CDC/Sync1bit.v"] \
  204. [file normalize "${origin_dir}/S5443v3/src/src/DataFifo/TxFifoPtrsync.v"] \
  205. [file normalize "${origin_dir}/S5443v3/src/src/Top/S5443_3Top.v"] \
  206. [file normalize "${origin_dir}/S5443v3/src/src/QuadSPI/QuadSPIs.v"] \
  207. [file normalize "${origin_dir}/S5443v3/src/src/DataFifo/RxFifoRstSync.v"] \
  208. ]
  209. add_files -norecurse -fileset $obj $files
  210. # Set 'sources_1' fileset file properties for remote files
  211. # None
  212. # Set 'sources_1' fileset file properties for local files
  213. # None
  214. # Set 'sources_1' fileset properties
  215. set obj [get_filesets sources_1]
  216. set_property -name "top" -value "S5443_3Top" -objects $obj
  217. # Set 'sources_1' fileset object
  218. set obj [get_filesets sources_1]
  219. # Set 'sources_1' fileset file properties for remote files
  220. # None
  221. # Set 'sources_1' fileset file properties for remote files
  222. # None
  223. # Set 'sources_1' fileset object
  224. set obj [get_filesets sources_1]
  225. # Set 'sources_1' fileset file properties for remote files
  226. # None
  227. # Create 'constrs_1' fileset (if not found)
  228. if {[string equal [get_filesets -quiet constrs_1] ""]} {
  229. create_fileset -constrset constrs_1
  230. }
  231. # Set 'constrs_1' fileset object
  232. set obj [get_filesets constrs_1]
  233. # Add/Import constrs file and set constrs file properties
  234. set file "[file normalize "$origin_dir/S5443v3/src/constr/S5443_3.xdc"]"
  235. set file_added [add_files -norecurse -fileset $obj [list $file]]
  236. set file "$origin_dir/S5443v3/src/constr/S5443_3.xdc"
  237. set file [file normalize $file]
  238. set file_obj [get_files -of_objects [get_filesets constrs_1] [list "*$file"]]
  239. set_property -name "file_type" -value "XDC" -objects $file_obj
  240. # Set 'constrs_1' fileset properties
  241. set obj [get_filesets constrs_1]
  242. set_property -name "target_part" -value "xc7s25csga225-2" -objects $obj
  243. # Create 'sim_1' fileset (if not found)
  244. if {[string equal [get_filesets -quiet sim_1] ""]} {
  245. create_fileset -simset sim_1
  246. }
  247. # Set 'sim_1' fileset object
  248. set obj [get_filesets sim_1]
  249. # Empty (no sources present)
  250. # Set 'sim_1' fileset properties
  251. set obj [get_filesets sim_1]
  252. set_property -name "hbs.configure_design_for_hier_access" -value "1" -objects $obj
  253. set_property -name "top" -value "S5443_3Top" -objects $obj
  254. set_property -name "top_lib" -value "xil_defaultlib" -objects $obj
  255. # Set 'utils_1' fileset object
  256. set obj [get_filesets utils_1]
  257. # Empty (no sources present)
  258. # Set 'utils_1' fileset properties
  259. set obj [get_filesets utils_1]
  260. # Create 'synth_1' run (if not found)
  261. if {[string equal [get_runs -quiet synth_1] ""]} {
  262. create_run -name synth_1 -part xc7s25csga225-2 -flow {Vivado Synthesis 2020} -strategy "Vivado Synthesis Defaults" -report_strategy {No Reports} -constrset constrs_1
  263. } else {
  264. set_property strategy "Vivado Synthesis Defaults" [get_runs synth_1]
  265. set_property flow "Vivado Synthesis 2020" [get_runs synth_1]
  266. }
  267. set obj [get_runs synth_1]
  268. set_property set_report_strategy_name 1 $obj
  269. set_property report_strategy {Vivado Synthesis Default Reports} $obj
  270. set_property set_report_strategy_name 0 $obj
  271. # Create 'synth_1_synth_report_utilization_0' report (if not found)
  272. if { [ string equal [get_report_configs -of_objects [get_runs synth_1] synth_1_synth_report_utilization_0] "" ] } {
  273. create_report_config -report_name synth_1_synth_report_utilization_0 -report_type report_utilization:1.0 -steps synth_design -runs synth_1
  274. }
  275. set obj [get_report_configs -of_objects [get_runs synth_1] synth_1_synth_report_utilization_0]
  276. if { $obj != "" } {
  277. }
  278. set obj [get_runs synth_1]
  279. set_property -name "part" -value "xc7s25csga225-2" -objects $obj
  280. set_property -name "auto_incremental_checkpoint.directory" -value "$proj_dir/project_1.srcs/utils_1/imports/synth_1" -objects $obj
  281. set_property -name "strategy" -value "Vivado Synthesis Defaults" -objects $obj
  282. set_property -name "steps.synth_design.args.flatten_hierarchy" -value "none" -objects $obj
  283. # set the current synth run
  284. current_run -synthesis [get_runs synth_1]
  285. # Create 'impl_1' run (if not found)
  286. if {[string equal [get_runs -quiet impl_1] ""]} {
  287. create_run -name impl_1 -part xc7s25csga225-2 -flow {Vivado Implementation 2020} -strategy "Vivado Implementation Defaults" -report_strategy {No Reports} -constrset constrs_1 -parent_run synth_1
  288. } else {
  289. set_property strategy "Vivado Implementation Defaults" [get_runs impl_1]
  290. set_property flow "Vivado Implementation 2020" [get_runs impl_1]
  291. }
  292. set obj [get_runs impl_1]
  293. set_property set_report_strategy_name 1 $obj
  294. set_property report_strategy {Vivado Implementation Default Reports} $obj
  295. set_property set_report_strategy_name 0 $obj
  296. # Create 'impl_1_init_report_timing_summary_0' report (if not found)
  297. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_init_report_timing_summary_0] "" ] } {
  298. create_report_config -report_name impl_1_init_report_timing_summary_0 -report_type report_timing_summary:1.0 -steps init_design -runs impl_1
  299. }
  300. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_init_report_timing_summary_0]
  301. if { $obj != "" } {
  302. set_property -name "is_enabled" -value "0" -objects $obj
  303. set_property -name "options.max_paths" -value "10" -objects $obj
  304. }
  305. # Create 'impl_1_opt_report_drc_0' report (if not found)
  306. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_drc_0] "" ] } {
  307. create_report_config -report_name impl_1_opt_report_drc_0 -report_type report_drc:1.0 -steps opt_design -runs impl_1
  308. }
  309. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_drc_0]
  310. if { $obj != "" } {
  311. }
  312. # Create 'impl_1_opt_report_timing_summary_0' report (if not found)
  313. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_timing_summary_0] "" ] } {
  314. create_report_config -report_name impl_1_opt_report_timing_summary_0 -report_type report_timing_summary:1.0 -steps opt_design -runs impl_1
  315. }
  316. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_timing_summary_0]
  317. if { $obj != "" } {
  318. set_property -name "is_enabled" -value "0" -objects $obj
  319. set_property -name "options.max_paths" -value "10" -objects $obj
  320. }
  321. # Create 'impl_1_power_opt_report_timing_summary_0' report (if not found)
  322. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_power_opt_report_timing_summary_0] "" ] } {
  323. create_report_config -report_name impl_1_power_opt_report_timing_summary_0 -report_type report_timing_summary:1.0 -steps power_opt_design -runs impl_1
  324. }
  325. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_power_opt_report_timing_summary_0]
  326. if { $obj != "" } {
  327. set_property -name "is_enabled" -value "0" -objects $obj
  328. set_property -name "options.max_paths" -value "10" -objects $obj
  329. }
  330. # Create 'impl_1_place_report_io_0' report (if not found)
  331. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_io_0] "" ] } {
  332. create_report_config -report_name impl_1_place_report_io_0 -report_type report_io:1.0 -steps place_design -runs impl_1
  333. }
  334. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_io_0]
  335. if { $obj != "" } {
  336. }
  337. # Create 'impl_1_place_report_utilization_0' report (if not found)
  338. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_utilization_0] "" ] } {
  339. create_report_config -report_name impl_1_place_report_utilization_0 -report_type report_utilization:1.0 -steps place_design -runs impl_1
  340. }
  341. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_utilization_0]
  342. if { $obj != "" } {
  343. }
  344. # Create 'impl_1_place_report_control_sets_0' report (if not found)
  345. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_control_sets_0] "" ] } {
  346. create_report_config -report_name impl_1_place_report_control_sets_0 -report_type report_control_sets:1.0 -steps place_design -runs impl_1
  347. }
  348. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_control_sets_0]
  349. if { $obj != "" } {
  350. set_property -name "options.verbose" -value "1" -objects $obj
  351. }
  352. # Create 'impl_1_place_report_incremental_reuse_0' report (if not found)
  353. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_0] "" ] } {
  354. create_report_config -report_name impl_1_place_report_incremental_reuse_0 -report_type report_incremental_reuse:1.0 -steps place_design -runs impl_1
  355. }
  356. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_0]
  357. if { $obj != "" } {
  358. set_property -name "is_enabled" -value "0" -objects $obj
  359. }
  360. # Create 'impl_1_place_report_incremental_reuse_1' report (if not found)
  361. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_1] "" ] } {
  362. create_report_config -report_name impl_1_place_report_incremental_reuse_1 -report_type report_incremental_reuse:1.0 -steps place_design -runs impl_1
  363. }
  364. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_1]
  365. if { $obj != "" } {
  366. set_property -name "is_enabled" -value "0" -objects $obj
  367. }
  368. # Create 'impl_1_place_report_timing_summary_0' report (if not found)
  369. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_timing_summary_0] "" ] } {
  370. create_report_config -report_name impl_1_place_report_timing_summary_0 -report_type report_timing_summary:1.0 -steps place_design -runs impl_1
  371. }
  372. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_timing_summary_0]
  373. if { $obj != "" } {
  374. set_property -name "is_enabled" -value "0" -objects $obj
  375. set_property -name "options.max_paths" -value "10" -objects $obj
  376. }
  377. # Create 'impl_1_post_place_power_opt_report_timing_summary_0' report (if not found)
  378. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_post_place_power_opt_report_timing_summary_0] "" ] } {
  379. create_report_config -report_name impl_1_post_place_power_opt_report_timing_summary_0 -report_type report_timing_summary:1.0 -steps post_place_power_opt_design -runs impl_1
  380. }
  381. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_post_place_power_opt_report_timing_summary_0]
  382. if { $obj != "" } {
  383. set_property -name "is_enabled" -value "0" -objects $obj
  384. set_property -name "options.max_paths" -value "10" -objects $obj
  385. }
  386. # Create 'impl_1_phys_opt_report_timing_summary_0' report (if not found)
  387. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_phys_opt_report_timing_summary_0] "" ] } {
  388. create_report_config -report_name impl_1_phys_opt_report_timing_summary_0 -report_type report_timing_summary:1.0 -steps phys_opt_design -runs impl_1
  389. }
  390. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_phys_opt_report_timing_summary_0]
  391. if { $obj != "" } {
  392. set_property -name "is_enabled" -value "0" -objects $obj
  393. set_property -name "options.max_paths" -value "10" -objects $obj
  394. }
  395. # Create 'impl_1_route_report_drc_0' report (if not found)
  396. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_drc_0] "" ] } {
  397. create_report_config -report_name impl_1_route_report_drc_0 -report_type report_drc:1.0 -steps route_design -runs impl_1
  398. }
  399. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_drc_0]
  400. if { $obj != "" } {
  401. }
  402. # Create 'impl_1_route_report_methodology_0' report (if not found)
  403. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_methodology_0] "" ] } {
  404. create_report_config -report_name impl_1_route_report_methodology_0 -report_type report_methodology:1.0 -steps route_design -runs impl_1
  405. }
  406. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_methodology_0]
  407. if { $obj != "" } {
  408. }
  409. # Create 'impl_1_route_report_power_0' report (if not found)
  410. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_power_0] "" ] } {
  411. create_report_config -report_name impl_1_route_report_power_0 -report_type report_power:1.0 -steps route_design -runs impl_1
  412. }
  413. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_power_0]
  414. if { $obj != "" } {
  415. }
  416. # Create 'impl_1_route_report_route_status_0' report (if not found)
  417. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_route_status_0] "" ] } {
  418. create_report_config -report_name impl_1_route_report_route_status_0 -report_type report_route_status:1.0 -steps route_design -runs impl_1
  419. }
  420. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_route_status_0]
  421. if { $obj != "" } {
  422. }
  423. # Create 'impl_1_route_report_timing_summary_0' report (if not found)
  424. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_timing_summary_0] "" ] } {
  425. create_report_config -report_name impl_1_route_report_timing_summary_0 -report_type report_timing_summary:1.0 -steps route_design -runs impl_1
  426. }
  427. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_timing_summary_0]
  428. if { $obj != "" } {
  429. set_property -name "options.max_paths" -value "10" -objects $obj
  430. }
  431. # Create 'impl_1_route_report_incremental_reuse_0' report (if not found)
  432. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_incremental_reuse_0] "" ] } {
  433. create_report_config -report_name impl_1_route_report_incremental_reuse_0 -report_type report_incremental_reuse:1.0 -steps route_design -runs impl_1
  434. }
  435. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_incremental_reuse_0]
  436. if { $obj != "" } {
  437. }
  438. # Create 'impl_1_route_report_clock_utilization_0' report (if not found)
  439. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_clock_utilization_0] "" ] } {
  440. create_report_config -report_name impl_1_route_report_clock_utilization_0 -report_type report_clock_utilization:1.0 -steps route_design -runs impl_1
  441. }
  442. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_clock_utilization_0]
  443. if { $obj != "" } {
  444. }
  445. # Create 'impl_1_route_report_bus_skew_0' report (if not found)
  446. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_bus_skew_0] "" ] } {
  447. create_report_config -report_name impl_1_route_report_bus_skew_0 -report_type report_bus_skew:1.1 -steps route_design -runs impl_1
  448. }
  449. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_bus_skew_0]
  450. if { $obj != "" } {
  451. set_property -name "options.warn_on_violation" -value "1" -objects $obj
  452. }
  453. # Create 'impl_1_post_route_phys_opt_report_timing_summary_0' report (if not found)
  454. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_timing_summary_0] "" ] } {
  455. create_report_config -report_name impl_1_post_route_phys_opt_report_timing_summary_0 -report_type report_timing_summary:1.0 -steps post_route_phys_opt_design -runs impl_1
  456. }
  457. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_timing_summary_0]
  458. if { $obj != "" } {
  459. set_property -name "options.max_paths" -value "10" -objects $obj
  460. set_property -name "options.warn_on_violation" -value "1" -objects $obj
  461. }
  462. # Create 'impl_1_post_route_phys_opt_report_bus_skew_0' report (if not found)
  463. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_bus_skew_0] "" ] } {
  464. create_report_config -report_name impl_1_post_route_phys_opt_report_bus_skew_0 -report_type report_bus_skew:1.1 -steps post_route_phys_opt_design -runs impl_1
  465. }
  466. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_bus_skew_0]
  467. if { $obj != "" } {
  468. set_property -name "options.warn_on_violation" -value "1" -objects $obj
  469. }
  470. set obj [get_runs impl_1]
  471. set_property -name "part" -value "xc7s25csga225-2" -objects $obj
  472. set_property -name "auto_incremental_checkpoint.directory" -value "$proj_dir/project_1.srcs/utils_1/imports/impl_1" -objects $obj
  473. set_property -name "strategy" -value "Vivado Implementation Defaults" -objects $obj
  474. set_property -name "steps.write_bitstream.args.bin_file" -value "1" -objects $obj
  475. set_property -name "steps.write_bitstream.args.readback_file" -value "0" -objects $obj
  476. set_property -name "steps.write_bitstream.args.verbose" -value "0" -objects $obj
  477. # set the current impl run
  478. current_run -implementation [get_runs impl_1]
  479. puts "INFO: Project created:${_xil_proj_name_}"
  480. # Create 'drc_1' gadget (if not found)
  481. if {[string equal [get_dashboard_gadgets [ list "drc_1" ] ] ""]} {
  482. create_dashboard_gadget -name {drc_1} -type drc
  483. }
  484. set obj [get_dashboard_gadgets [ list "drc_1" ] ]
  485. set_property -name "reports" -value "impl_1#impl_1_route_report_drc_0" -objects $obj
  486. # Create 'methodology_1' gadget (if not found)
  487. if {[string equal [get_dashboard_gadgets [ list "methodology_1" ] ] ""]} {
  488. create_dashboard_gadget -name {methodology_1} -type methodology
  489. }
  490. set obj [get_dashboard_gadgets [ list "methodology_1" ] ]
  491. set_property -name "reports" -value "impl_1#impl_1_route_report_methodology_0" -objects $obj
  492. # Create 'power_1' gadget (if not found)
  493. if {[string equal [get_dashboard_gadgets [ list "power_1" ] ] ""]} {
  494. create_dashboard_gadget -name {power_1} -type power
  495. }
  496. set obj [get_dashboard_gadgets [ list "power_1" ] ]
  497. set_property -name "reports" -value "impl_1#impl_1_route_report_power_0" -objects $obj
  498. # Create 'timing_1' gadget (if not found)
  499. if {[string equal [get_dashboard_gadgets [ list "timing_1" ] ] ""]} {
  500. create_dashboard_gadget -name {timing_1} -type timing
  501. }
  502. set obj [get_dashboard_gadgets [ list "timing_1" ] ]
  503. set_property -name "reports" -value "impl_1#impl_1_route_report_timing_summary_0" -objects $obj
  504. # Create 'utilization_1' gadget (if not found)
  505. if {[string equal [get_dashboard_gadgets [ list "utilization_1" ] ] ""]} {
  506. create_dashboard_gadget -name {utilization_1} -type utilization
  507. }
  508. set obj [get_dashboard_gadgets [ list "utilization_1" ] ]
  509. set_property -name "reports" -value "synth_1#synth_1_synth_report_utilization_0" -objects $obj
  510. set_property -name "run.step" -value "synth_design" -objects $obj
  511. set_property -name "run.type" -value "synthesis" -objects $obj
  512. # Create 'utilization_2' gadget (if not found)
  513. if {[string equal [get_dashboard_gadgets [ list "utilization_2" ] ] ""]} {
  514. create_dashboard_gadget -name {utilization_2} -type utilization
  515. }
  516. set obj [get_dashboard_gadgets [ list "utilization_2" ] ]
  517. set_property -name "reports" -value "impl_1#impl_1_place_report_utilization_0" -objects $obj
  518. move_dashboard_gadget -name {utilization_1} -row 0 -col 0
  519. move_dashboard_gadget -name {power_1} -row 1 -col 0
  520. move_dashboard_gadget -name {drc_1} -row 2 -col 0
  521. move_dashboard_gadget -name {timing_1} -row 0 -col 1
  522. move_dashboard_gadget -name {utilization_2} -row 1 -col 1
  523. move_dashboard_gadget -name {methodology_1} -row 2 -col 1
  524. ##################################################################
  525. # CHECK VIVADO VERSION
  526. ##################################################################
  527. set scripts_vivado_version 2020.2
  528. set current_vivado_version [version -short]
  529. if { [string first $scripts_vivado_version $current_vivado_version] == -1 } {
  530. catch {common::send_msg_id "IPS_TCL-100" "ERROR" "This script was generated using Vivado <$scripts_vivado_version> and is being run in <$current_vivado_version> of Vivado. Please run the script in Vivado <$scripts_vivado_version> then open the design in Vivado <$current_vivado_version>. Upgrade the design by running \"Tools => Report => Report IP Status...\", then run write_ip_tcl to create an updated script."}
  531. return 1
  532. }
  533. ##################################################################
  534. # START
  535. ##################################################################
  536. # To test this script, run the following commands from Vivado Tcl console:
  537. # source recreateIp.tcl
  538. # If there is no project opened, this script will create a
  539. # project, but make sure you do not have an existing project
  540. # <./S5443v3_PROJ/S5443v3.xpr> in the current working folder.
  541. set list_projs [get_projects -quiet]
  542. if { $list_projs eq "" } {
  543. create_project S5443v3 S5443v3_PROJ -part xc7s25csga225-2
  544. set_property target_language Verilog [current_project]
  545. set_property simulator_language Verilog [current_project]
  546. }
  547. ##################################################################
  548. # CHECK IPs
  549. ##################################################################
  550. set bCheckIPs 1
  551. set bCheckIPsPassed 1
  552. if { $bCheckIPs == 1 } {
  553. set list_check_ips { xilinx.com:ip:clk_wiz:6.0 xilinx.com:ip:fifo_generator:13.2 }
  554. set list_ips_missing ""
  555. common::send_msg_id "IPS_TCL-1001" "INFO" "Checking if the following IPs exist in the project's IP catalog: $list_check_ips ."
  556. foreach ip_vlnv $list_check_ips {
  557. set ip_obj [get_ipdefs -all $ip_vlnv]
  558. if { $ip_obj eq "" } {
  559. lappend list_ips_missing $ip_vlnv
  560. }
  561. }
  562. if { $list_ips_missing ne "" } {
  563. catch {common::send_msg_id "IPS_TCL-105" "ERROR" "The following IPs are not found in the IP Catalog:\n $list_ips_missing\n\nResolution: Please add the repository containing the IP(s) to the project." }
  564. set bCheckIPsPassed 0
  565. }
  566. }
  567. if { $bCheckIPsPassed != 1 } {
  568. common::send_msg_id "IPS_TCL-102" "WARNING" "Will not continue with creation of design due to the error(s) above."
  569. return 1
  570. }
  571. ##################################################################
  572. # CREATE IP ClkDiv
  573. ##################################################################
  574. set ClkDiv [create_ip -name clk_wiz -vendor xilinx.com -library ip -version 6.0 -module_name ClkDiv]
  575. set_property -dict {
  576. CONFIG.PRIM_IN_FREQ {123.000}
  577. CONFIG.CLKIN1_JITTER_PS {81.30000000000001}
  578. CONFIG.CLKOUT2_USED {true}
  579. CONFIG.CLKOUT3_USED {true}
  580. CONFIG.CLKOUT4_USED {true}
  581. CONFIG.CLKOUT5_USED {true}
  582. CONFIG.CLKOUT6_USED {true}
  583. CONFIG.CLKOUT7_USED {true}
  584. CONFIG.NUM_OUT_CLKS {7}
  585. CONFIG.CLKOUT2_REQUESTED_OUT_FREQ {80.000}
  586. CONFIG.CLKOUT3_REQUESTED_OUT_FREQ {70.000}
  587. CONFIG.CLKOUT4_REQUESTED_OUT_FREQ {60.000}
  588. CONFIG.CLKOUT5_REQUESTED_OUT_FREQ {50.000}
  589. CONFIG.CLKOUT6_REQUESTED_OUT_FREQ {40.000}
  590. CONFIG.CLKOUT7_REQUESTED_OUT_FREQ {30.000}
  591. CONFIG.MMCM_DIVCLK_DIVIDE {1}
  592. CONFIG.MMCM_CLKFBOUT_MULT_F {9.750}
  593. CONFIG.MMCM_CLKIN1_PERIOD {8.130}
  594. CONFIG.MMCM_CLKOUT0_DIVIDE_F {12.000}
  595. CONFIG.MMCM_CLKOUT1_DIVIDE {15}
  596. CONFIG.MMCM_CLKOUT2_DIVIDE {17}
  597. CONFIG.MMCM_CLKOUT3_DIVIDE {20}
  598. CONFIG.MMCM_CLKOUT4_DIVIDE {24}
  599. CONFIG.MMCM_CLKOUT5_DIVIDE {30}
  600. CONFIG.MMCM_CLKOUT6_DIVIDE {40}
  601. CONFIG.CLKOUT1_JITTER {112.035}
  602. CONFIG.CLKOUT1_PHASE_ERROR {85.478}
  603. CONFIG.CLKOUT2_JITTER {116.822}
  604. CONFIG.CLKOUT2_PHASE_ERROR {85.478}
  605. CONFIG.CLKOUT3_JITTER {119.640}
  606. CONFIG.CLKOUT3_PHASE_ERROR {85.478}
  607. CONFIG.CLKOUT4_JITTER {123.604}
  608. CONFIG.CLKOUT4_PHASE_ERROR {85.478}
  609. CONFIG.CLKOUT5_JITTER {128.250}
  610. CONFIG.CLKOUT5_PHASE_ERROR {85.478}
  611. CONFIG.CLKOUT6_JITTER {134.251}
  612. CONFIG.CLKOUT6_PHASE_ERROR {85.478}
  613. CONFIG.CLKOUT7_JITTER {142.568}
  614. CONFIG.CLKOUT7_PHASE_ERROR {85.478}
  615. } [get_ips ClkDiv]
  616. set_property -dict {
  617. GENERATE_SYNTH_CHECKPOINT {1}
  618. } $ClkDiv
  619. ##################################################################
  620. ##################################################################
  621. # CREATE IP DataFifoRx
  622. ##################################################################
  623. set DataFifoRx [create_ip -name fifo_generator -vendor xilinx.com -library ip -version 13.2 -module_name DataFifoRx]
  624. set_property -dict {
  625. CONFIG.Fifo_Implementation {Independent_Clocks_Builtin_FIFO}
  626. CONFIG.Performance_Options {First_Word_Fall_Through}
  627. CONFIG.Input_Data_Width {32}
  628. CONFIG.Input_Depth {512}
  629. CONFIG.Output_Data_Width {32}
  630. CONFIG.Output_Depth {512}
  631. CONFIG.Reset_Type {Asynchronous_Reset}
  632. CONFIG.Use_Dout_Reset {false}
  633. CONFIG.Data_Count_Width {9}
  634. CONFIG.Write_Data_Count_Width {9}
  635. CONFIG.Read_Data_Count_Width {9}
  636. CONFIG.Read_Clock_Frequency {123}
  637. CONFIG.Write_Clock_Frequency {100}
  638. CONFIG.Full_Threshold_Assert_Value {503}
  639. CONFIG.Full_Threshold_Negate_Value {502}
  640. CONFIG.Empty_Threshold_Assert_Value {6}
  641. CONFIG.Empty_Threshold_Negate_Value {7}
  642. } [get_ips DataFifoRx]
  643. set_property -dict {
  644. GENERATE_SYNTH_CHECKPOINT {1}
  645. } $DataFifoRx
  646. ##################################################################
  647. ##################################################################
  648. # CREATE IP DataFifoTx
  649. ##################################################################
  650. set DataFifoTx [create_ip -name fifo_generator -vendor xilinx.com -library ip -version 13.2 -module_name DataFifoTx]
  651. set_property -dict {
  652. CONFIG.Fifo_Implementation {Independent_Clocks_Builtin_FIFO}
  653. CONFIG.Performance_Options {First_Word_Fall_Through}
  654. CONFIG.Input_Data_Width {32}
  655. CONFIG.Input_Depth {512}
  656. CONFIG.Output_Data_Width {32}
  657. CONFIG.Output_Depth {512}
  658. CONFIG.Reset_Type {Asynchronous_Reset}
  659. CONFIG.Use_Dout_Reset {false}
  660. CONFIG.Valid_Flag {true}
  661. CONFIG.Write_Acknowledge_Flag {true}
  662. CONFIG.Data_Count_Width {9}
  663. CONFIG.Write_Data_Count_Width {9}
  664. CONFIG.Read_Data_Count_Width {9}
  665. CONFIG.Read_Clock_Frequency {5}
  666. CONFIG.Write_Clock_Frequency {123}
  667. CONFIG.Full_Threshold_Assert_Value {408}
  668. CONFIG.Full_Threshold_Negate_Value {407}
  669. CONFIG.Empty_Threshold_Assert_Value {6}
  670. CONFIG.Empty_Threshold_Negate_Value {7}
  671. } [get_ips DataFifoTx]
  672. set_property -dict {
  673. GENERATE_SYNTH_CHECKPOINT {1}
  674. } $DataFifoTx
  675. ##################################################################