diff --git a/synthesis/synth.tcl b/synthesis/synth.tcl index 0e2b1237..f094424f 100644 --- a/synthesis/synth.tcl +++ b/synthesis/synth.tcl @@ -21,7 +21,11 @@ foreach src $srcs { # Skip empty lines, including the implict one after the last \n delimiter # for files that end with a newline. if {$src eq ""} continue - yosys read_verilog -sv -defer $src + if {[info exists ::env(USE_SURELOG_FRONTEND)]} { + yosys read_systemverilog $src + } else { + yosys read_verilog -sv -defer $src + } } # read UHDM designs