23 #ifndef __POWER_COMPONENTS_H__
24 #define __POWER_COMPONENTS_H__
37 #define POWER_LUT_SLOW
38 #if (!(defined(POWER_LUT_SLOW) || defined(POWER_LUT_FAST)))
39 #define POWER_LUT_SLOW
87 float D_dens,
float Q_prob,
float Q_dens,
float clk_prob,
88 float clk_dens,
float period);
90 float transistor_size,
char * SRAM_values,
float * input_densities,
91 float * input_probabilities,
float period);
95 t_mux_arch * mux_arch,
float * in_prob,
float * in_dens,
96 int selected_input,
boolean output_level_restored,
float period);
98 float in_dens,
boolean level_restored,
float period);
void power_component_get_usage(t_power_usage *power_usage, e_power_component_type component_idx)
void power_usage_local_interc_mux(t_power_usage *power_usage, t_pb *pb, t_interconnect_pins *interc_pins)
float power_component_get_usage_sum(e_power_component_type component_idx)
t_power_components g_power_by_component
void power_components_init(void)
void power_usage_ff(t_power_usage *power_usage, float size, float D_prob, float D_dens, float Q_prob, float Q_dens, float clk_prob, float clk_dens, float period)
void power_usage_lut(t_power_usage *power_usage, int LUT_size, float transistor_size, char *SRAM_values, float *input_densities, float *input_probabilities, float period)
void power_component_add_usage(t_power_usage *power_usage, e_power_component_type component_idx)
void power_usage_buffer(t_power_usage *power_usage, float size, float in_prob, float in_dens, boolean level_restored, float period)
void power_components_uninit(void)
void power_usage_mux_multilevel(t_power_usage *power_usage, t_mux_arch *mux_arch, float *in_prob, float *in_dens, int selected_input, boolean output_level_restored, float period)
t_power_usage * components