Skip to content

Commit

Permalink
Remove HW tests for old ALU
Browse files Browse the repository at this point in the history
  • Loading branch information
msinger committed Feb 21, 2021
1 parent e77411a commit 5f2d51b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 307 deletions.
35 changes: 1 addition & 34 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -42,27 +42,9 @@ alu/bit.sv
TESTBENCH_FILES = \
$(ALU_TESTS)

ALU_HW_TESTS = \
alu/hwtest1.sv \
alu/hwtest2.sv

ALU_UUT = cpu/sm83_alu.sv

HW_TESTS = \
$(ALU_HW_TESTS)

HW_TESTS_PCF = test.pcf

EXTRA_DIST = \
$(FORMAL_TESTS) \
$(TESTBENCH_FILES) \
$(HW_TESTS) \
$(HW_TESTS_PCF)

CLEANFILES = \
$(HW_TESTS:.sv=.asc) \
$(HW_TESTS:.sv=.bin) \
$(HW_TESTS:.sv=.json)
$(TESTBENCH_FILES)

clean-local: clean-local-check

Expand All @@ -76,18 +58,3 @@ TESTS = $(FORMAL_TESTS)
TEST_EXTENSIONS = .sby
SBY_LOG_COMPILER = $(SBY)
AM_SBY_LOG_FLAGS = -f

hwtests: $(HW_TESTS:.sv=.bin)

.PHONY: hwtests

YOSYS_SYNTH_ARGS = -q -p "synth_ice40 -abc2 -json $1"

$(ALU_HW_TESTS:.sv=.json): %.json: $(srcdir)/%.sv Makefile $(addprefix $(top_srcdir)/src/,$(ALU_UUT))
$(YOSYS) $(YOSYSFLAGS) $(call YOSYS_SYNTH_ARGS,$@) $< $(addprefix $(top_srcdir)/src/,$(ALU_UUT))

$(HW_TESTS:.sv=.asc): %.asc: %.json $(srcdir)/$(HW_TESTS_PCF) Makefile
$(NEXTPNR) $(NEXTPNRFLAGS) --hx8k --package ct256 --pcf $(srcdir)/$(HW_TESTS_PCF) --json $< --asc $@

$(HW_TESTS:.sv=.bin): %.bin: %.asc Makefile
$(ICEPACK) $(ICEPACKFLAGS) $< $@
85 changes: 0 additions & 85 deletions tests/alu/hwtest1.sv

This file was deleted.

146 changes: 0 additions & 146 deletions tests/alu/hwtest2.sv

This file was deleted.

42 changes: 0 additions & 42 deletions tests/test.pcf

This file was deleted.

0 comments on commit 5f2d51b

Please sign in to comment.