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

Subversion Repositories lxp32

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /lxp32/trunk/verify/lxp32/run
    from Rev 6 to Rev 9
    Reverse comparison

Rev 6 → Rev 9

/ghdl/.gitignore
1,6 → 1,6
*.ram
*.vcd
*.cf
*.o
tb
compile.stamp
*.ram
*.vcd
*.cf
*.o
tb
compile.stamp
/ghdl/Makefile
1,51 → 1,51
include ../../src/make/sources.make
 
GHDL_FLAGS=--std=93
 
WAVE_VCD=wave.vcd
WAVE_OUT=wave.fst
 
########################
# Phony targets
########################
 
all: batch
 
.PHONY: all compile batch gui clean
 
.PRECIOUS: $(WAVE_OUT) $(WAVE_VCD)
 
compile: compile.stamp $(FIRMWARE)
 
batch: compile.stamp $(FIRMWARE)
ghdl -r $(GHDL_FLAGS) $(TB_MOD)
 
gui: $(WAVE_OUT)
gtkwave $(WAVE_OUT)
 
clean:
rm -f *.cf
rm -f $(WAVE_VCD)
rm -f $(WAVE_OUT)
rm -f $(FIRMWARE)
rm -f *.o
rm -f $(TB_MOD)
rm -f compile.stamp
 
########################
# Normal targets
########################
 
$(WAVE_OUT): $(WAVE_VCD)
vcd2fst $^ $@
 
$(WAVE_VCD): compile.stamp $(FIRMWARE)
ghdl -r $(GHDL_FLAGS) $(TB_MOD) --vcd=$(WAVE_VCD)
 
compile.stamp: $(LXP32_RTL) $(COMMON_SRC) $(PLATFORM_RTL) $(TB_SRC)
ghdl -a $(GHDL_FLAGS) $(LXP32_RTL) $(COMMON_SRC) $(PLATFORM_RTL) $(TB_SRC)
ghdl -e $(GHDL_FLAGS) $(TB_MOD)
echo > compile.stamp
 
%.ram: $(FW_SRC_DIR)/%.asm
$(ASM) -f textio $^ -o $@
include ../../src/make/sources.make
 
GHDL_FLAGS=--std=93
 
WAVE_VCD=wave.vcd
WAVE_OUT=wave.fst
 
########################
# Phony targets
########################
 
all: batch
 
.PHONY: all compile batch gui clean
 
.PRECIOUS: $(WAVE_OUT) $(WAVE_VCD)
 
compile: compile.stamp $(FIRMWARE)
 
batch: compile.stamp $(FIRMWARE)
ghdl -r $(GHDL_FLAGS) $(TB_MOD)
 
gui: $(WAVE_OUT)
gtkwave $(WAVE_OUT)
 
clean:
rm -f *.cf
rm -f $(WAVE_VCD)
rm -f $(WAVE_OUT)
rm -f $(FIRMWARE)
rm -f *.o
rm -f $(TB_MOD)
rm -f compile.stamp
 
########################
# Normal targets
########################
 
$(WAVE_OUT): $(WAVE_VCD)
vcd2fst $^ $@
 
$(WAVE_VCD): compile.stamp $(FIRMWARE)
-ghdl -r $(GHDL_FLAGS) $(TB_MOD) --vcd=$(WAVE_VCD)
 
compile.stamp: $(LXP32_RTL) $(COMMON_SRC) $(PLATFORM_RTL) $(TB_SRC)
ghdl -a $(GHDL_FLAGS) $(LXP32_RTL) $(COMMON_SRC) $(PLATFORM_RTL) $(TB_SRC)
ghdl -e $(GHDL_FLAGS) $(TB_MOD)
echo > compile.stamp
 
%.ram: $(FW_SRC_DIR)/%.asm
$(ASM) -f textio $^ -o $@
/vsim/.gitignore
1,7 → 1,7
/work
*.ram
*.stamp
*.wlf
*.ini
*.o
transcript
/work
*.ram
*.stamp
*.wlf
*.ini
*.o
transcript
/vsim/Makefile
1,43 → 1,43
include ../../src/make/sources.make
 
VCOMFLAGS=-93
VSIMFLAGS=-t 1ps
 
########################
# Phony targets
########################
 
all: batch
 
.PHONY: all compile batch gui clean
 
compile: compile.stamp
 
batch: compile.stamp
vsim $(VSIMFLAGS) -do "run -all; quit -f" -c work.$(TB_MOD)
 
gui: compile.stamp
vsim $(VSIMFLAGS) work.$(TB_MOD)
 
clean:
rm -rf work
rm -f modelsim.ini
rm -f transcript
rm -f vsim.wlf
rm -f $(FIRMWARE)
rm -f compile.stamp
 
########################
# Normal targets
########################
 
