Skip to content

Commit

Permalink
fix bug in export verilog
Browse files Browse the repository at this point in the history
  • Loading branch information
erihsu committed May 23, 2021
1 parent b53afc9 commit 2c184a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/saver/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ impl<W: Default, N: Default, G: Default, P: Default> NetList<W, N, G, P> {
}
let mut p2n_list = Vec::new();
for g in &self.gates {
// insert first node
let node = &self.nodes[g.first_node];
p2n_list.push((&node.name, &self.nets[node.connection].name));
// insert second node and so on
for node_idx in self.get_gate_node(&g.name)?.into_iter() {
let node = &self.nodes[node_idx];
p2n_list.push((&node.name, &self.nets[node.connection].name));
Expand Down

0 comments on commit 2c184a7

Please sign in to comment.