Repair of last 2 checkins; dots in wrong place when 2 level deep inline

This commit is contained in:
Wilson Snyder 2008-11-05 09:14:49 -05:00
parent 288d7bd9dc
commit 5d2675e38a
3 changed files with 20 additions and 2 deletions

View File

@ -217,7 +217,7 @@ public:
puts(", \""); puts(nodep->fileline()->filename()); puts("\"");
puts(", "); puts(cvtToStr(nodep->fileline()->lineno()));
puts(", "); puts(cvtToStr(nodep->column()));
puts(", \""); puts(nodep->hier()); puts("\"");
puts(", \""); puts((nodep->hier()!=""?".":"")+nodep->hier()); puts("\"");
puts(", \""); puts(nodep->typeText()); puts("\"");
puts(", \""); puts(nodep->comment()); puts("\"");
puts(");\n");

View File

@ -249,7 +249,9 @@ private:
virtual void visit(AstCoverDecl* nodep, AstNUser*) {
// Fix path in coverage statements
if (m_cellp) {
nodep->hier(m_cellp->prettyName()+"."+nodep->hier());
nodep->hier(m_cellp->prettyName()
+ (nodep->hier()!="" ? ".":"")
+ nodep->hier());
}
nodep->iterateChildren(*this);
}

View File

@ -16,6 +16,8 @@ module t_clk_two (/*AUTOARG*/
// verilator lint_on GENCLK
reg [31:0] count;
t_clk_twob tb (.*);
wire reset_h = ~reset_l;
always @ (posedge fastclk) begin
if (reset_h) clk2 <= 0;
@ -26,3 +28,17 @@ module t_clk_two (/*AUTOARG*/
else count <= count + 1;
end
endmodule
module t_clk_twob (/*AUTOARG*/
// Inputs
fastclk, reset_l
);
input fastclk;
input reset_l;
always @ (posedge fastclk) begin
// Extra line coverage point, just to make sure coverage
// hierarchy under inlining lands properly
if (reset_l) ;
end
endmodule