compile.stamp: $(LXP32_RTL) $(COMMON_SRC) $(PLATFORM_RTL) $(TB_SRC) $(FIRMWARE) | work
vcom $(VCOMFLAGS) $(LXP32_RTL) $(COMMON_SRC) $(PLATFORM_RTL) $(TB_SRC)
echo > compile.stamp
 
work:
vlib work
vmap work work
 
%.ram: $(FW_SRC_DIR)/%.asm
$(ASM) -f textio $^ -o $@
include ../../src/make/sources.make
 
VCOMFLAGS=-93
VSIMFLAGS=-t 1ps
 
########################
# Phony targets
########################
 
all: batch
 
.PHONY: all compile batch gui clean
 
compile: compile.stamp
 
batch: compile.stamp
vsim $(VSIMFLAGS) -do "run -all; quit -f" -c work.$(TB_MOD)
 
gui: compile.stamp
vsim $(VSIMFLAGS) work.$(TB_MOD)
 
clean:
rm -rf work
rm -f modelsim.ini
rm -f transcript
rm -f vsim.wlf
rm -f $(FIRMWARE)
rm -f compile.stamp
 
########################
# Normal targets
########################
 
compile.stamp: $(LXP32_RTL) $(COMMON_SRC) $(PLATFORM_RTL) $(TB_SRC) $(FIRMWARE) | work
vcom $(VCOMFLAGS) $(LXP32_RTL) $(COMMON_SRC) $(PLATFORM_RTL) $(TB_SRC)
echo > compile.stamp
 
work:
vlib work
vmap work work
 
%.ram: $(FW_SRC_DIR)/%.asm
$(ASM) -f textio $^ -o $@
/xsim/.gitignore
1,11 → 1,11
/.Xil
/xsim.dir
webtalk*
xelab*
xsim*
xvhdl*
hs_err*
vivado*
*.ram
*.stamp
*.wdb
/.Xil
/xsim.dir
webtalk*
xelab*
xsim*
xvhdl*
hs_err*
vivado*
*.ram
*.stamp
*.wdb
/xsim/Makefile
1,48 → 1,48
include ../../src/make/sources.make
 
ifeq ($(findstring Windows,$(OS)),)
BAT=
else
BAT=.bat
endif
 
########################
# Phony targets
########################
 
all: batch
 
.PHONY: all compile batch gui clean
 
compile: compile.stamp
 
batch: compile.stamp
xsim$(BAT) -R tb_sim
 
gui: compile.stamp
xsim$(BAT) -g -onfinish stop -onerror stop tb_sim
 
clean:
rm -rf .Xil
rm -rf xsim.dir
rm -f webtalk*
rm -f xelab*
rm -f xsim*
rm -f xvhdl*
rm -f hs_err*
rm -f vivado*
rm -f *.wdb
rm -f $(FIRMWARE)
rm -f compile.stamp
 
########################
# Normal targets
########################
 
compile.stamp: $(LXP32_RTL) $(COMMON_SRC) $(PLATFORM_RTL) $(TB_SRC) $(FIRMWARE)
xvhdl$(BAT) $(LXP32_RTL) $(COMMON_SRC) $(PLATFORM_RTL) $(TB_SRC)
xelab$(BAT) work.tb -s tb_sim -debug typical
echo > compile.stamp
 
%.ram: $(FW_SRC_DIR)/%.asm
$(ASM) -f textio $^ -o $@
include ../../src/make/sources.make
 
ifeq ($(findstring Windows,$(OS)),)
BAT=
else
BAT=.bat
endif
 
########################
# Phony targets
########################
 
all: batch
 
.PHONY: all compile batch gui clean
 
compile: compile.stamp
 
batch: compile.stamp
xsim$(BAT) -R tb_sim
 
gui: compile.stamp
xsim$(BAT) -g -onfinish stop -onerror stop tb_sim
 
clean:
rm -rf .Xil
rm -rf xsim.dir
rm -f webtalk*
rm -f xelab*
rm -f xsim*
rm -f xvhdl*
rm -f hs_err*
rm -f vivado*
rm -f *.wdb
rm -f $(FIRMWARE)
rm -f compile.stamp
 
########################
# Normal targets
########################
 
compile.stamp: $(LXP32_RTL) $(COMMON_SRC) $(PLATFORM_RTL) $(TB_SRC) $(FIRMWARE)
xvhdl$(BAT) $(LXP32_RTL) $(COMMON_SRC) $(PLATFORM_RTL) $(TB_SRC)
xelab$(BAT) work.tb -s tb_sim -debug typical
echo > compile.stamp
 
%.ram: $(FW_SRC_DIR)/%.asm
$(ASM) -f textio $^ -o $@

powered by: WebSVN 2.1.0

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