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...
kock Posted August 10, 2020 Report Share Posted August 10, 2020 Hello Suhyun, Yes you are right on Q1 and Q2. On Q2, you miss one zero. It should be 0x40001 rather than 0x4001. Best regards, Erwin Suhyun 1 Quote Link to comment Share on other sites More sharing options...
Suhyun Posted August 14, 2020 Author Report Share Posted August 14, 2020 Hello Erwin, Thanks for your answer. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.