Suhyun Posted August 7, 2020 Report Share Posted August 7, 2020 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 Quote Link to comment Share on other sites More sharing options...
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.