Changeset 457


Ignore:
Timestamp:
Dec 5, 2014, 3:41:22 PM (10 years ago)
Author:
alain
Message:

Introducing the "classif" application.
Updating the "transpose", "convol", and "router" applications.

Location:
soft/giet_vm/applications
Files:
5 added
4 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/convol/convol.py

    r432 r457  
    6565            for p in xrange( nprocs ):
    6666                proc_id = (((x * y_size) + y) * nprocs) + p
    67                 size    = stack_size / nprocs
     67                size    = (stack_size / nprocs) & 0xFFFFF000
    6868                base    = stack_base + (proc_id * size)
    6969                mapping.addVseg( vspace, 'conv_stack_%d_%d_%d' % (x,y,p), base, size,
  • soft/giet_vm/applications/router/main.c

    r451 r457  
    3838#define DEPTH  20           // MWMR channels depth
    3939
    40 //////////////// MWMR channels /////////////////////////////////////////////
     40//////////////// MWMR channels and associated buffers  /////////////////////
    4141
    4242__attribute__((section (".data_in")))  mwmr_channel_t fifo_in;
     43__attribute__((section (".data_in")))  unsigned int   buf_in[DEPTH];
     44
    4345__attribute__((section (".data_out"))) mwmr_channel_t fifo_out;
     46__attribute__((section (".data_out"))) unsigned int   buf_out[DEPTH];
    4447 
    4548//////////////// Instrumentation Counters //////////////////////////////////
     
    6770
    6871    // initializes fifo_in
    69     mwmr_init( &fifo_in, 1 , DEPTH );
     72    mwmr_init( &fifo_in, buf_in, 1 , DEPTH );
    7073
    7174    // main loop : display token value = source index
     
    9699
    97100    // initializes fifo_out
    98     mwmr_init( &fifo_out, 1 , DEPTH );
     101    mwmr_init( &fifo_out, buf_out, 1 , DEPTH );
    99102
    100103    // main loop : register token arrival index and value
  • soft/giet_vm/applications/router/router.py

    r451 r457  
    44
    55######################################################################################
    6 #   file   : router.py  (for the router application)
     6#   file   : router.py
    77#   date   : november 2014
    88#   author : Alain Greiner
     
    6868            mapping.addVseg( vspace, 'router_code_%d_%d' %(x,y), code_base , code_size,
    6969                             'CXWU', vtype = 'ELF', x = x, y = y, pseg = 'RAM',
    70                              binpath = 'build/transpose/transpose.elf',
     70                             binpath = 'build/router/router.elf',
    7171                             local = True )
    7272
     
    108108if __name__ == '__main__':
    109109
    110     vspace = transpose( Mapping( 'test', 2, 2, 4 ) )
     110    vspace = router( Mapping( 'test', 2, 2, 4 ) )
    111111    print vspace.xml()
    112112
  • soft/giet_vm/applications/transpose/transpose.py

    r444 r457  
    6464            for p in xrange( nprocs ):
    6565                proc_id = (((x * y_size) + y) * nprocs) + p
    66                 size    = stack_size / nprocs
     66                size    = (stack_size / nprocs) & 0xFFFFF000
    6767                base    = stack_base + (proc_id * size)
    6868                mapping.addVseg( vspace, 'trsp_stack_%d_%d_%d' % (x,y,p), base, size,
Note: See TracChangeset for help on using the changeset viewer.