Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
uvahotspot
GitHub Repository: uvahotspot/HotSpot
Path: blob/master/wire.c
612 views
1
#include "wire.h"
2
#include "util.h"
3
4
/*
5
* function for wire-length to wire-delay conversion.
6
* WIRE_DELAY_G and WIRE_DELAY_I are delay values
7
* per unit length. see wire.h for the details of the
8
* wire model and the computation of these constants
9
*/
10
double wire_length2delay(double length, int layer)
11
{
12
if (layer == WIRE_GLOBAL)
13
return WIRE_DELAY_G * length;
14
else if (layer == WIRE_INTER)
15
return WIRE_DELAY_I * length;
16
else
17
fatal("unknown metal layer\n");
18
return 0.0;
19
}
20
21