OpenCores
URL https://opencores.org/ocsvn/potato/potato/trunk

Subversion Repositories potato

[/] [potato/] [trunk/] [Makefile] - Diff between revs 9 and 45

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 9 Rev 45
Line 6... Line 6...
 
 
SOURCE_FILES := \
SOURCE_FILES := \
        src/pp_alu.vhd \
        src/pp_alu.vhd \
        src/pp_alu_mux.vhd \
        src/pp_alu_mux.vhd \
        src/pp_alu_control_unit.vhd \
        src/pp_alu_control_unit.vhd \
 
        src/pp_icache.vhd \
        src/pp_comparator.vhd \
        src/pp_comparator.vhd \
        src/pp_constants.vhd \
        src/pp_constants.vhd \
        src/pp_control_unit.vhd \
        src/pp_control_unit.vhd \
        src/pp_core.vhd \
        src/pp_core.vhd \
        src/pp_counter.vhd \
        src/pp_counter.vhd \
Line 23... Line 24...
        src/pp_memory.vhd \
        src/pp_memory.vhd \
        src/pp_potato.vhd \
        src/pp_potato.vhd \
        src/pp_register_file.vhd \
        src/pp_register_file.vhd \
        src/pp_types.vhd \
        src/pp_types.vhd \
        src/pp_utilities.vhd \
        src/pp_utilities.vhd \
 
        src/pp_wb_arbiter.vhd \
        src/pp_wb_adapter.vhd \
        src/pp_wb_adapter.vhd \
        src/pp_writeback.vhd
        src/pp_writeback.vhd
TESTBENCHES := \
TESTBENCHES := \
        testbenches/tb_processor.vhd \
        testbenches/tb_processor.vhd \
        testbenches/tb_soc.vhd \
        testbenches/tb_soc.vhd \
Line 74... Line 76...
        lw
        lw
 
 
# Local tests to run:
# Local tests to run:
LOCAL_TESTS ?= \
LOCAL_TESTS ?= \
        scall \
        scall \
        sbreak
        sbreak \
 
        sw-jal
 
 
all: potato.prj run-tests
all: potato.prj run-tests
 
 
potato.prj:
potato.prj:
        -$(RM) potato.prj
        -$(RM) potato.prj
Line 93... Line 96...
 
 
compile-tests: copy-riscv-tests
compile-tests: copy-riscv-tests
        test -d tests-build || mkdir tests-build
        test -d tests-build || mkdir tests-build
        for test in $(RISCV_TESTS) $(LOCAL_TESTS); do \
        for test in $(RISCV_TESTS) $(LOCAL_TESTS); do \
                echo "Compiling test $$test..."; \
                echo "Compiling test $$test..."; \
                $(TOOLCHAIN_PREFIX)-gcc -c -m32 -Iriscv-tests -o tests-build/$$test.o tests/$$test.S; \
                $(TOOLCHAIN_PREFIX)-gcc -c -m32 -march=RV32I -Iriscv-tests -o tests-build/$$test.o tests/$$test.S; \
                $(TOOLCHAIN_PREFIX)-ld -m elf32lriscv -T tests.ld tests-build/$$test.o -o tests-build/$$test.elf; \
                $(TOOLCHAIN_PREFIX)-ld -m elf32lriscv -T tests.ld tests-build/$$test.o -o tests-build/$$test.elf; \
                scripts/extract_hex.sh tests-build/$$test.elf tests-build/$$test-imem.hex tests-build/$$test-dmem.hex; \
                scripts/extract_hex.sh tests-build/$$test.elf tests-build/$$test-imem.hex tests-build/$$test-dmem.hex; \
        done
        done
 
 
run-tests: potato.prj compile-tests
run-tests: potato.prj compile-tests

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.