Jump to content

Calculating the bus address ath the slave bus interface


Recommended Posts

Hi, I wanted to know calculating the bus address.

[information of register in IP-XACT]
 - base address       : 0x40000
 - address offset     : 1
 - address unit bits : 32
 - salve.bitsInLau    : 8

 memory_map_bit_address = bit_number_in_address_block + addressBlock.baseAddress x memoryMap.addressUnitBits
                                                  = (1 + 0x40000) * 32
                                                  = (1 + 262,144)*32
                                                 = 8,388,640
slave_bus_address = memory_map_bit_address  / slave.bitsInLau
                                   = 8,388,640 / 8
                                   = 1,048,580
                                   = 0x100004

Q1) In this case, to access the register, I use the address "0x10004" is it right?

If value of salve.bitsInLau is "32",slave_bus_address = memory_map_bit_address  / slave.bitsInLau
                                   = 8,388,640 / 32
                                   = 262,145
                                   = 0x4001

Q2) In this case, to access the register, I use the address "0x4001" is it right?

 

Thanks & regards,

Suhyun

 

 

Link to post
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.

Guest
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...