if {[catch {

# define run engine funtion
source [file join {C:/lscc/radiant/2023.2} scripts tcl flow run_engine.tcl]
# define global variables
global para
set para(gui_mode) 1
set para(prj_dir) "C:/Users/ssyahril/Downloads/FAE_F2F_Training_Labs_V2/FAE_F2F_Training_Labs_V2/LAB_03"
# synthesize IPs
# synthesize VMs
# synthesize top design
file delete -force -- lab03_impl_1.vm lab03_impl_1.ldc
run_engine_newmsg synthesis -f "lab03_impl_1_lattice.synproj"
run_postsyn [list -a LIFCL -p LIFCL-17 -t QFN72 -sp 9_High-Performance_1.0V -oc Commercial -top -w -o lab03_impl_1_syn.udb lab03_impl_1.vm] [list C:/Users/ssyahril/Downloads/FAE_F2F_Training_Labs_V2/FAE_F2F_Training_Labs_V2/LAB_03/impl_1/lab03_impl_1.ldc]

} out]} {
   runtime_log $out
   exit 1
}
