Skip to content

Commit d38c5f0

Browse files
author
Oron Port
committed
trap more warning variation in vivado
1 parent 48951d1 commit d38c5f0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/src/main/scala/dfhdl/tools/toolsCore/VivadoSim.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ object VivadoSimVerilog extends VivadoSimCommon, VerilogLinter, VerilogSimulator
9090
): Option[Tool.ProcessLogger] =
9191
Some(
9292
Tool.ProcessLogger(
93-
lineIsWarning = (line: String) => line.startsWith("Warning:"),
93+
lineIsWarning =
94+
(line: String) => line.startsWith("Warning:") || line.startsWith("WARNING:"),
9495
lineIsSuppressed = (line: String) => false,
9596
lineIsErrorOpt =
9697
Some((line: String) => line.startsWith("Error:") || line.startsWith("Fatal:"))
@@ -119,7 +120,8 @@ object VivadoSimVHDL extends VivadoSimCommon, VHDLLinter, VHDLSimulator:
119120
summon[CompilerOptions].backend.asInstanceOf[backends.vhdl].dialect == VHDLDialect.v93
120121
Some(
121122
new Tool.ProcessLogger(
122-
lineIsWarning = (line: String) => line.startsWith("Warning:"),
123+
lineIsWarning =
124+
(line: String) => line.startsWith("Warning:") || line.startsWith("WARNING:"),
123125
lineIsSuppressed = (line: String) =>
124126
// VHDL'93 does not have a standard finish, so we detect the DFHDL generated
125127
// fatal report and convert it to the same behavior as in VHDL'2008 and later in Vivado

0 commit comments

Comments
 (0)