diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -32,6 +32,9 @@ STACK_MACHINE_OLD_TESTS := \ swap \ cond_jump +STACK_MACHINE_TESTS := \ + store + # Add other tests here if You need TESTS := \ self \ @@ -42,7 +45,8 @@ TESTS := \ sram_slave \ embedded_bram_slave \ soc_simple_display \ - $(addprefix stack_machine_old_,$(STACK_MACHINE_OLD_TESTS)) + $(addprefix stack_machine_old_,$(STACK_MACHINE_OLD_TESTS)) \ + $(addprefix stack_machine_,$(STACK_MACHINE_TESTS)) # For each of these Makefile will attempt to generate VGAdump.ppm # and compare it to VGAdump_expected.ppm inside that test's directory @@ -149,6 +153,16 @@ tests/vga/test.vvp : tests/vga/test.v design/vga.v models/vga_display.v \ include/messages.vh $(IV) $(IVFLAGS) -s vga_test $^ -o $@ +tests/stack_machine_%/test.vvp : \ + tests/stack_machine_%/words_to_verify.mem \ + tests/stack_machine_%/instructions.mem \ + tests/stack_machine_%/test.v models/slave.v \ + design/stack_machine.v include/messages.vh + $(IV) $(IVFLAGS) -s stack_machine_test \ + -DINSTRUCTIONS_COUNT=$(call FILE_LINES,$(filter %ions.mem,$^)) \ + -DWORDS_TO_VERIFY_COUNT=$(call FILE_LINES,$<) \ + $(filter %.v,$^) -o $@ + tests/stack_machine_old_%/test.vvp : \ tests/stack_machine_old_%/words_to_verify.mem \ tests/stack_machine_old_%/instructions.mem \ |