Changeset 886


Ignore:
Timestamp:
Nov 16, 2014, 12:49:58 PM (8 years ago)
Author:
cfuguet
Message:

reconf: introduce a dspin_router_config.h interface file

  • This file contains the possible configuration values for the p_blackhole_pos port. It is meant to b used by software to configure, through the reconf:vci_xicu, the NoC routers.
Location:
branches/reconfiguration/modules/dspin_router
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/modules/dspin_router/caba/metadata/dspin_router.sd

    r854 r886  
    22
    33Module('caba:reconf:dspin_router',
    4         classname = 'soclib::caba::DspinRouter',
    5         tmpl_parameters = [ parameter.Int('flit_width'), ],
    6         header_files = ['../source/include/dspin_router.h',],
    7         implementation_files = ['../source/src/dspin_router.cpp',],
    8         ports = [
    9                 Port('caba:bit_in', 'p_resetn', auto = 'resetn'),
    10                 Port('caba:clock_in', 'p_clk', auto = 'clock'),
    11             Port('caba:dspin_output', 'p_out', 5, dspin_data_size = parameter.Reference('flit_width')),
    12             Port('caba:dspin_input', 'p_in', 5, dspin_data_size = parameter.Reference('flit_width')),
    13         ],
    14         instance_parameters = [
    15             parameter.Int('x'),
    16             parameter.Int('y'),
    17             parameter.Int('x_width'),
    18             parameter.Int('y_width'),
    19             parameter.Int('in_fifo_depth'),
    20             parameter.Int('out_fifo_depth'),
     4    classname = 'soclib::caba::DspinRouter',
     5    tmpl_parameters = [ parameter.Int('flit_width')],
     6    header_files = ['../source/include/dspin_router.h'],
     7    implementation_files = ['../source/src/dspin_router.cpp'],
     8    interface_files = ['../../include/soclib/dspin_router_config.h'],
     9    ports = [
     10        Port('caba:bit_in', 'p_resetn', auto = 'resetn'),
     11        Port('caba:clock_in', 'p_clk', auto = 'clock'),
     12        Port('caba:dspin_output', 'p_out', 5, dspin_data_size = parameter.Reference('flit_width')),
     13        Port('caba:dspin_input', 'p_in', 5, dspin_data_size = parameter.Reference('flit_width')),
     14    ],
     15    instance_parameters = [
     16        parameter.Int('x'),
     17        parameter.Int('y'),
     18        parameter.Int('x_width'),
     19        parameter.Int('y_width'),
     20        parameter.Int('in_fifo_depth'),
     21        parameter.Int('out_fifo_depth'),
    2122        parameter.Bool('broadcast_supported'),
    22         ],
    23         uses = [
    24             Uses('caba:base_module'),
    25             Uses('caba:generic_fifo'),
    26         ],
     23    ],
     24    uses = [
     25        Uses('caba:base_module'),
     26        Uses('caba:generic_fifo'),
     27    ],
    2728)
     29
     30# vim: ts=4 : sts=4 : sw=4 : et
  • branches/reconfiguration/modules/dspin_router/caba/source/include/dspin_router.h

    r883 r886  
    8282        INFSM_REQ_FOURTH,
    8383        INFSM_ALLOC_FOURTH,
    84     };
    85 
    86     // Black-Hole position
    87     enum
    88     {
    89         BH_NONE,
    90         BH_N,
    91         BH_NE,
    92         BH_E,
    93         BH_SE,
    94         BH_S,
    95         BH_SW,
    96         BH_W,
    97         BH_NW
    9884    };
    9985
  • branches/reconfiguration/modules/dspin_router/caba/source/src/dspin_router.cpp

    r883 r886  
    4141
    4242#include "../include/dspin_router.h"
     43#include "dspin_router_config.h"
    4344
    4445namespace soclib { namespace caba {
     
    250251        if ( p_blackhole_pos != NULL )
    251252        {
    252             if (p_blackhole_pos->read() != BH_NONE)
     253            if ( p_blackhole_pos->read() != BH_NONE )
    253254            {
    254255                return recovery_route(xdest, ydest);
Note: See TracChangeset for help on using the changeset viewer.