vhdl-modules.tcl 60 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231
  1. #*****************************************************************************************
  2. # Vivado (TM) v2018.3 (64-bit)
  3. #
  4. # vhdl-modules.tcl: Tcl script for re-creating project 'vhdl-modules'
  5. #
  6. # IP Build 2404404 on Fri Dec 7 01:43:56 MST 2018
  7. #
  8. # This file contains the Vivado Tcl commands for re-creating the project to the state*
  9. # when this script was generated. In order to re-create the project, please source this
  10. # file in the Vivado Tcl Shell.
  11. #
  12. # * Note that the runs in the created project will be configured the same way as the
  13. # original project, however they will not be launched automatically. To regenerate the
  14. # run results please launch the synthesis/implementation runs as needed.
  15. #
  16. #*****************************************************************************************
  17. # Set the reference directory for source file relative paths (by default the value is script directory path)
  18. set origin_dir [file dirname [info script]]
  19. # Use origin directory path location variable, if specified in the tcl shell
  20. if { [info exists ::origin_dir_loc] } {
  21. set origin_dir $::origin_dir_loc
  22. }
  23. # Set the project name
  24. set _xil_proj_name_ "vhdl-modules"
  25. # Use project name variable, if specified in the tcl shell
  26. if { [info exists ::user_project_name] } {
  27. set _xil_proj_name_ $::user_project_name
  28. }
  29. variable script_file
  30. set script_file "vhdl-modules.tcl"
  31. # Help information for this script
  32. proc print_help {} {
  33. variable script_file
  34. puts "\nDescription:"
  35. puts "Recreate a Vivado project from this script. The created project will be"
  36. puts "functionally equivalent to the original project for which this script was"
  37. puts "generated. The script contains commands for creating a project, filesets,"
  38. puts "runs, adding/importing sources and setting properties on various objects.\n"
  39. puts "Syntax:"
  40. puts "$script_file"
  41. puts "$script_file -tclargs \[--origin_dir <path>\]"
  42. puts "$script_file -tclargs \[--project_name <name>\]"
  43. puts "$script_file -tclargs \[--help\]\n"
  44. puts "Usage:"
  45. puts "Name Description"
  46. puts "-------------------------------------------------------------------------"
  47. puts "\[--origin_dir <path>\] Determine source file paths wrt this path. Default"
  48. puts " origin_dir path value is \".\", otherwise, the value"
  49. puts " that was set with the \"-paths_relative_to\" switch"
  50. puts " when this script was generated.\n"
  51. puts "\[--project_name <name>\] Create project with the specified name. Default"
  52. puts " name is the name of the project from where this"
  53. puts " script was generated.\n"
  54. puts "\[--help\] Print help information for this script"
  55. puts "-------------------------------------------------------------------------\n"
  56. exit 0
  57. }
  58. if { $::argc > 0 } {
  59. for {set i 0} {$i < $::argc} {incr i} {
  60. set option [string trim [lindex $::argv $i]]
  61. switch -regexp -- $option {
  62. "--origin_dir" { incr i; set origin_dir [lindex $::argv $i] }
  63. "--project_name" { incr i; set _xil_proj_name_ [lindex $::argv $i] }
  64. "--help" { print_help }
  65. default {
  66. if { [regexp {^-} $option] } {
  67. puts "ERROR: Unknown option '$option' specified, please type '$script_file -tclargs --help' for usage info.\n"
  68. return 1
  69. }
  70. }
  71. }
  72. }
  73. }
  74. # Set the directory path for the original project from where this script was exported
  75. set orig_proj_dir "[file normalize "$origin_dir/vivado_project"]"
  76. # Create project
  77. create_project ${_xil_proj_name_} $origin_dir/vivado_project -part xc7a100tcsg324-1 -quiet -force
  78. # Set the directory path for the new project
  79. set proj_dir [get_property directory [current_project]]
  80. # Set project properties
  81. set obj [current_project]
  82. set_property -name "default_lib" -value "xil_defaultlib" -objects $obj
  83. set_property -name "enable_vhdl_2008" -value "1" -objects $obj
  84. set_property -name "ip_cache_permissions" -value "read write" -objects $obj
  85. set_property -name "ip_output_repo" -value "$proj_dir/${_xil_proj_name_}.cache/ip" -objects $obj
  86. set_property -name "mem.enable_memory_map_generation" -value "1" -objects $obj
  87. set_property -name "part" -value "xc7a100tcsg324-1" -objects $obj
  88. set_property -name "sim.central_dir" -value "$proj_dir/${_xil_proj_name_}.ip_user_files" -objects $obj
  89. set_property -name "sim.ip.auto_export_scripts" -value "1" -objects $obj
  90. set_property -name "simulator_language" -value "Mixed" -objects $obj
  91. set_property -name "target_language" -value "VHDL" -objects $obj
  92. set_property -name "webtalk.activehdl_export_sim" -value "12" -objects $obj
  93. set_property -name "webtalk.ies_export_sim" -value "12" -objects $obj
  94. set_property -name "webtalk.modelsim_export_sim" -value "12" -objects $obj
  95. set_property -name "webtalk.questa_export_sim" -value "12" -objects $obj
  96. set_property -name "webtalk.riviera_export_sim" -value "12" -objects $obj
  97. set_property -name "webtalk.vcs_export_sim" -value "12" -objects $obj
  98. set_property -name "webtalk.xcelium_export_sim" -value "6" -objects $obj
  99. set_property -name "webtalk.xsim_export_sim" -value "12" -objects $obj
  100. set_property -name "webtalk.xsim_launch_sim" -value "17" -objects $obj
  101. set_property -name "xpm_libraries" -value "XPM_CDC XPM_MEMORY" -objects $obj
  102. # Create 'sources_1' fileset (if not found)
  103. if {[string equal [get_filesets -quiet sources_1] ""]} {
  104. create_fileset -srcset sources_1
  105. }
  106. # Set IP repository paths
  107. set obj [get_filesets sources_1]
  108. set_property "ip_repo_paths" "[file normalize "$origin_dir/src/ip_repo"]" $obj
  109. # Rebuild user ip_repo's index before adding any source files
  110. update_ip_catalog -rebuild
  111. # Set 'sources_1' fileset object
  112. set obj [get_filesets sources_1]
  113. set files [list \
  114. [file normalize "${origin_dir}/src/hdl/Block_proc.vhd"] \
  115. [file normalize "${origin_dir}/src/hdl/Loop_Border_proc.vhd"] \
  116. [file normalize "${origin_dir}/src/hdl/Loop_Border_proc_borderbuf.vhd"] \
  117. [file normalize "${origin_dir}/src/hdl/Loop_HConvH_proc6.vhd"] \
  118. [file normalize "${origin_dir}/src/hdl/Loop_VConvH_proc.vhd"] \
  119. [file normalize "${origin_dir}/src/hdl/Loop_VConvH_proc_linebuf_0.vhd"] \
  120. [file normalize "${origin_dir}/src/hdl/globals.vhd"] \
  121. [file normalize "${origin_dir}/src/hdl/checksum.vhd"] \
  122. [file normalize "${origin_dir}/src/hdl/conv2d.vhd"] \
  123. [file normalize "${origin_dir}/src/hdl/conv2d_5x5_224p.vhd"] \
  124. [file normalize "${origin_dir}/src/hdl/dummyModule.vhd"] \
  125. [file normalize "${origin_dir}/src/hdl/fifo_w32_d2_A.vhd"] \
  126. [file normalize "${origin_dir}/src/hdl/fifo_w32_d3_A.vhd"] \
  127. [file normalize "${origin_dir}/src/hdl/filter11x11_strm.vhd"] \
  128. [file normalize "${origin_dir}/src/hdl/filter11x11_strm_ent.vhd"] \
  129. [file normalize "${origin_dir}/src/hdl/kernel_5x5.vhd"] \
  130. [file normalize "${origin_dir}/src/hdl/multiplex.vhd"] \
  131. [file normalize "${origin_dir}/src/hdl/ram.vhd"] \
  132. [file normalize "${origin_dir}/src/hdl/shiftIn.vhd"] \
  133. [file normalize "${origin_dir}/src/hdl/start_for_Block_proc_U0.vhd"] \
  134. [file normalize "${origin_dir}/src/hdl/start_for_Loop_Border_proc_U0.vhd"] \
  135. [file normalize "${origin_dir}/src/hdl/start_for_Loop_VConvH_proc_U0.vhd"] \
  136. [file normalize "${origin_dir}/src/hdl/packaging.vhd"] \
  137. [file normalize "${origin_dir}/src/testbench/tb_module_behav.wcfg"] \
  138. [file normalize "${origin_dir}/vivado_project/vhdl-modules.srcs/sources_1/imports/src/complex_float.vhd"] \
  139. ]
  140. add_files -norecurse -fileset $obj $files
  141. # Add local files from the original project (-no_copy_sources specified)
  142. set files [list \
  143. [file normalize "${origin_dir}/vivado_project/vhdl-modules.srcs/sources_1/ip/fp_accumulator_0/fp_accumulator_0.xci" ]\
  144. [file normalize "${origin_dir}/vivado_project/vhdl-modules.srcs/sources_1/ip/fp_multiply_0/fp_multiply_0.xci" ]\
  145. [file normalize "${origin_dir}/vivado_project/vhdl-modules.srcs/sources_1/bd/float_mac/hdl/float_mac_wrapper.vhd" ]\
  146. ]
  147. set added_files [add_files -fileset sources_1 $files]
  148. # Set 'sources_1' fileset file properties for remote files
  149. set file "$origin_dir/src/hdl/Block_proc.vhd"
  150. set file [file normalize $file]
  151. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  152. set_property -name "file_type" -value "VHDL" -objects $file_obj
  153. set file "$origin_dir/src/hdl/Loop_Border_proc.vhd"
  154. set file [file normalize $file]
  155. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  156. set_property -name "file_type" -value "VHDL" -objects $file_obj
  157. set file "$origin_dir/src/hdl/Loop_Border_proc_borderbuf.vhd"
  158. set file [file normalize $file]
  159. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  160. set_property -name "file_type" -value "VHDL" -objects $file_obj
  161. set file "$origin_dir/src/hdl/Loop_HConvH_proc6.vhd"
  162. set file [file normalize $file]
  163. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  164. set_property -name "file_type" -value "VHDL" -objects $file_obj
  165. set file "$origin_dir/src/hdl/Loop_VConvH_proc.vhd"
  166. set file [file normalize $file]
  167. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  168. set_property -name "file_type" -value "VHDL" -objects $file_obj
  169. set file "$origin_dir/src/hdl/Loop_VConvH_proc_linebuf_0.vhd"
  170. set file [file normalize $file]
  171. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  172. set_property -name "file_type" -value "VHDL" -objects $file_obj
  173. set file "$origin_dir/src/hdl/globals.vhd"
  174. set file [file normalize $file]
  175. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  176. set_property -name "file_type" -value "VHDL" -objects $file_obj
  177. set file "$origin_dir/src/hdl/checksum.vhd"
  178. set file [file normalize $file]
  179. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  180. set_property -name "file_type" -value "VHDL" -objects $file_obj
  181. set file "$origin_dir/src/hdl/conv2d.vhd"
  182. set file [file normalize $file]
  183. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  184. set_property -name "file_type" -value "VHDL" -objects $file_obj
  185. set file "$origin_dir/src/hdl/conv2d_5x5_224p.vhd"
  186. set file [file normalize $file]
  187. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  188. set_property -name "file_type" -value "VHDL" -objects $file_obj
  189. set file "$origin_dir/src/hdl/dummyModule.vhd"
  190. set file [file normalize $file]
  191. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  192. set_property -name "file_type" -value "VHDL" -objects $file_obj
  193. set file "$origin_dir/src/hdl/fifo_w32_d2_A.vhd"
  194. set file [file normalize $file]
  195. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  196. set_property -name "file_type" -value "VHDL" -objects $file_obj
  197. set file "$origin_dir/src/hdl/fifo_w32_d3_A.vhd"
  198. set file [file normalize $file]
  199. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  200. set_property -name "file_type" -value "VHDL" -objects $file_obj
  201. set file "$origin_dir/src/hdl/filter11x11_strm.vhd"
  202. set file [file normalize $file]
  203. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  204. set_property -name "file_type" -value "VHDL" -objects $file_obj
  205. set file "$origin_dir/src/hdl/filter11x11_strm_ent.vhd"
  206. set file [file normalize $file]
  207. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  208. set_property -name "file_type" -value "VHDL" -objects $file_obj
  209. set file "$origin_dir/src/hdl/kernel_5x5.vhd"
  210. set file [file normalize $file]
  211. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  212. set_property -name "file_type" -value "VHDL" -objects $file_obj
  213. set file "$origin_dir/src/hdl/multiplex.vhd"
  214. set file [file normalize $file]
  215. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  216. set_property -name "file_type" -value "VHDL" -objects $file_obj
  217. set file "$origin_dir/src/hdl/ram.vhd"
  218. set file [file normalize $file]
  219. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  220. set_property -name "file_type" -value "VHDL" -objects $file_obj
  221. set file "$origin_dir/src/hdl/shiftIn.vhd"
  222. set file [file normalize $file]
  223. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  224. set_property -name "file_type" -value "VHDL" -objects $file_obj
  225. set file "$origin_dir/src/hdl/start_for_Block_proc_U0.vhd"
  226. set file [file normalize $file]
  227. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  228. set_property -name "file_type" -value "VHDL" -objects $file_obj
  229. set file "$origin_dir/src/hdl/start_for_Loop_Border_proc_U0.vhd"
  230. set file [file normalize $file]
  231. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  232. set_property -name "file_type" -value "VHDL" -objects $file_obj
  233. set file "$origin_dir/src/hdl/start_for_Loop_VConvH_proc_U0.vhd"
  234. set file [file normalize $file]
  235. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  236. set_property -name "file_type" -value "VHDL" -objects $file_obj
  237. set file "$origin_dir/src/hdl/packaging.vhd"
  238. set file [file normalize $file]
  239. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  240. set_property -name "file_type" -value "VHDL" -objects $file_obj
  241. set file "$origin_dir/vivado_project/vhdl-modules.srcs/sources_1/imports/src/complex_float.vhd"
  242. set file [file normalize $file]
  243. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  244. set_property -name "file_type" -value "VHDL" -objects $file_obj
  245. # Set 'sources_1' fileset file properties for local files
  246. set file "fp_accumulator_0/fp_accumulator_0.xci"
  247. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  248. set_property -name "generate_files_for_reference" -value "0" -objects $file_obj
  249. set_property -name "registered_with_manager" -value "1" -objects $file_obj
  250. set file "fp_multiply_0/fp_multiply_0.xci"
  251. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  252. set_property -name "generate_files_for_reference" -value "0" -objects $file_obj
  253. set_property -name "registered_with_manager" -value "1" -objects $file_obj
  254. set file "hdl/float_mac_wrapper.vhd"
  255. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  256. set_property -name "file_type" -value "VHDL" -objects $file_obj
  257. # Set 'sources_1' fileset properties
  258. set obj [get_filesets sources_1]
  259. set_property -name "top" -value "design_1_wrapper" -objects $obj
  260. set_property -name "top_auto_set" -value "0" -objects $obj
  261. # Create 'constrs_1' fileset (if not found)
  262. if {[string equal [get_filesets -quiet constrs_1] ""]} {
  263. create_fileset -constrset constrs_1
  264. }
  265. # Set 'constrs_1' fileset object
  266. set obj [get_filesets constrs_1]
  267. # Add/Import constrs file and set constrs file properties
  268. set file "[file normalize "$origin_dir/src/constraints/nexys_4_ddr.xdc"]"
  269. set file_added [add_files -norecurse -fileset $obj [list $file]]
  270. set file "$origin_dir/src/constraints/nexys_4_ddr.xdc"
  271. set file [file normalize $file]
  272. set file_obj [get_files -of_objects [get_filesets constrs_1] [list "*$file"]]
  273. set_property -name "file_type" -value "XDC" -objects $file_obj
  274. # Set 'constrs_1' fileset properties
  275. set obj [get_filesets constrs_1]
  276. set_property -name "target_part" -value "xc7a100tcsg324-1" -objects $obj
  277. # Create 'sim_1' fileset (if not found)
  278. if {[string equal [get_filesets -quiet sim_1] ""]} {
  279. create_fileset -simset sim_1
  280. }
  281. # Set 'sim_1' fileset object
  282. set obj [get_filesets sim_1]
  283. set files [list \
  284. [file normalize "${origin_dir}/src/testbench/packaging_tb.vhd"] \
  285. ]
  286. add_files -norecurse -fileset $obj $files
  287. # Set 'sim_1' fileset file properties for remote files
  288. set file "$origin_dir/src/testbench/packaging_tb.vhd"
  289. set file [file normalize $file]
  290. set file_obj [get_files -of_objects [get_filesets sim_1] [list "*$file"]]
  291. set_property -name "file_type" -value "VHDL" -objects $file_obj
  292. # Set 'sim_1' fileset file properties for local files
  293. # None
  294. # Set 'sim_1' fileset properties
  295. set obj [get_filesets sim_1]
  296. set_property -name "top" -value "tb_module" -objects $obj
  297. set_property -name "top_auto_set" -value "0" -objects $obj
  298. set_property -name "top_lib" -value "xil_defaultlib" -objects $obj
  299. # Set 'utils_1' fileset object
  300. set obj [get_filesets utils_1]
  301. # Empty (no sources present)
  302. # Set 'utils_1' fileset properties
  303. set obj [get_filesets utils_1]
  304. # Adding sources referenced in BDs, if not already added
  305. if { [get_files fp_accumulator_0.xci] == "" } {
  306. import_files -quiet -fileset sources_1 c:/Users/johan/mlfpga/repos/vhdl-modules/vivado_project/vhdl-modules.srcs/sources_1/ip/fp_accumulator_0/fp_accumulator_0.xci
  307. }
  308. if { [get_files fp_multiply_0.xci] == "" } {
  309. import_files -quiet -fileset sources_1 c:/Users/johan/mlfpga/repos/vhdl-modules/vivado_project/vhdl-modules.srcs/sources_1/ip/fp_multiply_0/fp_multiply_0.xci
  310. }
  311. if { [get_files Block_proc.vhd] == "" } {
  312. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/Block_proc.vhd
  313. }
  314. if { [get_files Loop_Border_proc.vhd] == "" } {
  315. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/Loop_Border_proc.vhd
  316. }
  317. if { [get_files Loop_Border_proc_borderbuf.vhd] == "" } {
  318. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/Loop_Border_proc_borderbuf.vhd
  319. }
  320. if { [get_files Loop_HConvH_proc6.vhd] == "" } {
  321. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/Loop_HConvH_proc6.vhd
  322. }
  323. if { [get_files Loop_VConvH_proc.vhd] == "" } {
  324. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/Loop_VConvH_proc.vhd
  325. }
  326. if { [get_files Loop_VConvH_proc_linebuf_0.vhd] == "" } {
  327. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/Loop_VConvH_proc_linebuf_0.vhd
  328. }
  329. if { [get_files globals.vhd] == "" } {
  330. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/globals.vhd
  331. }
  332. if { [get_files checksum.vhd] == "" } {
  333. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/checksum.vhd
  334. }
  335. if { [get_files conv2d.vhd] == "" } {
  336. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/conv2d.vhd
  337. }
  338. if { [get_files conv2d_5x5_224p.vhd] == "" } {
  339. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/conv2d_5x5_224p.vhd
  340. }
  341. if { [get_files dummyModule.vhd] == "" } {
  342. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/dummyModule.vhd
  343. }
  344. if { [get_files fifo_w32_d2_A.vhd] == "" } {
  345. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/fifo_w32_d2_A.vhd
  346. }
  347. if { [get_files fifo_w32_d3_A.vhd] == "" } {
  348. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/fifo_w32_d3_A.vhd
  349. }
  350. if { [get_files filter11x11_strm.vhd] == "" } {
  351. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/filter11x11_strm.vhd
  352. }
  353. if { [get_files filter11x11_strm_ent.vhd] == "" } {
  354. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/filter11x11_strm_ent.vhd
  355. }
  356. if { [get_files kernel_5x5.vhd] == "" } {
  357. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/kernel_5x5.vhd
  358. }
  359. if { [get_files multiplex.vhd] == "" } {
  360. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/multiplex.vhd
  361. }
  362. if { [get_files ram.vhd] == "" } {
  363. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/ram.vhd
  364. }
  365. if { [get_files shiftIn.vhd] == "" } {
  366. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/shiftIn.vhd
  367. }
  368. if { [get_files start_for_Block_proc_U0.vhd] == "" } {
  369. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/start_for_Block_proc_U0.vhd
  370. }
  371. if { [get_files start_for_Loop_Border_proc_U0.vhd] == "" } {
  372. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/start_for_Loop_Border_proc_U0.vhd
  373. }
  374. if { [get_files start_for_Loop_VConvH_proc_U0.vhd] == "" } {
  375. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/start_for_Loop_VConvH_proc_U0.vhd
  376. }
  377. if { [get_files packaging.vhd] == "" } {
  378. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/packaging.vhd
  379. }
  380. # Proc to create BD design_1
  381. proc cr_bd_design_1 { parentCell } {
  382. # The design that will be created by this Tcl proc contains the following
  383. # module references:
  384. # packaging
  385. # CHANGE DESIGN NAME HERE
  386. set design_name design_1
  387. common::send_msg_id "BD_TCL-003" "INFO" "Currently there is no design <$design_name> in project, so creating one..."
  388. create_bd_design $design_name
  389. set bCheckIPsPassed 1
  390. ##################################################################
  391. # CHECK IPs
  392. ##################################################################
  393. set bCheckIPs 1
  394. if { $bCheckIPs == 1 } {
  395. set list_check_ips "\
  396. xilinx.com:ip:c_counter_binary:12.0\
  397. xilinx.com:ip:clk_wiz:6.0\
  398. xilinx.com:user:ethernet_transceiver2:1.0\
  399. xilinx.com:ip:fifo_generator:13.2\
  400. xilinx.com:ip:util_vector_logic:2.0\
  401. xilinx.com:user:segment:1.0\
  402. xilinx.com:ip:xlconcat:2.1\
  403. xilinx.com:ip:xlconstant:1.1\
  404. xilinx.com:ip:xlslice:1.0\
  405. "
  406. set list_ips_missing ""
  407. common::send_msg_id "BD_TCL-006" "INFO" "Checking if the following IPs exist in the project's IP catalog: $list_check_ips ."
  408. foreach ip_vlnv $list_check_ips {
  409. set ip_obj [get_ipdefs -all $ip_vlnv]
  410. if { $ip_obj eq "" } {
  411. lappend list_ips_missing $ip_vlnv
  412. }
  413. }
  414. if { $list_ips_missing ne "" } {
  415. catch {common::send_msg_id "BD_TCL-115" "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." }
  416. set bCheckIPsPassed 0
  417. }
  418. }
  419. ##################################################################
  420. # CHECK Modules
  421. ##################################################################
  422. set bCheckModules 1
  423. if { $bCheckModules == 1 } {
  424. set list_check_mods "\
  425. packaging\
  426. "
  427. set list_mods_missing ""
  428. common::send_msg_id "BD_TCL-006" "INFO" "Checking if the following modules exist in the project's sources: $list_check_mods ."
  429. foreach mod_vlnv $list_check_mods {
  430. if { [can_resolve_reference $mod_vlnv] == 0 } {
  431. lappend list_mods_missing $mod_vlnv
  432. }
  433. }
  434. if { $list_mods_missing ne "" } {
  435. catch {common::send_msg_id "BD_TCL-115" "ERROR" "The following module(s) are not found in the project: $list_mods_missing" }
  436. common::send_msg_id "BD_TCL-008" "INFO" "Please add source files for the missing module(s) above."
  437. set bCheckIPsPassed 0
  438. }
  439. }
  440. if { $bCheckIPsPassed != 1 } {
  441. common::send_msg_id "BD_TCL-1003" "WARNING" "Will not continue with creation of design due to the error(s) above."
  442. return 3
  443. }
  444. variable script_folder
  445. if { $parentCell eq "" } {
  446. set parentCell [get_bd_cells /]
  447. }
  448. # Get object for parentCell
  449. set parentObj [get_bd_cells $parentCell]
  450. if { $parentObj == "" } {
  451. catch {common::send_msg_id "BD_TCL-100" "ERROR" "Unable to find parent cell <$parentCell>!"}
  452. return
  453. }
  454. # Make sure parentObj is hier blk
  455. set parentType [get_property TYPE $parentObj]
  456. if { $parentType ne "hier" } {
  457. catch {common::send_msg_id "BD_TCL-101" "ERROR" "Parent <$parentObj> has TYPE = <$parentType>. Expected to be <hier>."}
  458. return
  459. }
  460. # Save current instance; Restore later
  461. set oldCurInst [current_bd_instance .]
  462. # Set parent object as current
  463. current_bd_instance $parentObj
  464. # Create interface ports
  465. # Create ports
  466. set anodes_0 [ create_bd_port -dir O -from 0 -to 7 anodes_0 ]
  467. set cathodes_0 [ create_bd_port -dir O -from 0 -to 7 cathodes_0 ]
  468. set clk_100MHz [ create_bd_port -dir I -type clk clk_100MHz ]
  469. set_property -dict [ list \
  470. CONFIG.FREQ_HZ {100000000} \
  471. ] $clk_100MHz
  472. set eth_crsdv_0 [ create_bd_port -dir IO eth_crsdv_0 ]
  473. set eth_mdc_0 [ create_bd_port -dir O eth_mdc_0 ]
  474. set eth_mdio_0 [ create_bd_port -dir IO eth_mdio_0 ]
  475. set eth_refclk_0 [ create_bd_port -dir O eth_refclk_0 ]
  476. set eth_rstn_0 [ create_bd_port -dir IO -type rst eth_rstn_0 ]
  477. set eth_rxd_0 [ create_bd_port -dir IO -from 1 -to 0 eth_rxd_0 ]
  478. set eth_rxerr_0 [ create_bd_port -dir IO eth_rxerr_0 ]
  479. set eth_txd_0 [ create_bd_port -dir IO -from 1 -to 0 eth_txd_0 ]
  480. set eth_txen_0 [ create_bd_port -dir IO eth_txen_0 ]
  481. set led16_b_0 [ create_bd_port -dir O led16_b_0 ]
  482. set led16_g_0 [ create_bd_port -dir O led16_g_0 ]
  483. set led16_r_0 [ create_bd_port -dir O led16_r_0 ]
  484. set led17_b_0 [ create_bd_port -dir O led17_b_0 ]
  485. set led17_g_0 [ create_bd_port -dir O led17_g_0 ]
  486. set led17_r_0 [ create_bd_port -dir O led17_r_0 ]
  487. set led_0 [ create_bd_port -dir O -from 15 -to 0 led_0 ]
  488. set reset_rtl_0 [ create_bd_port -dir I -type rst reset_rtl_0 ]
  489. set_property -dict [ list \
  490. CONFIG.POLARITY {ACTIVE_LOW} \
  491. ] $reset_rtl_0
  492. set sw_0 [ create_bd_port -dir I -from 4 -to 0 sw_0 ]
  493. # Create instance: c_counter_binary_0, and set properties
  494. set c_counter_binary_0 [ create_bd_cell -type ip -vlnv xilinx.com:ip:c_counter_binary:12.0 c_counter_binary_0 ]
  495. set_property -dict [ list \
  496. CONFIG.CE {true} \
  497. CONFIG.Fb_Latency {2} \
  498. CONFIG.Fb_Latency_Configuration {Automatic} \
  499. CONFIG.Final_Count_Value {270F} \
  500. CONFIG.Latency_Configuration {Automatic} \
  501. CONFIG.Restrict_Count {true} \
  502. CONFIG.SCLR {true} \
  503. CONFIG.SSET {false} \
  504. ] $c_counter_binary_0
  505. # Create instance: c_counter_binary_1, and set properties
  506. set c_counter_binary_1 [ create_bd_cell -type ip -vlnv xilinx.com:ip:c_counter_binary:12.0 c_counter_binary_1 ]
  507. set_property -dict [ list \
  508. CONFIG.CE {true} \
  509. CONFIG.Fb_Latency {2} \
  510. CONFIG.Fb_Latency_Configuration {Automatic} \
  511. CONFIG.Final_Count_Value {270F} \
  512. CONFIG.Latency_Configuration {Automatic} \
  513. CONFIG.Restrict_Count {true} \
  514. CONFIG.SCLR {true} \
  515. CONFIG.SSET {false} \
  516. ] $c_counter_binary_1
  517. # Create instance: clk_wiz_0, and set properties
  518. set clk_wiz_0 [ create_bd_cell -type ip -vlnv xilinx.com:ip:clk_wiz:6.0 clk_wiz_0 ]
  519. set_property -dict [ list \
  520. CONFIG.ENABLE_CLOCK_MONITOR {false} \
  521. CONFIG.PRIMITIVE {MMCM} \
  522. CONFIG.RESET_PORT {resetn} \
  523. CONFIG.RESET_TYPE {ACTIVE_LOW} \
  524. ] $clk_wiz_0
  525. # Create instance: ethernet_transceiver2_0, and set properties
  526. set ethernet_transceiver2_0 [ create_bd_cell -type ip -vlnv xilinx.com:user:ethernet_transceiver2:1.0 ethernet_transceiver2_0 ]
  527. # Create instance: fifo_input, and set properties
  528. set fifo_input [ create_bd_cell -type ip -vlnv xilinx.com:ip:fifo_generator:13.2 fifo_input ]
  529. set_property -dict [ list \
  530. CONFIG.Almost_Empty_Flag {false} \
  531. CONFIG.Data_Count {false} \
  532. CONFIG.Data_Count_Width {6} \
  533. CONFIG.Empty_Threshold_Assert_Value {2} \
  534. CONFIG.Empty_Threshold_Assert_Value_rach {1022} \
  535. CONFIG.Empty_Threshold_Assert_Value_wach {1022} \
  536. CONFIG.Empty_Threshold_Assert_Value_wrch {1022} \
  537. CONFIG.Empty_Threshold_Negate_Value {3} \
  538. CONFIG.Enable_Safety_Circuit {false} \
  539. CONFIG.FIFO_Implementation_rach {Common_Clock_Distributed_RAM} \
  540. CONFIG.FIFO_Implementation_wach {Common_Clock_Distributed_RAM} \
  541. CONFIG.FIFO_Implementation_wrch {Common_Clock_Distributed_RAM} \
  542. CONFIG.Fifo_Implementation {Common_Clock_Distributed_RAM} \
  543. CONFIG.Full_Flags_Reset_Value {0} \
  544. CONFIG.Full_Threshold_Assert_Value {62} \
  545. CONFIG.Full_Threshold_Assert_Value_rach {1023} \
  546. CONFIG.Full_Threshold_Assert_Value_wach {1023} \
  547. CONFIG.Full_Threshold_Assert_Value_wrch {1023} \
  548. CONFIG.Full_Threshold_Negate_Value {61} \
  549. CONFIG.INTERFACE_TYPE {Native} \
  550. CONFIG.Input_Data_Width {32} \
  551. CONFIG.Input_Depth {64} \
  552. CONFIG.Output_Data_Width {32} \
  553. CONFIG.Output_Depth {64} \
  554. CONFIG.Overflow_Flag {true} \
  555. CONFIG.Performance_Options {Standard_FIFO} \
  556. CONFIG.Programmable_Empty_Type {No_Programmable_Empty_Threshold} \
  557. CONFIG.Programmable_Full_Type {No_Programmable_Full_Threshold} \
  558. CONFIG.Read_Data_Count {false} \
  559. CONFIG.Read_Data_Count_Width {6} \
  560. CONFIG.Reset_Pin {true} \
  561. CONFIG.Reset_Type {Synchronous_Reset} \
  562. CONFIG.Underflow_Flag {false} \
  563. CONFIG.Use_Dout_Reset {true} \
  564. CONFIG.Use_Embedded_Registers {false} \
  565. CONFIG.Use_Extra_Logic {false} \
  566. CONFIG.Valid_Flag {false} \
  567. CONFIG.Write_Data_Count {false} \
  568. CONFIG.Write_Data_Count_Width {6} \
  569. ] $fifo_input
  570. # Create instance: fifo_output, and set properties
  571. set fifo_output [ create_bd_cell -type ip -vlnv xilinx.com:ip:fifo_generator:13.2 fifo_output ]
  572. set_property -dict [ list \
  573. CONFIG.Almost_Empty_Flag {false} \
  574. CONFIG.Almost_Full_Flag {false} \
  575. CONFIG.Data_Count {false} \
  576. CONFIG.Data_Count_Width {9} \
  577. CONFIG.Empty_Threshold_Assert_Value {2} \
  578. CONFIG.Empty_Threshold_Assert_Value_rach {1022} \
  579. CONFIG.Empty_Threshold_Assert_Value_wach {1022} \
  580. CONFIG.Empty_Threshold_Assert_Value_wrch {1022} \
  581. CONFIG.Empty_Threshold_Negate_Value {3} \
  582. CONFIG.Enable_Safety_Circuit {false} \
  583. CONFIG.FIFO_Implementation_rach {Common_Clock_Distributed_RAM} \
  584. CONFIG.FIFO_Implementation_wach {Common_Clock_Distributed_RAM} \
  585. CONFIG.FIFO_Implementation_wrch {Common_Clock_Distributed_RAM} \
  586. CONFIG.Fifo_Implementation {Independent_Clocks_Distributed_RAM} \
  587. CONFIG.Full_Flags_Reset_Value {1} \
  588. CONFIG.Full_Threshold_Assert_Value {509} \
  589. CONFIG.Full_Threshold_Assert_Value_rach {1023} \
  590. CONFIG.Full_Threshold_Assert_Value_wach {1023} \
  591. CONFIG.Full_Threshold_Assert_Value_wrch {1023} \
  592. CONFIG.Full_Threshold_Negate_Value {508} \
  593. CONFIG.INTERFACE_TYPE {Native} \
  594. CONFIG.Input_Data_Width {32} \
  595. CONFIG.Input_Depth {512} \
  596. CONFIG.Output_Data_Width {32} \
  597. CONFIG.Output_Depth {512} \
  598. CONFIG.Overflow_Flag {true} \
  599. CONFIG.Performance_Options {Standard_FIFO} \
  600. CONFIG.Programmable_Empty_Type {No_Programmable_Empty_Threshold} \
  601. CONFIG.Programmable_Full_Type {No_Programmable_Full_Threshold} \
  602. CONFIG.Read_Data_Count {true} \
  603. CONFIG.Read_Data_Count_Width {9} \
  604. CONFIG.Reset_Pin {true} \
  605. CONFIG.Reset_Type {Asynchronous_Reset} \
  606. CONFIG.Underflow_Flag {false} \
  607. CONFIG.Use_Dout_Reset {true} \
  608. CONFIG.Use_Embedded_Registers {false} \
  609. CONFIG.Use_Extra_Logic {false} \
  610. CONFIG.Valid_Flag {false} \
  611. CONFIG.Write_Data_Count {false} \
  612. CONFIG.Write_Data_Count_Width {9} \
  613. ] $fifo_output
  614. # Create instance: invert_reset_0, and set properties
  615. set invert_reset_0 [ create_bd_cell -type ip -vlnv xilinx.com:ip:util_vector_logic:2.0 invert_reset_0 ]
  616. set_property -dict [ list \
  617. CONFIG.C_OPERATION {not} \
  618. CONFIG.C_SIZE {1} \
  619. CONFIG.LOGO_FILE {data/sym_notgate.png} \
  620. ] $invert_reset_0
  621. # Create instance: packaging_0, and set properties
  622. set block_name packaging
  623. set block_cell_name packaging_0
  624. if { [catch {set packaging_0 [create_bd_cell -type module -reference $block_name $block_cell_name] } errmsg] } {
  625. catch {common::send_msg_id "BD_TCL-105" "ERROR" "Unable to add referenced block <$block_name>. Please add the files for ${block_name}'s definition into the project."}
  626. return 1
  627. } elseif { $packaging_0 eq "" } {
  628. catch {common::send_msg_id "BD_TCL-106" "ERROR" "Unable to referenced block <$block_name>. Please add the files for ${block_name}'s definition into the project."}
  629. return 1
  630. }
  631. # Create instance: segment_0, and set properties
  632. set segment_0 [ create_bd_cell -type ip -vlnv xilinx.com:user:segment:1.0 segment_0 ]
  633. # Create instance: xlconcat_4, and set properties
  634. set xlconcat_4 [ create_bd_cell -type ip -vlnv xilinx.com:ip:xlconcat:2.1 xlconcat_4 ]
  635. set_property -dict [ list \
  636. CONFIG.IN0_WIDTH {4} \
  637. CONFIG.IN1_WIDTH {4} \
  638. CONFIG.IN2_WIDTH {8} \
  639. CONFIG.IN3_WIDTH {2} \
  640. CONFIG.IN4_WIDTH {5} \
  641. CONFIG.NUM_PORTS {3} \
  642. ] $xlconcat_4
  643. # Create instance: xlconcat_5, and set properties
  644. set xlconcat_5 [ create_bd_cell -type ip -vlnv xilinx.com:ip:xlconcat:2.1 xlconcat_5 ]
  645. set_property -dict [ list \
  646. CONFIG.IN0_WIDTH {9} \
  647. CONFIG.IN1_WIDTH {7} \
  648. CONFIG.IN2_WIDTH {8} \
  649. CONFIG.IN3_WIDTH {2} \
  650. CONFIG.IN4_WIDTH {5} \
  651. CONFIG.NUM_PORTS {2} \
  652. ] $xlconcat_5
  653. # Create instance: xlconstant_0, and set properties
  654. set xlconstant_0 [ create_bd_cell -type ip -vlnv xilinx.com:ip:xlconstant:1.1 xlconstant_0 ]
  655. set_property -dict [ list \
  656. CONFIG.CONST_VAL {0} \
  657. CONFIG.CONST_WIDTH {16} \
  658. ] $xlconstant_0
  659. # Create instance: xlconstant_1, and set properties
  660. set xlconstant_1 [ create_bd_cell -type ip -vlnv xilinx.com:ip:xlconstant:1.1 xlconstant_1 ]
  661. set_property -dict [ list \
  662. CONFIG.CONST_VAL {0} \
  663. CONFIG.CONST_WIDTH {7} \
  664. ] $xlconstant_1
  665. # Create instance: xlslice_0, and set properties
  666. set xlslice_0 [ create_bd_cell -type ip -vlnv xilinx.com:ip:xlslice:1.0 xlslice_0 ]
  667. set_property -dict [ list \
  668. CONFIG.DIN_FROM {7} \
  669. CONFIG.DIN_TO {0} \
  670. CONFIG.DIN_WIDTH {16} \
  671. CONFIG.DOUT_WIDTH {8} \
  672. ] $xlslice_0
  673. # Create interface connections
  674. connect_bd_intf_net -intf_net ethernet_transceiver2_0_fifo_read [get_bd_intf_pins ethernet_transceiver2_0/fifo_read] [get_bd_intf_pins fifo_output/FIFO_READ]
  675. connect_bd_intf_net -intf_net ethernet_transceiver2_0_fifo_write [get_bd_intf_pins ethernet_transceiver2_0/fifo_write] [get_bd_intf_pins fifo_input/FIFO_WRITE]
  676. # Create port connections
  677. connect_bd_net -net Net [get_bd_ports eth_rxd_0] [get_bd_pins ethernet_transceiver2_0/eth_rxd]
  678. connect_bd_net -net Net1 [get_bd_ports eth_txd_0] [get_bd_pins ethernet_transceiver2_0/eth_txd]
  679. connect_bd_net -net Net2 [get_bd_ports eth_crsdv_0] [get_bd_pins ethernet_transceiver2_0/eth_crsdv]
  680. connect_bd_net -net Net3 [get_bd_ports eth_txen_0] [get_bd_pins ethernet_transceiver2_0/eth_txen]
  681. connect_bd_net -net Net4 [get_bd_ports eth_rxerr_0] [get_bd_pins ethernet_transceiver2_0/eth_rxerr]
  682. connect_bd_net -net Net5 [get_bd_ports eth_mdio_0] [get_bd_pins ethernet_transceiver2_0/eth_mdio]
  683. connect_bd_net -net Net6 [get_bd_ports eth_rstn_0] [get_bd_pins ethernet_transceiver2_0/eth_rstn]
  684. connect_bd_net -net aresetn [get_bd_pins clk_wiz_0/locked] [get_bd_pins ethernet_transceiver2_0/btn_reset] [get_bd_pins invert_reset_0/Op1] [get_bd_pins packaging_0/rst]
  685. connect_bd_net -net c_counter_binary_0_Q [get_bd_pins c_counter_binary_0/Q] [get_bd_pins segment_0/num2]
  686. connect_bd_net -net c_counter_binary_1_Q [get_bd_pins c_counter_binary_1/Q] [get_bd_pins segment_0/num1]
  687. connect_bd_net -net clk_100MHz_1 [get_bd_ports clk_100MHz] [get_bd_pins clk_wiz_0/clk_in1]
  688. connect_bd_net -net clk_wiz_clk_out1 [get_bd_pins c_counter_binary_0/CLK] [get_bd_pins c_counter_binary_1/CLK] [get_bd_pins clk_wiz_0/clk_out1] [get_bd_pins ethernet_transceiver2_0/clk100mhz] [get_bd_pins fifo_input/clk] [get_bd_pins fifo_output/wr_clk] [get_bd_pins packaging_0/clk] [get_bd_pins segment_0/clk]
  689. connect_bd_net -net ethernet_transceiver2_0_eth_mdc [get_bd_ports eth_mdc_0] [get_bd_pins ethernet_transceiver2_0/eth_mdc]
  690. connect_bd_net -net ethernet_transceiver2_0_eth_refclk [get_bd_ports eth_refclk_0] [get_bd_pins ethernet_transceiver2_0/eth_refclk] [get_bd_pins fifo_output/rd_clk]
  691. connect_bd_net -net ethernet_transceiver2_0_led16_b [get_bd_ports led16_b_0] [get_bd_pins ethernet_transceiver2_0/led16_b]
  692. connect_bd_net -net ethernet_transceiver2_0_led16_g [get_bd_ports led16_g_0] [get_bd_pins ethernet_transceiver2_0/led16_g]
  693. connect_bd_net -net ethernet_transceiver2_0_led16_r [get_bd_ports led16_r_0] [get_bd_pins ethernet_transceiver2_0/led16_r]
  694. connect_bd_net -net ethernet_transceiver2_0_led17_b [get_bd_ports led17_b_0] [get_bd_pins ethernet_transceiver2_0/led17_b]
  695. connect_bd_net -net ethernet_transceiver2_0_led17_g [get_bd_ports led17_g_0] [get_bd_pins ethernet_transceiver2_0/led17_g]
  696. connect_bd_net -net ethernet_transceiver2_0_led17_r [get_bd_ports led17_r_0] [get_bd_pins ethernet_transceiver2_0/led17_r]
  697. connect_bd_net -net fifo_input_dout [get_bd_pins fifo_input/dout] [get_bd_pins packaging_0/inputStream]
  698. connect_bd_net -net fifo_input_empty [get_bd_pins fifo_input/empty] [get_bd_pins packaging_0/inputEmpty]
  699. connect_bd_net -net fifo_input_overflow [get_bd_pins c_counter_binary_1/CE] [get_bd_pins fifo_input/overflow]
  700. connect_bd_net -net fifo_output_full [get_bd_pins fifo_output/full] [get_bd_pins packaging_0/outputFull]
  701. connect_bd_net -net fifo_output_overflow [get_bd_pins c_counter_binary_0/CE] [get_bd_pins fifo_output/overflow]
  702. connect_bd_net -net fifo_output_rd_data_count [get_bd_pins fifo_output/rd_data_count] [get_bd_pins xlconcat_5/In0]
  703. connect_bd_net -net packaging_0_errorCode [get_bd_pins packaging_0/errorCode] [get_bd_pins xlconcat_4/In0]
  704. connect_bd_net -net packaging_0_inpRdEn [get_bd_pins fifo_input/rd_en] [get_bd_pins packaging_0/inpRdEn]
  705. connect_bd_net -net packaging_0_outData [get_bd_pins fifo_output/din] [get_bd_pins packaging_0/outData]
  706. connect_bd_net -net packaging_0_outWrEn [get_bd_pins fifo_output/wr_en] [get_bd_pins packaging_0/outWrEn]
  707. connect_bd_net -net packaging_0_stateOut [get_bd_pins packaging_0/stateOut] [get_bd_pins xlconcat_4/In1]
  708. connect_bd_net -net reset_rtl_0_1 [get_bd_ports reset_rtl_0] [get_bd_pins clk_wiz_0/resetn]
  709. connect_bd_net -net segment_0_anodes [get_bd_ports anodes_0] [get_bd_pins segment_0/anodes]
  710. connect_bd_net -net segment_0_cathodes [get_bd_ports cathodes_0] [get_bd_pins segment_0/cathodes]
  711. connect_bd_net -net sw_0_1 [get_bd_ports sw_0] [get_bd_pins ethernet_transceiver2_0/ip]
  712. connect_bd_net -net xlconcat_4_dout [get_bd_ports led_0] [get_bd_pins xlconcat_4/dout]
  713. connect_bd_net -net xlconcat_5_dout [get_bd_pins ethernet_transceiver2_0/fifo_read_length] [get_bd_pins xlconcat_5/dout] [get_bd_pins xlslice_0/Din]
  714. connect_bd_net -net xlconstant_0_dout [get_bd_pins ethernet_transceiver2_0/udp_packet_checksum] [get_bd_pins xlconstant_0/dout]
  715. connect_bd_net -net xlconstant_1_dout [get_bd_pins xlconcat_5/In1] [get_bd_pins xlconstant_1/dout]
  716. connect_bd_net -net xlslice_0_Dout [get_bd_pins xlconcat_4/In2] [get_bd_pins xlslice_0/Dout]
  717. connect_bd_net -net xlslice_1_Dout [get_bd_pins c_counter_binary_0/SCLR] [get_bd_pins c_counter_binary_1/SCLR] [get_bd_pins fifo_input/srst] [get_bd_pins fifo_output/rst] [get_bd_pins invert_reset_0/Res]
  718. # Create address segments
  719. # Perform GUI Layout
  720. regenerate_bd_layout -layout_string {
  721. "ExpandedHierarchyInLayout":"",
  722. "guistr":"# # String gsaved with Nlview 6.8.11 2018-08-07 bk=1.4403 VDI=40 GEI=35 GUI=JA:9.0 non-TLS
  723. # -string -flagsOSRD
  724. preplace port led17_r_0 -pg 1 -y 1220 -defaultsOSRD
  725. preplace port eth_txen_0 -pg 1 -y 920 -defaultsOSRD
  726. preplace port led17_g_0 -pg 1 -y 1190 -defaultsOSRD
  727. preplace port eth_rxerr_0 -pg 1 -y 950 -defaultsOSRD
  728. preplace port led16_r_0 -pg 1 -y 1130 -defaultsOSRD
  729. preplace port led17_b_0 -pg 1 -y 1160 -defaultsOSRD
  730. preplace port clk_100MHz -pg 1 -y 570 -defaultsOSRD
  731. preplace port eth_rstn_0 -pg 1 -y 1040 -defaultsOSRD
  732. preplace port led16_b_0 -pg 1 -y 1070 -defaultsOSRD
  733. preplace port eth_mdc_0 -pg 1 -y 980 -defaultsOSRD
  734. preplace port led16_g_0 -pg 1 -y 1100 -defaultsOSRD
  735. preplace port eth_refclk_0 -pg 1 -y 760 -defaultsOSRD
  736. preplace port eth_mdio_0 -pg 1 -y 1010 -defaultsOSRD
  737. preplace port reset_rtl_0 -pg 1 -y 540 -defaultsOSRD
  738. preplace port eth_crsdv_0 -pg 1 -y 890 -defaultsOSRD
  739. preplace portBus anodes_0 -pg 1 -y 130 -defaultsOSRD
  740. preplace portBus cathodes_0 -pg 1 -y 160 -defaultsOSRD
  741. preplace portBus eth_txd_0 -pg 1 -y 860 -defaultsOSRD
  742. preplace portBus led_0 -pg 1 -y 280 -defaultsOSRD
  743. preplace portBus sw_0 -pg 1 -y 1080 -defaultsOSRD
  744. preplace portBus eth_rxd_0 -pg 1 -y 830 -defaultsOSRD
  745. preplace inst fifo_input -pg 1 -lvl 4 -y 340 -defaultsOSRD
  746. preplace inst xlslice_0 -pg 1 -lvl 5 -y 820 -defaultsOSRD
  747. preplace inst packaging_0 -pg 1 -lvl 3 -y 580 -defaultsOSRD
  748. preplace inst xlconstant_0 -pg 1 -lvl 2 -y 1020 -defaultsOSRD
  749. preplace inst xlconstant_1 -pg 1 -lvl 1 -y 680 -defaultsOSRD
  750. preplace inst fifo_output -pg 1 -lvl 4 -y 590 -defaultsOSRD
  751. preplace inst ethernet_transceiver2_0 -pg 1 -lvl 3 -y 1040 -defaultsOSRD
  752. preplace inst c_counter_binary_0 -pg 1 -lvl 5 -y 80 -defaultsOSRD
  753. preplace inst c_counter_binary_1 -pg 1 -lvl 5 -y 340 -defaultsOSRD
  754. preplace inst xlconcat_4 -pg 1 -lvl 6 -y 280 -defaultsOSRD
  755. preplace inst segment_0 -pg 1 -lvl 6 -y 140 -defaultsOSRD
  756. preplace inst invert_reset_0 -pg 1 -lvl 3 -y 720 -defaultsOSRD
  757. preplace inst xlconcat_5 -pg 1 -lvl 2 -y 670 -defaultsOSRD
  758. preplace inst clk_wiz_0 -pg 1 -lvl 2 -y 550 -defaultsOSRD
  759. preplace netloc ethernet_transceiver2_0_fifo_read 1 3 1 900
  760. preplace netloc xlconstant_1_dout 1 1 1 NJ
  761. preplace netloc packaging_0_errorCode 1 3 3 830 200 NJ 200 1560J
  762. preplace netloc ethernet_transceiver2_0_led16_b 1 3 4 NJ 1070 NJ 1070 NJ 1070 NJ
  763. preplace netloc Net4 1 3 4 NJ 970 NJ 970 NJ 970 1840J
  764. preplace netloc xlslice_1_Dout 1 3 2 870 460 1320
  765. preplace netloc Net5 1 3 4 NJ 1010 NJ 1010 NJ 1010 NJ
  766. preplace netloc packaging_0_outData 1 3 1 N
  767. preplace netloc c_counter_binary_1_Q 1 5 1 1540
  768. preplace netloc Net6 1 3 4 NJ 1050 NJ 1050 NJ 1050 1830J
  769. preplace netloc fifo_input_dout 1 2 2 460 340 NJ
  770. preplace netloc ethernet_transceiver2_0_led16_r 1 3 4 NJ 1110 NJ 1110 NJ 1110 1840J
  771. preplace netloc xlconcat_5_dout 1 2 3 410 790 830J 820 NJ
  772. preplace netloc sw_0_1 1 0 3 NJ 1080 NJ 1080 NJ
  773. preplace netloc ethernet_transceiver2_0_eth_refclk 1 3 4 910 760 NJ 760 NJ 760 NJ
  774. preplace netloc ethernet_transceiver2_0_led16_g 1 3 4 NJ 1090 1320J 1100 NJ 1100 NJ
  775. preplace netloc ethernet_transceiver2_0_fifo_write 1 3 1 860
  776. preplace netloc xlconstant_0_dout 1 2 1 400J
  777. preplace netloc segment_0_anodes 1 6 1 NJ
  778. preplace netloc packaging_0_inpRdEn 1 3 1 850
  779. preplace netloc ethernet_transceiver2_0_led17_b 1 3 4 NJ 1130 NJ 1130 NJ 1130 1830J
  780. preplace netloc c_counter_binary_0_Q 1 5 1 1560
  781. preplace netloc segment_0_cathodes 1 6 1 1830J
  782. preplace netloc fifo_output_overflow 1 4 1 1310
  783. preplace netloc ethernet_transceiver2_0_eth_mdc 1 3 4 NJ 990 NJ 990 1550J 980 NJ
  784. preplace netloc reset_rtl_0_1 1 0 2 NJ 540 NJ
  785. preplace netloc packaging_0_stateOut 1 3 3 840 220 NJ 220 1550J
  786. preplace netloc fifo_output_rd_data_count 1 1 4 180 190 NJ 190 NJ 190 1300
  787. preplace netloc fifo_input_empty 1 2 2 440 320 NJ
  788. preplace netloc packaging_0_outWrEn 1 3 1 N
  789. preplace netloc fifo_output_full 1 2 2 450 480 880J
  790. preplace netloc ethernet_transceiver2_0_led17_r 1 3 4 NJ 1170 NJ 1170 NJ 1170 1810J
  791. preplace netloc Net1 1 3 4 NJ 910 NJ 910 NJ 910 1830J
  792. preplace netloc Net 1 3 4 NJ 890 NJ 890 1540J 830 NJ
  793. preplace netloc xlconcat_4_dout 1 6 1 NJ
  794. preplace netloc fifo_input_overflow 1 4 1 N
  795. preplace netloc Net2 1 3 4 920J 900 NJ 900 1560J 890 NJ
  796. preplace netloc xlslice_0_Dout 1 5 1 1550
  797. preplace netloc ethernet_transceiver2_0_led17_g 1 3 4 NJ 1150 NJ 1150 NJ 1150 1820J
  798. preplace netloc clk_wiz_clk_out1 1 2 4 430 470 890 210 1330 160 NJ
  799. preplace netloc clk_100MHz_1 1 0 2 20J 560 NJ
  800. preplace netloc aresetn 1 2 1 420
  801. preplace netloc Net3 1 3 4 NJ 950 NJ 950 NJ 950 1830J
  802. levelinfo -pg 1 0 100 300 650 1110 1440 1690 1860 -top 0 -bot 1290
  803. "
  804. }
  805. # Restore current instance
  806. current_bd_instance $oldCurInst
  807. validate_bd_design
  808. save_bd_design
  809. close_bd_design $design_name
  810. }
  811. # End of cr_bd_design_1()
  812. cr_bd_design_1 ""
  813. set_property REGISTERED_WITH_MANAGER "1" [get_files design_1.bd ]
  814. set_property SYNTH_CHECKPOINT_MODE "Hierarchical" [get_files design_1.bd ]
  815. # Create wrapper file for design_1.bd
  816. make_wrapper -files [get_files design_1.bd] -import -top
  817. # Create 'synth_1' run (if not found)
  818. if {[string equal [get_runs -quiet synth_1] ""]} {
  819. create_run -name synth_1 -part xc7a100tcsg324-1 -flow {Vivado Synthesis 2018} -strategy "Vivado Synthesis Defaults" -report_strategy {No Reports} -constrset constrs_1
  820. } else {
  821. set_property strategy "Vivado Synthesis Defaults" [get_runs synth_1]
  822. set_property flow "Vivado Synthesis 2018" [get_runs synth_1]
  823. }
  824. set obj [get_runs synth_1]
  825. set_property set_report_strategy_name 1 $obj
  826. set_property report_strategy {Vivado Synthesis Default Reports} $obj
  827. set_property set_report_strategy_name 0 $obj
  828. # Create 'synth_1_synth_report_utilization_0' report (if not found)
  829. if { [ string equal [get_report_configs -of_objects [get_runs synth_1] synth_1_synth_report_utilization_0] "" ] } {
  830. create_report_config -report_name synth_1_synth_report_utilization_0 -report_type report_utilization:1.0 -steps synth_design -runs synth_1
  831. }
  832. set obj [get_report_configs -of_objects [get_runs synth_1] synth_1_synth_report_utilization_0]
  833. if { $obj != "" } {
  834. set_property -name "display_name" -value "synth_1_synth_report_utilization_0" -objects $obj
  835. }
  836. set obj [get_runs synth_1]
  837. set_property -name "part" -value "xc7a100tcsg324-1" -objects $obj
  838. set_property -name "strategy" -value "Vivado Synthesis Defaults" -objects $obj
  839. # set the current synth run
  840. current_run -synthesis [get_runs synth_1]
  841. # Create 'impl_1' run (if not found)
  842. if {[string equal [get_runs -quiet impl_1] ""]} {
  843. create_run -name impl_1 -part xc7a100tcsg324-1 -flow {Vivado Implementation 2018} -strategy "Vivado Implementation Defaults" -report_strategy {No Reports} -constrset constrs_1 -parent_run synth_1
  844. } else {
  845. set_property strategy "Vivado Implementation Defaults" [get_runs impl_1]
  846. set_property flow "Vivado Implementation 2018" [get_runs impl_1]
  847. }
  848. set obj [get_runs impl_1]
  849. set_property set_report_strategy_name 1 $obj
  850. set_property report_strategy {Vivado Implementation Default Reports} $obj
  851. set_property set_report_strategy_name 0 $obj
  852. # Create 'impl_1_init_report_timing_summary_0' report (if not found)
  853. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_init_report_timing_summary_0] "" ] } {
  854. 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
  855. }
  856. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_init_report_timing_summary_0]
  857. if { $obj != "" } {
  858. set_property -name "is_enabled" -value "0" -objects $obj
  859. set_property -name "display_name" -value "impl_1_init_report_timing_summary_0" -objects $obj
  860. }
  861. # Create 'impl_1_opt_report_drc_0' report (if not found)
  862. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_drc_0] "" ] } {
  863. create_report_config -report_name impl_1_opt_report_drc_0 -report_type report_drc:1.0 -steps opt_design -runs impl_1
  864. }
  865. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_drc_0]
  866. if { $obj != "" } {
  867. set_property -name "display_name" -value "impl_1_opt_report_drc_0" -objects $obj
  868. }
  869. # Create 'impl_1_opt_report_timing_summary_0' report (if not found)
  870. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_timing_summary_0] "" ] } {
  871. 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
  872. }
  873. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_timing_summary_0]
  874. if { $obj != "" } {
  875. set_property -name "is_enabled" -value "0" -objects $obj
  876. set_property -name "display_name" -value "impl_1_opt_report_timing_summary_0" -objects $obj
  877. }
  878. # Create 'impl_1_power_opt_report_timing_summary_0' report (if not found)
  879. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_power_opt_report_timing_summary_0] "" ] } {
  880. 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
  881. }
  882. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_power_opt_report_timing_summary_0]
  883. if { $obj != "" } {
  884. set_property -name "is_enabled" -value "0" -objects $obj
  885. set_property -name "display_name" -value "impl_1_power_opt_report_timing_summary_0" -objects $obj
  886. }
  887. # Create 'impl_1_place_report_io_0' report (if not found)
  888. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_io_0] "" ] } {
  889. create_report_config -report_name impl_1_place_report_io_0 -report_type report_io:1.0 -steps place_design -runs impl_1
  890. }
  891. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_io_0]
  892. if { $obj != "" } {
  893. set_property -name "display_name" -value "impl_1_place_report_io_0" -objects $obj
  894. }
  895. # Create 'impl_1_place_report_utilization_0' report (if not found)
  896. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_utilization_0] "" ] } {
  897. create_report_config -report_name impl_1_place_report_utilization_0 -report_type report_utilization:1.0 -steps place_design -runs impl_1
  898. }
  899. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_utilization_0]
  900. if { $obj != "" } {
  901. set_property -name "display_name" -value "impl_1_place_report_utilization_0" -objects $obj
  902. }
  903. # Create 'impl_1_place_report_control_sets_0' report (if not found)
  904. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_control_sets_0] "" ] } {
  905. 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
  906. }
  907. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_control_sets_0]
  908. if { $obj != "" } {
  909. set_property -name "display_name" -value "impl_1_place_report_control_sets_0" -objects $obj
  910. }
  911. # Create 'impl_1_place_report_incremental_reuse_0' report (if not found)
  912. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_0] "" ] } {
  913. 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
  914. }
  915. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_0]
  916. if { $obj != "" } {
  917. set_property -name "is_enabled" -value "0" -objects $obj
  918. set_property -name "display_name" -value "impl_1_place_report_incremental_reuse_0" -objects $obj
  919. }
  920. # Create 'impl_1_place_report_incremental_reuse_1' report (if not found)
  921. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_1] "" ] } {
  922. 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
  923. }
  924. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_1]
  925. if { $obj != "" } {
  926. set_property -name "is_enabled" -value "0" -objects $obj
  927. set_property -name "display_name" -value "impl_1_place_report_incremental_reuse_1" -objects $obj
  928. }
  929. # Create 'impl_1_place_report_timing_summary_0' report (if not found)
  930. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_timing_summary_0] "" ] } {
  931. 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
  932. }
  933. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_timing_summary_0]
  934. if { $obj != "" } {
  935. set_property -name "is_enabled" -value "0" -objects $obj
  936. set_property -name "display_name" -value "impl_1_place_report_timing_summary_0" -objects $obj
  937. }
  938. # Create 'impl_1_post_place_power_opt_report_timing_summary_0' report (if not found)
  939. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_post_place_power_opt_report_timing_summary_0] "" ] } {
  940. 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
  941. }
  942. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_post_place_power_opt_report_timing_summary_0]
  943. if { $obj != "" } {
  944. set_property -name "is_enabled" -value "0" -objects $obj
  945. set_property -name "display_name" -value "impl_1_post_place_power_opt_report_timing_summary_0" -objects $obj
  946. }
  947. # Create 'impl_1_phys_opt_report_timing_summary_0' report (if not found)
  948. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_phys_opt_report_timing_summary_0] "" ] } {
  949. 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
  950. }
  951. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_phys_opt_report_timing_summary_0]
  952. if { $obj != "" } {
  953. set_property -name "is_enabled" -value "0" -objects $obj
  954. set_property -name "display_name" -value "impl_1_phys_opt_report_timing_summary_0" -objects $obj
  955. }
  956. # Create 'impl_1_route_report_drc_0' report (if not found)
  957. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_drc_0] "" ] } {
  958. create_report_config -report_name impl_1_route_report_drc_0 -report_type report_drc:1.0 -steps route_design -runs impl_1
  959. }
  960. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_drc_0]
  961. if { $obj != "" } {
  962. set_property -name "display_name" -value "impl_1_route_report_drc_0" -objects $obj
  963. }
  964. # Create 'impl_1_route_report_methodology_0' report (if not found)
  965. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_methodology_0] "" ] } {
  966. create_report_config -report_name impl_1_route_report_methodology_0 -report_type report_methodology:1.0 -steps route_design -runs impl_1
  967. }
  968. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_methodology_0]
  969. if { $obj != "" } {
  970. set_property -name "display_name" -value "impl_1_route_report_methodology_0" -objects $obj
  971. }
  972. # Create 'impl_1_route_report_power_0' report (if not found)
  973. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_power_0] "" ] } {
  974. create_report_config -report_name impl_1_route_report_power_0 -report_type report_power:1.0 -steps route_design -runs impl_1
  975. }
  976. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_power_0]
  977. if { $obj != "" } {
  978. set_property -name "display_name" -value "impl_1_route_report_power_0" -objects $obj
  979. }
  980. # Create 'impl_1_route_report_route_status_0' report (if not found)
  981. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_route_status_0] "" ] } {
  982. 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
  983. }
  984. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_route_status_0]
  985. if { $obj != "" } {
  986. set_property -name "display_name" -value "impl_1_route_report_route_status_0" -objects $obj
  987. }
  988. # Create 'impl_1_route_report_timing_summary_0' report (if not found)
  989. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_timing_summary_0] "" ] } {
  990. 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
  991. }
  992. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_timing_summary_0]
  993. if { $obj != "" } {
  994. set_property -name "display_name" -value "impl_1_route_report_timing_summary_0" -objects $obj
  995. }
  996. # Create 'impl_1_route_report_incremental_reuse_0' report (if not found)
  997. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_incremental_reuse_0] "" ] } {
  998. 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
  999. }
  1000. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_incremental_reuse_0]
  1001. if { $obj != "" } {
  1002. set_property -name "display_name" -value "impl_1_route_report_incremental_reuse_0" -objects $obj
  1003. }
  1004. # Create 'impl_1_route_report_clock_utilization_0' report (if not found)
  1005. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_clock_utilization_0] "" ] } {
  1006. 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
  1007. }
  1008. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_clock_utilization_0]
  1009. if { $obj != "" } {
  1010. set_property -name "display_name" -value "impl_1_route_report_clock_utilization_0" -objects $obj
  1011. }
  1012. # Create 'impl_1_route_report_bus_skew_0' report (if not found)
  1013. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_bus_skew_0] "" ] } {
  1014. 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
  1015. }
  1016. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_bus_skew_0]
  1017. if { $obj != "" } {
  1018. set_property -name "display_name" -value "impl_1_route_report_bus_skew_0" -objects $obj
  1019. }
  1020. # Create 'impl_1_post_route_phys_opt_report_timing_summary_0' report (if not found)
  1021. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_timing_summary_0] "" ] } {
  1022. 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
  1023. }
  1024. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_timing_summary_0]
  1025. if { $obj != "" } {
  1026. set_property -name "display_name" -value "impl_1_post_route_phys_opt_report_timing_summary_0" -objects $obj
  1027. }
  1028. # Create 'impl_1_post_route_phys_opt_report_bus_skew_0' report (if not found)
  1029. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_bus_skew_0] "" ] } {
  1030. 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
  1031. }
  1032. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_bus_skew_0]
  1033. if { $obj != "" } {
  1034. set_property -name "display_name" -value "impl_1_post_route_phys_opt_report_bus_skew_0" -objects $obj
  1035. }
  1036. set obj [get_runs impl_1]
  1037. set_property -name "part" -value "xc7a100tcsg324-1" -objects $obj
  1038. set_property -name "strategy" -value "Vivado Implementation Defaults" -objects $obj
  1039. set_property -name "steps.write_bitstream.args.readback_file" -value "0" -objects $obj
  1040. set_property -name "steps.write_bitstream.args.verbose" -value "0" -objects $obj
  1041. # set the current impl run
  1042. current_run -implementation [get_runs impl_1]
  1043. # Change current directory to project folder
  1044. cd [file dirname [info script]]
  1045. puts "INFO: Project created:${_xil_proj_name_}"
  1046. # Create 'drc_1' gadget (if not found)
  1047. if {[string equal [get_dashboard_gadgets [ list "drc_1" ] ] ""]} {
  1048. create_dashboard_gadget -name {drc_1} -type drc
  1049. }
  1050. set obj [get_dashboard_gadgets [ list "drc_1" ] ]
  1051. set_property -name "reports" -value "impl_1#impl_1_route_report_drc_0" -objects $obj
  1052. # Create 'methodology_1' gadget (if not found)
  1053. if {[string equal [get_dashboard_gadgets [ list "methodology_1" ] ] ""]} {
  1054. create_dashboard_gadget -name {methodology_1} -type methodology
  1055. }
  1056. set obj [get_dashboard_gadgets [ list "methodology_1" ] ]
  1057. set_property -name "reports" -value "impl_1#impl_1_route_report_methodology_0" -objects $obj
  1058. # Create 'power_1' gadget (if not found)
  1059. if {[string equal [get_dashboard_gadgets [ list "power_1" ] ] ""]} {
  1060. create_dashboard_gadget -name {power_1} -type power
  1061. }
  1062. set obj [get_dashboard_gadgets [ list "power_1" ] ]
  1063. set_property -name "reports" -value "impl_1#impl_1_route_report_power_0" -objects $obj
  1064. # Create 'timing_1' gadget (if not found)
  1065. if {[string equal [get_dashboard_gadgets [ list "timing_1" ] ] ""]} {
  1066. create_dashboard_gadget -name {timing_1} -type timing
  1067. }
  1068. set obj [get_dashboard_gadgets [ list "timing_1" ] ]
  1069. set_property -name "reports" -value "impl_1#impl_1_route_report_timing_summary_0" -objects $obj
  1070. # Create 'utilization_1' gadget (if not found)
  1071. if {[string equal [get_dashboard_gadgets [ list "utilization_1" ] ] ""]} {
  1072. create_dashboard_gadget -name {utilization_1} -type utilization
  1073. }
  1074. set obj [get_dashboard_gadgets [ list "utilization_1" ] ]
  1075. set_property -name "reports" -value "synth_1#synth_1_synth_report_utilization_0" -objects $obj
  1076. set_property -name "run.step" -value "synth_design" -objects $obj
  1077. set_property -name "run.type" -value "synthesis" -objects $obj
  1078. # Create 'utilization_2' gadget (if not found)
  1079. if {[string equal [get_dashboard_gadgets [ list "utilization_2" ] ] ""]} {
  1080. create_dashboard_gadget -name {utilization_2} -type utilization
  1081. }
  1082. set obj [get_dashboard_gadgets [ list "utilization_2" ] ]
  1083. set_property -name "reports" -value "impl_1#impl_1_place_report_utilization_0" -objects $obj
  1084. move_dashboard_gadget -name {utilization_1} -row 0 -col 0
  1085. move_dashboard_gadget -name {power_1} -row 1 -col 0
  1086. move_dashboard_gadget -name {drc_1} -row 2 -col 0
  1087. move_dashboard_gadget -name {timing_1} -row 0 -col 1
  1088. move_dashboard_gadget -name {utilization_2} -row 1 -col 1
  1089. move_dashboard_gadget -name {methodology_1} -row 2 -col 1