aboutsummaryrefslogtreecommitdiff
path: root/icebox/icebox_stat.py
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2024-12-11 13:09:43 +0100
committerMiodrag Milanovic <mmicko@gmail.com>2024-12-11 13:09:43 +0100
commit71907709498b80176ead1ccb1e3424ded9e50f5c (patch)
tree18b43e369f28be231d58bb6024d1d86b24b9bc31 /icebox/icebox_stat.py
parent461ba9dce938791089e2d1b15c297110f3374bc2 (diff)
Resolve warning with python 3.12
Diffstat (limited to 'icebox/icebox_stat.py')
-rwxr-xr-xicebox/icebox_stat.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/icebox/icebox_stat.py b/icebox/icebox_stat.py
index 5752267..f13dd2f 100755
--- a/icebox/icebox_stat.py
+++ b/icebox/icebox_stat.py
@@ -73,23 +73,23 @@ if verbose:
for segs in connections:
for seg in segs:
if ic.tile_type(seg[0], seg[1]) == "IO" and seg[2].startswith("io_"):
- match = re_match_cached("io_(\d+)/D_(IN|OUT)_(\d+)", seg[2])
+ match = re_match_cached(r"io_(\d+)/D_(IN|OUT)_(\d+)", seg[2])
if match:
loc = (seg[0], seg[1], int(match.group(1)))
io_locations.add(loc)
if ic.tile_type(seg[0], seg[1]) == "LOGIC" and seg[2].startswith("lutff_"):
- match = re_match_cached("lutff_(\d)/in_\d", seg[2])
+ match = re_match_cached(r"lutff_(\d)/in_\d", seg[2])
if match:
loc = (seg[0], seg[1], int(match.group(1)))
lut_locations.add(loc)
- match = re_match_cached("lutff_(\d)/cout", seg[2])
+ match = re_match_cached(r"lutff_(\d)/cout", seg[2])
if match:
loc = (seg[0], seg[1], int(match.group(1)))
carry_locations.add(loc)
- match = re_match_cached("lutff_(\d)/out", seg[2])
+ match = re_match_cached(r"lutff_(\d)/out", seg[2])
if match:
loc = (seg[0], seg[1], int(match.group(1)))
seq_bits = icebox.get_lutff_seq_bits(ic.tile(loc[0], loc[1]), loc[2])
@@ -101,7 +101,7 @@ for segs in connections:
bram_locations.add(loc)
if seg[2].startswith("glb_netwk_"):
- match = re_match_cached("glb_netwk_(\d)", seg[2])
+ match = re_match_cached(r"glb_netwk_(\d)", seg[2])
if match:
global_nets.add(int(match.group(1)))