Changeset 463
- Timestamp:
- Dec 5, 2014, 4:23:45 PM (10 years ago)
- Location:
- soft/giet_vm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/Makefile
r445 r463 8 8 AR = mipsel-unknown-elf-ar 9 9 10 # Parameters definition 10 11 ARCH ?= ../tsar-trunk-svn-2013/platforms/tsar_generic_iob 11 X_SIZE ?= 2 12 Y_SIZE ?= 2 13 NPROCS ?= 2 14 FBF_WIDTH ?= 1024 15 APP ?= convol 12 X_SIZE ?= 1 13 Y_SIZE ?= 1 14 NB_PROCS ?= 4 15 NB_TTYS ?= 1 16 FBF_WIDTH ?= 128 17 APP ?= classif 16 18 17 19 .PHONY: map.bin … … 23 25 ### partition sectors = 524832 24 26 25 ### Objects to be linked for the drivers staticlibrary27 ### Objects to be linked for the drivers library 26 28 DRIVERS_OBJS = build/drivers/dma_driver.o \ 27 29 build/drivers/cma_driver.o \ … … 43 45 ### Objects to be linked for kernel.elf 44 46 KERNEL_OBJS = build/common/utils.o \ 45 build/kernel/kernel_utils.o \ 47 build/common/locks.o \ 48 build/common/tty0.o \ 46 49 build/common/vmem.o \ 47 50 build/fat32/fat32.o \ … … 55 58 56 59 ### Objects to be linked for boot.elf 57 BOOT_OBJS = build/common/utils.o \ 58 build/common/pmem.o \ 59 build/common/vmem.o \ 60 build/fat32/fat32.o \ 61 build/kernel/ctx_handler.o \ 62 build/kernel/switch.o \ 63 build/boot/boot.o \ 60 BOOT_OBJS = build/common/utils.o \ 61 build/common/locks.o \ 62 build/common/tty0.o \ 63 build/common/pmem.o \ 64 build/common/vmem.o \ 65 build/fat32/fat32.o \ 66 build/kernel/ctx_handler.o \ 67 build/kernel/switch.o \ 68 build/boot/boot.o \ 64 69 build/boot/boot_entry.o 65 70 … … 71 76 ROUTER_OBJS = build/router/main.o \ 72 77 build/libs/mwmr_channel.o \ 78 build/libs/user_lock.o \ 73 79 build/libs/stdio.o 74 80 … … 86 92 build/libs/barrier.o \ 87 93 build/libs/malloc.o \ 88 build/libs/ spin_lock.o94 build/libs/user_lock.o 89 95 90 96 … … 95 101 build/libs/stdio.o \ 96 102 build/libs/string.o \ 97 build/libs/ spin_lock.o \103 build/libs/user_lock.o \ 98 104 build/libs/malloc.o 99 105 100 106 ### Objects to be linked for sort.elf 101 107 SORT_OBJS = build/sort/main.o \ … … 103 109 build/libs/barrier.o \ 104 110 build/libs/malloc.o \ 105 build/libs/ spin_lock.o111 build/libs/user_lock.o 106 112 107 113 ### Objects to be linked for transpose.elf … … 110 116 build/libs/barrier.o \ 111 117 build/libs/malloc.o \ 112 build/libs/ spin_lock.o118 build/libs/user_lock.o 113 119 114 120 ### Objects to be linked for convol.elf … … 118 124 build/libs/barrier.o \ 119 125 build/libs/malloc.o \ 120 build/libs/spin_lock.o 126 build/libs/user_lock.o 127 128 ### Objects to be linked for classif.elf 129 CLASSIF_OBJS = build/classif/main.o \ 130 build/libs/stdio.o \ 131 build/libs/mwmr_channel.o \ 132 build/libs/barrier.o \ 133 build/libs/malloc.o \ 134 build/libs/user_lock.o 121 135 122 136 CFLAGS = -Wall -ffreestanding -mno-gpopt -mips32 -g -O2 \ … … 152 166 build/transpose/transpose.elf \ 153 167 build/convol/convol.elf \ 168 build/router/router.elf \ 169 build/classif/classif.elf \ 154 170 $(DISK_IMAGE) 155 171 … … 160 176 mcopy -o -i $(DISK_IMAGE) build/transpose/transpose.elf ::/build/transpose 161 177 mcopy -o -i $(DISK_IMAGE) build/convol/convol.elf ::/build/convol 178 mcopy -o -i $(DISK_IMAGE) build/classif/classif.elf ::/build/classif 162 179 mcopy -o -i $(DISK_IMAGE) build/hello/hello.elf ::/build/hello 163 180 mcopy -o -i $(DISK_IMAGE) build/pgcd/pgcd.elf ::/build/pgcd … … 184 201 mmd -o -i $(DISK_IMAGE) ::/build/transpose 185 202 mmd -o -i $(DISK_IMAGE) ::/build/convol 203 mmd -o -i $(DISK_IMAGE) ::/build/classif 186 204 mmd -o -i $(DISK_IMAGE) ::/build/hello 187 205 mmd -o -i $(DISK_IMAGE) ::/build/pgcd … … 195 213 ### mapping generation: map.bin / map.xml / hard_config.h / giet_vsegs.ld 196 214 map.bin hard_config.h giet_vsegs.ld: $(ARCH)/arch.py applications/$(APP)/$(APP).py 197 giet_python/genmap --arch=$(ARCH) \215 giet_python/genmap --arch=$(ARCH) \ 198 216 --x=$(X_SIZE) \ 199 217 --y=$(Y_SIZE) \ 200 --p=$(NPROCS) \ 218 --p=$(NB_PROCS) \ 219 --tty=$(NB_TTYS) \ 201 220 --fbf=$(FBF_WIDTH) \ 202 221 --giet=. \ … … 316 335 build/common/utils.o: giet_common/utils.c \ 317 336 giet_common/utils.h \ 337 hard_config.h \ 338 giet_config.h 339 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 340 341 build/common/locks.o: giet_common/locks.c \ 342 giet_common/locks.h \ 343 hard_config.h \ 344 giet_config.h 345 $(CC) $(GIET_INCLUDE) $(CFLAGS) -c -o $@ $< 346 347 build/common/tty0.o: giet_common/tty0.c \ 348 giet_common/tty0.h \ 318 349 hard_config.h \ 319 350 giet_config.h … … 388 419 build/libs/malloc.o: giet_libs/malloc.c \ 389 420 giet_libs/malloc.h \ 390 giet_libs/malloc_private.h \391 421 hard_config.h \ 392 422 giet_config.h … … 411 441 $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $< 412 442 413 build/libs/ spin_lock.o: giet_libs/spin_lock.c \414 giet_libs/ spin_lock.h \443 build/libs/user_lock.o: giet_libs/user_lock.c \ 444 giet_libs/user_lock.h \ 415 445 hard_config.h \ 416 446 giet_config.h … … 504 534 505 535 build/convol/main.o: applications/convol/main.c 536 $(CC) $(USER_INCLUDE) $(CFLAGS) -O0 -c -o $@ $< 537 538 ######################################## 539 ### classif compilation 540 build/classif/classif.elf: $(CLASSIF_OBJS) applications/classif/classif.ld hard_config.h 541 $(LD) -o $@ -T applications/classif/classif.ld $(CLASSIF_OBJS) 542 $(DU) -D $@ > $@.txt 543 544 build/classif/main.o: applications/classif/main.c 506 545 $(CC) $(USER_INCLUDE) $(CFLAGS) -O0 -c -o $@ $< 507 546 … … 527 566 rm -rf build/transpose/* 528 567 rm -rf build/convol/* 568 rm -rf build/classif/* 529 569 rm -rf $(DISK_IMAGE) -
soft/giet_vm/giet_config.h
r454 r463 25 25 26 26 #define GIET_DEBUG_FAT 0 /* trace fat accesses */ 27 #define GIET_DEBUG_SYS_LOCK 0 /* trace kernel locks access */ 27 28 #define GIET_DEBUG_SWITCH 0 /* trace context switchs */ 28 29 #define GIET_DEBUG_IRQS 0 /* trace interrupts */ … … 30 31 #define GIET_DEBUG_TTY_DRIVER 0 /* trace TTY accesses */ 31 32 #define GIET_DEBUG_DMA_DRIVER 0 /* trace DMA accesses */ 33 #define GIET_DEBUG_NIC 0 /* trace NIC accesses */ 32 34 #define GIET_DEBUG_FBF_CMA 0 /* trace FBF_CMA accesses */ 33 #define GIET_DEBUG_MALLOC 0 /* trace remote_malloc library */ 35 36 #define GIET_DEBUG_MALLOC 0 /* trace malloc library */ 34 37 #define GIET_DEBUG_BARRIER 0 /* trace barrier library */ 38 #define GIET_DEBUG_MWMR 0 /* trace mwmr library */ 39 #define GIET_DEBUG_USER_LOCK 0 /* trace user locks access */ 35 40 36 41 #define CONFIG_SRL_VERBOSITY TRACE … … 38 43 /* software parameters */ 39 44 40 #define GIET_ELF_BUFFER_SIZE 0x 60000 /* buffer for .elf files in seg_boot_data */45 #define GIET_ELF_BUFFER_SIZE 0x80000 /* buffer for .elf files in seg_boot_data */ 41 46 #define GIET_IDLE_TASK_PERIOD 0x10000000 /* Idle Task message period */ 42 47 #define GIET_OPEN_FILES_MAX 16 /* max simultaneously open files */ … … 45 50 #define GIET_USE_IOMMU 0 /* IOMMU activated when non zero */ 46 51 #define GIET_NO_HARD_CC 0 /* No hard cache coherence when non zero */ 47 #define GIET_NIC_CHBUF_NBUFS 2 /* Number of buffers for the NIC chbuf */ 48 #define GIET_NIC_CHBUF_SIZE 4096 /* Buffer size for the NIC chbuf */ 49 #define GIET_NIC_CHBUF_TIMEOUT 100000 /* Max number of iterations for chbuf access */ 52 #define GIET_NIC_NBUFS 2 /* Number of buffers for the NIC chbuf */ 53 #define GIET_NIC_NFAKE 6 54 #define GIET_NIC_BUFSIZE 4096 /* Buffer size for the NIC chbuf */ 55 #define GIET_NIC_TIMEOUT 100 /* Max number of iterations for chbuf access */ 56 #define GIET_NIC_MAC4 0x12345678 /* 32 LSB bits of the MAC address */ 57 #define GIET_NIC_MAC2 0xBEBE /* 16 MSB bits of the MAC address */ 58 #define GIET_LOCK_MAX_TICKET 1000000 /* max ticket value for the file locks */ 50 59 51 60 #endif -
soft/giet_vm/hard_config.h
r447 r463 1 /* Generated by genmap for tsar_iob_ 2_2_2_1024_convol*/1 /* Generated by genmap for tsar_iob_1_1_4_1_128_classif */ 2 2 3 3 #ifndef HARD_CONFIG_H … … 6 6 /* General platform parameters */ 7 7 8 #define X_SIZE 29 #define Y_SIZE 28 #define X_SIZE 1 9 #define Y_SIZE 1 10 10 #define X_WIDTH 4 11 11 #define Y_WIDTH 4 … … 13 13 #define X_IO 0 14 14 #define Y_IO 0 15 #define NB_PROCS_MAX 215 #define NB_PROCS_MAX 4 16 16 #define IRQ_PER_PROCESSOR 4 17 17 #define RESET_ADDRESS 0xbfc00000 18 #define NB_TOTAL_PROCS 818 #define NB_TOTAL_PROCS 4 19 19 20 20 /* Peripherals */ … … 25 25 #define NB_CMA_CHANNELS 4 26 26 #define NB_TIM_CHANNELS 0 27 #define NB_DMA_CHANNELS 227 #define NB_DMA_CHANNELS 4 28 28 29 29 #define USE_XCU 1 … … 37 37 #define USE_IOC_RDK 0 38 38 39 #define FBUF_X_SIZE 1 02440 #define FBUF_Y_SIZE 1 02439 #define FBUF_X_SIZE 128 40 #define FBUF_Y_SIZE 128 41 41 42 #define XCU_NB_INPUTS 1642 #define XCU_NB_INPUTS 32 43 43 44 44 /* base addresses and sizes for physical segments */ … … 54 54 55 55 #define SEG_FBF_BASE 0xb7000000 56 #define SEG_FBF_SIZE 0x 10000056 #define SEG_FBF_SIZE 0x4000 57 57 58 58 #define SEG_IOB_BASE 0xbe000000 … … 104 104 105 105 #define SEG_BOOT_DATA_BASE 0xc0000 106 #define SEG_BOOT_DATA_SIZE 0x 80000106 #define SEG_BOOT_DATA_SIZE 0xc0000 107 107 108 #define SEG_BOOT_STACK_BASE 0x1 40000109 #define SEG_BOOT_STACK_SIZE 0x 50000108 #define SEG_BOOT_STACK_BASE 0x180000 109 #define SEG_BOOT_STACK_SIZE 0x80000 110 110 #endif
Note: See TracChangeset
for help on using the changeset viewer.