Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

Wrong address range for custom IP in SOPC

Hello guys,

I would pls like a hint or a wise word on this funny issue that I have related to address ranges.

In detail, I have designed my own custom IP core that is a simple slave for the avalon bus. Its like an on-chip ram, but its not a RAM it has some other logic as well.

This IP core has an address port ADDRESS_PORT(8 DOWNTO 0). So that is 9 bits for addressing, in other words I want to address 512 words of RAM. The funny thing is that when I add my component on the SOPC builder along with a NIOS some RAM etc. and I do "auto assign base addresses" then the address range that is assigned for my component by SOPC is 12bits!

Just to make it more clear, for example if the base address for my component is 0x1000 then the range assigned by SOPC to the component is:

0x1000-0x1FFF! That is 12 bits right? I'm expecting something like that:

0x1000-0x11FF...so 9 bits=512words.

What seems to be wrong? Why the SOPC cannot understand the address range correctly since my address port is 9 bits?

Thank you for your help!!

24 Replies