Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
uvahotspot
GitHub Repository: uvahotspot/HotSpot
Path: blob/master/hotspot.h
612 views
1
#ifndef __HOTSPOT_H_
2
#define __HOTSPOT_H_
3
4
#include "util.h"
5
6
/* global configuration parameters for HotSpot */
7
typedef struct global_config_t_st
8
{
9
/* floorplan input file */
10
char flp_file[STR_SIZE];
11
/* input power trace file */
12
char p_infile[STR_SIZE];
13
/* input material properties file */
14
char materials_file[STR_SIZE];
15
/* output file for the temperature trace */
16
char t_outfile[STR_SIZE];
17
/* input configuration parameters from file */
18
char config[STR_SIZE];
19
/* output configuration parameters to file */
20
char dump_config[STR_SIZE];
21
/* input microchannel configuration file */
22
int use_microchannels;
23
24
25
/*BU_3D: Option to turn on heterogenous R-C assignment*/
26
char detailed_3D[STR_SIZE];
27
28
}global_config_t;
29
30
/*
31
* parse a table of name-value string pairs and add the configuration
32
* parameters to 'config'
33
*/
34
void global_config_from_strs(global_config_t *config, str_pair *table, int size);
35
/*
36
* convert config into a table of name-value pairs. returns the no.
37
* of parameters converted
38
*/
39
int global_config_to_strs(global_config_t *config, str_pair *table, int max_entries);
40
41
#endif
42
43