2019-08-17 15:37:22 -05:00
|
|
|
/**************************************************
|
|
|
|
* This file includes only declaration for the
|
|
|
|
* functions in mux_utils.c
|
|
|
|
* Please refer to the source file for more details
|
|
|
|
*************************************************/
|
|
|
|
#ifndef MUX_UTILS_H
|
|
|
|
#define MUX_UTILS_H
|
|
|
|
|
2019-09-05 17:09:28 -05:00
|
|
|
#include <vector>
|
|
|
|
|
2019-08-19 13:22:51 -05:00
|
|
|
#include "linkedlist.h"
|
2019-08-17 15:37:22 -05:00
|
|
|
#include "circuit_library.h"
|
2019-08-19 13:22:51 -05:00
|
|
|
#include "mux_library.h"
|
2019-08-17 15:37:22 -05:00
|
|
|
|
|
|
|
bool valid_mux_implementation_num_inputs(const size_t& mux_size);
|
|
|
|
|
2019-09-03 19:09:21 -05:00
|
|
|
size_t find_mux_num_datapath_inputs(const CircuitLibrary& circuit_lib,
|
|
|
|
const CircuitModelId& circuit_model,
|
|
|
|
const size_t& mux_size);
|
|
|
|
|
2019-08-17 15:37:22 -05:00
|
|
|
size_t find_mux_implementation_num_inputs(const CircuitLibrary& circuit_lib,
|
|
|
|
const CircuitModelId& circuit_model,
|
|
|
|
const size_t& mux_size);
|
|
|
|
|
|
|
|
enum e_spice_model_structure find_mux_implementation_structure(const CircuitLibrary& circuit_lib,
|
|
|
|
const CircuitModelId& circuit_model,
|
|
|
|
const size_t& mux_size);
|
|
|
|
|
2019-08-17 22:42:43 -05:00
|
|
|
size_t find_treelike_mux_num_levels(const size_t& mux_size);
|
|
|
|
|
|
|
|
size_t find_multilevel_mux_branch_num_inputs(const size_t& mux_size,
|
|
|
|
const size_t& mux_level);
|
|
|
|
|
2019-09-05 17:09:28 -05:00
|
|
|
std::vector<bool> build_mux_intermediate_buffer_location_map(const CircuitLibrary& circuit_lib,
|
|
|
|
const CircuitModelId& circuit_model,
|
|
|
|
const size_t& num_mux_levels);
|
2019-09-05 00:54:53 -05:00
|
|
|
|
2019-08-19 13:22:51 -05:00
|
|
|
MuxLibrary convert_mux_arch_to_library(const CircuitLibrary& circuit_lib, t_llist* muxes_head);
|
|
|
|
|
2019-09-26 21:59:19 -05:00
|
|
|
size_t find_mux_num_reserved_config_bits(const CircuitLibrary& circuit_lib,
|
|
|
|
const CircuitModelId& mux_model,
|
|
|
|
const MuxGraph& mux_graph);
|
|
|
|
|
|
|
|
size_t find_mux_num_config_bits(const CircuitLibrary& circuit_lib,
|
|
|
|
const CircuitModelId& mux_model,
|
2019-09-26 23:53:07 -05:00
|
|
|
const MuxGraph& mux_graph,
|
|
|
|
const e_sram_orgz& sram_orgz_type);
|
2019-09-26 21:59:19 -05:00
|
|
|
|
2019-10-06 17:57:53 -05:00
|
|
|
size_t find_mux_num_shared_config_bits(const CircuitLibrary& circuit_lib,
|
|
|
|
const CircuitModelId& mux_model,
|
|
|
|
const MuxGraph& mux_graph,
|
|
|
|
const e_sram_orgz& sram_orgz_type);
|
|
|
|
|
2019-08-17 15:37:22 -05:00
|
|
|
#endif
|