mirror of https://github.com/openXC7/prjxray.git
041-clk-hrow-pips: Don't solve fake features
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
This commit is contained in:
parent
0f37f0c294
commit
678f915467
|
|
@ -2,9 +2,16 @@
|
|||
|
||||
import os
|
||||
import os.path
|
||||
import re
|
||||
from prjxray.segmaker import Segmaker
|
||||
|
||||
|
||||
def src_has_active_bit(src):
|
||||
if re.match(r"^CLK_HROW_CK_INT_[01]_[01]", src) is not None:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
def main():
|
||||
segmk = Segmaker("design.bits")
|
||||
|
||||
|
|
@ -113,6 +120,9 @@ def main():
|
|||
for tile_type, srcs in clk_list.items():
|
||||
for tile, pips_srcs_dsts in tiledata.items():
|
||||
for src in srcs:
|
||||
#Don't solve fake features
|
||||
if not src_has_active_bit(src):
|
||||
continue
|
||||
if 'GCLK' not in src:
|
||||
active = src in active_clks[tile]
|
||||
segmk.add_tile_tag(tile, '{}_ACTIVE'.format(src), active)
|
||||
|
|
|
|||
Loading…
Reference in New Issue