Struct hotspot::Circuit
[−]
[src]
pub struct Circuit { pub cores: usize, pub nodes: usize, pub capacitance: Vec<f64>, pub conductance: Vec<f64>, }
A thermal RC circuit.
Fields
cores: usize
The number of active thermal nodes (processing elements).
nodes: usize
The number of thermal nodes, which is 4 * cores + 12
.
capacitance: Vec<f64>
An nodes
-element vector of thermal capacitance.
conductance: Vec<f64>
An nodes
-by-nodes
matrix of thermal conductance.
Methods
impl Circuit
[src]
fn new(floorplan: &Path, config: &Path, params: &str) -> Result<Circuit, &'static str>
Create a thermal RC circuit based on the block HotSpot model.
The result is an equivalent thermal RC circuit constructed according to
the block HotSpot model for the given floorplan file, configuration
file, and parameter line. The parameter line bears the same meaning as
the command-line arguments of the HotSpot tool. The names of parameters
should not include dashes in front of them; for instance, params
can
be "t_chip 0.00015 k_chip 100.0"
.
It is important to note that the function relies on the original HotSpot
library written in C. This library calls exit(1)
whenever an input
argument is invalid, which immediately terminates the calling program.
Make sure all the input files exist.