Skip to content

CR "ADDRESS_BITS" - dont understand why SW needs to know this value #54

Answered by DL8
amichai-bd asked this question in Q&A
Discussion options

You must be logged in to vote

This information is relevant for D_MEM and I_MEM, not CR space: the number of memory offset bits tells software the memory size (D_MEM and I_MEM separately). Some advantages for having this knowledge:

  1. Portability (no need to recompile for units with different memory size)
  2. Better memory utilization (you can partition D_MEM more efficiently if you know how much you have)

I'll clarify it in the documentation.

Assumptions behind this definition:

  1. D_MEM and I_MEM are of the same size. If that's not the case, we'll need to indicate them in separate fields
  2. D_MEM and I_MEM size is a power-of-2. If that's not the case, we'll need to re-think this definition (or add another CR for size?)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by amichai-bd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working Documentation Improvements or additions to documentation enhancement New feature or request
2 participants