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/router
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.