import sys import json import timing_dbs import pip_classes def make_interconn_timing_html(dbfile, family, grade, htmlfile): with open(dbfile, 'r') as f: db = json.load(f) with open(htmlfile, 'w') as html: print("", file=html) print("
", file=html) print("Values in red are fixed to zero by definition.
", file=html) print("| Pip Class | ", file=html) print("Base Delay (ps) | Fanout Adder (ps) | ||||
|---|---|---|---|---|---|---|
| Min | Typ | Max | Min | Typ | Max | |
| {} | ".format(pipclass), file=html) ds = "style='color: red;'" if pip_classes.force_zero_delay_pip(pipclass) else "" fs = "style='color: red;'" if pip_classes.force_zero_fanout_pip(pipclass) else "" print("{:.0f} | {:.0f} | {:.0f} | ".format(ds, pcdata["delay"][0], ds, pcdata["delay"][1], ds, pcdata["delay"][2]), file=html) print("{:.0f} | {:.0f} | {:.0f} | ".format(fs, pcdata["fanout"][0], fs, pcdata["fanout"][1], fs, pcdata["fanout"][2]), file=html) print("