openfpga/src/mux_lib/decoder_library.cpp
/* Add a decoder to the library */
Add a decoder to the library
Add a decoder to the library
DecoderId DecoderLibrary::add_decoder(const size_t& addr_size, 
                                      const size_t& data_size, 
                                      const bool& use_enable, 
                                      const bool& use_data_in, 
                                      const bool& use_data_inv_port) {
  DecoderId decoder = DecoderId(decoder_ids_.size());
  decoder_ids_.push_back(decoder);
  addr_sizes_.push_back(addr_size);
  data_sizes_.push_back(data_size);
  use_enable_.push_back(use_enable);
  use_data_in_.push_back(use_data_in);
  use_data_inv_port_.push_back(use_data_inv_port);
  return decoder;
}
DecoderId DecoderLibrary :: add_decoder ( const size_t & addr_size , const size_t & data_size , const bool & use_enable , const bool & use_data_in , const bool & use_data_inv_port ) { DecoderId decoder = DecoderId ( decoder_ids_ . size ( ) ) ; decoder_ids_ . push_back ( decoder ) ; addr_sizes_ . push_back ( addr_size ) ; data_sizes_ . push_back ( data_size ) ; use_enable_ . push_back ( use_enable ) ; use_data_in_ . push_back ( use_data_in ) ; use_data_inv_port_ . push_back ( use_data_inv_port ) ; return decoder ; }
Add a decoder to the library
Add a decoder to the library
/* Push to the decoder list */ /* Resize the other related vectors */