// try to pick and assign them to the new packet
if (streamGenerator) {
auto sid = streamGenerator->pickStreamID();
- auto ssid = streamGenerator->pickSubStreamID();
+ auto ssid = streamGenerator->pickSubstreamID();
pkt->req->setStreamId(sid);
if (streamGenerator->ssidValid()) {
- pkt->req->setSubStreamId(ssid);
+ pkt->req->setSubstreamId(ssid);
}
}
/** Currently active generator */
std::shared_ptr<BaseGen> activeGenerator;
- /** Stream/SubStreamID Generator */
+ /** Stream/SubstreamID Generator */
std::unique_ptr<StreamGen> streamGenerator;
};
virtual ~StreamGen() {};
virtual uint32_t pickStreamID() = 0;
- virtual uint32_t pickSubStreamID() = 0;
+ virtual uint32_t pickSubstreamID() = 0;
/**
* Factory method for constructing a Stream generator.
* Store preset Stream and Substream IDs to use for requests
* This is the set of available streamIDs the generator can
* pick. The actual ID being picked for a specific memory
- * request is selected by the pickStreamID and pickSubStreamID
+ * request is selected by the pickStreamID and pickSubstreamID
* methods.
*/
std::vector<uint32_t> streamIds;
uint32_t pickStreamID() override
{ return streamIds[0]; }
- uint32_t pickSubStreamID() override
+ uint32_t pickSubstreamID() override
{ return substreamIds[0]; }
};
uint32_t pickStreamID() override
{ return randomPick(streamIds); }
- uint32_t pickSubStreamID() override
+ uint32_t pickSubstreamID() override
{ return randomPick(substreamIds); }
protected:
gen.addr(), gen.size(), flag, requestorId);
req->setStreamId(sid);
- req->setSubStreamId(ssid);
+ req->setSubstreamId(ssid);
req->taskId(ContextSwitchTaskId::DMA);
PacketPtr pkt = new Packet(req, cmd);