Go to the documentation of this file.
45 #include "debug/MinorTiming.hh"
46 #include "enums/OpClass.hh"
50 opClasses(params.opClasses),
53 capabilityList(
Num_OpClasses, (opClasses.empty() ? true : false))
60 const MinorFUTimingParams ¶ms) :
64 description(params.description),
65 suppress(params.suppress),
66 extraCommitLat(params.extraCommitLat),
67 extraCommitLatExpr(params.extraCommitLatExpr),
68 extraAssumedLat(params.extraAssumedLat),
69 srcRegsRelativeLats(params.srcRegsRelativeLats),
70 opClasses(params.opClasses)
85 description(description_),
86 timeSource(timeSource_),
107 if (
DTRACE(MinorTiming)) {
108 std::ostringstream lats;
112 while (
j < num_lats) {
121 "Adding extra timing decode pattern %d to FU"
122 " mask: %016x match: %016x srcRegLatencies: %s\n",
132 for (
auto i = cant_forward.begin();
i != cant_forward.end(); ++
i) {
179 uint64_t mach_inst = inst->
getEMI();
183 unsigned int num_timings = timings.size();
185 for (
unsigned int i = 0;
i < num_timings;
i++) {
189 (mach_inst & timing.
mask) == timing.
match)
192 "Found extra timing match (pattern %d '%s')"
193 " %s %16x (type %s)\n",
195 typeid(inst).name());
201 if (num_timings != 0) {
203 "No extra timing info. found for inst: %s"
204 " mach_inst: %16x\n",
static const OpClass Num_OpClasses
std::vector< Cycles > srcRegsRelativeLats
Cycle offsets from the scoreboard delivery times of register values for each of this instruction's so...
void addCapability(OpClass cap, unsigned oplat, bool pipelined)
void reportData(std::ostream &os) const
Report and bubble interfaces.
void advance()
Try to advance the pipeline.
virtual uint64_t getEMI() const
bool stalled
If true, advance will not advance the pipeline.
Extra timing capability to allow individual ops to have their source register dependency latencies tw...
Cycles nextInsertCycle
When can a new instruction be inserted into the pipeline? This is an absolute cycle time unless it is...
bool provides(OpClass op_class)
Does the extra decode in this object support the given op class.
bool canInsert() const
Can an instruction be inserted now?
virtual const std::string & disassemble(Addr pc, const Loader::SymbolTable *symtab=nullptr) const
Return string representation of disassembled instruction.
std::string description
Textual description of the decode's purpose.
Cycles cyclesBeforeInsert()
How many cycles must from curCycle before insertion into the pipeline is allowed.
OpClass opClass() const
Operation class. Used to select appropriate function unit in issue.
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
Cycles opLat
Delay from issuing the operation, to it reaching the end of the associated pipeline.
FUPipeline(const std::string &name, const MinorFU &description_, ClockedObject &timeSource_)
A pipeline simulating class that will stall (not advance when advance() is called) if a non-bubble va...
std::vector< bool > cantForwardFromFUIndices
FUs which this pipeline can't receive a forwarded (i.e.
bool alreadyPushed()
Have we already pushed onto this pipe without advancing.
MinorOpClassSet(const MinorOpClassSetParams ¶ms)
void advance()
Step the pipeline.
MinorFUTiming(const MinorFUTimingParams ¶ms)
Cycles curCycle() const
Determine the current cycle, corresponding to a tick aligned to a clock edge.
std::vector< MinorOpClass * > opClasses
uint64_t mask
Mask off the ExtMachInst of an instruction before comparing with match.
std::vector< MinorFUTiming * > timings
Extra timing info to give timings to individual ops.
Cycles issueLat
Delay after issuing an operation before the next operation can be issued.
ClockedObject & timeSource
An FUPipeline needs access to curCycle, use this timing source.
const std::string & name()
A functional unit that can execute any of opClasses operations with a single op(eration)Lat(ency) and...
Cycles is a wrapper class for representing cycle counts, i.e.
const MinorFU & description
Functional unit description that this pipeline implements.
MinorOpClassSet * opClasses
MinorFUTiming * findTiming(const StaticInstPtr &inst)
Find the extra timing information for this instruction.
std::vector< unsigned int > cantForwardFromFUIndices
FUs which this pipeline can't receive a forwarded (i.e.
std::vector< bool > capabilityList
Convenience packing of opClasses into a bit vector for easier testing.
Abstract superclass for simulation objects.
Generated on Tue Jun 22 2021 15:28:26 for gem5 by doxygen 1.8.17