URL
https://opencores.org/ocsvn/ion/ion/trunk
[/] [ion/] [trunk/] [src/] [opcodes/] [makefile] - Blame information for rev 43
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
2 |
ja_rd |
|
2 |
|
|
# Get common makefile stuff (toolchain & system config)
|
3 |
|
|
include ../common/makefile
|
4 |
|
|
|
5 |
24 |
ja_rd |
# We'll run the simulation for 2000 clock cycles
|
6 |
34 |
ja_rd |
SIM_LENGTH = 3000
|
7 |
2 |
ja_rd |
|
8 |
|
|
clean:
|
9 |
|
|
-$(RM) -f *.o *.obj *.map *.lst *.hex \
|
10 |
|
|
*.exe *.axf *.code *.data *.bin
|
11 |
|
|
|
12 |
|
|
opcodes:
|
13 |
|
|
$(AS_MIPS) -o opcodes.o opcodes.s
|
14 |
|
|
$(LD_MIPS) -Ttext 0 -eentry -Map opcodes.map -s -N -o opcodes.axf opcodes.o
|
15 |
|
|
-@$(DUMP_MIPS) -I elf32-big --disassemble opcodes.axf > opcodes.lst
|
16 |
34 |
ja_rd |
# Dump only text segment, no .rodata on this program
|
17 |
2 |
ja_rd |
$(COPY_MIPS) -I elf32-big -j .text -O binary opcodes.axf opcodes.bin
|
18 |
34 |
ja_rd |
# Dump data segment to file; will be empty but the TB2 template needs it
|
19 |
|
|
$(COPY_MIPS) -I elf32-big -j .data -O binary opcodes.axf opcodes.data
|
20 |
2 |
ja_rd |
|
21 |
|
|
|
22 |
34 |
ja_rd |
# Create VHDL file for simulation test bench from TB1 template
|
23 |
2 |
ja_rd |
opcodes_sim: opcodes
|
24 |
34 |
ja_rd |
$(TO_VHDL) --code opcodes.bin \
|
25 |
|
|
--code_size $(CODE_BRAM_SIZE) --data_size $(DATA_BRAM_SIZE) \
|
26 |
24 |
ja_rd |
-s $(SIM_LENGTH) -v $(SRC_DIR)\\mips_tb0_template.vhdl \
|
27 |
|
|
-o $(TB_DIR)\\mips_tb1.vhdl -e mips_tb1
|
28 |
2 |
ja_rd |
|
29 |
34 |
ja_rd |
# Create VHDL file for simulation test bench from TB2 template
|
30 |
|
|
opcodes_sim2: opcodes
|
31 |
|
|
$(TO_VHDL) --code opcodes.bin --data opcodes.data\
|
32 |
|
|
--code_size $(CODE_BRAM_SIZE) --data_size $(DATA_BRAM_SIZE) \
|
33 |
|
|
-s $(SIM_LENGTH) -v $(SRC_DIR)\\mips_tb2_template.vhdl \
|
34 |
|
|
-o $(TB_DIR)\\mips_tb2.vhdl -e mips_tb2
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.