Changeset 463


Ignore:
Timestamp:
Dec 5, 2014, 4:23:45 PM (9 years ago)
Author:
alain
Message:

Introducing new configuration variables in giet_config.h

Location:
soft/giet_vm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/Makefile

    r445 r463  
    88AR = mipsel-unknown-elf-ar
    99
     10# Parameters definition
    1011ARCH      ?= ../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
     12X_SIZE    ?= 1
     13Y_SIZE    ?= 1
     14NB_PROCS  ?= 4
     15NB_TTYS   ?= 1
     16FBF_WIDTH ?= 128
     17APP       ?= classif
    1618
    1719.PHONY: map.bin
     
    2325### partition sectors    = 524832
    2426
    25 ### Objects to be linked for the drivers static library
     27### Objects to be linked for the drivers library
    2628DRIVERS_OBJS = build/drivers/dma_driver.o \
    2729               build/drivers/cma_driver.o \
     
    4345### Objects to be linked for kernel.elf
    4446KERNEL_OBJS  = build/common/utils.o        \
    45                build/kernel/kernel_utils.o \
     47               build/common/locks.o        \
     48               build/common/tty0.o          \
    4649               build/common/vmem.o         \
    4750               build/fat32/fat32.o         \
     
    5558
    5659### 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          \
     60BOOT_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           \
    6469               build/boot/boot_entry.o
    6570
     
    7176ROUTER_OBJS  = build/router/main.o        \
    7277               build/libs/mwmr_channel.o  \
     78               build/libs/user_lock.o     \
    7379               build/libs/stdio.o
    7480
     
    8692                  build/libs/barrier.o    \
    8793                  build/libs/malloc.o     \
    88                   build/libs/spin_lock.o
     94                  build/libs/user_lock.o
    8995                 
    9096
     
    95101                 build/libs/stdio.o       \
    96102                 build/libs/string.o      \
    97                  build/libs/spin_lock.o   \
     103                 build/libs/user_lock.o   \
    98104                 build/libs/malloc.o
    99 
     105       
    100106### Objects to be linked for sort.elf
    101107SORT_OBJS   = build/sort/main.o          \
     
    103109              build/libs/barrier.o       \
    104110              build/libs/malloc.o        \
    105               build/libs/spin_lock.o
     111              build/libs/user_lock.o
    106112
    107113### Objects to be linked for transpose.elf
     
    110116                 build/libs/barrier.o    \
    111117                 build/libs/malloc.o     \
    112                  build/libs/spin_lock.o
     118                 build/libs/user_lock.o
    113119
    114120### Objects to be linked for convol.elf
     
    118124               build/libs/barrier.o      \
    119125               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
     129CLASSIF_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
    121135
    122136CFLAGS = -Wall -ffreestanding -mno-gpopt -mips32 -g -O2 \
     
    152166     build/transpose/transpose.elf   \
    153167     build/convol/convol.elf         \
     168     build/router/router.elf         \
     169     build/classif/classif.elf       \
    154170     $(DISK_IMAGE)                   
    155171         
     
    160176        mcopy -o -i $(DISK_IMAGE) build/transpose/transpose.elf ::/build/transpose
    161177        mcopy -o -i $(DISK_IMAGE) build/convol/convol.elf ::/build/convol
     178        mcopy -o -i $(DISK_IMAGE) build/classif/classif.elf ::/build/classif
    162179        mcopy -o -i $(DISK_IMAGE) build/hello/hello.elf ::/build/hello
    163180        mcopy -o -i $(DISK_IMAGE) build/pgcd/pgcd.elf ::/build/pgcd
     
    184201        mmd -o -i $(DISK_IMAGE) ::/build/transpose
    185202        mmd -o -i $(DISK_IMAGE) ::/build/convol
     203        mmd -o -i $(DISK_IMAGE) ::/build/classif
    186204        mmd -o -i $(DISK_IMAGE) ::/build/hello
    187205        mmd -o -i $(DISK_IMAGE) ::/build/pgcd 
     
    195213### mapping generation: map.bin / map.xml / hard_config.h / giet_vsegs.ld
    196214map.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)         \
    198216                           --x=$(X_SIZE)      \
    199217                           --y=$(Y_SIZE)      \
    200                            --p=$(NPROCS)      \
     218                           --p=$(NB_PROCS)    \
     219                           --tty=$(NB_TTYS)   \
    201220                           --fbf=$(FBF_WIDTH) \
    202221                           --giet=.           \
     
    316335build/common/utils.o: giet_common/utils.c \
    317336                      giet_common/utils.h \
     337                      hard_config.h       \
     338                      giet_config.h
     339        $(CC) $(GIET_INCLUDE) $(CFLAGS)  -c -o $@ $<
     340
     341build/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
     347build/common/tty0.o:  giet_common/tty0.c \
     348                      giet_common/tty0.h \
    318349                      hard_config.h       \
    319350                      giet_config.h
     
    388419build/libs/malloc.o: giet_libs/malloc.c         \
    389420                     giet_libs/malloc.h         \
    390                      giet_libs/malloc_private.h \
    391421                     hard_config.h              \
    392422                     giet_config.h
     
    411441        $(CC) $(CFLAGS) $(USER_INCLUDE) -c -o $@ $<
    412442
    413 build/libs/spin_lock.o: giet_libs/spin_lock.c \
    414                         giet_libs/spin_lock.h \
     443build/libs/user_lock.o: giet_libs/user_lock.c \
     444                        giet_libs/user_lock.h \
    415445                        hard_config.h         \
    416446                        giet_config.h
     
    504534
    505535build/convol/main.o: applications/convol/main.c
     536        $(CC) $(USER_INCLUDE) $(CFLAGS) -O0 -c -o $@ $<
     537
     538########################################
     539### classif compilation
     540build/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
     544build/classif/main.o: applications/classif/main.c
    506545        $(CC) $(USER_INCLUDE) $(CFLAGS) -O0 -c -o $@ $<
    507546
     
    527566        rm -rf build/transpose/*
    528567        rm -rf build/convol/*
     568        rm -rf build/classif/*
    529569        rm -rf $(DISK_IMAGE)
  • soft/giet_vm/giet_config.h

    r454 r463  
    2525
    2626#define GIET_DEBUG_FAT           0          /* trace fat accesses */
     27#define GIET_DEBUG_SYS_LOCK      0          /* trace kernel locks access */
    2728#define GIET_DEBUG_SWITCH        0          /* trace context switchs  */
    2829#define GIET_DEBUG_IRQS          0          /* trace interrupts */
     
    3031#define GIET_DEBUG_TTY_DRIVER    0          /* trace TTY accesses */
    3132#define GIET_DEBUG_DMA_DRIVER    0          /* trace DMA accesses */
     33#define GIET_DEBUG_NIC           0          /* trace NIC accesses */
    3234#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 */
    3437#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 */
    3540
    3641#define CONFIG_SRL_VERBOSITY TRACE
     
    3843/* software parameters */
    3944
    40 #define GIET_ELF_BUFFER_SIZE     0x60000    /* buffer for .elf files in seg_boot_data */
     45#define GIET_ELF_BUFFER_SIZE     0x80000    /* buffer for .elf files in seg_boot_data */
    4146#define GIET_IDLE_TASK_PERIOD    0x10000000 /* Idle Task message period */
    4247#define GIET_OPEN_FILES_MAX      16         /* max simultaneously open files */
     
    4550#define GIET_USE_IOMMU           0          /* IOMMU activated when non zero */
    4651#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 */
    5059
    5160#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 */
    22
    33#ifndef HARD_CONFIG_H
     
    66/* General platform parameters */
    77
    8 #define X_SIZE                 2
    9 #define Y_SIZE                 2
     8#define X_SIZE                 1
     9#define Y_SIZE                 1
    1010#define X_WIDTH                4
    1111#define Y_WIDTH                4
     
    1313#define X_IO                   0
    1414#define Y_IO                   0
    15 #define NB_PROCS_MAX           2
     15#define NB_PROCS_MAX           4
    1616#define IRQ_PER_PROCESSOR      4
    1717#define RESET_ADDRESS          0xbfc00000
    18 #define NB_TOTAL_PROCS         8
     18#define NB_TOTAL_PROCS         4
    1919
    2020/* Peripherals */
     
    2525#define NB_CMA_CHANNELS        4
    2626#define NB_TIM_CHANNELS        0
    27 #define NB_DMA_CHANNELS        2
     27#define NB_DMA_CHANNELS        4
    2828
    2929#define USE_XCU                1
     
    3737#define USE_IOC_RDK            0
    3838
    39 #define FBUF_X_SIZE            1024
    40 #define FBUF_Y_SIZE            1024
     39#define FBUF_X_SIZE            128
     40#define FBUF_Y_SIZE            128
    4141
    42 #define XCU_NB_INPUTS          16
     42#define XCU_NB_INPUTS          32
    4343
    4444/* base addresses and sizes for physical segments */
     
    5454
    5555#define SEG_FBF_BASE           0xb7000000
    56 #define SEG_FBF_SIZE           0x100000
     56#define SEG_FBF_SIZE           0x4000
    5757
    5858#define SEG_IOB_BASE           0xbe000000
     
    104104
    105105#define SEG_BOOT_DATA_BASE     0xc0000
    106 #define SEG_BOOT_DATA_SIZE     0x80000
     106#define SEG_BOOT_DATA_SIZE     0xc0000
    107107
    108 #define SEG_BOOT_STACK_BASE    0x140000
    109 #define SEG_BOOT_STACK_SIZE    0x50000
     108#define SEG_BOOT_STACK_BASE    0x180000
     109#define SEG_BOOT_STACK_SIZE    0x80000
    110110#endif
Note: See TracChangeset for help on using the changeset viewer.