Ignore:
Timestamp:
Nov 12, 2014, 3:14:47 PM (10 years ago)
Author:
cfuguet
Message:

reconf: replace internal BH variable by an input port in the dspin_router

  • This port is conditionnaly instantiated in the router if the newly introduced constructor parameter 'reconfigurable' is true.
  • When this port is used, it can be bound to a CONFIG component which can reconfigure the router.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/modules/dspin_router/caba/source/include/dspin_router.h

    r873 r877  
    109109    DspinOutput<flit_width>     *p_out;
    110110
     111    sc_in<int>                  *p_blackhole_pos;
     112
    111113    // constructor / destructor
    112114    DspinRouter( sc_module_name  name,
     
    117119                 const size_t    in_fifo_depth,
    118120                 const size_t    out_fifo_depth,
    119                  const bool      broadcast_supported = false ); // default value
     121                 const bool      broadcast_supported = false,
     122                 const bool      reconfigurable = false );
     123
     124    ~DspinRouter();
    120125
    121126    private:
     
    151156    bool                        m_broadcast_supported;
    152157    int                         m_disable_mask;
    153     int                         m_blackhole_pos;
    154158
    155159    // methods
     
    169173    }
    170174
    171     void set_blackhole_pos( int pos )
    172     {
    173         m_blackhole_pos = pos;
    174     }
    175 
    176175    void print_trace();
    177176};
Note: See TracChangeset for help on using the changeset viewer.