Skip to content

Commit

Permalink
Adding support for synth.tcl to read SystemVerilog files using Sure…
Browse files Browse the repository at this point in the history
…log.

Signed-off-by: Tim Ansell <[email protected]>
  • Loading branch information
mithro committed Sep 18, 2023
1 parent 3ba0ef0 commit 9d15bef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion synthesis/synth.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d15bef

Please sign in to comment.