-
Notifications
You must be signed in to change notification settings - Fork 46
/
hotspot.h
41 lines (34 loc) · 1.12 KB
/
hotspot.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef __HOTSPOT_H_
#define __HOTSPOT_H_
#include "util.h"
/* global configuration parameters for HotSpot */
typedef struct global_config_t_st
{
/* floorplan input file */
char flp_file[STR_SIZE];
/* input power trace file */
char p_infile[STR_SIZE];
/* input material properties file */
char materials_file[STR_SIZE];
/* output file for the temperature trace */
char t_outfile[STR_SIZE];
/* input configuration parameters from file */
char config[STR_SIZE];
/* output configuration parameters to file */
char dump_config[STR_SIZE];
/* input microchannel configuration file */
int use_microchannels;
/*BU_3D: Option to turn on heterogenous R-C assignment*/
char detailed_3D[STR_SIZE];
}global_config_t;
/*
* parse a table of name-value string pairs and add the configuration
* parameters to 'config'
*/
void global_config_from_strs(global_config_t *config, str_pair *table, int size);
/*
* convert config into a table of name-value pairs. returns the no.
* of parameters converted
*/
int global_config_to_strs(global_config_t *config, str_pair *table, int max_entries);
#endif