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

Can we simulate 8-bit integer by using Gem5-Aladdin? #11

Open
donghn opened this issue Oct 20, 2019 · 4 comments
Open

Can we simulate 8-bit integer by using Gem5-Aladdin? #11

donghn opened this issue Oct 20, 2019 · 4 comments

Comments

@donghn
Copy link

donghn commented Oct 20, 2019

Hi.
As the title. I wonder can we make the simulation with datawidth=1byte (8bits). such as 8-bit fixed-point. and system_bus =32 or 64 bits?

@xyzsam
Copy link
Member

xyzsam commented Oct 20, 2019

Sure, you can replace the power and area models with 8 bit ALUs/multipliers yourself. Is that enough? Or do you actually want to model 8 bit arithmetic datapaths so you can get the memory savings?

@donghn
Copy link
Author

donghn commented Oct 21, 2019

Hi @xyzsam Thanks for your reply.
I want to model 8 bit arithmetic datapaths and memory also. In my system, I use 8-bit integer for memory and operation. I want to trace the DRAM operation and estimate the energy of DRAM.

@xyzsam
Copy link
Member

xyzsam commented Oct 21, 2019

For 8-bit math, you're in luck. You can do this easily - just replace all your ints with chars in your code. LLVM will generate instructions that operate on 8-bit values and that will be reflected in the dynamic trace. Be careful of truncation of course. You will still need to replace the power models in Aladdin though since Aladdin assumes all integer math is 32-bit at least, and only changes per-operation energy based on the cycle time.

@donghn
Copy link
Author

donghn commented Oct 21, 2019

@xyzsam
I got it. Thanks so much for your help.

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

No branches or pull requests

2 participants