|
@@ -0,0 +1,838 @@
|
|
|
|
+# Set the reference directory for source file relative paths (by default the value is script directory path)
|
|
|
|
+set origin_dir "."
|
|
|
|
+
|
|
|
|
+# Use origin directory path location variable, if specified in the tcl shell
|
|
|
|
+if { [info exists ::origin_dir_loc] } {
|
|
|
|
+ set origin_dir $::origin_dir_loc
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+# Set the project name
|
|
|
|
+set _xil_proj_name_ "complete-bd"
|
|
|
|
+
|
|
|
|
+# Use project name variable, if specified in the tcl shell
|
|
|
|
+if { [info exists ::user_project_name] } {
|
|
|
|
+ set _xil_proj_name_ $::user_project_name
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+variable script_file
|
|
|
|
+set script_file ".exported.tcl"
|
|
|
|
+
|
|
|
|
+# Help information for this script
|
|
|
|
+proc print_help {} {
|
|
|
|
+ variable script_file
|
|
|
|
+ puts "\nDescription:"
|
|
|
|
+ puts "Recreate a Vivado project from this script. The created project will be"
|
|
|
|
+ puts "functionally equivalent to the original project for which this script was"
|
|
|
|
+ puts "generated. The script contains commands for creating a project, filesets,"
|
|
|
|
+ puts "runs, adding/importing sources and setting properties on various objects.\n"
|
|
|
|
+ puts "Syntax:"
|
|
|
|
+ puts "$script_file"
|
|
|
|
+ puts "$script_file -tclargs \[--origin_dir <path>\]"
|
|
|
|
+ puts "$script_file -tclargs \[--project_name <name>\]"
|
|
|
|
+ puts "$script_file -tclargs \[--help\]\n"
|
|
|
|
+ puts "Usage:"
|
|
|
|
+ puts "Name Description"
|
|
|
|
+ puts "-------------------------------------------------------------------------"
|
|
|
|
+ puts "\[--origin_dir <path>\] Determine source file paths wrt this path. Default"
|
|
|
|
+ puts " origin_dir path value is \".\", otherwise, the value"
|
|
|
|
+ puts " that was set with the \"-paths_relative_to\" switch"
|
|
|
|
+ puts " when this script was generated.\n"
|
|
|
|
+ puts "\[--project_name <name>\] Create project with the specified name. Default"
|
|
|
|
+ puts " name is the name of the project from where this"
|
|
|
|
+ puts " script was generated.\n"
|
|
|
|
+ puts "\[--help\] Print help information for this script"
|
|
|
|
+ puts "-------------------------------------------------------------------------\n"
|
|
|
|
+ exit 0
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+if { $::argc > 0 } {
|
|
|
|
+ for {set i 0} {$i < $::argc} {incr i} {
|
|
|
|
+ set option [string trim [lindex $::argv $i]]
|
|
|
|
+ switch -regexp -- $option {
|
|
|
|
+ "--origin_dir" { incr i; set origin_dir [lindex $::argv $i] }
|
|
|
|
+ "--project_name" { incr i; set _xil_proj_name_ [lindex $::argv $i] }
|
|
|
|
+ "--help" { print_help }
|
|
|
|
+ default {
|
|
|
|
+ if { [regexp {^-} $option] } {
|
|
|
|
+ puts "ERROR: Unknown option '$option' specified, please type '$script_file -tclargs --help' for usage info.\n"
|
|
|
|
+ return 1
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+# Set the directory path for the original project from where this script was exported
|
|
|
|
+set orig_proj_dir "[file normalize "sources/complete-bd"]"
|
|
|
|
+
|
|
|
|
+# Create project
|
|
|
|
+create_project complete-bd workspace/complete-bd
|
|
|
|
+
|
|
|
|
+# Set the directory path for the new project
|
|
|
|
+set proj_dir [get_property directory [current_project]]
|
|
|
|
+
|
|
|
|
+# Set project properties
|
|
|
|
+set obj [current_project]
|
|
|
|
+set_property -name "default_lib" -value "xil_defaultlib" -objects $obj
|
|
|
|
+set_property -name "dsa.accelerator_binary_content" -value "bitstream" -objects $obj
|
|
|
|
+set_property -name "dsa.accelerator_binary_format" -value "xclbin2" -objects $obj
|
|
|
|
+set_property -name "dsa.description" -value "Vivado generated DSA" -objects $obj
|
|
|
|
+set_property -name "dsa.dr_bd_base_address" -value "0" -objects $obj
|
|
|
|
+set_property -name "dsa.emu_dir" -value "emu" -objects $obj
|
|
|
|
+set_property -name "dsa.flash_interface_type" -value "bpix16" -objects $obj
|
|
|
|
+set_property -name "dsa.flash_offset_address" -value "0" -objects $obj
|
|
|
|
+set_property -name "dsa.flash_size" -value "1024" -objects $obj
|
|
|
|
+set_property -name "dsa.host_architecture" -value "x86_64" -objects $obj
|
|
|
|
+set_property -name "dsa.host_interface" -value "pcie" -objects $obj
|
|
|
|
+set_property -name "dsa.num_compute_units" -value "60" -objects $obj
|
|
|
|
+set_property -name "dsa.platform_state" -value "pre_synth" -objects $obj
|
|
|
|
+set_property -name "dsa.vendor" -value "xilinx" -objects $obj
|
|
|
|
+set_property -name "dsa.version" -value "0.0" -objects $obj
|
|
|
|
+set_property -name "enable_vhdl_2008" -value "1" -objects $obj
|
|
|
|
+set_property -name "ip_cache_permissions" -value "read write" -objects $obj
|
|
|
|
+set_property -name "ip_output_repo" -value "" -objects $obj
|
|
|
|
+set_property -name "mem.enable_memory_map_generation" -value "1" -objects $obj
|
|
|
|
+set_property -name "part" -value "xc7a100tcsg324-1" -objects $obj
|
|
|
|
+set_property -name "sim.central_dir" -value "" -objects $obj
|
|
|
|
+set_property -name "sim.ip.auto_export_scripts" -value "1" -objects $obj
|
|
|
|
+set_property -name "simulator_language" -value "Mixed" -objects $obj
|
|
|
|
+set_property -name "target_language" -value "VHDL" -objects $obj
|
|
|
|
+set_property -name "webtalk.activehdl_export_sim" -value "1" -objects $obj
|
|
|
|
+set_property -name "webtalk.ies_export_sim" -value "1" -objects $obj
|
|
|
|
+set_property -name "webtalk.modelsim_export_sim" -value "1" -objects $obj
|
|
|
|
+set_property -name "webtalk.questa_export_sim" -value "1" -objects $obj
|
|
|
|
+set_property -name "webtalk.riviera_export_sim" -value "1" -objects $obj
|
|
|
|
+set_property -name "webtalk.vcs_export_sim" -value "1" -objects $obj
|
|
|
|
+set_property -name "webtalk.xsim_export_sim" -value "1" -objects $obj
|
|
|
|
+set_property -name "xpm_libraries" -value "XPM_CDC XPM_MEMORY" -objects $obj
|
|
|
|
+
|
|
|
|
+# Create 'sources_1' fileset (if not found)
|
|
|
|
+if {[string equal [get_filesets -quiet sources_1] ""]} {
|
|
|
|
+ create_fileset -srcset sources_1
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+# Set IP repository paths
|
|
|
|
+set obj [get_filesets sources_1]
|
|
|
|
+# set_property "ip_repo_paths" "[file normalize "$origin_dir/workspace/ip_repo"]" $obj
|
|
|
|
+set_property "ip_repo_paths" "[file normalize "workspace/ip_repo"]" $obj
|
|
|
|
+
|
|
|
|
+# Rebuild user ip_repo's index before adding any source files
|
|
|
|
+update_ip_catalog -rebuild
|
|
|
|
+
|
|
|
|
+puts "*** BEGINNING TO RECONSTRUCT BLOCK DESIGNS"
|
|
|
|
+foreach {bd_file} [glob sources/complete-bd.bd/*] {
|
|
|
|
+ source $bd_file
|
|
|
|
+}
|
|
|
|
+puts "*** FINISHED RECONSTRUCTING BLOCK DESIGNS"
|
|
|
|
+
|
|
|
|
+# Set 'sources_1' fileset object
|
|
|
|
+set obj [get_filesets sources_1]
|
|
|
|
+# Set 'sources_1' fileset file properties for remote files
|
|
|
|
+# None
|
|
|
|
+
|
|
|
|
+# Set 'sources_1' fileset file properties for local files
|
|
|
|
+# None
|
|
|
|
+
|
|
|
|
+# Set 'sources_1' fileset properties
|
|
|
|
+set obj [get_filesets sources_1]
|
|
|
|
+
|
|
|
|
+# Create 'constrs_1' fileset (if not found)
|
|
|
|
+if {[string equal [get_filesets -quiet constrs_1] ""]} {
|
|
|
|
+ create_fileset -constrset constrs_1
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+# Set 'constrs_1' fileset object
|
|
|
|
+set obj [get_filesets constrs_1]
|
|
|
|
+
|
|
|
|
+# Add/Import constrs file and set constrs file properties
|
|
|
|
+# set file "[file normalize ${origin_dir}/workspace/complete-bd/complete-bd.srcs/constrs_1/imports/new/nexys_4_ddr.xdc]"
|
|
|
|
+# set file_imported [import_files -fileset constrs_1 [list $file]]
|
|
|
|
+# set file "new/nexys_4_ddr.xdc"
|
|
|
|
+# set file_obj [get_files -of_objects [get_filesets constrs_1] [list "*$file"]]
|
|
|
|
+# set_property -name "file_type" -value "XDC" -objects $file_obj
|
|
|
|
+
|
|
|
|
+# Set 'constrs_1' fileset properties
|
|
|
|
+set obj [get_filesets constrs_1]
|
|
|
|
+set_property -name "target_part" -value "xc7a100tcsg324-1" -objects $obj
|
|
|
|
+
|
|
|
|
+# Create 'sim_1' fileset (if not found)
|
|
|
|
+if {[string equal [get_filesets -quiet sim_1] ""]} {
|
|
|
|
+ create_fileset -simset sim_1
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+# Set 'sim_1' fileset object
|
|
|
|
+set obj [get_filesets sim_1]
|
|
|
|
+# Empty (no sources present)
|
|
|
|
+
|
|
|
|
+# Set 'sim_1' fileset properties
|
|
|
|
+set obj [get_filesets sim_1]
|
|
|
|
+
|
|
|
|
+# Set 'utils_1' fileset object
|
|
|
|
+set obj [get_filesets utils_1]
|
|
|
|
+# Empty (no sources present)
|
|
|
|
+
|
|
|
|
+# Set 'utils_1' fileset properties
|
|
|
|
+set obj [get_filesets utils_1]
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+# Adding sources referenced in BDs, if not already added
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+# Proc to create BD design_1
|
|
|
|
+proc cr_bd_design_1 { parentCell } {
|
|
|
|
+
|
|
|
|
+ # CHANGE DESIGN NAME HERE
|
|
|
|
+ set design_name design_1
|
|
|
|
+
|
|
|
|
+ common::send_msg_id "BD_TCL-003" "INFO" "Currently there is no design <$design_name> in project, so creating one..."
|
|
|
|
+
|
|
|
|
+ create_bd_design $design_name
|
|
|
|
+
|
|
|
|
+ set bCheckIPsPassed 1
|
|
|
|
+ ##################################################################
|
|
|
|
+ # CHECK IPs
|
|
|
|
+ ##################################################################
|
|
|
|
+ set bCheckIPs 1
|
|
|
|
+ if { $bCheckIPs == 1 } {
|
|
|
|
+ set list_check_ips "\
|
|
|
|
+ xilinx.com:ip:c_counter_binary:12.0\
|
|
|
|
+ xilinx.com:user:ethernet_transceiver2:1.0\
|
|
|
|
+ xilinx.com:ip:fifo_generator:13.2\
|
|
|
|
+ xilinx.com:ip:c_addsub:12.0\
|
|
|
|
+ user.org:user:packaging:3.0\
|
|
|
|
+ xilinx.com:user:segment:1.0\
|
|
|
|
+ xilinx.com:ip:xlconcat:2.1\
|
|
|
|
+ xilinx.com:ip:xlconstant:1.1\
|
|
|
|
+ xilinx.com:ip:xlslice:1.0\
|
|
|
|
+ "
|
|
|
|
+
|
|
|
|
+ set list_ips_missing ""
|
|
|
|
+ common::send_msg_id "BD_TCL-006" "INFO" "Checking if the following IPs exist in the project's IP catalog: $list_check_ips ."
|
|
|
|
+
|
|
|
|
+ foreach ip_vlnv $list_check_ips {
|
|
|
|
+ set ip_obj [get_ipdefs -all $ip_vlnv]
|
|
|
|
+ if { $ip_obj eq "" } {
|
|
|
|
+ lappend list_ips_missing $ip_vlnv
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if { $list_ips_missing ne "" } {
|
|
|
|
+ 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." }
|
|
|
|
+ set bCheckIPsPassed 0
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if { $bCheckIPsPassed != 1 } {
|
|
|
|
+ common::send_msg_id "BD_TCL-1003" "WARNING" "Will not continue with creation of design due to the error(s) above."
|
|
|
|
+ return 3
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ variable script_folder
|
|
|
|
+
|
|
|
|
+ if { $parentCell eq "" } {
|
|
|
|
+ set parentCell [get_bd_cells /]
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # Get object for parentCell
|
|
|
|
+ set parentObj [get_bd_cells $parentCell]
|
|
|
|
+ if { $parentObj == "" } {
|
|
|
|
+ catch {common::send_msg_id "BD_TCL-100" "ERROR" "Unable to find parent cell <$parentCell>!"}
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # Make sure parentObj is hier blk
|
|
|
|
+ set parentType [get_property TYPE $parentObj]
|
|
|
|
+ if { $parentType ne "hier" } {
|
|
|
|
+ catch {common::send_msg_id "BD_TCL-101" "ERROR" "Parent <$parentObj> has TYPE = <$parentType>. Expected to be <hier>."}
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ # Save current instance; Restore later
|
|
|
|
+ set oldCurInst [current_bd_instance .]
|
|
|
|
+
|
|
|
|
+ # Set parent object as current
|
|
|
|
+ current_bd_instance $parentObj
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ # Create interface ports
|
|
|
|
+
|
|
|
|
+ # Create ports
|
|
|
|
+ set anodes_0 [ create_bd_port -dir O -from 0 -to 7 anodes_0 ]
|
|
|
|
+ set cathodes_0 [ create_bd_port -dir O -from 0 -to 7 cathodes_0 ]
|
|
|
|
+ set clk_100MHz [ create_bd_port -dir I -type clk clk_100MHz ]
|
|
|
|
+ set_property -dict [ list \
|
|
|
|
+ CONFIG.FREQ_HZ {100000000} \
|
|
|
|
+ ] $clk_100MHz
|
|
|
|
+ set eth_crsdv_0 [ create_bd_port -dir IO eth_crsdv_0 ]
|
|
|
|
+ set eth_mdc_0 [ create_bd_port -dir O eth_mdc_0 ]
|
|
|
|
+ set eth_mdio_0 [ create_bd_port -dir IO eth_mdio_0 ]
|
|
|
|
+ set eth_refclk_0 [ create_bd_port -dir O eth_refclk_0 ]
|
|
|
|
+ set eth_rstn_0 [ create_bd_port -dir IO -type rst eth_rstn_0 ]
|
|
|
|
+ set eth_rxd_0 [ create_bd_port -dir IO -from 1 -to 0 eth_rxd_0 ]
|
|
|
|
+ set eth_rxerr_0 [ create_bd_port -dir IO eth_rxerr_0 ]
|
|
|
|
+ set eth_txd_0 [ create_bd_port -dir IO -from 1 -to 0 eth_txd_0 ]
|
|
|
|
+ set eth_txen_0 [ create_bd_port -dir IO eth_txen_0 ]
|
|
|
|
+ set led16_b_0 [ create_bd_port -dir O led16_b_0 ]
|
|
|
|
+ set led16_g_0 [ create_bd_port -dir O led16_g_0 ]
|
|
|
|
+ set led16_r_0 [ create_bd_port -dir O led16_r_0 ]
|
|
|
|
+ set led17_b_0 [ create_bd_port -dir O led17_b_0 ]
|
|
|
|
+ set led17_g_0 [ create_bd_port -dir O led17_g_0 ]
|
|
|
|
+ set led17_r_0 [ create_bd_port -dir O led17_r_0 ]
|
|
|
|
+ set led_0 [ create_bd_port -dir O -from 15 -to 0 led_0 ]
|
|
|
|
+ set reset_rtl_0 [ create_bd_port -dir I -type rst reset_rtl_0 ]
|
|
|
|
+ set_property -dict [ list \
|
|
|
|
+ CONFIG.POLARITY {ACTIVE_LOW} \
|
|
|
|
+ ] $reset_rtl_0
|
|
|
|
+ set sw_0 [ create_bd_port -dir I -from 4 -to 0 sw_0 ]
|
|
|
|
+
|
|
|
|
+ # Create instance: c_counter_binary_0, and set properties
|
|
|
|
+ set c_counter_binary_0 [ create_bd_cell -type ip -vlnv xilinx.com:ip:c_counter_binary:12.0 c_counter_binary_0 ]
|
|
|
|
+ set_property -dict [ list \
|
|
|
|
+ CONFIG.CE {true} \
|
|
|
|
+ CONFIG.Fb_Latency {2} \
|
|
|
|
+ CONFIG.Fb_Latency_Configuration {Automatic} \
|
|
|
|
+ CONFIG.Final_Count_Value {270F} \
|
|
|
|
+ CONFIG.Latency_Configuration {Automatic} \
|
|
|
|
+ CONFIG.Restrict_Count {true} \
|
|
|
|
+ CONFIG.SCLR {true} \
|
|
|
|
+ CONFIG.SSET {false} \
|
|
|
|
+ ] $c_counter_binary_0
|
|
|
|
+
|
|
|
|
+ # Create instance: c_counter_binary_1, and set properties
|
|
|
|
+ set c_counter_binary_1 [ create_bd_cell -type ip -vlnv xilinx.com:ip:c_counter_binary:12.0 c_counter_binary_1 ]
|
|
|
|
+ set_property -dict [ list \
|
|
|
|
+ CONFIG.CE {true} \
|
|
|
|
+ CONFIG.Fb_Latency {2} \
|
|
|
|
+ CONFIG.Fb_Latency_Configuration {Automatic} \
|
|
|
|
+ CONFIG.Final_Count_Value {270F} \
|
|
|
|
+ CONFIG.Latency_Configuration {Automatic} \
|
|
|
|
+ CONFIG.Restrict_Count {true} \
|
|
|
|
+ CONFIG.SCLR {true} \
|
|
|
|
+ CONFIG.SSET {false} \
|
|
|
|
+ ] $c_counter_binary_1
|
|
|
|
+
|
|
|
|
+ # Create instance: ethernet_transceiver2_0, and set properties
|
|
|
|
+ set ethernet_transceiver2_0 [ create_bd_cell -type ip -vlnv xilinx.com:user:ethernet_transceiver2:1.0 ethernet_transceiver2_0 ]
|
|
|
|
+
|
|
|
|
+ # Create instance: fifo_input, and set properties
|
|
|
|
+ set fifo_input [ create_bd_cell -type ip -vlnv xilinx.com:ip:fifo_generator:13.2 fifo_input ]
|
|
|
|
+ set_property -dict [ list \
|
|
|
|
+ CONFIG.Almost_Empty_Flag {false} \
|
|
|
|
+ CONFIG.Data_Count {false} \
|
|
|
|
+ CONFIG.Data_Count_Width {6} \
|
|
|
|
+ CONFIG.Empty_Threshold_Assert_Value {2} \
|
|
|
|
+ CONFIG.Empty_Threshold_Assert_Value_rach {1022} \
|
|
|
|
+ CONFIG.Empty_Threshold_Assert_Value_wach {1022} \
|
|
|
|
+ CONFIG.Empty_Threshold_Assert_Value_wrch {1022} \
|
|
|
|
+ CONFIG.Empty_Threshold_Negate_Value {3} \
|
|
|
|
+ CONFIG.Enable_Safety_Circuit {false} \
|
|
|
|
+ CONFIG.FIFO_Implementation_rach {Common_Clock_Distributed_RAM} \
|
|
|
|
+ CONFIG.FIFO_Implementation_wach {Common_Clock_Distributed_RAM} \
|
|
|
|
+ CONFIG.FIFO_Implementation_wrch {Common_Clock_Distributed_RAM} \
|
|
|
|
+ CONFIG.Fifo_Implementation {Common_Clock_Distributed_RAM} \
|
|
|
|
+ CONFIG.Full_Flags_Reset_Value {0} \
|
|
|
|
+ CONFIG.Full_Threshold_Assert_Value {62} \
|
|
|
|
+ CONFIG.Full_Threshold_Assert_Value_rach {1023} \
|
|
|
|
+ CONFIG.Full_Threshold_Assert_Value_wach {1023} \
|
|
|
|
+ CONFIG.Full_Threshold_Assert_Value_wrch {1023} \
|
|
|
|
+ CONFIG.Full_Threshold_Negate_Value {61} \
|
|
|
|
+ CONFIG.INTERFACE_TYPE {Native} \
|
|
|
|
+ CONFIG.Input_Data_Width {32} \
|
|
|
|
+ CONFIG.Input_Depth {64} \
|
|
|
|
+ CONFIG.Output_Data_Width {32} \
|
|
|
|
+ CONFIG.Output_Depth {64} \
|
|
|
|
+ CONFIG.Overflow_Flag {true} \
|
|
|
|
+ CONFIG.Performance_Options {Standard_FIFO} \
|
|
|
|
+ CONFIG.Programmable_Empty_Type {No_Programmable_Empty_Threshold} \
|
|
|
|
+ CONFIG.Programmable_Full_Type {No_Programmable_Full_Threshold} \
|
|
|
|
+ CONFIG.Read_Data_Count {false} \
|
|
|
|
+ CONFIG.Read_Data_Count_Width {6} \
|
|
|
|
+ CONFIG.Reset_Pin {true} \
|
|
|
|
+ CONFIG.Reset_Type {Synchronous_Reset} \
|
|
|
|
+ CONFIG.Underflow_Flag {false} \
|
|
|
|
+ CONFIG.Use_Dout_Reset {true} \
|
|
|
|
+ CONFIG.Use_Embedded_Registers {false} \
|
|
|
|
+ CONFIG.Use_Extra_Logic {false} \
|
|
|
|
+ CONFIG.Valid_Flag {false} \
|
|
|
|
+ CONFIG.Write_Data_Count {false} \
|
|
|
|
+ CONFIG.Write_Data_Count_Width {6} \
|
|
|
|
+ ] $fifo_input
|
|
|
|
+
|
|
|
|
+ # Create instance: fifo_output, and set properties
|
|
|
|
+ set fifo_output [ create_bd_cell -type ip -vlnv xilinx.com:ip:fifo_generator:13.2 fifo_output ]
|
|
|
|
+ set_property -dict [ list \
|
|
|
|
+ CONFIG.Almost_Empty_Flag {false} \
|
|
|
|
+ CONFIG.Almost_Full_Flag {false} \
|
|
|
|
+ CONFIG.Data_Count {false} \
|
|
|
|
+ CONFIG.Data_Count_Width {9} \
|
|
|
|
+ CONFIG.Empty_Threshold_Assert_Value {2} \
|
|
|
|
+ CONFIG.Empty_Threshold_Assert_Value_rach {1022} \
|
|
|
|
+ CONFIG.Empty_Threshold_Assert_Value_wach {1022} \
|
|
|
|
+ CONFIG.Empty_Threshold_Assert_Value_wrch {1022} \
|
|
|
|
+ CONFIG.Empty_Threshold_Negate_Value {3} \
|
|
|
|
+ CONFIG.Enable_Safety_Circuit {false} \
|
|
|
|
+ CONFIG.FIFO_Implementation_rach {Common_Clock_Distributed_RAM} \
|
|
|
|
+ CONFIG.FIFO_Implementation_wach {Common_Clock_Distributed_RAM} \
|
|
|
|
+ CONFIG.FIFO_Implementation_wrch {Common_Clock_Distributed_RAM} \
|
|
|
|
+ CONFIG.Fifo_Implementation {Independent_Clocks_Distributed_RAM} \
|
|
|
|
+ CONFIG.Full_Flags_Reset_Value {1} \
|
|
|
|
+ CONFIG.Full_Threshold_Assert_Value {509} \
|
|
|
|
+ CONFIG.Full_Threshold_Assert_Value_rach {1023} \
|
|
|
|
+ CONFIG.Full_Threshold_Assert_Value_wach {1023} \
|
|
|
|
+ CONFIG.Full_Threshold_Assert_Value_wrch {1023} \
|
|
|
|
+ CONFIG.Full_Threshold_Negate_Value {508} \
|
|
|
|
+ CONFIG.INTERFACE_TYPE {Native} \
|
|
|
|
+ CONFIG.Input_Data_Width {32} \
|
|
|
|
+ CONFIG.Input_Depth {512} \
|
|
|
|
+ CONFIG.Output_Data_Width {32} \
|
|
|
|
+ CONFIG.Output_Depth {512} \
|
|
|
|
+ CONFIG.Overflow_Flag {true} \
|
|
|
|
+ CONFIG.Performance_Options {Standard_FIFO} \
|
|
|
|
+ CONFIG.Programmable_Empty_Type {No_Programmable_Empty_Threshold} \
|
|
|
|
+ CONFIG.Programmable_Full_Type {No_Programmable_Full_Threshold} \
|
|
|
|
+ CONFIG.Read_Data_Count {true} \
|
|
|
|
+ CONFIG.Read_Data_Count_Width {9} \
|
|
|
|
+ CONFIG.Reset_Pin {true} \
|
|
|
|
+ CONFIG.Reset_Type {Asynchronous_Reset} \
|
|
|
|
+ CONFIG.Underflow_Flag {false} \
|
|
|
|
+ CONFIG.Use_Dout_Reset {true} \
|
|
|
|
+ CONFIG.Use_Embedded_Registers {false} \
|
|
|
|
+ CONFIG.Use_Extra_Logic {false} \
|
|
|
|
+ CONFIG.Valid_Flag {false} \
|
|
|
|
+ CONFIG.Write_Data_Count {false} \
|
|
|
|
+ CONFIG.Write_Data_Count_Width {9} \
|
|
|
|
+ ] $fifo_output
|
|
|
|
+
|
|
|
|
+ # Create instance: negate_0, and set properties
|
|
|
|
+ set negate_0 [ create_bd_cell -type ip -vlnv xilinx.com:ip:c_addsub:12.0 negate_0 ]
|
|
|
|
+ set_property -dict [ list \
|
|
|
|
+ CONFIG.A_Type {Unsigned} \
|
|
|
|
+ CONFIG.A_Width {1} \
|
|
|
|
+ CONFIG.Add_Mode {Add} \
|
|
|
|
+ CONFIG.B_Constant {true} \
|
|
|
|
+ CONFIG.B_Type {Unsigned} \
|
|
|
|
+ CONFIG.B_Value {1} \
|
|
|
|
+ CONFIG.B_Width {1} \
|
|
|
|
+ CONFIG.CE {false} \
|
|
|
|
+ CONFIG.Latency {1} \
|
|
|
|
+ CONFIG.Latency_Configuration {Automatic} \
|
|
|
|
+ CONFIG.Out_Width {1} \
|
|
|
|
+ ] $negate_0
|
|
|
|
+
|
|
|
|
+ # Create instance: packaging_1, and set properties
|
|
|
|
+ set packaging_1 [ create_bd_cell -type ip -vlnv user.org:user:packaging:3.0 packaging_1 ]
|
|
|
|
+
|
|
|
|
+ # Create instance: segment_0, and set properties
|
|
|
|
+ set segment_0 [ create_bd_cell -type ip -vlnv xilinx.com:user:segment:1.0 segment_0 ]
|
|
|
|
+
|
|
|
|
+ # Create instance: xlconcat_4, and set properties
|
|
|
|
+ set xlconcat_4 [ create_bd_cell -type ip -vlnv xilinx.com:ip:xlconcat:2.1 xlconcat_4 ]
|
|
|
|
+ set_property -dict [ list \
|
|
|
|
+ CONFIG.IN0_WIDTH {4} \
|
|
|
|
+ CONFIG.IN1_WIDTH {4} \
|
|
|
|
+ CONFIG.IN2_WIDTH {8} \
|
|
|
|
+ CONFIG.IN3_WIDTH {2} \
|
|
|
|
+ CONFIG.IN4_WIDTH {5} \
|
|
|
|
+ CONFIG.NUM_PORTS {3} \
|
|
|
|
+ ] $xlconcat_4
|
|
|
|
+
|
|
|
|
+ # Create instance: xlconcat_5, and set properties
|
|
|
|
+ set xlconcat_5 [ create_bd_cell -type ip -vlnv xilinx.com:ip:xlconcat:2.1 xlconcat_5 ]
|
|
|
|
+ set_property -dict [ list \
|
|
|
|
+ CONFIG.IN0_WIDTH {9} \
|
|
|
|
+ CONFIG.IN1_WIDTH {7} \
|
|
|
|
+ CONFIG.IN2_WIDTH {8} \
|
|
|
|
+ CONFIG.IN3_WIDTH {2} \
|
|
|
|
+ CONFIG.IN4_WIDTH {5} \
|
|
|
|
+ CONFIG.NUM_PORTS {2} \
|
|
|
|
+ ] $xlconcat_5
|
|
|
|
+
|
|
|
|
+ # Create instance: xlconstant_0, and set properties
|
|
|
|
+ set xlconstant_0 [ create_bd_cell -type ip -vlnv xilinx.com:ip:xlconstant:1.1 xlconstant_0 ]
|
|
|
|
+ set_property -dict [ list \
|
|
|
|
+ CONFIG.CONST_VAL {0} \
|
|
|
|
+ CONFIG.CONST_WIDTH {16} \
|
|
|
|
+ ] $xlconstant_0
|
|
|
|
+
|
|
|
|
+ # Create instance: xlconstant_1, and set properties
|
|
|
|
+ set xlconstant_1 [ create_bd_cell -type ip -vlnv xilinx.com:ip:xlconstant:1.1 xlconstant_1 ]
|
|
|
|
+ set_property -dict [ list \
|
|
|
|
+ CONFIG.CONST_VAL {0} \
|
|
|
|
+ CONFIG.CONST_WIDTH {7} \
|
|
|
|
+ ] $xlconstant_1
|
|
|
|
+
|
|
|
|
+ # Create instance: xlslice_0, and set properties
|
|
|
|
+ set xlslice_0 [ create_bd_cell -type ip -vlnv xilinx.com:ip:xlslice:1.0 xlslice_0 ]
|
|
|
|
+ set_property -dict [ list \
|
|
|
|
+ CONFIG.DIN_FROM {7} \
|
|
|
|
+ CONFIG.DIN_TO {0} \
|
|
|
|
+ CONFIG.DIN_WIDTH {16} \
|
|
|
|
+ CONFIG.DOUT_WIDTH {8} \
|
|
|
|
+ ] $xlslice_0
|
|
|
|
+
|
|
|
|
+ # Create interface connections
|
|
|
|
+ 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]
|
|
|
|
+ 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]
|
|
|
|
+ connect_bd_intf_net -intf_net packaging_1_fifo_read [get_bd_intf_pins fifo_input/FIFO_READ] [get_bd_intf_pins packaging_1/fifo_read]
|
|
|
|
+ connect_bd_intf_net -intf_net packaging_1_fifo_write [get_bd_intf_pins fifo_output/FIFO_WRITE] [get_bd_intf_pins packaging_1/fifo_write]
|
|
|
|
+
|
|
|
|
+ # Create port connections
|
|
|
|
+ connect_bd_net -net Net [get_bd_ports eth_rxd_0] [get_bd_pins ethernet_transceiver2_0/eth_rxd]
|
|
|
|
+ connect_bd_net -net Net1 [get_bd_ports eth_txd_0] [get_bd_pins ethernet_transceiver2_0/eth_txd]
|
|
|
|
+ connect_bd_net -net Net2 [get_bd_ports eth_crsdv_0] [get_bd_pins ethernet_transceiver2_0/eth_crsdv]
|
|
|
|
+ connect_bd_net -net Net3 [get_bd_ports eth_txen_0] [get_bd_pins ethernet_transceiver2_0/eth_txen]
|
|
|
|
+ connect_bd_net -net Net4 [get_bd_ports eth_rxerr_0] [get_bd_pins ethernet_transceiver2_0/eth_rxerr]
|
|
|
|
+ connect_bd_net -net Net5 [get_bd_ports eth_mdio_0] [get_bd_pins ethernet_transceiver2_0/eth_mdio]
|
|
|
|
+ connect_bd_net -net Net6 [get_bd_ports eth_rstn_0] [get_bd_pins ethernet_transceiver2_0/eth_rstn]
|
|
|
|
+ connect_bd_net -net c_counter_binary_0_Q [get_bd_pins c_counter_binary_0/Q] [get_bd_pins segment_0/num2]
|
|
|
|
+ connect_bd_net -net c_counter_binary_1_Q [get_bd_pins c_counter_binary_1/Q] [get_bd_pins segment_0/num1]
|
|
|
|
+ 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_1/clk] [get_bd_pins segment_0/clk]
|
|
|
|
+ connect_bd_net -net ethernet_transceiver2_0_eth_mdc [get_bd_ports eth_mdc_0] [get_bd_pins ethernet_transceiver2_0/eth_mdc]
|
|
|
|
+ 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]
|
|
|
|
+ connect_bd_net -net ethernet_transceiver2_0_led16_b [get_bd_ports led16_b_0] [get_bd_pins ethernet_transceiver2_0/led16_b]
|
|
|
|
+ connect_bd_net -net ethernet_transceiver2_0_led16_g [get_bd_ports led16_g_0] [get_bd_pins ethernet_transceiver2_0/led16_g]
|
|
|
|
+ connect_bd_net -net ethernet_transceiver2_0_led16_r [get_bd_ports led16_r_0] [get_bd_pins ethernet_transceiver2_0/led16_r]
|
|
|
|
+ connect_bd_net -net ethernet_transceiver2_0_led17_b [get_bd_ports led17_b_0] [get_bd_pins ethernet_transceiver2_0/led17_b]
|
|
|
|
+ connect_bd_net -net ethernet_transceiver2_0_led17_g [get_bd_ports led17_g_0] [get_bd_pins ethernet_transceiver2_0/led17_g]
|
|
|
|
+ connect_bd_net -net ethernet_transceiver2_0_led17_r [get_bd_ports led17_r_0] [get_bd_pins ethernet_transceiver2_0/led17_r]
|
|
|
|
+ connect_bd_net -net fifo_input_overflow [get_bd_pins c_counter_binary_1/CE] [get_bd_pins fifo_input/overflow]
|
|
|
|
+ connect_bd_net -net fifo_output_overflow [get_bd_pins c_counter_binary_0/CE] [get_bd_pins fifo_output/overflow]
|
|
|
|
+ connect_bd_net -net fifo_output_rd_data_count [get_bd_pins fifo_output/rd_data_count] [get_bd_pins xlconcat_5/In0]
|
|
|
|
+ connect_bd_net -net packaging_1_errorCode [get_bd_pins packaging_1/errorCode] [get_bd_pins xlconcat_4/In0]
|
|
|
|
+ connect_bd_net -net packaging_1_stateOut [get_bd_pins packaging_1/stateOut] [get_bd_pins xlconcat_4/In1]
|
|
|
|
+ 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_1/rst]
|
|
|
|
+ connect_bd_net -net segment_0_anodes [get_bd_ports anodes_0] [get_bd_pins segment_0/anodes]
|
|
|
|
+ connect_bd_net -net segment_0_cathodes [get_bd_ports cathodes_0] [get_bd_pins segment_0/cathodes]
|
|
|
|
+ connect_bd_net -net sw_0_1 [get_bd_ports sw_0] [get_bd_pins ethernet_transceiver2_0/ip]
|
|
|
|
+ connect_bd_net -net xlconcat_4_dout [get_bd_ports led_0] [get_bd_pins xlconcat_4/dout]
|
|
|
|
+ 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]
|
|
|
|
+ connect_bd_net -net xlconstant_0_dout [get_bd_pins ethernet_transceiver2_0/udp_packet_checksum] [get_bd_pins xlconstant_0/dout]
|
|
|
|
+ connect_bd_net -net xlconstant_1_dout [get_bd_pins xlconcat_5/In1] [get_bd_pins xlconstant_1/dout]
|
|
|
|
+ connect_bd_net -net xlslice_0_Dout [get_bd_pins xlconcat_4/In2] [get_bd_pins xlslice_0/Dout]
|
|
|
|
+ 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]
|
|
|
|
+
|
|
|
|
+ # Create address segments
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ # Restore current instance
|
|
|
|
+ current_bd_instance $oldCurInst
|
|
|
|
+
|
|
|
|
+ save_bd_design
|
|
|
|
+common::send_msg_id "BD_TCL-1000" "WARNING" "This Tcl script was generated from a block design that has not been validated. It is possible that design <$design_name> may result in errors during validation."
|
|
|
|
+
|
|
|
|
+ close_bd_design $design_name
|
|
|
|
+}
|
|
|
|
+# End of cr_bd_design_1()
|
|
|
|
+cr_bd_design_1 ""
|
|
|
|
+set_property REGISTERED_WITH_MANAGER "1" [get_files design_1.bd ]
|
|
|
|
+set_property SYNTH_CHECKPOINT_MODE "Hierarchical" [get_files design_1.bd ]
|
|
|
|
+
|
|
|
|
+# Create 'synth_1' run (if not found)
|
|
|
|
+if {[string equal [get_runs -quiet synth_1] ""]} {
|
|
|
|
+ create_run -name synth_1 -part xc7a100tcsg324-1 -flow {Vivado Synthesis 2018} -strategy "Vivado Synthesis Defaults" -report_strategy {No Reports} -constrset constrs_1
|
|
|
|
+} else {
|
|
|
|
+ set_property strategy "Vivado Synthesis Defaults" [get_runs synth_1]
|
|
|
|
+ set_property flow "Vivado Synthesis 2018" [get_runs synth_1]
|
|
|
|
+}
|
|
|
|
+set obj [get_runs synth_1]
|
|
|
|
+set_property set_report_strategy_name 1 $obj
|
|
|
|
+set_property report_strategy {Vivado Synthesis Default Reports} $obj
|
|
|
|
+set_property set_report_strategy_name 0 $obj
|
|
|
|
+# Create 'synth_1_synth_report_utilization_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs synth_1] synth_1_synth_report_utilization_0] "" ] } {
|
|
|
|
+ create_report_config -report_name synth_1_synth_report_utilization_0 -report_type report_utilization:1.0 -steps synth_design -runs synth_1
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs synth_1] synth_1_synth_report_utilization_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "display_name" -value "synth_1_synth_report_utilization_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+set obj [get_runs synth_1]
|
|
|
|
+set_property -name "part" -value "xc7a100tcsg324-1" -objects $obj
|
|
|
|
+set_property -name "strategy" -value "Vivado Synthesis Defaults" -objects $obj
|
|
|
|
+
|
|
|
|
+# set the current synth run
|
|
|
|
+current_run -synthesis [get_runs synth_1]
|
|
|
|
+
|
|
|
|
+# Create 'impl_1' run (if not found)
|
|
|
|
+if {[string equal [get_runs -quiet impl_1] ""]} {
|
|
|
|
+ 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
|
|
|
|
+} else {
|
|
|
|
+ set_property strategy "Vivado Implementation Defaults" [get_runs impl_1]
|
|
|
|
+ set_property flow "Vivado Implementation 2018" [get_runs impl_1]
|
|
|
|
+}
|
|
|
|
+set obj [get_runs impl_1]
|
|
|
|
+set_property set_report_strategy_name 1 $obj
|
|
|
|
+set_property report_strategy {Vivado Implementation Default Reports} $obj
|
|
|
|
+set_property set_report_strategy_name 0 $obj
|
|
|
|
+# Create 'impl_1_init_report_timing_summary_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_init_report_timing_summary_0] "" ] } {
|
|
|
|
+ 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
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_init_report_timing_summary_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "is_enabled" -value "0" -objects $obj
|
|
|
|
+set_property -name "display_name" -value "impl_1_init_report_timing_summary_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_opt_report_drc_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_drc_0] "" ] } {
|
|
|
|
+ create_report_config -report_name impl_1_opt_report_drc_0 -report_type report_drc:1.0 -steps opt_design -runs impl_1
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_drc_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "display_name" -value "impl_1_opt_report_drc_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_opt_report_timing_summary_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_timing_summary_0] "" ] } {
|
|
|
|
+ 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
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_opt_report_timing_summary_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "is_enabled" -value "0" -objects $obj
|
|
|
|
+set_property -name "display_name" -value "impl_1_opt_report_timing_summary_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_power_opt_report_timing_summary_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_power_opt_report_timing_summary_0] "" ] } {
|
|
|
|
+ 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
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_power_opt_report_timing_summary_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "is_enabled" -value "0" -objects $obj
|
|
|
|
+set_property -name "display_name" -value "impl_1_power_opt_report_timing_summary_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_place_report_io_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_io_0] "" ] } {
|
|
|
|
+ create_report_config -report_name impl_1_place_report_io_0 -report_type report_io:1.0 -steps place_design -runs impl_1
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_io_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "display_name" -value "impl_1_place_report_io_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_place_report_utilization_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_utilization_0] "" ] } {
|
|
|
|
+ create_report_config -report_name impl_1_place_report_utilization_0 -report_type report_utilization:1.0 -steps place_design -runs impl_1
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_utilization_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "display_name" -value "impl_1_place_report_utilization_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_place_report_control_sets_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_control_sets_0] "" ] } {
|
|
|
|
+ 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
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_control_sets_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "display_name" -value "impl_1_place_report_control_sets_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_place_report_incremental_reuse_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_0] "" ] } {
|
|
|
|
+ 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
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "is_enabled" -value "0" -objects $obj
|
|
|
|
+set_property -name "display_name" -value "impl_1_place_report_incremental_reuse_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_place_report_incremental_reuse_1' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_1] "" ] } {
|
|
|
|
+ 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
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_incremental_reuse_1]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "is_enabled" -value "0" -objects $obj
|
|
|
|
+set_property -name "display_name" -value "impl_1_place_report_incremental_reuse_1" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_place_report_timing_summary_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_timing_summary_0] "" ] } {
|
|
|
|
+ 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
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_place_report_timing_summary_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "is_enabled" -value "0" -objects $obj
|
|
|
|
+set_property -name "display_name" -value "impl_1_place_report_timing_summary_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_post_place_power_opt_report_timing_summary_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_post_place_power_opt_report_timing_summary_0] "" ] } {
|
|
|
|
+ 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
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_post_place_power_opt_report_timing_summary_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "is_enabled" -value "0" -objects $obj
|
|
|
|
+set_property -name "display_name" -value "impl_1_post_place_power_opt_report_timing_summary_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_phys_opt_report_timing_summary_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_phys_opt_report_timing_summary_0] "" ] } {
|
|
|
|
+ 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
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_phys_opt_report_timing_summary_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "is_enabled" -value "0" -objects $obj
|
|
|
|
+set_property -name "display_name" -value "impl_1_phys_opt_report_timing_summary_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_route_report_drc_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_drc_0] "" ] } {
|
|
|
|
+ create_report_config -report_name impl_1_route_report_drc_0 -report_type report_drc:1.0 -steps route_design -runs impl_1
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_drc_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "display_name" -value "impl_1_route_report_drc_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_route_report_methodology_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_methodology_0] "" ] } {
|
|
|
|
+ create_report_config -report_name impl_1_route_report_methodology_0 -report_type report_methodology:1.0 -steps route_design -runs impl_1
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_methodology_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "display_name" -value "impl_1_route_report_methodology_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_route_report_power_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_power_0] "" ] } {
|
|
|
|
+ create_report_config -report_name impl_1_route_report_power_0 -report_type report_power:1.0 -steps route_design -runs impl_1
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_power_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "display_name" -value "impl_1_route_report_power_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_route_report_route_status_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_route_status_0] "" ] } {
|
|
|
|
+ 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
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_route_status_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "display_name" -value "impl_1_route_report_route_status_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_route_report_timing_summary_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_timing_summary_0] "" ] } {
|
|
|
|
+ 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
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_timing_summary_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "display_name" -value "impl_1_route_report_timing_summary_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_route_report_incremental_reuse_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_incremental_reuse_0] "" ] } {
|
|
|
|
+ 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
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_incremental_reuse_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "display_name" -value "impl_1_route_report_incremental_reuse_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_route_report_clock_utilization_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_clock_utilization_0] "" ] } {
|
|
|
|
+ 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
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_clock_utilization_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "display_name" -value "impl_1_route_report_clock_utilization_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_route_report_bus_skew_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_bus_skew_0] "" ] } {
|
|
|
|
+ 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
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_route_report_bus_skew_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "display_name" -value "impl_1_route_report_bus_skew_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_post_route_phys_opt_report_timing_summary_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_timing_summary_0] "" ] } {
|
|
|
|
+ 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
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_timing_summary_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "display_name" -value "impl_1_post_route_phys_opt_report_timing_summary_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+# Create 'impl_1_post_route_phys_opt_report_bus_skew_0' report (if not found)
|
|
|
|
+if { [ string equal [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_bus_skew_0] "" ] } {
|
|
|
|
+ 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
|
|
|
|
+}
|
|
|
|
+set obj [get_report_configs -of_objects [get_runs impl_1] impl_1_post_route_phys_opt_report_bus_skew_0]
|
|
|
|
+if { $obj != "" } {
|
|
|
|
+set_property -name "display_name" -value "impl_1_post_route_phys_opt_report_bus_skew_0" -objects $obj
|
|
|
|
+
|
|
|
|
+}
|
|
|
|
+set obj [get_runs impl_1]
|
|
|
|
+set_property -name "part" -value "xc7a100tcsg324-1" -objects $obj
|
|
|
|
+set_property -name "strategy" -value "Vivado Implementation Defaults" -objects $obj
|
|
|
|
+set_property -name "steps.write_bitstream.args.readback_file" -value "0" -objects $obj
|
|
|
|
+set_property -name "steps.write_bitstream.args.verbose" -value "0" -objects $obj
|
|
|
|
+
|
|
|
|
+# set the current impl run
|
|
|
|
+current_run -implementation [get_runs impl_1]
|
|
|
|
+
|
|
|
|
+puts "INFO: Project created:${_xil_proj_name_}"
|
|
|
|
+set obj [get_dashboards default_dashboard]
|
|
|
|
+
|
|
|
|
+# Create 'drc_1' gadget (if not found)
|
|
|
|
+if {[string equal [get_dashboard_gadgets -of_objects [get_dashboards default_dashboard] [ list "drc_1" ] ] ""]} {
|
|
|
|
+create_dashboard_gadget -name {drc_1} -type drc
|
|
|
|
+}
|
|
|
|
+set obj [get_dashboard_gadgets -of_objects [get_dashboards default_dashboard] [ list "drc_1" ] ]
|
|
|
|
+set_property -name "reports" -value "impl_1#impl_1_route_report_drc_0" -objects $obj
|
|
|
|
+
|
|
|
|
+# Create 'methodology_1' gadget (if not found)
|
|
|
|
+if {[string equal [get_dashboard_gadgets -of_objects [get_dashboards default_dashboard] [ list "methodology_1" ] ] ""]} {
|
|
|
|
+create_dashboard_gadget -name {methodology_1} -type methodology
|
|
|
|
+}
|
|
|
|
+set obj [get_dashboard_gadgets -of_objects [get_dashboards default_dashboard] [ list "methodology_1" ] ]
|
|
|
|
+set_property -name "reports" -value "impl_1#impl_1_route_report_methodology_0" -objects $obj
|
|
|
|
+
|
|
|
|
+# Create 'power_1' gadget (if not found)
|
|
|
|
+if {[string equal [get_dashboard_gadgets -of_objects [get_dashboards default_dashboard] [ list "power_1" ] ] ""]} {
|
|
|
|
+create_dashboard_gadget -name {power_1} -type power
|
|
|
|
+}
|
|
|
|
+set obj [get_dashboard_gadgets -of_objects [get_dashboards default_dashboard] [ list "power_1" ] ]
|
|
|
|
+set_property -name "reports" -value "impl_1#impl_1_route_report_power_0" -objects $obj
|
|
|
|
+
|
|
|
|
+# Create 'timing_1' gadget (if not found)
|
|
|
|
+if {[string equal [get_dashboard_gadgets -of_objects [get_dashboards default_dashboard] [ list "timing_1" ] ] ""]} {
|
|
|
|
+create_dashboard_gadget -name {timing_1} -type timing
|
|
|
|
+}
|
|
|
|
+set obj [get_dashboard_gadgets -of_objects [get_dashboards default_dashboard] [ list "timing_1" ] ]
|
|
|
|
+set_property -name "reports" -value "impl_1#impl_1_route_report_timing_summary_0" -objects $obj
|
|
|
|
+
|
|
|
|
+# Create 'utilization_1' gadget (if not found)
|
|
|
|
+if {[string equal [get_dashboard_gadgets -of_objects [get_dashboards default_dashboard] [ list "utilization_1" ] ] ""]} {
|
|
|
|
+create_dashboard_gadget -name {utilization_1} -type utilization
|
|
|
|
+}
|
|
|
|
+set obj [get_dashboard_gadgets -of_objects [get_dashboards default_dashboard] [ list "utilization_1" ] ]
|
|
|
|
+set_property -name "reports" -value "synth_1#synth_1_synth_report_utilization_0" -objects $obj
|
|
|
|
+set_property -name "run.step" -value "synth_design" -objects $obj
|
|
|
|
+set_property -name "run.type" -value "synthesis" -objects $obj
|
|
|
|
+
|
|
|
|
+# Create 'utilization_2' gadget (if not found)
|
|
|
|
+if {[string equal [get_dashboard_gadgets -of_objects [get_dashboards default_dashboard] [ list "utilization_2" ] ] ""]} {
|
|
|
|
+create_dashboard_gadget -name {utilization_2} -type utilization
|
|
|
|
+}
|
|
|
|
+set obj [get_dashboard_gadgets -of_objects [get_dashboards default_dashboard] [ list "utilization_2" ] ]
|
|
|
|
+set_property -name "reports" -value "impl_1#impl_1_place_report_utilization_0" -objects $obj
|
|
|
|
+
|
|
|
|
+move_dashboard_gadget -name {utilization_1} -row 0 -col 0
|
|
|
|
+move_dashboard_gadget -name {power_1} -row 1 -col 0
|
|
|
|
+move_dashboard_gadget -name {drc_1} -row 2 -col 0
|
|
|
|
+move_dashboard_gadget -name {timing_1} -row 0 -col 1
|
|
|
|
+move_dashboard_gadget -name {utilization_2} -row 1 -col 1
|
|
|
|
+move_dashboard_gadget -name {methodology_1} -row 2 -col 1
|
|
|
|
+# Set current dashboard to 'default_dashboard'
|
|
|
|
+current_dashboard default_dashboard
|