Fix to exclude strings from toggle coverage (#2766) (#2767)

This commit is contained in:
Paul Wright
2021-01-25 07:33:38 -05:00
committed by GitHub
parent 3c79e00d24
commit d891e5ac3a
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -2170,7 +2170,7 @@ public:
return ((isIO() || isSignal())
&& (isIO() || isBitLogic())
// Wrapper would otherwise duplicate wrapped module's coverage
&& !isSc() && !isPrimaryIO() && !isConst() && !isDouble());
&& !isSc() && !isPrimaryIO() && !isConst() && !isDouble() && !isString());
}
bool isClassMember() const { return varType() == AstVarType::MEMBER; }
bool isStatementTemp() const { return (varType() == AstVarType::STMTTEMP); }
+3 -1
View File
@@ -7,11 +7,13 @@
module t (/*AUTOARG*/
// Inputs
clk,
check_real
check_real,
check_string
);
input clk;
input real check_real; // Check issue #2741
input string check_string; // Check issue #2766
typedef struct packed {
union packed {