Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
uvahotspot
GitHub Repository: uvahotspot/HotSpot
Path: blob/master/examples/example3/run.sh
612 views
1
#!/usr/bin/env bash
2
3
# Remove results from previous simulations
4
rm -f *.init
5
rm -f outputs/*
6
7
# Create outputs directory if it doesn't exist
8
mkdir outputs
9
10
# HotSpot's grid model is capable of modeling stacked 3-D chips. To be
11
# able to do that, one has to specify what is called the 'Layer
12
# Configuration File' (LCF). An LCF specifies the set of vertical layers
13
# to be modeled including its physical properties (thickness,
14
# conductivity etc.) and the floorplan of the die in that layer.
15
16
# Let us now look at an example of how to model stacked 3-D chips. Let
17
# us use a simple, 3-block floorplan file 'floorplan1.flp' in addition to
18
# the more detailed original 'floorplan2.flp'. In the chip we will model, layer 0 is
19
# power dissipating silicon with a floorplan of 'floorplan1.flp', followed
20
# by a layer of non-dissipating (passive) TIM. This is then followed by
21
# another layer of active silicon with a floorplan of 'floorplan2.flp' and
22
# another layer of passive TIM. Such a layer configuration is described
23
# in 'example.lcf'. Note that the floorplan files of all layers are specified
24
# in the LCF instead of via the command line
25
../../hotspot -c example.config -p example.ptrace -grid_layer_file example.lcf -materials_file example.materials -model_type grid -detailed_3D on -steady_file outputs/example.steady -grid_steady_file outputs/example.grid.steady
26
27
# Copy steady-state results over to initial temperatures
28
cp outputs/example.steady example.init
29
30
# Transient simulation
31
../../hotspot -c example.config -p example.ptrace -grid_layer_file example.lcf -materials_file example.materials -model_type grid -detailed_3D on -o outputs/example.ttrace -grid_transient_file outputs/example.grid.ttrace
32
33
# Visualize Heat Map of Layer 0 with Perl and with Python script
34
../../scripts/split_grid_steady.py outputs/example.grid.steady 6 64 64
35
../../scripts/grid_thermal_map.py floorplan2.flp outputs/example_layer2.grid.steady 64 64 outputs/layer2.png
36
../../scripts/grid_thermal_map.pl floorplan2.flp outputs/example_layer2.grid.steady 64 64 > outputs/layer2.svg
37
38