Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reg arbitration #199

Merged
merged 1 commit into from
Nov 11, 2024
Merged

Reg arbitration #199

merged 1 commit into from
Nov 11, 2024

Conversation

tastynoob
Copy link
Collaborator

No description provided.

@shinezyy
Copy link
Contributor

shinezyy commented Nov 1, 2024

Can you provide the performance impact of this patch here?

@tastynoob
Copy link
Collaborator Author

image

@shinezyy
Copy link
Contributor

shinezyy commented Nov 2, 2024

image

This is performance gap, but not the impact of this patch.
The impact of this patch means comparison between two GEM5 versions

@tastynoob
Copy link
Collaborator Author

image
disable prefetcher compare

#define RF_INTID 0
#define RF_FPID 1

// rftpi = regfile typeid portid
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tpi seems to be strange.

TyPoID? or full name: typePortID

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about "TyPI"

@@ -241,7 284,21 @@ IssueQue::retryMem(const DynInstPtr& inst)
iqstats->retryMem ;
DPRINTF(Schedule, "retry %s [sn:%llu]\n", enums::OpClassStrings[inst->opClass()], inst->seqNum);
// scheduler->loadCancel(inst);
scheduler->addToFU(inst);
// scheduler->addToFU(inst);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove useless code

@@ -405,6 474,7 @@ bool
IssueQue::full()
{
bool full = instNumInsert instNum >= iqsize;
full |= replayQ.size() > 32; // TODO: parameterize it
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plz finish todo here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe remove this future

{
dispTable.resize(enums::OpClass::Num_OpClass);
opExecTimeTable.resize(enums::OpClass::Num_OpClass, 1);
opPipelined.resize(enums::OpClass::Num_OpClass, false);

boost::dynamic_bitset<> opChecker(enums::Num_OpClass, 0);
std::vector<int> rfportChecker(64, 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The meaning of 64? add comments or replace it with constants

}
maxTPI = 1;
assert(maxTPI <= 64);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The meaning of 64? add comments or replace it with constants

maxTPI = std::max(maxTPI, tpi.first);
rfportChecker[tpi.first] = 1;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use const auto & here?

@tastynoob tastynoob force-pushed the reg-arbitration branch 3 times, most recently from 3c3fe29 to 64b30e4 Compare November 8, 2024 07:12
move scheduler to one config python file
@tastynoob tastynoob merged commit 6b909ef into xs-dev Nov 11, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants