vhdl-modules.tcl 59 KB

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