Skip to content

Commit

Permalink
changed subgrapgh decorator to generate boolean function of net witho…
Browse files Browse the repository at this point in the history
…ut source to be the net itself.
  • Loading branch information
SimonKlx committed Oct 20, 2023
1 parent bfdf9d5 commit fc660a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/netlist/decorators/subgraph_netlist_decorator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,9 @@ namespace hal
}
else if (subgraph_output->get_num_of_sources() == 0)
{
return ERR("could not get subgraph function of net '" + subgraph_output->get_name() + "' with ID " + std::to_string(subgraph_output->get_id()) + ": net has no sources");
const auto net_dec = BooleanFunctionNetDecorator(*subgraph_output);
return OK(net_dec.get_boolean_variable());
//return ERR("could not get subgraph function of net '" + subgraph_output->get_name() + "' with ID " + std::to_string(subgraph_output->get_id()) + ": net has no sources");
}

const Gate* start_gate = subgraph_output->get_sources()[0]->get_gate();
Expand Down

0 comments on commit fc660a7

Please sign in to comment.