Skip to content

Commit 795b1bc

Browse files
authored
Merge pull request f4pga#19 from antmicro/cle-lutinit-fuzzer
Fix CLE LUTINIT fuzzer
2 parents f73cc4f + e60f50e commit 795b1bc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

fuzzers/010-cle-lutinit/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ BUILD_DIR=build
22
N := 4
33
SPECIMENS := $(addprefix $(BUILD_DIR)/specimen_,$(shell seq -f '%03.0f' $(N)))
44
SPECIMENS_OK := $(addsuffix /OK,$(SPECIMENS))
5-
export FUZDIR = $(PWD)
65
database: $(SPECIMENS_OK)
76
$(URAY_SEGMATCH) -o $(BUILD_DIR)/segbits_clel_l.db $(addsuffix /segdata_clel_[l]_[01].txt,$(SPECIMENS))
87
#$(URAY_SEGMATCH) -o $(BUILD_DIR)/segbits_clel_r.db $(addsuffix /segdata_clel_[r]_[01].txt,$(SPECIMENS))
@@ -19,12 +18,12 @@ $(1)/top.v :
1918

2019
$(1)/design_0.bit: $(1)/top.v
2120
cd $(1); \
22-
$(URAY_VIVADO) -mode batch -source $(FUZDIR)/generate.tcl; \
21+
$(URAY_VIVADO) -mode batch -source ../../generate.tcl; \
2322
test -z "$$$$(fgrep CRITICAL vivado.log)"
2423

2524
$(1)/segdata: $(1)/design_0.bit
2625
cd $(1); \
27-
bash $(FUZDIR)/generate.sh .
26+
bash ../../generate.sh
2827

2928
$(1)/OK: $(1)/segdata
3029
touch $$@

fuzzers/010-cle-lutinit/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ for i in 0 1; do
55
done
66

77
for i in 0 1; do
8-
python3 ${FUZDIR}/generate.py $i
8+
python3 ../../generate.py $i
99
done
1010

fuzzers/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ $(eval $(call fuzzer,000-init-db,,part))
8282
ifneq ($(FUZZONLY),Y)
8383
$(eval $(call fuzzer,001-part-yaml,000-init-db,part))
8484
$(eval $(call fuzzer,002-tilegrid,001-part-yaml,part))
85+
$(eval $(call fuzzer,010-cle-lutinit,002-tilegrid,all))
8586
else
8687
all:: 002-tilegrid/run.ok
8788
touch 002-tilegrid/run.ok

0 commit comments

Comments
 (0)