Skip to content

Commit 44e6970

Browse files
author
Oron Port
committed
suppress iverilog synth warnings in simulation
1 parent 5505f11 commit 44e6970

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ object IcarusVerilog extends VerilogLinter, VerilogSimulator:
5959
): Option[Tool.ProcessLogger] = Some(
6060
Tool.ProcessLogger(
6161
lineIsWarning = (line: String) => line.contains("warning: "),
62-
lineIsSuppressed = (line: String) => false
62+
lineIsSuppressed = (line: String) =>
63+
// suppress the "cannot be synthesized" warning when in simulation
64+
if (line.contains("cannot be synthesized") && getSet.designDB.inSimulation)
65+
true
66+
else
67+
false
6368
)
6469
)
6570
end IcarusVerilog

0 commit comments

Comments
 (0)