Changeset 457 for soft/giet_vm/applications/router
- Timestamp:
- Dec 5, 2014, 3:41:22 PM (10 years ago)
- Location:
- soft/giet_vm/applications/router
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/router/main.c
r451 r457 38 38 #define DEPTH 20 // MWMR channels depth 39 39 40 //////////////// MWMR channels /////////////////////////////////////////////40 //////////////// MWMR channels and associated buffers ///////////////////// 41 41 42 42 __attribute__((section (".data_in"))) mwmr_channel_t fifo_in; 43 __attribute__((section (".data_in"))) unsigned int buf_in[DEPTH]; 44 43 45 __attribute__((section (".data_out"))) mwmr_channel_t fifo_out; 46 __attribute__((section (".data_out"))) unsigned int buf_out[DEPTH]; 44 47 45 48 //////////////// Instrumentation Counters ////////////////////////////////// … … 67 70 68 71 // initializes fifo_in 69 mwmr_init( &fifo_in, 1 , DEPTH );72 mwmr_init( &fifo_in, buf_in, 1 , DEPTH ); 70 73 71 74 // main loop : display token value = source index … … 96 99 97 100 // initializes fifo_out 98 mwmr_init( &fifo_out, 1 , DEPTH );101 mwmr_init( &fifo_out, buf_out, 1 , DEPTH ); 99 102 100 103 // main loop : register token arrival index and value -
soft/giet_vm/applications/router/router.py
r451 r457 4 4 5 5 ###################################################################################### 6 # file : router.py (for the router application)6 # file : router.py 7 7 # date : november 2014 8 8 # author : Alain Greiner … … 68 68 mapping.addVseg( vspace, 'router_code_%d_%d' %(x,y), code_base , code_size, 69 69 'CXWU', vtype = 'ELF', x = x, y = y, pseg = 'RAM', 70 binpath = 'build/ transpose/transpose.elf',70 binpath = 'build/router/router.elf', 71 71 local = True ) 72 72 … … 108 108 if __name__ == '__main__': 109 109 110 vspace = transpose( Mapping( 'test', 2, 2, 4 ) )110 vspace = router( Mapping( 'test', 2, 2, 4 ) ) 111 111 print vspace.xml() 112 112
Note: See TracChangeset
for help on using the changeset viewer.