#! /usr/bin/env bash12# Remove files from previous simulations3rm -f *.init4rm -f outputs/*56# Create outputs directory if it doesn't exist7mkdir outputs89# The modeling of a 2-D chip's C4 pad array or a 3-D chip's thermal vias10# requires support for heterogeneous materials within one layer.11# Thanks to Prof. Ayse Coskun's research team in Boston University,12# this feature has been supported in HotSpot since version 6.0.13# To enable this feature in simulation, the command line option14# `-detailed_3D on` must be set to `on`. Currently, heterogeneous layers15# can only be modeled with `-model_type grid` and an LCF file specified16../../hotspot -c example.config -p ev6_3D.ptrace -grid_layer_file ev6_3D.lcf -model_type grid -detailed_3D on -grid_steady_file outputs/example.grid.steady -steady_file outputs/example.steady1718cp outputs/example.steady example.init1920../../hotspot -c example.config -p ev6_3D.ptrace -grid_layer_file ev6_3D.lcf -init_file example.init -model_type grid -detailed_3D on -o outputs/example.transient -grid_transient_file outputs/example.grid.ttrace212223