Update htmlgen.py for hclk ENABLE_BUFFER bits

Signed-off-by: Clifford Wolf <clifford@clifford.at>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
This commit is contained in:
Clifford Wolf 2017-12-02 18:14:10 +01:00 committed by Tim 'mithro' Ansell
parent 8a473c9bd3
commit d14ba69934
1 changed files with 17 additions and 9 deletions

View File

@ -99,6 +99,10 @@ for segname, segdata in grid["segments"].items():
with open("../database/%s/segbits_%s.db" % (os.getenv("XRAY_DATABASE"), re.sub("clbl[lm]", "int", segtype))) as f:
for line in f:
bit_name, *bit_pos = line.split()
if segtype in ["hclk_l", "hclk_r"] and ".ENABLE_BUFFER." in bit_name:
segbits[segtype][bit_name] = bit_pos[0]
segbits_r[segtype][bit_pos[0]] = bit_name
else:
for bit in bit_pos:
if bit[0] == "!":
if bit[1:] not in routezbits[segtype]:
@ -304,6 +308,10 @@ function oml() {
bgcolor = "#ffaa00"
label = "CLKI"
if ".ENABLE_BUFFER." in bit_name:
bgcolor = "#ffaa00"
label = "BUF"
elif bit_pos in routebits[segtype]:
bgcolor = "#0000ff"
label = "R"