URL
https://opencores.org/ocsvn/ion/ion/trunk
[/] [ion/] [trunk/] [src/] [hello/] [makefile] - Diff between revs 2 and 24
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 2 |
Rev 24 |
Line 1... |
Line 1... |
|
|
# Get common makefile stuff (toolchain & system config)
|
# Get common makefile stuff (toolchain & system config)
|
include ../common/makefile
|
include ../common/makefile
|
|
|
|
# We'll run the simulation for 2000 clock cycles
|
|
SIM_LENGTH = 2000
|
|
|
clean:
|
clean:
|
-$(RM) *.o *.obj *.map *.lst *.hex *.exe *.axf *.code *.data
|
-$(RM) *.o *.obj *.map *.lst *.hex *.exe *.axf *.code *.data
|
|
|
hello:
|
hello:
|
Line 24... |
Line 26... |
$(COPY_MIPS) -I elf32-big -j.rodata -j.data -j.bss -O binary hello.axf hello.data
|
$(COPY_MIPS) -I elf32-big -j.rodata -j.data -j.bss -O binary hello.axf hello.data
|
|
|
# Create VHDL file for simulation test bench
|
# Create VHDL file for simulation test bench
|
hello_sim: hello.code hello.data
|
hello_sim: hello.code hello.data
|
$(TO_VHDL) $(VHDL_FLAGS) --code hello.code --data hello.data \
|
$(TO_VHDL) $(VHDL_FLAGS) --code hello.code --data hello.data \
|
-v $(SRC_DIR)/mips_tb1_template.vhdl -o $(TB_DIR)/mips_tb1.vhdl -e mips_tb1
|
-s $(SIM_LENGTH) -v $(SRC_DIR)/mips_tb1_template.vhdl \
|
|
-o $(TB_DIR)/mips_tb1.vhdl -e mips_tb1
|
|
|
# Create VHDL file for hardware demo
|
# Create VHDL file for hardware demo
|
hello_demo: hello.code hello.data
|
hello_demo: hello.code hello.data
|
$(TO_VHDL) $(VHDL_FLAGS) --code hello.code --data hello.data \
|
$(TO_VHDL) $(VHDL_FLAGS) --code hello.code --data hello.data \
|
-v $(SRC_DIR)/mips_mpu_template.vhdl -o $(DEMO_DIR)/mips_mpu.vhdl -e mips_mpu
|
-v $(SRC_DIR)/mips_mpu_template.vhdl
|
|
-o $(DEMO_DIR)/mips_mpu.vhdl -e mips_mpu
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.