Skip to content

Commit c27c51d

Browse files
committed
005-tilegrid/cfg: use ICAP instead of BSCANE2, because the fuzzed BSCANE2 parameter depends on primitive placement
Signed-off-by: Hans Baier <[email protected]>
1 parent 08353c9 commit c27c51d

File tree

2 files changed

+13
-18
lines changed

2 files changed

+13
-18
lines changed

fuzzers/005-tilegrid/cfg/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
# license that can be found in the LICENSE file or at
55
# https://opensource.org/licenses/ISC
66
#
7+
#
78
# SPDX-License-Identifier: ISC
89
N ?= 2
9-
GENERATE_ARGS?="--oneval 1 --design params.csv --dword 67 --dframe 1B --dbit 18"
10+
GENERATE_ARGS?="--oneval 1 --design params.csv --dword 68 --dframe 1A --dbit 23"
1011
include ../fuzzaddr/common.mk
1112

fuzzers/005-tilegrid/cfg/top.py

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def gen_sites():
2323
gridinfo = grid.gridinfo_at_loc(loc)
2424
if gridinfo.tile_type in ['CFG_CENTER_MID']:
2525
for site_name in sorted(gridinfo.sites.keys()):
26-
if site_name.startswith("BSCAN_X0Y0"):
26+
if site_name.startswith("ICAP_X0Y0"):
2727
yield tile_name, site_name
2828

2929

@@ -41,30 +41,24 @@ def run():
4141
params = {}
4242

4343
sites = list(gen_sites())
44-
jtag_chains = ("1", "2", "3", "4")
44+
param = ("X8", "X16", "X32")
4545
for (tile_name, site_name), isone in zip(sites,
4646
util.gen_fuzz_states(len(sites))):
4747
params[tile_name] = (site_name, isone)
4848
print(
4949
'''
5050
(* KEEP, DONT_TOUCH, LOC = "{0}" *)
51-
BSCANE2 #(
52-
.JTAG_CHAIN("{1}")
51+
ICAPE2 #(
52+
.ICAP_WIDTH("{1}")
5353
)
54-
BSCANE2_{0} (
55-
.CAPTURE(),
56-
.DRCK(),
57-
.RESET(),
58-
.RUNTEST(),
59-
.SEL(),
60-
.SHIFT(),
61-
.TCK(),
62-
.TDI(),
63-
.TMS(),
64-
.UPDATE(),
65-
.TDO(1'b1)
54+
ICAP_{0} (
55+
.CSIB(),
56+
.RDWRB(),
57+
.I(),
58+
.O(),
59+
.CLK()
6660
);
67-
'''.format(site_name, jtag_chains[isone]))
61+
'''.format(site_name, param[isone]))
6862

6963
print("endmodule")
7064
write_params(params)

0 commit comments

Comments
 (0)