vhdl-modules.tcl 53 KB

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