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 authored and QuantamHD committed Sep 18, 2023
1 parent 2ce5bd0 commit 063b6f0
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 @@ -22,7 +22,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 063b6f0

Please sign in to comment.