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

This commit is contained in:
Paul Wright 2021-01-25 12:33:38 +00:00 committed by GitHub
parent 3c79e00d24
commit d891e5ac3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -2170,7 +2170,7 @@ public:
return ((isIO() || isSignal()) return ((isIO() || isSignal())
&& (isIO() || isBitLogic()) && (isIO() || isBitLogic())
// Wrapper would otherwise duplicate wrapped module's coverage // 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 isClassMember() const { return varType() == AstVarType::MEMBER; }
bool isStatementTemp() const { return (varType() == AstVarType::STMTTEMP); } bool isStatementTemp() const { return (varType() == AstVarType::STMTTEMP); }

View File

@ -7,11 +7,13 @@
module t (/*AUTOARG*/ module t (/*AUTOARG*/
// Inputs // Inputs
clk, clk,
check_real check_real,
check_string
); );
input clk; input clk;
input real check_real; // Check issue #2741 input real check_real; // Check issue #2741
input string check_string; // Check issue #2766
typedef struct packed { typedef struct packed {
union packed { union packed {