Skip to content

Request for Assistance Regarding gem5 HBMCtrl Issues #1523

Answered by LujhCoconut
LujhCoconut asked this question in Q&A
Discussion options

You must be logged in to vote

Through recent in-depth exploration of the gem5 source code, I have discovered a more refined answer to this issue.
In fact, gem5 already has code for implementing HBM2Stack in the file located at /src/python/gem5/components/memory/hbm.py. We just need to correctly understand this code to successfully configure HBMCtrl.

The code is quite short and easy to understand, so it will not be elaborated on here. Instead, a brief explanation of how to configure HBM2Stack will be provided.

Here, only the configuration code relevant to HBM2Stack is presented.

# Create address ranges
start = 0
end = 4*1024
mem_range = AddrRange(str(start) + 'MiB', str(end) + 'MiB')
system.mem_ranges.append(mem_range)

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@LujhCoconut
Comment options

Answer selected by LujhCoconut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant