-
Notifications
You must be signed in to change notification settings - Fork 59
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
Comments
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? |
Hi @xyzsam Thanks for your reply. |
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. |
@xyzsam |
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?
The text was updated successfully, but these errors were encountered: