src/CodeGen_CoreIR_Target.cpp
//////////////////////////////////////////////
// Functions to wire coreir things together //
//////////////////////////////////////////////
Functions to wire coreir things together
Functions to wire coreir things together
CoreIR::Wireable* index_wire(CoreIR::Wireable* in_wire, std::vector<uint> indices) {
  CoreIR::Wireable* current_wire = in_wire;
  for (int i=indices.size()-1; i >= 0; --i) {
    current_wire = current_wire->sel(indices[i]);
  }
  return current_wire;
}
CoreIR :: Wireable * index_wire ( CoreIR :: Wireable * in_wire , std :: vector < uint > indices ) { CoreIR :: Wireable * current_wire = in_wire ; for ( int i = indices . size ( ) - 1 ; i >= 0 ; -- i ) { current_wire = current_wire -> sel ( indices [ i ] ) ; } return current_wire ; }
Functions to wire coreir things together
Functions to wire coreir things together