Changeset 744 for trunk/softs/soft_transpose_giet
- Timestamp:
- Jul 10, 2014, 11:23:57 AM (10 years ago)
- Location:
- trunk/softs/soft_transpose_giet
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/soft_transpose_giet/Makefile
r623 r744 4 4 DU = mipsel-unknown-elf-objdump 5 5 6 OBJS = 7 8 9 6 OBJS = reset.o \ 7 giet.o \ 8 stdio.o \ 9 main.o 10 10 11 CFLAGS = -Wall -mno-gpopt -ffreestanding -fomit-frame-pointer -mips32 -ggdb 11 CFLAGS = -Wall -mno-gpopt -ffreestanding -fomit-frame-pointer -mips32 \ 12 -msoft-float -O2 \ 13 # -ggdb -mlong-calls 12 14 13 15 GIET = ../giet_tsar … … 18 20 19 21 reset.o: $(GIET)/reset.S hard_config.h 20 $(CC) -I. $(CFLAGS) -c -o $@ $<22 $(CC) -I. -I$(GIET) $(CFLAGS) -c -o $@ $< 21 23 $(DU) -D $@ > $@.txt 22 24 -
trunk/softs/soft_transpose_giet/hard_config.h
r632 r744 7 7 #define _HARD_CONFIG_H 8 8 9 #define X_SIZE 210 #define Y_SIZE 29 #define X_SIZE 6 10 #define Y_SIZE 6 11 11 #define X_WIDTH 4 12 12 #define Y_WIDTH 4 13 #define X_IO 0//(X_SIZE - 1) 14 #define Y_IO 0//(Y_SIZE - 1) 13 15 14 #define NB_PROCS_MAX 116 #define NB_PROCS_MAX 4 15 17 16 #define USE_RAMDISK 117 #define USE_ EXT_IO 018 #define USE_RAMDISK 0 19 #define USE_PIC 1 18 20 19 21 #define NB_DMA_CHANNELS 0 … … 21 23 #define NB_NIC_CHANNELS 0 22 24 #define NB_CMA_CHANNELS 0 23 24 25 #define NB_TTY_CHANNELS 1 25 26 -
trunk/softs/soft_transpose_giet/ldscript
r631 r744 10 10 peripherals are not present in the architecture */ 11 11 12 seg_reset_base = 0x 00000000; /* boot code */12 seg_reset_base = 0xBFC00000; /* boot code */ 13 13 14 14 seg_kcode_base = 0x00010000; /* kernel code */ … … 20 20 21 21 seg_heap_base = 0x00100000; /* heaps for applications */ 22 seg_stack_base = 0x00300000; /* stacks ifor applications*/22 seg_stack_base = 0x00300000; /* stacks for applications */ 23 23 24 seg_ramdisk_base = 0x 00800000; /* virtual disk */24 seg_ramdisk_base = 0xFFFFFFFF; /* virtual disk */ 25 25 26 seg_xcu_base = 0xF0000000; /* controler XCU */ 27 seg_tty_base = 0xF4000000; /* controler TTY */ 28 seg_fbf_base = 0xF3000000; /* controler FBF */ 29 seg_ioc_base = 0xF2000000; /* controler IOC */ 30 seg_nic_base = 0xF7000000; /* controler NIC */ 31 seg_cma_base = 0xF8000000; /* controler CMA */ 32 seg_pic_base = 0xF9000000; /* controler PIC */ 33 seg_mmc_base = 0xE0000000; /* config MMC */ 26 seg_xcu_base = 0xB0000000; /* XCU controller */ 27 seg_dma_base = 0xB1000000; /* DMA controller */ 28 seg_mmc_base = 0xB2000000; /* config MMC */ 29 seg_ioc_base = 0xB3000000; /* IOC controller */ 30 seg_tty_base = 0xB4000000; /* TTY controller */ 31 seg_nic_base = 0xB5000000; /* NIC controller */ 32 seg_cma_base = 0xB6000000; /* CMA controller */ 33 seg_fbf_base = 0xB7000000; /* FBF controller */ 34 seg_pic_base = 0xB8000000; /* PIC controller */ 34 35 36 ENTRY(reset) 35 37 36 38 /* Grouping sections into segments */ … … 60 62 seg_code : { 61 63 *(.text) 64 *(.text.*) 62 65 } 63 66 . = seg_reset_base; -
trunk/softs/soft_transpose_giet/main.c
r631 r744 12 12 #define PRINTF(...) ({ if (lpid == 0) { _tty_printf(__VA_ARGS__); } }) 13 13 14 #define DISPLAY_OK 1 // enable display on frame buffer when non zero15 #define CHECK_VERBOSE 1// display a detailed check on TTY when non zero16 #define INSTRUMENTATION_OK 0 // display statistcs on TTY when non zero14 #define DISPLAY_OK 1 // enable display on frame buffer when non zero 15 #define CHECK_VERBOSE !DISPLAY_OK // display a detailed check on TTY when non zero 16 #define INSTRUMENTATION_OK 0 // display statistcs on TTY when non zero 17 17 18 18 // tricks to read some addresses from ldscript … … 41 41 unsigned int l; // line index for loops 42 42 unsigned int p; // pixel index for loops 43 44 unsigned int * ioc_address = (unsigned int *) &seg_ioc_base; 45 unsigned int block_size = ioc_address[BLOCK_DEVICE_BLOCK_SIZE]; 46 43 unsigned int block_size = _ioc_get_blocksize(); // get IOC block size 47 44 unsigned int proc_id = _procid(); // processor id 48 45 unsigned int nclusters = X_SIZE*Y_SIZE; // number of clusters … … 128 125 LOAD_END[cluster_id][lpid] = _proctime(); 129 126 127 128 _tty_printf("*** Proc [%d,%d,%d] barrier wait (0)\n", x, y, lpid); 130 129 _barrier_wait(0); 131 130
Note: See TracChangeset
for help on using the changeset viewer.