Skip to content

Commit 8658bdd

Browse files
committed
interchange: vpr: update tests
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 101d8bd commit 8658bdd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

vpr/test/test_interchange_device.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ TEST_CASE("read_interchange_layout", "[vpr]") {
5353
REQUIRE(gd.height == 12);
5454
REQUIRE(gd.width == 12);
5555

56-
std::unordered_map<std::string, bool> tile_types({{"PWR", false}, {"IOB", false}, {"CLB", false}});
56+
std::unordered_map<std::string, bool> tile_types({{"constant_block", false}, {"IB", false}, {"OB", false}, {"IOB", false}, {"CLB", false}});
5757
for (auto& loc : gd.loc_defs) {
5858
auto ret = tile_types.find(loc.block_type);
5959
REQUIRE(ret != tile_types.end());
@@ -91,7 +91,7 @@ TEST_CASE("read_interchange_luts", "[vpr]") {
9191
const auto& lut_elements = it.second;
9292

9393
for (const auto& lut_element : lut_elements) {
94-
REQUIRE(lut_element.lut_bels.size() == 2);
94+
REQUIRE(lut_element.lut_bels.size() == 1);
9595

9696
for (auto lut_bel : lut_element.lut_bels) {
9797
CHECK(std::find(lut_bels.begin(), lut_bels.end(), lut_bel.name) != lut_bels.end());
@@ -110,7 +110,7 @@ TEST_CASE("read_interchange_tiles", "[vpr]") {
110110

111111
FPGAInterchangeReadArch(kArchFile, /*timing_enabled=*/true, &arch, physical_tile_types, logical_block_types);
112112

113-
std::unordered_set<std::string> ptypes = {"EMPTY", "IOB", "PWR", "CLB"};
113+
std::unordered_set<std::string> ptypes = {"EMPTY", "IOB", "IB", "OB", "CLB", "constant_block"};
114114

115115
// Check that there are exactly the expected models
116116
for (auto ptype : physical_tile_types) {
@@ -134,7 +134,7 @@ TEST_CASE("read_interchange_pb_types", "[vpr]") {
134134

135135
FPGAInterchangeReadArch(kArchFile, /*timing_enabled=*/true, &arch, physical_tile_types, logical_block_types);
136136

137-
std::unordered_set<std::string> ltypes = {"EMPTY", "IOPAD", "SLICE", "POWER"};
137+
std::unordered_set<std::string> ltypes = {"EMPTY", "IOPAD", "IPAD", "OPAD", "SLICE", "constant_block"};
138138

139139
std::unordered_map<std::string, PORTS> slice_ports = {
140140
{"L0_0", PORTS::IN_PORT},

vpr/test/testarch.device

20.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)