Skip to content

Commit 5888193

Browse files
committed
[libs][utils] remove redundant helper functions
1 parent a63e5d8 commit 5888193

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

libs/libarchfpga/src/physical_types_util.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -637,26 +637,6 @@ bool is_pin_conencted_to_layer(t_physical_tile_type_ptr type, int ipin, int from
637637
return false;
638638
}
639639

640-
// TODO: Remove is_input_type / is_output_type / is_io_type as part of
641-
// https://github.com/verilog-to-routing/vtr-verilog-to-routing/issues/1193
642-
bool is_input_type(t_physical_tile_type_ptr type) {
643-
return type->is_input_type;
644-
}
645-
646-
bool is_output_type(t_physical_tile_type_ptr type) {
647-
return type->is_output_type;
648-
}
649-
650-
bool is_io_type(t_physical_tile_type_ptr type) {
651-
return is_input_type(type)
652-
|| is_output_type(type);
653-
}
654-
655-
bool is_io_type(t_logical_block_type_ptr type) {
656-
auto physical_tile = pick_physical_type(type);
657-
return is_io_type(physical_tile);
658-
}
659-
660640
std::string block_type_pin_index_to_name(t_physical_tile_type_ptr type, int pin_physical_num, bool is_flat) {
661641
int max_ptc = get_tile_pin_max_ptc(type, is_flat);
662642
VTR_ASSERT(pin_physical_num < max_ptc);

libs/libarchfpga/src/physical_types_util.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,6 @@ bool is_opin(int ipin, t_physical_tile_type_ptr type);
120120
///@brief Returns true if the specified pin is located at "from_layer" and it is connected to "to_layer"
121121
bool is_pin_conencted_to_layer(t_physical_tile_type_ptr type, int ipin, int from_layer, int to_layer, int num_of_avail_layer);
122122

123-
///@brief Returns true if the given physical tile type can implement a .input block type
124-
bool is_input_type(t_physical_tile_type_ptr type);
125-
///@brief Returns true if the given physical tile type can implement a .output block type
126-
bool is_output_type(t_physical_tile_type_ptr type);
127-
///@brief Returns true if the given physical tile type can implement either a .input or .output block type
128-
bool is_io_type(t_physical_tile_type_ptr type);
129-
130-
///@brief Returns true if the given logical block type is an IO block
131-
bool is_io_type(t_logical_block_type_ptr type);
132-
133123
/**
134124
* @brief Returns the corresponding physical pin based on the input parameters:
135125
*

0 commit comments

Comments
 (0)