# 
# Synthesis run script generated by Vivado
# 

set TIME_start [clock seconds] 
proc create_report { reportName command } {
  set status "."
  append status $reportName ".fail"
  if { [file exists $status] } {
    eval file delete [glob $status]
  }
  send_msg_id runtcl-4 info "Executing : $command"
  set retval [eval catch { $command } msg]
  if { $retval != 0 } {
    set fp [open $status w]
    close $fp
    send_msg_id runtcl-5 warning "$msg"
  }
}
set_param project.vivado.isBlockSynthRun true
set_msg_config -msgmgr_mode ooc_run
create_project -in_memory -part xc7z020clg484-1

set_param project.singleFileAddWarning.threshold 0
set_param project.compositeFile.enableAutoGeneration 0
set_param synth.vivado.isSynthRun true
set_msg_config -source 4 -id {IP_Flow 19-2162} -severity warning -new_severity info
set_property webtalk.parent_dir C:/dev/ugnss/vhdl/ugnss/ugnss.cache/wt [current_project]
set_property parent.project_path C:/dev/ugnss/vhdl/ugnss/ugnss.xpr [current_project]
set_property XPM_LIBRARIES {XPM_CDC XPM_FIFO XPM_MEMORY} [current_project]
set_property default_lib xil_defaultlib [current_project]
set_property target_language Verilog [current_project]
set_property board_part em.avnet.com:zed:part0:1.4 [current_project]
set_property ip_repo_paths c:/dev/ugnss/vhdl/ip_repo [current_project]
update_ip_catalog
set_property ip_output_repo c:/dev/ugnss/vhdl/ugnss/ugnss.cache/ip [current_project]
set_property ip_cache_permissions {read write} [current_project]
read_ip -quiet C:/dev/ugnss/vhdl/ugnss/ugnss.srcs/sources_1/bd/zed_bench/ip/zed_bench_floating_point_0_4/zed_bench_floating_point_0_4.xci
set_property used_in_implementation false [get_files -all c:/dev/ugnss/vhdl/ugnss/ugnss.srcs/sources_1/bd/zed_bench/ip/zed_bench_floating_point_0_4/zed_bench_floating_point_0_4_ooc.xdc]

# Mark all dcp files as not used in implementation to prevent them from being
# stitched into the results of this synthesis run. Any black boxes in the
# design are intentionally left as such for best results. Dcp files will be
# stitched into the design at a later time, either when this synthesis run is
# opened, or when it is stitched into a dependent implementation run.
foreach dcp [get_files -quiet -all -filter file_type=="Design\ Checkpoint"] {
  set_property used_in_implementation false $dcp
}
read_xdc dont_touch.xdc
set_property used_in_implementation false [get_files dont_touch.xdc]
set_param ips.enableIPCacheLiteLoad 1

set cached_ip [config_ip_cache -export -no_bom  -dir C:/dev/ugnss/vhdl/ugnss/ugnss.runs/zed_bench_floating_point_0_4_synth_1 -new_name zed_bench_floating_point_0_4 -ip [get_ips zed_bench_floating_point_0_4]]

if { $cached_ip eq {} } {
close [open __synthesis_is_running__ w]

synth_design -top zed_bench_floating_point_0_4 -part xc7z020clg484-1 -mode out_of_context

#---------------------------------------------------------
# Generate Checkpoint/Stub/Simulation Files For IP Cache
#---------------------------------------------------------
# disable binary constraint mode for IPCache checkpoints
set_param constraints.enableBinaryConstraints false

catch {
 write_checkpoint -force -noxdef -rename_prefix zed_bench_floating_point_0_4_ zed_bench_floating_point_0_4.dcp

 set ipCachedFiles {}
 write_verilog -force -mode synth_stub -rename_top decalper_eb_ot_sdeen_pot_pi_dehcac_xnilix -prefix decalper_eb_ot_sdeen_pot_pi_dehcac_xnilix_ zed_bench_floating_point_0_4_stub.v
 lappend ipCachedFiles zed_bench_floating_point_0_4_stub.v

 write_vhdl -force -mode synth_stub -rename_top decalper_eb_ot_sdeen_pot_pi_dehcac_xnilix -prefix decalper_eb_ot_sdeen_pot_pi_dehcac_xnilix_ zed_bench_floating_point_0_4_stub.vhdl
 lappend ipCachedFiles zed_bench_floating_point_0_4_stub.vhdl

 write_verilog -force -mode funcsim -rename_top decalper_eb_ot_sdeen_pot_pi_dehcac_xnilix -prefix decalper_eb_ot_sdeen_pot_pi_dehcac_xnilix_ zed_bench_floating_point_0_4_sim_netlist.v
 lappend ipCachedFiles zed_bench_floating_point_0_4_sim_netlist.v

 write_vhdl -force -mode funcsim -rename# This file is automatically generated.
# It contains project source information necessary for synthesis and implementation.

# IP: C:/dev/ugnss/vhdl/ugnss/ugnss.srcs/sources_1/bd/zed_bench/ip/zed_bench_floating_point_0_4/zed_bench_floating_point_0_4.xci
# IP: The module: 'zed_bench_floating_point_0_4' is the root of the design. Do not add the DONT_TOUCH constraint.

# XDC: c:/dev/ugnss/vhdl/ugnss/ugnss.srcs/sources_1/bd/zed_bench/ip/zed_bench_floating_point_0_4/zed_bench_floating_point_0_4_ooc.xdc
# XDC: The top module name and the constraint reference have the same name: 'zed_bench_floating_point_0_4'. Do not add the DONT_TOUCH constraint.
set_property DONT_TOUCH TRUE [get_cells U0 -quiet] -quiet

# IP: C:/dev/ugnss/vhdl/ugnss/ugnss.srcs/sources_1/bd/zed_bench/ip/zed_bench_floating_point_0_4/zed_bench_floating_point_0_4.xci
# IP: The module: 'zed_bench_floating_point_0_4' is the root of the design. Do not add the DONT_TOUCH constraint.

# XDC: c:/dev/ugnss/vhdl/ugnss/ugnss.srcs/sources_1/bd/zed_bench/ip/zed_bench_floating_point_0_4/zed_bench_floating_point_0_4_ooc.xdc
# XDC: The top module name and the constraint reference have the same name: 'zed_bench_floating_point_0_4'. Do not add the DONT_TOUCH constraint.
#dup# set_property DONT_TOUCH TRUE [get_cells U0 -quiet] -quiet
