# 
# 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 xc7a100tcsg324-3

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 D:/a-junk_d/imu/lab5_font/lab5_font.cache/wt [current_project]
set_property parent.project_path D:/a-junk_d/imu/lab5_font/lab5_font.xpr [current_project]
set_property XPM_LIBRARIES XPM_MEMORY [current_project]
set_property default_lib xil_defaultlib [current_project]
set_property target_language Verilog [current_project]
set_property ip_cache_permissions disable [current_project]
read_ip -quiet D:/a-junk_d/imu/lab5_font/lab5_font.srcs/sources_1/ip/font_rom/font_rom.xci
set_property used_in_implementation false [get_files -all d:/a-junk_d/imu/lab5_font/lab5_font.srcs/sources_1/ip/font_rom/font_rom_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
close [open __synthesis_is_running__ w]

synth_design -top font_rom -part xc7a100tcsg324-3 -mode out_of_context

rename_ref -prefix_all font_rom_

# disable binary constraint mode for synth run checkpoints
set_param constraints.enableBinaryConstraints false
write_checkpoint -force -noxdef font_rom.dcp
create_report "font_rom_synth_1_synth_report_utilization_0" "report_utilization -file font_rom_utilization_synth.rpt -pb font_rom_utilization_synth.pb"

if { [catch {
  file copy -force D:/a-junk_d/imu/lab5_font/lab5_font.runs/font_rom_synth_1/font_rom.dcp D:/a-junk_d/imu/lab5_font/lab5_font.srcs/sources_1/ip/font_rom/font_rom.dcp
} _RESULT ] } { 
  send_msg_id runtcl-3 error "ERROR: Unable to successfully create or copy the sub-design checkpoint file."
  error "ERROR: Unable to successfully create or copy the sub-design checkpoint file."
}

if { [catch {
  write_verilog -force -mode synth_stub D:/a-junk_d/imu/lab5_font/lab5_font.srcs/sources_1/ip/font_rom/font_rom_stub.v
} _RESULT ] } { 
  puts "CRITICAL WARNING: Unable to successfully create a Verilog synthesis stub for the sub-design. This may lead to errors in top level synthesis of the design. Error reported: $_RESULT"
}

if { [catch {
  write_vhdl -force -mode synth_stub D:/a-junk_d/imu/lab5_font/lab5_font.srcs/sources_1/ip/font_rom/font_rom_stub.vhdl
} _RESULT ] } { 
  puts "CRITICAL WARNING: Unable to successfully create a VHDL synthesis stub for the sub-design. This may lead to errors in top level synthesis of the design. Error reported: $_RESULT"
}

if { [catch {
  write_verilog -force -mode funcsim D:/a-junk_d/imu/lab5_font/lab5_font.srcs/sources_1/ip/font_rom/font_rom_sim_netlist.v
} _RESULT ] } { 
  puts "CRITICAL WARNING: Unable to successfully create the Verilog functional simulation sub-design file. Post-Synthesis Functional Simulation with this file may not be possible or may give incorrect results. Error reported: $_RESULT"
}

if { [catch {
  write_vhdl -force -mode funcsim D:/a-junk_d/imu/lab5_font/lab5_font.srcs/sources_1/ip/font_rom/font_rom_sim_netlist.vhdl
} _RESULT ] } { 
  puts "CRITICAL WARNING: Unable to successfully create the VHDL functional simulation sub-design file. Post-Synthesis Functional Simulation with this file may not be possible or may give incorrect results. Error reported: $_RESULT"
}

if {[file isdir D:/a-junk_d/imu/lab5_font/lab5_font.ip_user_files/ip/font_rom]} {
  catch { 
    file copy -force D:/a-junk_d/imu/lab5_font/lab5_font.srcs/sources_1/ip/font_rom/font_rom_stub.v D:/a-junk_d/imu/lab5_font/lab5_font.ip_user_files/ip/font_rom
  }
}

if {[file isdir D:/a-junk_d/imu/lab5_font/lab5_font.ip_user_files/ip/font_rom]} {
  catch { 
    file copy -force D:/a-junk_d/imu/lab5_font/lab5_font.srcs/sources_1/ip/font_rom/font_rom_stub.vhdl D:/a-junk_d/imu/lab5_font/lab5_font.ip_user_files/ip/font_rom
  }
}
file delete __synthesis_is_running__
close [open __synthesis_is_complete__ w]
