mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 10:33:13 +02:00
Internals: Remove dead code, fix or sign off coverage
Remove/fix/signoff uncontroversial code coverage holes. Also added a couple TODOs that should be investigated at some point
This commit is contained in:
+9
-13
@@ -193,21 +193,17 @@ void EmitCBaseVisitorConst::emitVarDecl(const AstVar* nodep, bool asRef) {
|
||||
|
||||
if (nodep->isIO() && nodep->isSc()) {
|
||||
UASSERT_OBJ(basicp, nodep, "Unimplemented: Outputting this data type");
|
||||
if (nodep->attrScClocked() && nodep->isReadOnly()) {
|
||||
putns(nodep, "sc_core::sc_in_clk ");
|
||||
if (nodep->isInout()) {
|
||||
putns(nodep, "sc_core::sc_inout<");
|
||||
} else if (nodep->isWritable()) {
|
||||
putns(nodep, "sc_core::sc_out<");
|
||||
} else if (nodep->isNonOutput()) {
|
||||
putns(nodep, "sc_core::sc_in<");
|
||||
} else {
|
||||
if (nodep->isInout()) {
|
||||
putns(nodep, "sc_core::sc_inout<");
|
||||
} else if (nodep->isWritable()) {
|
||||
putns(nodep, "sc_core::sc_out<");
|
||||
} else if (nodep->isNonOutput()) {
|
||||
putns(nodep, "sc_core::sc_in<");
|
||||
} else {
|
||||
nodep->v3fatalSrc("Unknown type");
|
||||
}
|
||||
puts(nodep->scType());
|
||||
puts("> ");
|
||||
nodep->v3fatalSrc("Unknown type");
|
||||
}
|
||||
puts(nodep->scType());
|
||||
puts("> ");
|
||||
if (asRef) {
|
||||
if (refNeedParens) putns(nodep, "(");
|
||||
putns(nodep, "&");
|
||||
|
||||
Reference in New Issue
Block a user