Jump to content

[uvm_mem_mam] how to allocate alligned memory? for example 16 bytes alligned?

Recommended Posts

hi all,

My DUT has 2 kinds data in memory, one kinds needs to be 16 bytes alligned, another kinds does not. so I would ask how to request_region() to get regions for different purpose?

My workaround currently is to request extra 15 bytes each time when needing 16 bytes alligned. do you have a better solution?

Another 2 issues:

1. uvm_mem_mam_cfg on reference manual 1.1 does not contain start_offset.

2. how to handle the enum declaration problem in user code since the alloc_mode_e and locality_e is declared in uvm_mem_man?

Edited by SeanChou
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...