Skip to content

Commit

Permalink
fixed bug -- signal declarations weren't being processed
Browse files Browse the repository at this point in the history
due to change in data structure in front end
  • Loading branch information
Maya Gokhale committed Jan 10, 2020
1 parent 7584066 commit 02e8e26
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions plugins/xlat/Xlat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void Xlat::xlatport(ModuleDecl::portMapType pmap, hNode::hdlopsEnum h_op,
for (ModuleDecl::portMapType::iterator mit = pmap.begin(); mit != pmap.end();
mit++) {
h_info->child_list.push_back(new hNode(get<0>(*mit), h_op));

os_ << "object name is " << get<0>(*mit) << "\n";
PortDecl *pd = get<1>(*mit);
hNodep h_typeinfo = new hNode(false);
xlattype(pd->getTemplateType(), h_typeinfo); // sctypes, xlatout);//, os_);
Expand All @@ -96,10 +96,13 @@ void Xlat::xlatsig(ModuleDecl::signalMapType pmap, hNode::hdlopsEnum h_op,
static const std::set<std::string> sctypes = {"sc_signal"};
for (ModuleDecl::signalMapType::iterator mit = pmap.begin();
mit != pmap.end(); mit++) {
h_info->child_list.push_back(new hNode(mit->first, h_op));
//h_info->child_list.push_back(new hNode(mit->first, h_op));
h_info->child_list.push_back(new hNode(get<0>(*mit), h_op));
os_ << "object name is " << get<0>(*mit) << "\n";
// xlatout << string( n, ' ') << typ;
// xlatout << mit->first;
Signal *pd = mit->second;
//Signal *pd = mit->second;
Signal *pd = get<1>(*mit);
hNodep h_typeinfo = new hNode(false);
xlattype(pd->getTemplateTypes(), h_typeinfo); // xlatout);//, os_);
h_info->child_list.push_back(h_typeinfo);
Expand Down

0 comments on commit 02e8e26

Please sign in to comment.