Skip to content

Commit ee32d7e

Browse files
committed
vpr: Use explicit BlockTnode when specifying atom pin -> tnode mapping
1 parent 9a7feb9 commit ee32d7e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

vpr/src/base/atom_lookup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class AtomLookup {
8787
tnode_pin_range tnode_atom_pins() const;
8888

8989
//Sets the bi-directional mapping between an atom netlist pin and timing graph node
90-
void set_atom_pin_tnode(const AtomPinId pin, const tatum::NodeId node, BlockTnode block_tnode_type = BlockTnode::EXTERNAL);
90+
void set_atom_pin_tnode(const AtomPinId pin, const tatum::NodeId node, BlockTnode block_tnode_type);
9191

9292
private: //Types
9393
private:

vpr/src/timing/timing_graph_builder.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ void TimingGraphBuilder::add_io_to_timing_graph(const AtomBlockId blk) {
351351

352352
NodeId tnode = tg_->add_node(node_type);
353353

354-
netlist_lookup_.set_atom_pin_tnode(pin, tnode);
354+
netlist_lookup_.set_atom_pin_tnode(pin, tnode, BlockTnode::EXTERNAL);
355355
}
356356

357357
//Creates the timing graph nodes and internal edges for a netlist block
@@ -427,7 +427,7 @@ void TimingGraphBuilder::add_block_to_timing_graph(const AtomBlockId blk) {
427427
model_port->combinational_sink_ports.end());
428428

429429
//Save the pin to external tnode mapping
430-
netlist_lookup_.set_atom_pin_tnode(input_pin, tnode);
430+
netlist_lookup_.set_atom_pin_tnode(input_pin, tnode, BlockTnode::EXTERNAL);
431431
}
432432

433433
//Create the clock pins
@@ -442,7 +442,7 @@ void TimingGraphBuilder::add_block_to_timing_graph(const AtomBlockId blk) {
442442

443443
NodeId tnode = tg_->add_node(NodeType::CPIN);
444444

445-
netlist_lookup_.set_atom_pin_tnode(clock_pin, tnode);
445+
netlist_lookup_.set_atom_pin_tnode(clock_pin, tnode, BlockTnode::EXTERNAL);
446446
}
447447

448448
//Create the output pins
@@ -498,7 +498,7 @@ void TimingGraphBuilder::add_block_to_timing_graph(const AtomBlockId blk) {
498498
}
499499

500500
//Record as external tnode
501-
netlist_lookup_.set_atom_pin_tnode(output_pin, tnode);
501+
netlist_lookup_.set_atom_pin_tnode(output_pin, tnode, BlockTnode::EXTERNAL);
502502
}
503503

504504
//Connect the clock pins to the sources and sinks
@@ -724,7 +724,7 @@ void TimingGraphBuilder::remap_ids(const tatum::GraphIdMaps& id_mapping) {
724724
for (auto kv : new_tnode_atom_pin) {
725725
tatum::NodeId tnode = kv.first;
726726
AtomPinId pin = kv.second;
727-
netlist_lookup_.set_atom_pin_tnode(pin, tnode);
727+
netlist_lookup_.set_atom_pin_tnode(pin, tnode, BlockTnode::EXTERNAL);
728728
}
729729
}
730730

0 commit comments

Comments
 (0)