#include "wire.h"1#include "util.h"23/*4* function for wire-length to wire-delay conversion.5* WIRE_DELAY_G and WIRE_DELAY_I are delay values6* per unit length. see wire.h for the details of the7* wire model and the computation of these constants8*/9double wire_length2delay(double length, int layer)10{11if (layer == WIRE_GLOBAL)12return WIRE_DELAY_G * length;13else if (layer == WIRE_INTER)14return WIRE_DELAY_I * length;15else16fatal("unknown metal layer\n");17return 0.0;18}192021