From a46fc9f028ab36c142314a544598c9d4ac522141 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Fri, 20 Mar 2020 14:59:46 -0600 Subject: [PATCH] add debugging information for tile direct builder --- openfpga/src/tile_direct/build_tile_direct.cpp | 6 +++++- .../k6_frac_N10_adder_chain_40nm_openfpga.xml | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/openfpga/src/tile_direct/build_tile_direct.cpp b/openfpga/src/tile_direct/build_tile_direct.cpp index 676fa8291..ba426ce17 100644 --- a/openfpga/src/tile_direct/build_tile_direct.cpp +++ b/openfpga/src/tile_direct/build_tile_direct.cpp @@ -656,7 +656,11 @@ TileDirect build_device_tile_direct(const DeviceContext& device_ctx, /* Walk through each direct definition in the VPR arch */ for (int idirect = 0; idirect < device_ctx.arch->num_directs; ++idirect) { ArchDirectId arch_direct_id = arch_direct.direct(std::string(device_ctx.arch->Directs[idirect].name)); - VTR_ASSERT(ArchDirectId::INVALID() != arch_direct_id); + if (ArchDirectId::INVALID() == arch_direct_id) { + VTR_LOG_ERROR("Unable to find an annotation in openfpga architecture XML for '%s'!\n", + device_ctx.arch->Directs[idirect].name); + exit(1); + } /* Build from original VPR arch definition */ build_inner_column_row_tile_direct(tile_direct, device_ctx.arch->Directs[idirect], diff --git a/openfpga/test_openfpga_arch/k6_frac_N10_adder_chain_40nm_openfpga.xml b/openfpga/test_openfpga_arch/k6_frac_N10_adder_chain_40nm_openfpga.xml index ed0de93f1..2b340168e 100644 --- a/openfpga/test_openfpga_arch/k6_frac_N10_adder_chain_40nm_openfpga.xml +++ b/openfpga/test_openfpga_arch/k6_frac_N10_adder_chain_40nm_openfpga.xml @@ -209,6 +209,9 @@ + + +