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

Subversion Repositories plasma

[/] [plasma/] [trunk/] [vhdl/] [makefile] - Rev 25

Go to most recent revision | Compare with Previous | Blame | View Log

#Makefile for MIPS-lite

#for ModelSim
#WORK_DIR = work
#DEP_FILE = _primary.dat
#COMPILE = vcom -check_synthesis

#for FREE VHDL simulator http://www.symphonyeda.com 
WORK_DIR = work.sym
DEP_FILE = prim.dep
COMPILE = vhdlp -s

all: $(WORK_DIR)/tbench/$(DEP_FILE) 

run: all
        -@echo off > output.txt
        -@echo on
        -@start tail -f output.txt
        vhdle -t 30ms tbench
        -@diff output.txt ../tools/output.txt

opcodes: all
        gmake -C ..\tools opcodes
        vhdle -t 200us tbench
        @type output.txt|more

simulate: all
        vhdle -s -t 40us tbench -do simili.cmd -list trace.txt
        -@..\tools\tracehex.exe
        -@start ed trace2.txt

$(WORK_DIR)/mips_pack/$(DEP_FILE): mips_pack.vhd
        $(COMPILE) mips_pack.vhd

$(WORK_DIR)/alu/$(DEP_FILE): mips_pack.vhd alu.vhd
        $(COMPILE) alu.vhd

$(WORK_DIR)/bus_mux/$(DEP_FILE): mips_pack.vhd bus_mux.vhd
        $(COMPILE) bus_mux.vhd

$(WORK_DIR)/control/$(DEP_FILE): mips_pack.vhd control.vhd
        $(COMPILE) control.vhd

$(WORK_DIR)/mem_ctrl/$(DEP_FILE): mips_pack.vhd mem_ctrl.vhd
        $(COMPILE) mem_ctrl.vhd

$(WORK_DIR)/mult/$(DEP_FILE): mips_pack.vhd mult.vhd
        $(COMPILE) mult.vhd

$(WORK_DIR)/pc_next/$(DEP_FILE): mips_pack.vhd pc_next.vhd
        $(COMPILE) pc_next.vhd

$(WORK_DIR)/reg_bank/$(DEP_FILE): mips_pack.vhd reg_bank.vhd 
        $(COMPILE) reg_bank.vhd

$(WORK_DIR)/shifter/$(DEP_FILE): mips_pack.vhd shifter.vhd
        $(COMPILE) shifter.vhd

$(WORK_DIR)/mips_cpu/$(DEP_FILE): mips_cpu.vhd \
        $(WORK_DIR)/mips_pack/$(DEP_FILE) \
        $(WORK_DIR)/alu/$(DEP_FILE) \
        $(WORK_DIR)/bus_mux/$(DEP_FILE) \
        $(WORK_DIR)/control/$(DEP_FILE) \
        $(WORK_DIR)/mem_ctrl/$(DEP_FILE) \
        $(WORK_DIR)/mult/$(DEP_FILE) \
        $(WORK_DIR)/pc_next/$(DEP_FILE) \
        $(WORK_DIR)/reg_bank/$(DEP_FILE) \
        $(WORK_DIR)/shifter/$(DEP_FILE)
        $(COMPILE) mips_cpu.vhd

$(WORK_DIR)/ram/$(DEP_FILE): mips_pack.vhd ram.vhd
        $(COMPILE) -87 ram.vhd

$(WORK_DIR)/tbench/$(DEP_FILE): mips_pack.vhd tbench.vhd \
        $(WORK_DIR)/mips_pack/$(DEP_FILE) \
        $(WORK_DIR)/mips_cpu/$(DEP_FILE) \
        $(WORK_DIR)/ram/$(DEP_FILE)
        $(COMPILE) tbench.vhd

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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