vhdl-modules.tcl 58 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198
  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 "6" -objects $obj
  93. set_property -name "webtalk.ies_export_sim" -value "6" -objects $obj
  94. set_property -name "webtalk.modelsim_export_sim" -value "6" -objects $obj
  95. set_property -name "webtalk.questa_export_sim" -value "6" -objects $obj
  96. set_property -name "webtalk.riviera_export_sim" -value "6" -objects $obj
  97. set_property -name "webtalk.vcs_export_sim" -value "6" -objects $obj
  98. set_property -name "webtalk.xcelium_export_sim" -value "5" -objects $obj
  99. set_property -name "webtalk.xsim_export_sim" -value "6" -objects $obj
  100. set_property -name "webtalk.xsim_launch_sim" -value "3" -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. ]
  139. add_files -norecurse -fileset $obj $files
  140. # Set 'sources_1' fileset file properties for remote files
  141. set file "$origin_dir/src/hdl/Block_proc.vhd"
  142. set file [file normalize $file]
  143. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  144. set_property -name "file_type" -value "VHDL" -objects $file_obj
  145. set file "$origin_dir/src/hdl/Loop_Border_proc.vhd"
  146. set file [file normalize $file]
  147. set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]]
  148. set_property -name "file_type" -value "VHDL" -objects $file_obj
  149. set file "$origin_dir/src/hdl/Loop_Border_proc_borderbuf.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_HConvH_proc6.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_VConvH_proc.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_VConvH_proc_linebuf_0.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/globals.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/checksum.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/conv2d.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/conv2d_5x5_224p.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/dummyModule.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/fifo_w32_d2_A.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/fifo_w32_d3_A.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/filter11x11_strm.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/filter11x11_strm_ent.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/kernel_5x5.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/multiplex.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/ram.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/shiftIn.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/start_for_Block_proc_U0.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/start_for_Loop_Border_proc_U0.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_Loop_VConvH_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/packaging.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 'sources_1' fileset file properties for local files
  234. # None
  235. # Set 'sources_1' fileset properties
  236. set obj [get_filesets sources_1]
  237. set_property -name "top" -value "design_1_wrapper" -objects $obj
  238. set_property -name "top_auto_set" -value "0" -objects $obj
  239. # Create 'constrs_1' fileset (if not found)
  240. if {[string equal [get_filesets -quiet constrs_1] ""]} {
  241. create_fileset -constrset constrs_1
  242. }
  243. # Set 'constrs_1' fileset object
  244. set obj [get_filesets constrs_1]
  245. # Add/Import constrs file and set constrs file properties
  246. set file "[file normalize "$origin_dir/src/constraints/nexys_4_ddr.xdc"]"
  247. set file_added [add_files -norecurse -fileset $obj [list $file]]
  248. set file "$origin_dir/src/constraints/nexys_4_ddr.xdc"
  249. set file [file normalize $file]
  250. set file_obj [get_files -of_objects [get_filesets constrs_1] [list "*$file"]]
  251. set_property -name "file_type" -value "XDC" -objects $file_obj
  252. # Set 'constrs_1' fileset properties
  253. set obj [get_filesets constrs_1]
  254. set_property -name "target_part" -value "xc7a100tcsg324-1" -objects $obj
  255. # Create 'sim_1' fileset (if not found)
  256. if {[string equal [get_filesets -quiet sim_1] ""]} {
  257. create_fileset -simset sim_1
  258. }
  259. # Set 'sim_1' fileset object
  260. set obj [get_filesets sim_1]
  261. set files [list \
  262. [file normalize "${origin_dir}/src/testbench/packaging_tb.vhd"] \
  263. ]
  264. add_files -norecurse -fileset $obj $files
  265. # Set 'sim_1' fileset file properties for remote files
  266. set file "$origin_dir/src/testbench/packaging_tb.vhd"
  267. set file [file normalize $file]
  268. set file_obj [get_files -of_objects [get_filesets sim_1] [list "*$file"]]
  269. set_property -name "file_type" -value "VHDL" -objects $file_obj
  270. # Set 'sim_1' fileset file properties for local files
  271. # None
  272. # Set 'sim_1' fileset properties
  273. set obj [get_filesets sim_1]
  274. set_property -name "top" -value "tb_module" -objects $obj
  275. set_property -name "top_auto_set" -value "0" -objects $obj
  276. set_property -name "top_lib" -value "xil_defaultlib" -objects $obj
  277. # Set 'utils_1' fileset object
  278. set obj [get_filesets utils_1]
  279. # Empty (no sources present)
  280. # Set 'utils_1' fileset properties
  281. set obj [get_filesets utils_1]
  282. # Adding sources referenced in BDs, if not already added
  283. if { [get_files Block_proc.vhd] == "" } {
  284. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/Block_proc.vhd
  285. }
  286. if { [get_files Loop_Border_proc.vhd] == "" } {
  287. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/Loop_Border_proc.vhd
  288. }
  289. if { [get_files Loop_Border_proc_borderbuf.vhd] == "" } {
  290. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/Loop_Border_proc_borderbuf.vhd
  291. }
  292. if { [get_files Loop_HConvH_proc6.vhd] == "" } {
  293. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/Loop_HConvH_proc6.vhd
  294. }
  295. if { [get_files Loop_VConvH_proc.vhd] == "" } {
  296. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/Loop_VConvH_proc.vhd
  297. }
  298. if { [get_files Loop_VConvH_proc_linebuf_0.vhd] == "" } {
  299. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/Loop_VConvH_proc_linebuf_0.vhd
  300. }
  301. if { [get_files globals.vhd] == "" } {
  302. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/globals.vhd
  303. }
  304. if { [get_files checksum.vhd] == "" } {
  305. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/checksum.vhd
  306. }
  307. if { [get_files conv2d.vhd] == "" } {
  308. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/conv2d.vhd
  309. }
  310. if { [get_files conv2d_5x5_224p.vhd] == "" } {
  311. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/conv2d_5x5_224p.vhd
  312. }
  313. if { [get_files dummyModule.vhd] == "" } {
  314. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/dummyModule.vhd
  315. }
  316. if { [get_files fifo_w32_d2_A.vhd] == "" } {
  317. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/fifo_w32_d2_A.vhd
  318. }
  319. if { [get_files fifo_w32_d3_A.vhd] == "" } {
  320. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/fifo_w32_d3_A.vhd
  321. }
  322. if { [get_files filter11x11_strm.vhd] == "" } {
  323. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/filter11x11_strm.vhd
  324. }
  325. if { [get_files filter11x11_strm_ent.vhd] == "" } {
  326. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/filter11x11_strm_ent.vhd
  327. }
  328. if { [get_files kernel_5x5.vhd] == "" } {
  329. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/kernel_5x5.vhd
  330. }
  331. if { [get_files multiplex.vhd] == "" } {
  332. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/multiplex.vhd
  333. }
  334. if { [get_files ram.vhd] == "" } {
  335. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/ram.vhd
  336. }
  337. if { [get_files shiftIn.vhd] == "" } {
  338. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/shiftIn.vhd
  339. }
  340. if { [get_files start_for_Block_proc_U0.vhd] == "" } {
  341. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/start_for_Block_proc_U0.vhd
  342. }
  343. if { [get_files start_for_Loop_Border_proc_U0.vhd] == "" } {
  344. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/start_for_Loop_Border_proc_U0.vhd
  345. }
  346. if { [get_files start_for_Loop_VConvH_proc_U0.vhd] == "" } {
  347. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/start_for_Loop_VConvH_proc_U0.vhd
  348. }
  349. if { [get_files packaging.vhd] == "" } {
  350. import_files -quiet -fileset sources_1 C:/Users/johan/mlfpga/repos/vhdl-modules/src/hdl/packaging.vhd
  351. }
  352. # Proc to create BD design_1
  353. proc cr_bd_design_1 { parentCell } {
  354. # The design that will be created by this Tcl proc contains the following
  355. # module references:
  356. # packaging
  357. # CHANGE DESIGN NAME HERE
  358. set design_name design_1
  359. common::send_msg_id "BD_TCL-003" "INFO" "Currently there is no design <$design_name> in project, so creating one..."
  360. create_bd_design $design_name
  361. set bCheckIPsPassed 1
  362. ##################################################################
  363. # CHECK IPs
  364. ##################################################################
  365. set bCheckIPs 1
  366. if { $bCheckIPs == 1 } {
  367. set list_check_ips "\
  368. xilinx.com:ip:c_counter_binary:12.0\
  369. xilinx.com:ip:clk_wiz:6.0\
  370. xilinx.com:user:ethernet_transceiver2:1.0\
  371. xilinx.com:ip:fifo_generator:13.2\
  372. xilinx.com:ip:util_vector_logic:2.0\
  373. xilinx.com:user:segment:1.0\
  374. xilinx.com:ip:xlconcat:2.1\
  375. xilinx.com:ip:xlconstant:1.1\
  376. xilinx.com:ip:xlslice:1.0\
  377. "
  378. set list_ips_missing ""
  379. common::send_msg_id "BD_TCL-006" "INFO" "Checking if the following IPs exist in the project's IP catalog: $list_check_ips ."
  380. foreach ip_vlnv $list_check_ips {
  381. set ip_obj [get_ipdefs -all $ip_vlnv]
  382. if { $ip_obj eq "" } {
  383. lappend list_ips_missing $ip_vlnv
  384. }
  385. }
  386. if { $list_ips_missing ne "" } {
  387. 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." }
  388. set bCheckIPsPassed 0
  389. }
  390. }
  391. ##################################################################
  392. # CHECK Modules
  393. ##################################################################
  394. set bCheckModules 1
  395. if { $bCheckModules == 1 } {
  396. set list_check_mods "\
  397. packaging\
  398. "
  399. set list_mods_missing ""
  400. common::send_msg_id "BD_TCL-006" "INFO" "Checking if the following modules exist in the project's sources: $list_check_mods ."
  401. foreach mod_vlnv $list_check_mods {
  402. if { [can_resolve_reference $mod_vlnv] == 0 } {
  403. lappend list_mods_missing $mod_vlnv
  404. }
  405. }
  406. if { $list_mods_missing ne "" } {
  407. catch {common::send_msg_id "BD_TCL-115" "ERROR" "The following module(s) are not found in the project: $list_mods_missing" }
  408. common::send_msg_id "BD_TCL-008" "INFO" "Please add source files for the missing module(s) above."
  409. set bCheckIPsPassed 0
  410. }
  411. }
  412. if { $bCheckIPsPassed != 1 } {
  413. common::send_msg_id "BD_TCL-1003" "WARNING" "Will not continue with creation of design due to the error(s) above."
  414. return 3
  415. }
  416. variable script_folder
  417. if { $parentCell eq "" } {
  418. set parentCell [get_bd_cells /]
  419. }
  420. # Get object for parentCell
  421. set parentObj [get_bd_cells $parentCell]
  422. if { $parentObj == "" } {
  423. catch {common::send_msg_id "BD_TCL-100" "ERROR" "Unable to find parent cell <$parentCell>!"}
  424. return
  425. }
  426. # Make sure parentObj is hier blk
  427. set parentType [get_property TYPE $parentObj]
  428. if { $parentType ne "hier" } {
  429. catch {common::send_msg_id "BD_TCL-101" "ERROR" "Parent <$parentObj> has TYPE = <$parentType>. Expected to be <hier>."}
  430. return
  431. }
  432. # Save current instance; Restore later
  433. set oldCurInst [current_bd_instance .]
  434. # Set parent object as current
  435. current_bd_instance $parentObj
  436. # Create interface ports
  437. # Create ports
  438. set anodes_0 [ create_bd_port -dir O -from 0 -to 7 anodes_0 ]
  439. set cathodes_0 [ create_bd_port -dir O -from 0 -to 7 cathodes_0 ]
  440. set clk_100MHz [ create_bd_port -dir I -type clk clk_100MHz ]
  441. set_property -dict [ list \
  442. CONFIG.FREQ_HZ {100000000} \
  443. ] $clk_100MHz
  444. set eth_crsdv_0 [ create_bd_port -dir IO eth_crsdv_0 ]
  445. set eth_mdc_0 [ create_bd_port -dir O eth_mdc_0 ]
  446. set eth_mdio_0 [ create_bd_port -dir IO eth_mdio_0 ]
  447. set eth_refclk_0 [ create_bd_port -dir O eth_refclk_0 ]
  448. set eth_rstn_0 [ create_bd_port -dir IO -type rst eth_rstn_0 ]
  449. set eth_rxd_0 [ create_bd_port -dir IO -from 1 -to 0 eth_rxd_0 ]
  450. set eth_rxerr_0 [ create_bd_port -dir IO eth_rxerr_0 ]
  451. set eth_txd_0 [ create_bd_port -dir IO -from 1 -to 0 eth_txd_0 ]
  452. set eth_txen_0 [ create_bd_port -dir IO eth_txen_0 ]
  453. set led16_b_0 [ create_bd_port -dir O led16_b_0 ]
  454. set led16_g_0 [ create_bd_port -dir O led16_g_0 ]
  455. set led16_r_0 [ create_bd_port -dir O led16_r_0 ]
  456. set led17_b_0 [ create_bd_port -dir O led17_b_0 ]
  457. set led17_g_0 [ create_bd_port -dir O led17_g_0 ]
  458. set led17_r_0 [ create_bd_port -dir O led17_r_0 ]
  459. set led_0 [ create_bd_port -dir O -from 15 -to 0 led_0 ]
  460. set reset_rtl_0 [ create_bd_port -dir I -type rst reset_rtl_0 ]
  461. set_property -dict [ list \
  462. CONFIG.POLARITY {ACTIVE_LOW} \
  463. ] $reset_rtl_0
  464. set sw_0 [ create_bd_port -dir I -from 4 -to 0 sw_0 ]
  465. # Create instance: c_counter_binary_0, and set properties
  466. set c_counter_binary_0 [ create_bd_cell -type ip -vlnv xilinx.com:ip:c_counter_binary:12.0 c_counter_binary_0 ]
  467. set_property -dict [ list \
  468. CONFIG.CE {true} \
  469. CONFIG.Fb_Latency {2} \
  470. CONFIG.Fb_Latency_Configuration {Automatic} \
  471. CONFIG.Final_Count_Value {270F} \
  472. CONFIG.Latency_Configuration {Automatic} \
  473. CONFIG.Restrict_Count {true} \
  474. CONFIG.SCLR {true} \
  475. CONFIG.SSET {false} \
  476. ] $c_counter_binary_0
  477. # Create instance: c_counter_binary_1, and set properties
  478. set c_counter_binary_1 [ create_bd_cell -type ip -vlnv xilinx.com:ip:c_counter_binary:12.0 c_counter_binary_1 ]
  479. set_property -dict [ list \
  480. CONFIG.CE {true} \
  481. CONFIG.Fb_Latency {2} \
  482. CONFIG.Fb_Latency_Configuration {Automatic} \
  483. CONFIG.Final_Count_Value {270F} \
  484. CONFIG.Latency_Configuration {Automatic} \
  485. CONFIG.Restrict_Count {true} \
  486. CONFIG.SCLR {true} \
  487. CONFIG.SSET {false} \
  488. ] $c_counter_binary_1
  489. # Create instance: clk_wiz_0, and set properties
  490. set clk_wiz_0 [ create_bd_cell -type ip -vlnv xilinx.com:ip:clk_wiz:6.0 clk_wiz_0 ]
  491. set_property -dict [ list \
  492. CONFIG.ENABLE_CLOCK_MONITOR {false} \
  493. CONFIG.PRIMITIVE {MMCM} \
  494. CONFIG.RESET_PORT {resetn} \
  495. CONFIG.RESET_TYPE {ACTIVE_LOW} \
  496. ] $clk_wiz_0
  497. # Create instance: ethernet_transceiver2_0, and set properties
  498. set ethernet_transceiver2_0 [ create_bd_cell -type ip -vlnv xilinx.com:user:ethernet_transceiver2:1.0 ethernet_transceiver2_0 ]
  499. # Create instance: fifo_input, and set properties
  500. set fifo_input [ create_bd_cell -type ip -vlnv xilinx.com:ip:fifo_generator:13.2 fifo_input ]
  501. set_property -dict [ list \
  502. CONFIG.Almost_Empty_Flag {false} \
  503. CONFIG.Data_Count {false} \
  504. CONFIG.Data_Count_Width {6} \
  505. CONFIG.Empty_Threshold_Assert_Value {2} \
  506. CONFIG.Empty_Threshold_Assert_Value_rach {1022} \
  507. CONFIG.Empty_Threshold_Assert_Value_wach {1022} \
  508. CONFIG.Empty_Threshold_Assert_Value_wrch {1022} \
  509. CONFIG.Empty_Threshold_Negate_Value {3} \
  510. CONFIG.Enable_Safety_Circuit {false} \
  511. CONFIG.FIFO_Implementation_rach {Common_Clock_Distributed_RAM} \
  512. CONFIG.FIFO_Implementation_wach {Common_Clock_Distributed_RAM} \
  513. CONFIG.FIFO_Implementation_wrch {Common_Clock_Distributed_RAM} \
  514. CONFIG.Fifo_Implementation {Common_Clock_Distributed_RAM} \
  515. CONFIG.Full_Flags_Reset_Value {0} \
  516. CONFIG.Full_Threshold_Assert_Value {62} \
  517. CONFIG.Full_Threshold_Assert_Value_rach {1023} \
  518. CONFIG.Full_Threshold_Assert_Value_wach {1023} \
  519. CONFIG.Full_Threshold_Assert_Value_wrch {1023} \
  520. CONFIG.Full_Threshold_Negate_Value {61} \
  521. CONFIG.INTERFACE_TYPE {Native} \
  522. CONFIG.Input_Data_Width {32} \
  523. CONFIG.Input_Depth {64} \
  524. CONFIG.Output_Data_Width {32} \
  525. CONFIG.Output_Depth {64} \
  526. CONFIG.Overflow_Flag {true} \
  527. CONFIG.Performance_Options {Standard_FIFO} \
  528. CONFIG.Programmable_Empty_Type {No_Programmable_Empty_Threshold} \
  529. CONFIG.Programmable_Full_Type {No_Programmable_Full_Threshold} \
  530. CONFIG.Read_Data_Count {false} \
  531. CONFIG.Read_Data_Count_Width {6} \
  532. CONFIG.Reset_Pin {true} \
  533. CONFIG.Reset_Type {Synchronous_Reset} \
  534. CONFIG.Underflow_Flag {false} \
  535. CONFIG.Use_Dout_Reset {true} \
  536. CONFIG.Use_Embedded_Registers {false} \
  537. CONFIG.Use_Extra_Logic {false} \
  538. CONFIG.Valid_Flag {false} \
  539. CONFIG.Write_Data_Count {false} \
  540. CONFIG.Write_Data_Count_Width {6} \
  541. ] $fifo_input
  542. # Create instance: fifo_output, and set properties
  543. set fifo_output [ create_bd_cell -type ip -vlnv xilinx.com:ip:fifo_generator:13.2 fifo_output ]
  544. set_property -dict [ list \
  545. CONFIG.Almost_Empty_Flag {false} \
  546. CONFIG.Almost_Full_Flag {false} \
  547. CONFIG.Data_Count {false} \
  548. CONFIG.Data_Count_Width {9} \
  549. CONFIG.Empty_Threshold_Assert_Value {2} \
  550. CONFIG.Empty_Threshold_Assert_Value_rach {1022} \
  551. CONFIG.Empty_Threshold_Assert_Value_wach {1022} \
  552. CONFIG.Empty_Threshold_Assert_Value_wrch {1022} \
  553. CONFIG.Empty_Threshold_Negate_Value {3} \
  554. CONFIG.Enable_Safety_Circuit {false} \
  555. CONFIG.FIFO_Implementation_rach {Common_Clock_Distributed_RAM} \
  556. CONFIG.FIFO_Implementation_wach {Common_Clock_Distributed_RAM} \
  557. CONFIG.FIFO_Implementation_wrch {Common_Clock_Distributed_RAM} \
  558. CONFIG.Fifo_Implementation {Independent_Clocks_Distributed_RAM} \
  559. CONFIG.Full_Flags_Reset_Value {1} \
  560. CONFIG.Full_Threshold_Assert_Value {509} \
  561. CONFIG.Full_Threshold_Assert_Value_rach {1023} \
  562. CONFIG.Full_Threshold_Assert_Value_wach {1023} \
  563. CONFIG.Full_Threshold_Assert_Value_wrch {1023} \
  564. CONFIG.Full_Threshold_Negate_Value {508} \
  565. CONFIG.INTERFACE_TYPE {Native} \
  566. CONFIG.Input_Data_Width {32} \
  567. CONFIG.Input_Depth {512} \
  568. CONFIG.Output_Data_Width {32} \
  569. CONFIG.Output_Depth {512} \
  570. CONFIG.Overflow_Flag {true} \
  571. CONFIG.Performance_Options {Standard_FIFO} \
  572. CONFIG.Programmable_Empty_Type {No_Programmable_Empty_Threshold} \
  573. CONFIG.Programmable_Full_Type {No_Programmable_Full_Threshold} \
  574. CONFIG.Read_Data_Count {true} \
  575. CONFIG.Read_Data_Count_Width {9} \
  576. CONFIG.Reset_Pin {true} \
  577. CONFIG.Reset_Type {Asynchronous_Reset} \
  578. CONFIG.Underflow_Flag {false} \
  579. CONFIG.Use_Dout_Reset {true} \
  580. CONFIG.Use_Embedded_Registers {false} \
  581. CONFIG.Use_Extra_Logic {false} \
  582. CONFIG.Valid_Flag {false} \
  583. CONFIG.Write_Data_Count {false} \
  584. CONFIG.Write_Data_Count_Width {9} \
  585. ] $fifo_output
  586. # Create instance: invert_reset_0, and set properties
  587. set invert_reset_0 [ create_bd_cell -type ip -vlnv xilinx.com:ip:util_vector_logic:2.0 invert_reset_0 ]
  588. set_property -dict [ list \
  589. CONFIG.C_OPERATION {not} \
  590. CONFIG.C_SIZE {1} \
  591. CONFIG.LOGO_FILE {data/sym_notgate.png} \
  592. ] $invert_reset_0
  593. # Create instance: packaging_0, and set properties
  594. set block_name packaging
  595. set block_cell_name packaging_0
  596. if { [catch {set packaging_0 [create_bd_cell -type module -reference $block_name $block_cell_name] } errmsg] } {
  597. 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."}
  598. return 1
  599. } elseif { $packaging_0 eq "" } {
  600. 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."}
  601. return 1
  602. }
  603. # Create instance: segment_0, and set properties
  604. set segment_0 [ create_bd_cell -type ip -vlnv xilinx.com:user:segment:1.0 segment_0 ]
  605. # Create instance: xlconcat_4, and set properties
  606. set xlconcat_4 [ create_bd_cell -type ip -vlnv xilinx.com:ip:xlconcat:2.1 xlconcat_4 ]
  607. set_property -dict [ list \
  608. CONFIG.IN0_WIDTH {4} \
  609. CONFIG.IN1_WIDTH {4} \
  610. CONFIG.IN2_WIDTH {8} \
  611. CONFIG.IN3_WIDTH {2} \
  612. CONFIG.IN4_WIDTH {5} \
  613. CONFIG.NUM_PORTS {3} \
  614. ] $xlconcat_4
  615. # Create instance: xlconcat_5, and set properties
  616. set xlconcat_5 [ create_bd_cell -type ip -vlnv xilinx.com:ip:xlconcat:2.1 xlconcat_5 ]
  617. set_property -dict [ list \
  618. CONFIG.IN0_WIDTH {9} \
  619. CONFIG.IN1_WIDTH {7} \
  620. CONFIG.IN2_WIDTH {8} \
  621. CONFIG.IN3_WIDTH {2} \
  622. CONFIG.IN4_WIDTH {5} \
  623. CONFIG.NUM_PORTS {2} \
  624. ] $xlconcat_5
  625. # Create instance: xlconstant_0, and set properties
  626. set xlconstant_0 [ create_bd_cell -type ip -vlnv xilinx.com:ip:xlconstant:1.1 xlconstant_0 ]
  627. set_property -dict [ list \
  628. CONFIG.CONST_VAL {0} \
  629. CONFIG.CONST_WIDTH {16} \
  630. ] $xlconstant_0
  631. # Create instance: xlconstant_1, and set properties
  632. set xlconstant_1 [ create_bd_cell -type ip -vlnv xilinx.com:ip:xlconstant:1.1 xlconstant_1 ]
  633. set_property -dict [ list \
  634. CONFIG.CONST_VAL {0} \
  635. CONFIG.CONST_WIDTH {7} \
  636. ] $xlconstant_1
  637. # Create instance: xlslice_0, and set properties
  638. set xlslice_0 [ create_bd_cell -type ip -vlnv xilinx.com:ip:xlslice:1.0 xlslice_0 ]
  639. set_property -dict [ list \
  640. CONFIG.DIN_FROM {7} \
  641. CONFIG.DIN_TO {0} \
  642. CONFIG.DIN_WIDTH {16} \
  643. CONFIG.DOUT_WIDTH {8} \
  644. ] $xlslice_0
  645. # Create interface connections
  646. 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]
  647. 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]
  648. # Create port connections
  649. connect_bd_net -net Net [get_bd_ports eth_rxd_0] [get_bd_pins ethernet_transceiver2_0/eth_rxd]
  650. connect_bd_net -net Net1 [get_bd_ports eth_txd_0] [get_bd_pins ethernet_transceiver2_0/eth_txd]
  651. connect_bd_net -net Net2 [get_bd_ports eth_crsdv_0] [get_bd_pins ethernet_transceiver2_0/eth_crsdv]
  652. connect_bd_net -net Net3 [get_bd_ports eth_txen_0] [get_bd_pins ethernet_transceiver2_0/eth_txen]
  653. connect_bd_net -net Net4 [get_bd_ports eth_rxerr_0] [get_bd_pins ethernet_transceiver2_0/eth_rxerr]
  654. connect_bd_net -net Net5 [get_bd_ports eth_mdio_0] [get_bd_pins ethernet_transceiver2_0/eth_mdio]
  655. connect_bd_net -net Net6 [get_bd_ports eth_rstn_0] [get_bd_pins ethernet_transceiver2_0/eth_rstn]
  656. 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]
  657. connect_bd_net -net c_counter_binary_0_Q [get_bd_pins c_counter_binary_0/Q] [get_bd_pins segment_0/num2]
  658. connect_bd_net -net c_counter_binary_1_Q [get_bd_pins c_counter_binary_1/Q] [get_bd_pins segment_0/num1]
  659. connect_bd_net -net clk_100MHz_1 [get_bd_ports clk_100MHz] [get_bd_pins clk_wiz_0/clk_in1]
  660. 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]
  661. connect_bd_net -net ethernet_transceiver2_0_eth_mdc [get_bd_ports eth_mdc_0] [get_bd_pins ethernet_transceiver2_0/eth_mdc]
  662. 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]
  663. connect_bd_net -net ethernet_transceiver2_0_led16_b [get_bd_ports led16_b_0] [get_bd_pins ethernet_transceiver2_0/led16_b]
  664. connect_bd_net -net ethernet_transceiver2_0_led16_g [get_bd_ports led16_g_0] [get_bd_pins ethernet_transceiver2_0/led16_g]
  665. connect_bd_net -net ethernet_transceiver2_0_led16_r [get_bd_ports led16_r_0] [get_bd_pins ethernet_transceiver2_0/led16_r]
  666. connect_bd_net -net ethernet_transceiver2_0_led17_b [get_bd_ports led17_b_0] [get_bd_pins ethernet_transceiver2_0/led17_b]
  667. connect_bd_net -net ethernet_transceiver2_0_led17_g [get_bd_ports led17_g_0] [get_bd_pins ethernet_transceiver2_0/led17_g]
  668. connect_bd_net -net ethernet_transceiver2_0_led17_r [get_bd_ports led17_r_0] [get_bd_pins ethernet_transceiver2_0/led17_r]
  669. connect_bd_net -net fifo_input_dout [get_bd_pins fifo_input/dout] [get_bd_pins packaging_0/inputStream]
  670. connect_bd_net -net fifo_input_empty [get_bd_pins fifo_input/empty] [get_bd_pins packaging_0/inputEmpty]
  671. connect_bd_net -net fifo_input_overflow [get_bd_pins c_counter_binary_1/CE] [get_bd_pins fifo_input/overflow]
  672. connect_bd_net -net fifo_output_full [get_bd_pins fifo_output/full] [get_bd_pins packaging_0/outputFull]
  673. connect_bd_net -net fifo_output_overflow [get_bd_pins c_counter_binary_0/CE] [get_bd_pins fifo_output/overflow]
  674. connect_bd_net -net fifo_output_rd_data_count [get_bd_pins fifo_output/rd_data_count] [get_bd_pins xlconcat_5/In0]
  675. connect_bd_net -net packaging_0_errorCode [get_bd_pins packaging_0/errorCode] [get_bd_pins xlconcat_4/In0]
  676. connect_bd_net -net packaging_0_inpRdEn [get_bd_pins fifo_input/rd_en] [get_bd_pins packaging_0/inpRdEn]
  677. connect_bd_net -net packaging_0_outData [get_bd_pins fifo_output/din] [get_bd_pins packaging_0/outData]
  678. connect_bd_net -net packaging_0_outWrEn [get_bd_pins fifo_output/wr_en] [get_bd_pins packaging_0/outWrEn]
  679. connect_bd_net -net packaging_0_stateOut [get_bd_pins packaging_0/stateOut] [get_bd_pins xlconcat_4/In1]
  680. connect_bd_net -net reset_rtl_0_1 [get_bd_ports reset_rtl_0] [get_bd_pins clk_wiz_0/resetn]
  681. connect_bd_net -net segment_0_anodes [get_bd_ports anodes_0] [get_bd_pins segment_0/anodes]
  682. connect_bd_net -net segment_0_cathodes [get_bd_ports cathodes_0] [get_bd_pins segment_0/cathodes]
  683. connect_bd_net -net sw_0_1 [get_bd_ports sw_0] [get_bd_pins ethernet_transceiver2_0/ip]
  684. connect_bd_net -net xlconcat_4_dout [get_bd_ports led_0] [get_bd_pins xlconcat_4/dout]
  685. 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]
  686. connect_bd_net -net xlconstant_0_dout [get_bd_pins ethernet_transceiver2_0/udp_packet_checksum] [get_bd_pins xlconstant_0/dout]
  687. connect_bd_net -net xlconstant_1_dout [get_bd_pins xlconcat_5/In1] [get_bd_pins xlconstant_1/dout]
  688. connect_bd_net -net xlslice_0_Dout [get_bd_pins xlconcat_4/In2] [get_bd_pins xlslice_0/Dout]
  689. 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]
  690. # Create address segments
  691. # Perform GUI Layout
  692. regenerate_bd_layout -layout_string {
  693. "ExpandedHierarchyInLayout":"",
  694. "guistr":"# # String gsaved with Nlview 6.8.11 2018-08-07 bk=1.4403 VDI=40 GEI=35 GUI=JA:9.0 non-TLS
  695. # -string -flagsOSRD
  696. preplace port led17_r_0 -pg 1 -y 1220 -defaultsOSRD
  697. preplace port eth_txen_0 -pg 1 -y 920 -defaultsOSRD
  698. preplace port led17_g_0 -pg 1 -y 1190 -defaultsOSRD
  699. preplace port eth_rxerr_0 -pg 1 -y 950 -defaultsOSRD
  700. preplace port led16_r_0 -pg 1 -y 1130 -defaultsOSRD
  701. preplace port led17_b_0 -pg 1 -y 1160 -defaultsOSRD
  702. preplace port clk_100MHz -pg 1 -y 570 -defaultsOSRD
  703. preplace port eth_rstn_0 -pg 1 -y 1040 -defaultsOSRD
  704. preplace port led16_b_0 -pg 1 -y 1070 -defaultsOSRD
  705. preplace port eth_mdc_0 -pg 1 -y 980 -defaultsOSRD
  706. preplace port led16_g_0 -pg 1 -y 1100 -defaultsOSRD
  707. preplace port eth_refclk_0 -pg 1 -y 760 -defaultsOSRD
  708. preplace port eth_mdio_0 -pg 1 -y 1010 -defaultsOSRD
  709. preplace port reset_rtl_0 -pg 1 -y 540 -defaultsOSRD
  710. preplace port eth_crsdv_0 -pg 1 -y 890 -defaultsOSRD
  711. preplace portBus anodes_0 -pg 1 -y 130 -defaultsOSRD
  712. preplace portBus cathodes_0 -pg 1 -y 160 -defaultsOSRD
  713. preplace portBus eth_txd_0 -pg 1 -y 860 -defaultsOSRD
  714. preplace portBus led_0 -pg 1 -y 280 -defaultsOSRD
  715. preplace portBus sw_0 -pg 1 -y 1080 -defaultsOSRD
  716. preplace portBus eth_rxd_0 -pg 1 -y 830 -defaultsOSRD
  717. preplace inst fifo_input -pg 1 -lvl 4 -y 340 -defaultsOSRD
  718. preplace inst xlslice_0 -pg 1 -lvl 5 -y 820 -defaultsOSRD
  719. preplace inst xlconstant_0 -pg 1 -lvl 2 -y 1020 -defaultsOSRD
  720. preplace inst packaging_0 -pg 1 -lvl 3 -y 580 -defaultsOSRD
  721. preplace inst xlconstant_1 -pg 1 -lvl 1 -y 680 -defaultsOSRD
  722. preplace inst fifo_output -pg 1 -lvl 4 -y 590 -defaultsOSRD
  723. preplace inst ethernet_transceiver2_0 -pg 1 -lvl 3 -y 1040 -defaultsOSRD
  724. preplace inst c_counter_binary_0 -pg 1 -lvl 5 -y 80 -defaultsOSRD
  725. preplace inst c_counter_binary_1 -pg 1 -lvl 5 -y 340 -defaultsOSRD
  726. preplace inst invert_reset_0 -pg 1 -lvl 3 -y 720 -defaultsOSRD
  727. preplace inst xlconcat_4 -pg 1 -lvl 6 -y 280 -defaultsOSRD
  728. preplace inst segment_0 -pg 1 -lvl 6 -y 140 -defaultsOSRD
  729. preplace inst clk_wiz_0 -pg 1 -lvl 2 -y 550 -defaultsOSRD
  730. preplace inst xlconcat_5 -pg 1 -lvl 2 -y 670 -defaultsOSRD
  731. preplace netloc ethernet_transceiver2_0_fifo_read 1 3 1 870
  732. preplace netloc xlconstant_1_dout 1 1 1 NJ
  733. preplace netloc packaging_0_errorCode 1 3 3 860 720 1300J 260 NJ
  734. preplace netloc ethernet_transceiver2_0_led16_b 1 3 4 NJ 1070 NJ 1070 NJ 1070 NJ
  735. preplace netloc Net4 1 3 4 890J 950 NJ 950 NJ 950 NJ
  736. preplace netloc xlslice_1_Dout 1 3 2 850 740 1310
  737. preplace netloc Net5 1 3 4 NJ 1010 NJ 1010 NJ 1010 NJ
  738. preplace netloc packaging_0_outData 1 3 1 N
  739. preplace netloc c_counter_binary_1_Q 1 5 1 1510
  740. preplace netloc Net6 1 3 4 850J 1040 NJ 1040 NJ 1040 NJ
  741. preplace netloc fifo_input_dout 1 2 2 450 340 NJ
  742. preplace netloc ethernet_transceiver2_0_led16_r 1 3 4 NJ 1110 NJ 1110 NJ 1110 1800J
  743. preplace netloc xlconcat_5_dout 1 2 3 400 790 NJ 790 1290J
  744. preplace netloc sw_0_1 1 0 3 NJ 1080 NJ 1080 NJ
  745. preplace netloc ethernet_transceiver2_0_eth_refclk 1 3 4 880 760 NJ 760 NJ 760 NJ
  746. preplace netloc ethernet_transceiver2_0_led16_g 1 3 4 NJ 1090 NJ 1090 NJ 1090 1780J
  747. preplace netloc ethernet_transceiver2_0_fifo_write 1 3 1 820
  748. preplace netloc xlconstant_0_dout 1 2 1 390J
  749. preplace netloc segment_0_anodes 1 6 1 NJ
  750. preplace netloc packaging_0_inpRdEn 1 3 1 810
  751. preplace netloc ethernet_transceiver2_0_led17_b 1 3 4 NJ 1130 NJ 1130 NJ 1130 1790J
  752. preplace netloc c_counter_binary_0_Q 1 5 1 1530
  753. preplace netloc segment_0_cathodes 1 6 1 1770J
  754. preplace netloc fifo_output_overflow 1 4 1 1280
  755. preplace netloc ethernet_transceiver2_0_eth_mdc 1 3 4 890J 980 NJ 980 NJ 980 NJ
  756. preplace netloc reset_rtl_0_1 1 0 2 NJ 540 NJ
  757. preplace netloc packaging_0_stateOut 1 3 3 840 750 NJ 750 1520J
  758. preplace netloc fifo_output_rd_data_count 1 1 4 190 460 NJ 460 NJ 460 1270
  759. preplace netloc fifo_input_empty 1 2 2 430 320 NJ
  760. preplace netloc packaging_0_outWrEn 1 3 1 N
  761. preplace netloc fifo_output_full 1 2 2 440 480 840J
  762. preplace netloc ethernet_transceiver2_0_led17_r 1 3 4 NJ 1170 NJ 1170 NJ 1170 1770J
  763. preplace netloc Net1 1 3 4 NJ 910 NJ 910 NJ 910 1780J
  764. preplace netloc Net 1 3 4 NJ 890 NJ 890 NJ 890 1770J
  765. preplace netloc xlconcat_4_dout 1 6 1 NJ
  766. preplace netloc fifo_input_overflow 1 4 1 N
  767. preplace netloc Net2 1 3 4 NJ 930 NJ 930 NJ 930 1790J
  768. preplace netloc clk_100MHz_1 1 0 2 NJ 570 180J
  769. preplace netloc xlslice_0_Dout 1 5 1 1530
  770. preplace netloc aresetn 1 2 1 410
  771. preplace netloc ethernet_transceiver2_0_led17_g 1 3 4 NJ 1150 NJ 1150 NJ 1150 1780J
  772. preplace netloc clk_wiz_clk_out1 1 2 4 420 780 830 730 1290 160 NJ
  773. preplace netloc Net3 1 3 4 840J 940 NJ 940 NJ 940 1800J
  774. levelinfo -pg 1 0 100 290 630 1080 1410 1650 1820 -top 0 -bot 1290
  775. "
  776. }
  777. # Restore current instance
  778. current_bd_instance $oldCurInst
  779. validate_bd_design
  780. save_bd_design
  781. close_bd_design $design_name
  782. }
  783. # End of cr_bd_design_1()
  784. cr_bd_design_1 ""
  785. set_property REGISTERED_WITH_MANAGER "1" [get_files design_1.bd ]
  786. set_property SYNTH_CHECKPOINT_MODE "Hierarchical" [get_files design_1.bd ]
  787. # Create wrapper file for design_1.bd
  788. make_wrapper -files [get_files design_1.bd] -import -top
  789. # Create 'synth_1' run (if not found)
  790. if {[string equal [get_runs -quiet synth_1] ""]} {
  791. create_run -name synth_1 -part xc7a100tcsg324-1 -flow {Vivado Synthesis 2018} -strategy "Vivado Synthesis Defaults" -report_strategy {No Reports} -constrset constrs_1
  792. } else {
  793. set_property strategy "Vivado Synthesis Defaults" [get_runs synth_1]
  794. set_property flow "Vivado Synthesis 2018" [get_runs synth_1]
  795. }
  796. set obj [get_runs synth_1]
  797. set_property set_report_strategy_name 1 $obj
  798. set_property report_strategy {Vivado Synthesis Default Reports} $obj
  799. set_property set_report_strategy_name 0 $obj
  800. # Create 'synth_1_synth_report_utilization_0' report (if not found)
  801. if { [ string equal [get_report_configs -of_objects [get_runs synth_1] synth_1_synth_report_utilization_0] "" ] } {
  802. create_report_config -report_name synth_1_synth_report_utilization_0 -report_type report_utilization:1.0 -steps synth_design -runs synth_1
  803. }
  804. set obj [get_report_configs -of_objects [get_runs synth_1] synth_1_synth_report_utilization_0]
  805. if { $obj != "" } {
  806. set_property -name "display_name" -value "synth_1_synth_report_utilization_0" -objects $obj
  807. }
  808. set obj [get_runs synth_1]
  809. set_property -name "part" -value "xc7a100tcsg324-1" -objects $obj
  810. set_property -name "strategy" -value "Vivado Synthesis Defaults" -objects $obj
  811. # set the current synth run
  812. current_run -synthesis [get_runs synth_1]
  813. # Create 'impl_1' run (if not found)
  814. if {[string equal [get_runs -quiet impl_1] ""]} {
  815. 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
  816. } else {
  817. set_property strategy "Vivado Implementation Defaults" [get_runs impl_1]
  818. set_property flow "Vivado Implementation 2018" [get_runs impl_1]
  819. }
  820. set obj [get_runs impl_1]
  821. set_property set_report_strategy_name 1 $obj
  822. set_property report_strategy {Vivado Implementation Default Reports} $obj
  823. set_property set_report_strategy_name 0 $obj
  824. # Create 'impl_1_init_report_timing_summary_0' report (if not found)
  825. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_init_report_timing_summary_0] "" ] } {
  826. 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
  827. }
  828. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_init_report_timing_summary_0]
  829. if { $obj != "" } {
  830. set_property -name "is_enabled" -value "0" -objects $obj
  831. set_property -name "display_name" -value "impl_1_init_report_timing_summary_0" -objects $obj
  832. }
  833. # Create 'impl_1_opt_report_drc_0' report (if not found)
  834. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_drc_0] "" ] } {
  835. create_report_config -report_name impl_1_opt_report_drc_0 -report_type report_drc:1.0 -steps opt_design -runs impl_1
  836. }
  837. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_drc_0]
  838. if { $obj != "" } {
  839. set_property -name "display_name" -value "impl_1_opt_report_drc_0" -objects $obj
  840. }
  841. # Create 'impl_1_opt_report_timing_summary_0' report (if not found)
  842. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_timing_summary_0] "" ] } {
  843. 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
  844. }
  845. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_timing_summary_0]
  846. if { $obj != "" } {
  847. set_property -name "is_enabled" -value "0" -objects $obj
  848. set_property -name "display_name" -value "impl_1_opt_report_timing_summary_0" -objects $obj
  849. }
  850. # Create 'impl_1_power_opt_report_timing_summary_0' report (if not found)
  851. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_power_opt_report_timing_summary_0] "" ] } {
  852. 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
  853. }
  854. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_power_opt_report_timing_summary_0]
  855. if { $obj != "" } {
  856. set_property -name "is_enabled" -value "0" -objects $obj
  857. set_property -name "display_name" -value "impl_1_power_opt_report_timing_summary_0" -objects $obj
  858. }
  859. # Create 'impl_1_place_report_io_0' report (if not found)
  860. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_io_0] "" ] } {
  861. create_report_config -report_name impl_1_place_report_io_0 -report_type report_io:1.0 -steps place_design -runs impl_1
  862. }
  863. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_io_0]
  864. if { $obj != "" } {
  865. set_property -name "display_name" -value "impl_1_place_report_io_0" -objects $obj
  866. }
  867. # Create 'impl_1_place_report_utilization_0' report (if not found)
  868. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_utilization_0] "" ] } {
  869. create_report_config -report_name impl_1_place_report_utilization_0 -report_type report_utilization:1.0 -steps place_design -runs impl_1
  870. }
  871. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_utilization_0]
  872. if { $obj != "" } {
  873. set_property -name "display_name" -value "impl_1_place_report_utilization_0" -objects $obj
  874. }
  875. # Create 'impl_1_place_report_control_sets_0' report (if not found)
  876. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_control_sets_0] "" ] } {
  877. 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
  878. }
  879. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_control_sets_0]
  880. if { $obj != "" } {
  881. set_property -name "display_name" -value "impl_1_place_report_control_sets_0" -objects $obj
  882. }
  883. # Create 'impl_1_place_report_incremental_reuse_0' report (if not found)
  884. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_0] "" ] } {
  885. 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
  886. }
  887. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_0]
  888. if { $obj != "" } {
  889. set_property -name "is_enabled" -value "0" -objects $obj
  890. set_property -name "display_name" -value "impl_1_place_report_incremental_reuse_0" -objects $obj
  891. }
  892. # Create 'impl_1_place_report_incremental_reuse_1' report (if not found)
  893. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_1] "" ] } {
  894. 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
  895. }
  896. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_1]
  897. if { $obj != "" } {
  898. set_property -name "is_enabled" -value "0" -objects $obj
  899. set_property -name "display_name" -value "impl_1_place_report_incremental_reuse_1" -objects $obj
  900. }
  901. # Create 'impl_1_place_report_timing_summary_0' report (if not found)
  902. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_timing_summary_0] "" ] } {
  903. 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
  904. }
  905. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_timing_summary_0]
  906. if { $obj != "" } {
  907. set_property -name "is_enabled" -value "0" -objects $obj
  908. set_property -name "display_name" -value "impl_1_place_report_timing_summary_0" -objects $obj
  909. }
  910. # Create 'impl_1_post_place_power_opt_report_timing_summary_0' report (if not found)
  911. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_post_place_power_opt_report_timing_summary_0] "" ] } {
  912. 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
  913. }
  914. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_post_place_power_opt_report_timing_summary_0]
  915. if { $obj != "" } {
  916. set_property -name "is_enabled" -value "0" -objects $obj
  917. set_property -name "display_name" -value "impl_1_post_place_power_opt_report_timing_summary_0" -objects $obj
  918. }
  919. # Create 'impl_1_phys_opt_report_timing_summary_0' report (if not found)
  920. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_phys_opt_report_timing_summary_0] "" ] } {
  921. 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
  922. }
  923. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_phys_opt_report_timing_summary_0]
  924. if { $obj != "" } {
  925. set_property -name "is_enabled" -value "0" -objects $obj
  926. set_property -name "display_name" -value "impl_1_phys_opt_report_timing_summary_0" -objects $obj
  927. }
  928. # Create 'impl_1_route_report_drc_0' report (if not found)
  929. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_drc_0] "" ] } {
  930. create_report_config -report_name impl_1_route_report_drc_0 -report_type report_drc:1.0 -steps route_design -runs impl_1
  931. }
  932. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_drc_0]
  933. if { $obj != "" } {
  934. set_property -name "display_name" -value "impl_1_route_report_drc_0" -objects $obj
  935. }
  936. # Create 'impl_1_route_report_methodology_0' report (if not found)
  937. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_methodology_0] "" ] } {
  938. create_report_config -report_name impl_1_route_report_methodology_0 -report_type report_methodology:1.0 -steps route_design -runs impl_1
  939. }
  940. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_methodology_0]
  941. if { $obj != "" } {
  942. set_property -name "display_name" -value "impl_1_route_report_methodology_0" -objects $obj
  943. }
  944. # Create 'impl_1_route_report_power_0' report (if not found)
  945. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_power_0] "" ] } {
  946. create_report_config -report_name impl_1_route_report_power_0 -report_type report_power:1.0 -steps route_design -runs impl_1
  947. }
  948. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_power_0]
  949. if { $obj != "" } {
  950. set_property -name "display_name" -value "impl_1_route_report_power_0" -objects $obj
  951. }
  952. # Create 'impl_1_route_report_route_status_0' report (if not found)
  953. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_route_status_0] "" ] } {
  954. 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
  955. }
  956. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_route_status_0]
  957. if { $obj != "" } {
  958. set_property -name "display_name" -value "impl_1_route_report_route_status_0" -objects $obj
  959. }
  960. # Create 'impl_1_route_report_timing_summary_0' report (if not found)
  961. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_timing_summary_0] "" ] } {
  962. 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
  963. }
  964. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_timing_summary_0]
  965. if { $obj != "" } {
  966. set_property -name "display_name" -value "impl_1_route_report_timing_summary_0" -objects $obj
  967. }
  968. # Create 'impl_1_route_report_incremental_reuse_0' report (if not found)
  969. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_incremental_reuse_0] "" ] } {
  970. 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
  971. }
  972. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_incremental_reuse_0]
  973. if { $obj != "" } {
  974. set_property -name "display_name" -value "impl_1_route_report_incremental_reuse_0" -objects $obj
  975. }
  976. # Create 'impl_1_route_report_clock_utilization_0' report (if not found)
  977. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_clock_utilization_0] "" ] } {
  978. 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
  979. }
  980. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_clock_utilization_0]
  981. if { $obj != "" } {
  982. set_property -name "display_name" -value "impl_1_route_report_clock_utilization_0" -objects $obj
  983. }
  984. # Create 'impl_1_route_report_bus_skew_0' report (if not found)
  985. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_bus_skew_0] "" ] } {
  986. 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
  987. }
  988. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_bus_skew_0]
  989. if { $obj != "" } {
  990. set_property -name "display_name" -value "impl_1_route_report_bus_skew_0" -objects $obj
  991. }
  992. # Create 'impl_1_post_route_phys_opt_report_timing_summary_0' report (if not found)
  993. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_timing_summary_0] "" ] } {
  994. 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
  995. }
  996. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_timing_summary_0]
  997. if { $obj != "" } {
  998. set_property -name "display_name" -value "impl_1_post_route_phys_opt_report_timing_summary_0" -objects $obj
  999. }
  1000. # Create 'impl_1_post_route_phys_opt_report_bus_skew_0' report (if not found)
  1001. if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_bus_skew_0] "" ] } {
  1002. 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
  1003. }
  1004. set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_bus_skew_0]
  1005. if { $obj != "" } {
  1006. set_property -name "display_name" -value "impl_1_post_route_phys_opt_report_bus_skew_0" -objects $obj
  1007. }
  1008. set obj [get_runs impl_1]
  1009. set_property -name "part" -value "xc7a100tcsg324-1" -objects $obj
  1010. set_property -name "strategy" -value "Vivado Implementation Defaults" -objects $obj
  1011. set_property -name "steps.write_bitstream.args.readback_file" -value "0" -objects $obj
  1012. set_property -name "steps.write_bitstream.args.verbose" -value "0" -objects $obj
  1013. # set the current impl run
  1014. current_run -implementation [get_runs impl_1]
  1015. # Change current directory to project folder
  1016. cd [file dirname [info script]]
  1017. puts "INFO: Project created:${_xil_proj_name_}"
  1018. # Create 'drc_1' gadget (if not found)
  1019. if {[string equal [get_dashboard_gadgets [ list "drc_1" ] ] ""]} {
  1020. create_dashboard_gadget -name {drc_1} -type drc
  1021. }
  1022. set obj [get_dashboard_gadgets [ list "drc_1" ] ]
  1023. set_property -name "reports" -value "impl_1#impl_1_route_report_drc_0" -objects $obj
  1024. # Create 'methodology_1' gadget (if not found)
  1025. if {[string equal [get_dashboard_gadgets [ list "methodology_1" ] ] ""]} {
  1026. create_dashboard_gadget -name {methodology_1} -type methodology
  1027. }
  1028. set obj [get_dashboard_gadgets [ list "methodology_1" ] ]
  1029. set_property -name "reports" -value "impl_1#impl_1_route_report_methodology_0" -objects $obj
  1030. # Create 'power_1' gadget (if not found)
  1031. if {[string equal [get_dashboard_gadgets [ list "power_1" ] ] ""]} {
  1032. create_dashboard_gadget -name {power_1} -type power
  1033. }
  1034. set obj [get_dashboard_gadgets [ list "power_1" ] ]
  1035. set_property -name "reports" -value "impl_1#impl_1_route_report_power_0" -objects $obj
  1036. # Create 'timing_1' gadget (if not found)
  1037. if {[string equal [get_dashboard_gadgets [ list "timing_1" ] ] ""]} {
  1038. create_dashboard_gadget -name {timing_1} -type timing
  1039. }
  1040. set obj [get_dashboard_gadgets [ list "timing_1" ] ]
  1041. set_property -name "reports" -value "impl_1#impl_1_route_report_timing_summary_0" -objects $obj
  1042. # Create 'utilization_1' gadget (if not found)
  1043. if {[string equal [get_dashboard_gadgets [ list "utilization_1" ] ] ""]} {
  1044. create_dashboard_gadget -name {utilization_1} -type utilization
  1045. }
  1046. set obj [get_dashboard_gadgets [ list "utilization_1" ] ]
  1047. set_property -name "reports" -value "synth_1#synth_1_synth_report_utilization_0" -objects $obj
  1048. set_property -name "run.step" -value "synth_design" -objects $obj
  1049. set_property -name "run.type" -value "synthesis" -objects $obj
  1050. # Create 'utilization_2' gadget (if not found)
  1051. if {[string equal [get_dashboard_gadgets [ list "utilization_2" ] ] ""]} {
  1052. create_dashboard_gadget -name {utilization_2} -type utilization
  1053. }
  1054. set obj [get_dashboard_gadgets [ list "utilization_2" ] ]
  1055. set_property -name "reports" -value "impl_1#impl_1_place_report_utilization_0" -objects $obj
  1056. move_dashboard_gadget -name {utilization_1} -row 0 -col 0
  1057. move_dashboard_gadget -name {power_1} -row 1 -col 0
  1058. move_dashboard_gadget -name {drc_1} -row 2 -col 0
  1059. move_dashboard_gadget -name {timing_1} -row 0 -col 1
  1060. move_dashboard_gadget -name {utilization_2} -row 1 -col 1
  1061. move_dashboard_gadget -name {methodology_1} -row 2 -col 1