From 043fb54206b516a082fa218e5dbc99b16888246b Mon Sep 17 00:00:00 2001 From: tangxifan Date: Thu, 2 Jul 2020 20:53:18 -0600 Subject: [PATCH] remove unused data in bitstream database --- libopenfpga/libfpgabitstream/src/bitstream_manager.cpp | 9 --------- libopenfpga/libfpgabitstream/src/bitstream_manager.h | 5 ----- 2 files changed, 14 deletions(-) diff --git a/libopenfpga/libfpgabitstream/src/bitstream_manager.cpp b/libopenfpga/libfpgabitstream/src/bitstream_manager.cpp index 8ee40287a..07c4c6057 100644 --- a/libopenfpga/libfpgabitstream/src/bitstream_manager.cpp +++ b/libopenfpga/libfpgabitstream/src/bitstream_manager.cpp @@ -153,7 +153,6 @@ ConfigBitId BitstreamManager::add_bit(const bool& bit_value) { } else { bit_values_.push_back('0'); } - shared_config_bit_values_.emplace_back(); bit_parent_block_ids_.push_back(ConfigBlockId::INVALID()); return bit; @@ -171,7 +170,6 @@ void BitstreamManager::reserve_blocks(const size_t& num_blocks) { void BitstreamManager::reserve_bits(const size_t& num_bits) { bit_values_.reserve(num_bits); - shared_config_bit_values_.reserve(num_bits); bit_parent_block_ids_.reserve(num_bits); } @@ -278,13 +276,6 @@ void BitstreamManager::add_output_net_id_to_block(const ConfigBlockId& block, block_output_net_ids_[block].push_back(output_net_id); } -void BitstreamManager::add_shared_config_bit_values(const ConfigBitId& bit, const std::vector& shared_config_bits) { - /* Ensure the input ids are valid */ - VTR_ASSERT(true == valid_bit_id(bit)); - - shared_config_bit_values_[bit] = shared_config_bits; -} - /****************************************************************************** * Public Validators ******************************************************************************/ diff --git a/libopenfpga/libfpgabitstream/src/bitstream_manager.h b/libopenfpga/libfpgabitstream/src/bitstream_manager.h index 13e3f47a6..f94fef472 100644 --- a/libopenfpga/libfpgabitstream/src/bitstream_manager.h +++ b/libopenfpga/libfpgabitstream/src/bitstream_manager.h @@ -188,9 +188,6 @@ class BitstreamManager { /* Add an output net id to a block */ void add_output_net_id_to_block(const ConfigBlockId& block, const std::string& output_net_id); - /* Add share configuration bits to a configuration bit */ - void add_shared_config_bit_values(const ConfigBitId& bit, const std::vector& shared_config_bits); - public: /* Public Validators */ bool valid_bit_id(const ConfigBitId& bit_id) const; @@ -243,8 +240,6 @@ class BitstreamManager { vtr::vector bit_parent_block_ids_; /* value of a bit in the Bitstream */ vtr::vector bit_values_; - /* value of a shared configuration bits in the Bitstream */ - vtr::vector> shared_config_bit_values_; }; } /* end namespace openfpga */