Skip to content

Commit

Permalink
fixed semicolon issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rdaly525 committed Jun 18, 2019
1 parent 0b24e95 commit 53c0de1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/verilogAST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ std::string Module::toString() {
for (auto statement : body) {
module_str +=
variant_to_string<StructuralStatement *, Declaration *>(statement) +
";\n";
"\n";
}

module_str += "endmodule\n";
Expand Down Expand Up @@ -229,7 +229,7 @@ std::string ModuleInstantiation::toString() {
}
module_inst_str += join(param_strs, ", ");
}
module_inst_str += ")";
module_inst_str += ");";
return module_inst_str;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/basic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ TEST(BasicTests, TestModuleInst) {

EXPECT_EQ(module_inst.toString(),
"test_module #(.param0(32'd0), .param1(32'd1)) "
"test_module_inst(.a(a), .b(b[32'd0]), .c(c[32'd31:32'd0]))");
"test_module_inst(.a(a), .b(b[32'd0]), .c(c[32'd31:32'd0]));");
}

TEST(BasicTests, TestModule) {
Expand Down

0 comments on commit 53c0de1

Please sign in to comment.