mirror of https://github.com/openXC7/prjxray.git
Merge pull request #1506 from icgrp/syed/node_model_patch
Fixes get_node_for_wire by initializing self.node
This commit is contained in:
commit
489e438627
|
|
@ -143,6 +143,11 @@ class NodeModel():
|
|||
return self.nodes[tile, wire]
|
||||
|
||||
def _build_wire_to_node_map(self):
|
||||
self.wire_to_node_map = {}
|
||||
|
||||
if self.nodes is None:
|
||||
self._build_nodes()
|
||||
|
||||
for node, wires in self.nodes.items():
|
||||
for tile_wire in wires:
|
||||
assert tile_wire not in self.wire_to_node_map
|
||||
|
|
|
|||
Loading…
Reference in New Issue