Forum Discussion
Altera_Forum
Honored Contributor
13 years agoCreate an address translation function and use it to map the addresses in every place you access memory.
Try to keep the logic simple.function addressTranslation;
input addrIn;
begin
if (addrIn >= 9'h20 && addrIn < 9'80) addressTranslation = addrIn - 9'20
else addressTranslation = addrIn;
end
endfunction