refactor: move helper function into AddressDecoder See merge request ems/astdm/modeling.dram/dram.sys.5!160